@nebula.js/sn-table 6.17.0 → 6.19.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.
package/core/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.17.0
2
+ * @nebula.js/sn-table v6.19.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -87,19 +87,19 @@ function Wi(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
87
87
  animation-iteration-count: infinite;
88
88
  animation-delay: 200ms;
89
89
  }
90
- `),Gc.rippleVisible,ed,550,({theme:e})=>e.transitions.easing.easeInOut,Gc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Gc.child,Gc.childLeaving,td,550,({theme:e})=>e.transitions.easing.easeInOut,Gc.childPulsate,rd,({theme:e})=>e.transitions.easing.easeInOut),id=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,Yc),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=x.useRef(!1),p=ul(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,nr.jsx(od,{classes:{ripple:ms(o.ripple,Gc.ripple),rippleVisible:ms(o.rippleVisible,Gc.rippleVisible),ripplePulsate:ms(o.ripplePulsate,Gc.ripplePulsate),child:ms(o.child,Gc.child),childLeaving:ms(o.childLeaving,Gc.childLeaving),childPulsate:ms(o.childPulsate,Gc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=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;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},[n,m,p]),v=x.useCallback(()=>{g({},{pulsate:!0})},[g]),b=x.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{b(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:b}),[v,g,b]),nr.jsx(nd,$r({className:ms(Gc.root,o.root,i),ref:h},a,{children:nr.jsx(Fc,{component:null,exit:!0,children:s})}))});function ad(e){return bs("MuiButtonBase",e)}const sd=ys("MuiButtonBase",["root","disabled","focusVisible"]),ld=["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"],ud=mc("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"},[`&.${sd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cd=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Hr(r,ld),O=x.useRef(null),L=x.useRef(null),q=il(L,k),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=bl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const W=H&&!u&&!l;function V(e,t,r=c){return ol(n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0})}x.useEffect(()=>{F&&d&&!u&&H&&L.current.pulsate()},[u,d,F,H]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",e=>{j(e),!1===N.current&&$(!1),f&&f(e)},!1),te=ol(e=>{O.current||(O.current=e.currentTarget),_(e),!0===N.current&&($(!0),b&&b(e)),v&&v(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=ol(e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=ol(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=il(t,z,O),ue=$r({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=xl({root:["root",t&&"disabled",r&&"focusVisible"]},ad,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return nr.jsxs(ud,$r({as:ae,className:ms(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:D},se,T,{children:[i,W?nr.jsx(id,$r({ref:q,center:o},I)):null]}))});function dd(e){return bs("MuiIconButton",e)}const pd=ys("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fd=["edge","children","className","color","disabled","disableFocusRipple","size"],hd=mc(cd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${aa(r.color)}`],r.edge&&t[`edge${aa(r.edge)}`],t[`size${aa(r.size)}`]]}})(({theme:e,ownerState:t})=>$r({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Xl(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return $r({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&$r({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":$r({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${pd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),md=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Hr(r,fd),d=$r({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return xl({root:["root",r&&"disabled","default"!==n&&`color${aa(n)}`,o&&`edge${aa(o)}`,`size${aa(i)}`]},dd,t)})(d);return nr.jsx(hd,$r({className:ms(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function gd(e){return bs("MuiTypography",e)}ys("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bd=mc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${aa(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$r({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})),yd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sd=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTypography"}),n=(e=>xd[e]||e)(r.color),o=cs($r({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=yd}=o,f=Hr(o,vd),h=$r({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||yd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return xl({root:["root",i,"inherit"!==e.align&&`align${aa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},gd,a)})(h);return nr.jsx(bd,$r({as:m,ref:t,ownerState:h,className:ms(g.root,a)},f))});const wd=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=il(x.isValidElement(r)?Al(r):null,t);if(Ws(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Ws(()=>{if(i&&!o)return Qs(t,i),()=>{Qs(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return nr.jsx(x.Fragment,{children:r})}return nr.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Cd=["onChange","maxRows","minRows","style","value"];function Ed(e){return parseInt(e,10)||0}const Rd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ad(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pd=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,Cd),{current:l}=x.useRef(null!=a),u=x.useRef(null),c=il(t,u),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Zs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Ed(i.paddingBottom)+Ed(i.paddingTop),l=Ed(i.borderBottomWidth)+Ed(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[n,o,e.placeholder]),h=ol(()=>{const e=u.current,t=f();if(!e||!t||Ad(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Ad(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Ws(()=>{const e=Xs(m),t=null==u?void 0:u.current;if(!t)return;const r=Zs(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Ws(()=>{m()});return nr.jsxs(x.Fragment,{children:[nr.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},Rd,i,{paddingTop:0,paddingBottom:0})})]})});function Md({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Id=x.createContext(void 0);function kd(){return x.useContext(Id)}function Dd(e){return nr.jsx(ls,$r({},e,{defaultTheme:Ou,themeId:Fr}))}function Td(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Od(e,t=!1){return e&&(Td(e.value)&&""!==e.value||t&&Td(e.defaultValue)&&""!==e.defaultValue)}function Ld(e){return bs("MuiInputBase",e)}const qd=ys("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Nd=["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"],_d=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${aa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},zd=mc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_d})(({theme:e,ownerState:t})=>$r({},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",[`&.${qd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$r({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fd=mc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$r({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $r({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${qd.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"})}),$d=nr.jsx(Dd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Hd=x.forwardRef(function(e,t){var r;const n=yc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:P,onKeyDown:M,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:_="text",value:j}=n,z=Hr(n,Nd),F=null!=v.value?v.value:j,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),W=il(H,b,v.ref,B),[V,U]=x.useState(!1),G=kd(),Y=Md({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,x.useEffect(()=>{!G&&d&&V&&(U(!1),E&&E())},[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{Od(e)?K&&K():X&&X()},[K,X]);Ws(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=v;w&&"input"===Z&&(Q=$r(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Pd);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=$r({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return xl({root:["root",`color${aa(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${aa(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Ld,t)})(ee),re=q.root||l.Root||zd,ne=L.root||u.root||{},oe=q.input||l.Input||Fd;return Q=$r({},Q,null!=(r=L.input)?r:u.input),nr.jsxs(x.Fragment,{children:[!p&&$d,nr.jsxs(re,$r({},ne,!Sl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ms(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,nr.jsx(Id.Provider,{value:null,children:nr.jsx(oe,$r({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:M,onKeyUp:I,type:_},Q,!Sl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:W,className:ms(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(jr(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},Y,{startAdornment:N})):null]}))]})});function Bd(e){return bs("MuiInput",e)}const Wd=$r({},qd,ys("MuiInput",["root","underline","input"]));function Vd(e){return bs("MuiOutlinedInput",e)}const Ud=$r({},qd,ys("MuiOutlinedInput",["root","notchedOutline","input"]));function Gd(e){return bs("MuiFilledInput",e)}const Yd=$r({},qd,ys("MuiFilledInput",["root","underline","input"]));var Kd=function(e,t){function r(r,n){return nr.jsx(Cc,$r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Cc.muiName,x.memo(x.forwardRef(r))}(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jd={entering:{opacity:1},entered:{opacity:1}},Zd=x.forwardRef(function(e,t){const r=Lu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:v=Oc}=e,b=Hr(e,Xd),y=x.useRef(null),S=il(y,Al(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{$c(e);const n=Hc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),R=w(c),A=w(h),P=w(e=>{const t=Hc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),M=w(f);return nr.jsx(v,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:P,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>x.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Jd[e],m,a.props.style),ref:S},t))}))});function Qd(e){return bs("MuiBackdrop",e)}ys("MuiBackdrop",["root","invisible"]);const ep=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tp=mc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$r({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"})),rp=x.forwardRef(function(e,t){var r,n,o;const i=yc({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=Zd,transitionDuration:g}=i,v=Hr(i,ep),b=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return xl({root:["root",r&&"invisible"]},Qd,t)})(b),x=null!=(r=f.root)?r:c.root;return nr.jsx(m,$r({in:p,timeout:g},v,{children:nr.jsx(tp,$r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ms(y.root,s,null==x?void 0:x.className),ownerState:$r({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),np=ys("MuiBox",["root"]),op=Tu(),ip=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Wi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qa);return x.forwardRef(function(e,a){const s=as(r),l=cs(e),{className:u,component:c="div"}=l,d=Hr(l,gs);return nr.jsx(i,$r({as:c,ref:a,className:ms(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Fr,defaultTheme:op,defaultClassName:np.root,generateClassName:fs.generate});function ap(e){return bs("MuiButton",e)}const sp=ys("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"]),lp=x.createContext({}),up=x.createContext(void 0),cp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dp=e=>$r({},"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}}),pp=mc(cd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${aa(r.color)}`],t[`size${aa(r.size)}`],t[`${r.variant}Size${aa(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $r({},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":$r({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xl(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})`:Xl(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})`:Xl(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sp.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sp.disabled}`]:$r({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 ${Xl(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${sp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sp.disabled}`]:{boxShadow:"none"}}),fp=mc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${aa(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},dp(e))),hp=mc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${aa(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},dp(e))),mp=x.forwardRef(function(e,t){const r=x.useContext(lp),n=x.useContext(up),o=yc({props:Bs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Hr(o,cp),S=$r({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,xl({root:["root",i,`${i}${aa(t)}`,`size${aa(o)}`,`${i}Size${aa(o)}`,`color${aa(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${aa(o)}`],endIcon:["icon","endIcon",`iconSize${aa(o)}`]},ap,a))})(S),C=g&&nr.jsx(fp,{className:w.startIcon,ownerState:S,children:g}),E=p&&nr.jsx(hp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return nr.jsxs(pp,$r({ownerState:S,className:ms(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ms(w.focusVisible,f),ref:t,type:v},y,{classes:w,children:[C,i,E]}))});function gp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vp(e){return parseInt(Zs(e).getComputedStyle(e).paddingRight,10)||0}function bp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&gp(e,o)})}function yp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function xp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Js(e);return t.body===e?Zs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=yl(Js(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vp(n)+e}px`;const t=Js(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vp(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Js(n).body;else{const t=n.parentElement,r=Zs(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const Sp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wp(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Cp(){return!0}function Ep(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=wp,isEnabled:a=Cp,open:s}=e,l=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=il(Al(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Js(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Js(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(x.Fragment,{children:[nr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),nr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Rp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&gp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);bp(t,e.mount,e.modalRef,n,!0);const o=yp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=yp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=xp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=yp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&gp(e.modalRef,t),bp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&gp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ap(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Rp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=il(h,d),[g,v]=x.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=ol(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Js(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=ol(e=>{f.current=e,e&&(c&&E()?w():h.current&&gp(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{c?C():b&&i||A()},[c,A,b,i,C]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=wl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:Ks(()=>{v(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Ks(()=>{v(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:b}}function Pp(e){return bs("MuiModal",e)}ys("MuiModal",["root","hidden","backdrop"]);const Mp=["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"],Ip=mc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),kp=mc(rp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=yc({name:"MuiModal",props:e}),{BackdropComponent:u=kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:M,slotProps:I,slots:k}=l,D=Hr(l,Mp),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=Ap($r({},T,{rootRef:t})),F=$r({},T,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return xl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Pp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Ip,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:v.root,U=null!=(s=null==I?void 0:I.backdrop)?s:v.backdrop,G=Rl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ms(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Rl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L($r({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ms(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||M||z&&!j?nr.jsx(wd,{ref:N,container:h,disablePortal:w,children:nr.jsxs(B,$r({},G,{children:[!R&&u?nr.jsx(W,$r({},Y)):null,nr.jsx(Ep,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:_,open:M,children:x.cloneElement(f,H)})]}))}):null});function Tp(e){return bs("MuiDivider",e)}const Op=ys("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Lp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qp=mc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$r({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)`:Xl(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})=>$r({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>$r({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Np=mc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$r({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)`})),_p=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Hr(r,Lp),h=$r({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return xl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Tp,n)})(h);return nr.jsx(qp,$r({as:a,className:ms(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?nr.jsx(Np,{className:m.wrapper,ownerState:h,children:o}):null}))});_p.muiSkipListHighlight=!0;const jp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zp=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._d(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $r({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Yd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Yd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Yd.disabled}, .${Yd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$r({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}))}),Fp=mc(Fd,{name:"MuiFilledInput",slot:"Input",overridesResolver:jd})(({theme:e,ownerState:t})=>$r({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})),$p=x.forwardRef(function(e,t){var r,n,o,i;const a=yc({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=Hr(a,jp),g=$r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,xl({root:["root",!r&&"underline"],input:["input"]},Gd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Xi(b,null!=p?p:l):b,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:zp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Fp;return nr.jsx(Hd,$r({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});$p.muiName="Input";const Hp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Bp(e){return`scale(${e}, ${e**2})`}const Wp={entering:{opacity:1,transform:Bp(1)},entered:{opacity:1,transform:"none"}},Vp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Up=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Oc}=e,g=Hr(e,Hp),v=ul(),b=x.useRef(),y=Lu(),S=x.useRef(null),w=il(S,Al(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C((e,t)=>{$c(e);const{duration:r,delay:n,easing:o}=Hc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Vp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),P=C(p),M=C(e=>{const{duration:t,delay:r,easing:n}=Hc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Vp?o:.666*o,delay:Vp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Bp(.75),c&&c(e)}),I=C(d);return nr.jsx(m,$r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:M,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,$r({style:$r({opacity:0,transform:Bp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Wp[e],f,o.props.style),ref:w},t))}))});Up.muiSupportAuto=!0;const Gp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Yp=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._d(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$r({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"},[`&.${Wd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wd.disabled}, .${Wd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Kp=mc(Fd,{name:"MuiInput",slot:"Input",overridesResolver:jd})({}),Xp=x.forwardRef(function(e,t){var r,n,o,i;const a=yc({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=Hr(a,Gp),v=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,xl({root:["root",!r&&"underline"],input:["input"]},Bd,t))})(a),b={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Xi(null!=f?f:u,b):b,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Yp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Kp;return nr.jsx(Hd,$r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function Jp(e){return bs("MuiLink",e)}Xp.muiName="Input";const Zp=ys("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Qp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ef=({theme:e,ownerState:t})=>{const r=(e=>Qp[e]||e)(t.color),n=la(e,`palette.${r}`,!1)||t.color,o=la(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Xl(n,.4)},tf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rf=mc(Sd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${aa(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>$r({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$r({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ef({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"},[`&.${Zp.focusVisible}`]:{outline:"auto"}})),nf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Hr(r,tf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=bl(),[v,b]=x.useState(!1),y=il(t,g),S=$r({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return xl({root:["root",`underline${aa(o)}`,"button"===r&&"button",n&&"focusVisible"]},Jp,t)})(S);return nr.jsx(rf,$r({color:o,className:ms(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),s&&s(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Qp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),of=x.createContext({});function af(e){return bs("MuiList",e)}ys("MuiList",["root","padding","dense","subheader"]);const sf=["children","className","component","dense","disablePadding","subheader"],lf=mc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),uf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Hr(r,sf),c=x.useMemo(()=>({dense:a}),[a]),d=$r({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return xl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},af,t)})(d);return nr.jsx(of.Provider,{value:c,children:nr.jsxs(lf,$r({as:i,className:ms(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})});function cf(e){return bs("MuiListItemIcon",e)}const df=ys("MuiListItemIcon",["root","alignItemsFlexStart"]),pf=["className"],ff=mc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),hf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,pf),i=$r({},r,{alignItems:x.useContext(of).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return xl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cf,r)})(i);return nr.jsx(ff,$r({className:ms(a.root,n),ownerState:i,ref:t},o))}),mf=ys("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function bf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function xf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&yf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Sf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Hr(e,gf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ws(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${yl(Js(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=il(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return nr.jsx(uf,$r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Js(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xf(t,n,l,s,vf);else if("ArrowUp"===r)e.preventDefault(),xf(t,n,l,s,bf);else if("Home"===r)e.preventDefault(),xf(t,null,l,s,vf);else if("End"===r)e.preventDefault(),xf(t,null,l,s,bf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&yf(n,o);o.previousKeyMatched&&(l||xf(t,n,!1,s,vf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function wf(e){return bs("MuiPopover",e)}ys("MuiPopover",["root","paper"]);const Cf=["onEntering"],Ef=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rf=["slotProps"];function Af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Pf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Mf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function If(e){return"function"==typeof e?e():e}const kf=mc(Dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Df=mc(Uc,{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}),Tf=x.forwardRef(function(e,t){var r,n,o;const i=yc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Up,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Hr(i.TransitionProps,Cf),P=Hr(i,Ef),M=null!=(r=null==y?void 0:y.paper)?r:v,I=x.useRef(),k=il(I,M.ref),D=$r({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"]},wf,t)})(D),O=x.useCallback(()=>{if("anchorPosition"===c)return u;const e=If(s),t=(e&&1===e.nodeType?e:Js(I.current).body).getBoundingClientRect();return{top:t.top+Af(t,l.vertical),left:t.left+Pf(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),L=x.useCallback(e=>({vertical:Af(e,S.vertical),horizontal:Pf(e,S.horizontal)}),[S.horizontal,S.vertical]),q=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Mf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Zs(If(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Mf(r)}},[s,c,O,L,m]),[N,_]=x.useState(g),j=x.useCallback(()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)},[q]);x.useEffect(()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,R,j]);x.useEffect(()=>{g&&j()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),x.useEffect(()=>{if(!g)return;const e=Xs(()=>{j()}),t=Zs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,j]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Js(If(s)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:kf,H=null!=(o=null==b?void 0:b.paper)?o:Df,B=Rl({elementType:H,externalSlotProps:$r({},M,{style:N?M.style:$r({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:ms(T.paper,null==M?void 0:M.className)}),W=Rl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ms(T.root,p)}),{slotProps:V}=W,U=Hr(W,Rf);return nr.jsx($,$r({},U,!Sl($)&&{slotProps:V,disableScrollLock:R},{children:nr.jsx(w,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{_(!1)},timeout:z},A,{children:nr.jsx(H,$r({},B,{children:d}))}))}))});function Of(e){return bs("MuiMenu",e)}ys("MuiMenu",["root","paper","list"]);const Lf=["onEntering"],qf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Nf={vertical:"top",horizontal:"right"},_f={vertical:"top",horizontal:"left"},jf=mc(Tf,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zf=mc(Df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ff=mc(Sf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$f=x.forwardRef(function(e,t){var r,n;const o=yc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Hr(o.TransitionProps,Lf),S=Hr(o,qf),w=(()=>{const e=x.useContext(Tl);return null!=e&&e})(),C=$r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"],list:["list"]},Of,t)})(C),R=i&&!l&&d,A=x.useRef(null);let P=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))});const M=null!=(r=v.paper)?r:zf,I=null!=(n=b.paper)?n:p,k=Rl({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[E.root,s]}),D=Rl({elementType:M,externalSlotProps:I,ownerState:C,className:E.paper});return nr.jsx(jf,$r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Nf:_f,slots:{paper:M,root:v.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:nr.jsx(Ff,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:ms(E.list,u.className),children:a}))}))});function Hf(e){return bs("MuiMenuItem",e)}const Bf=ys("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Vf=mc(cd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>$r({},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"}},[`&.${Bf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xl(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})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Op.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Op.inset}`]:{marginLeft:52},[`& .${mf.root}`]:{marginTop:0,marginBottom:0},[`& .${mf.inset}`]:{paddingLeft:36},[`& .${df.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${df.root} svg`]:{fontSize:"1.25rem"}}))),Uf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Hr(r,Wf),f=x.useContext(of),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Ws(()=>{n&&m.current&&m.current.focus()},[n]);const g=$r({},r,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $r({},a,xl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Hf,a))})(r),b=il(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),nr.jsx(of.Provider,{value:h,children:nr.jsx(Vf,$r({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:ms(v.focusVisible,l),className:ms(v.root,d)},p,{ownerState:g,classes:v}))})});function Gf(e){return bs("MuiNativeSelect",e)}const Yf=ys("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Kf=["className","disabled","error","IconComponent","inputRef","variant"],Xf=({ownerState:e,theme:t})=>$r({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$r({},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"},[`&.${Yf.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}}),Jf=mc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Yf.multiple}`]:t.multiple}]}})(Xf),Zf=({ownerState:e,theme:t})=>$r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Yf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qf=mc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${aa(r.variant)}`],r.open&&t.iconOpen]}})(Zf),eh=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Kf),u=$r({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return xl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${aa(r)}`,i&&"iconOpen",n&&"disabled"]},Gf,t)})(u);return nr.jsxs(x.Fragment,{children:[nr.jsx(Jf,$r({ownerState:u,className:ms(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:nr.jsx(Qf,{as:i,ownerState:u,className:c.icon})]})});var th;const rh=["children","classes","className","label","notched"],nh=mc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:hc})({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%"}),oh=mc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:hc})(({ownerState:e,theme:t})=>$r({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&&$r({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 ih=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ah=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_d})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $r({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ud.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ud.error} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ud.disabled} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$r({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),sh=mc(function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,rh),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return nr.jsx(nh,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(oh,{ownerState:a,children:i?nr.jsx("span",{children:r}):th||(th=nr.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}}),lh=mc(Fd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jd})(({theme:e,ownerState:t})=>$r({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})),uh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=yc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Hr(s,ih),v=(e=>{const{classes:t}=e;return $r({},t,xl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vd,t))})(s),b=kd(),y=Md({props:s,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:ah,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:lh;return nr.jsx(Hd,$r({slots:{root:w,input:C},renderSuffix:e=>nr.jsx(sh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=nr.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:$r({},v,{notchedOutline:null})}))});function ch(e){return bs("MuiSelect",e)}uh.muiName="Input";const dh=ys("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ph;const fh=["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"],hh=mc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${dh.select}`]:t.select},{[`&.${dh.select}`]:t[r.variant]},{[`&.${dh.error}`]:t.error},{[`&.${dh.multiple}`]:t.multiple}]}})(Xf,{[`&.${dh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mh=mc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${aa(r.variant)}`],r.open&&t.iconOpen]}})(Zf),gh=mc("input",{shouldForwardProp:e=>fc(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 vh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function bh(e){return null==e||"string"==typeof e&&!e.trim()}const yh=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:P,renderValue:M,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Hr(e,fh),[L,q]=nl({controlled:D,default:c,name:"Select"}),[N,_]=nl({controlled:A,default:u,name:"Select"}),j=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,W]=x.useState(),V=il(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(V,()=>({focus:()=>{z.current.focus()},node:j.current,value:L}),[L]),x.useEffect(()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=Js(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:G.clientWidth),_(e))},K=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}b||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Od({value:L})||p)&&(M?Z=M(L):te=!0);const re=K.map(e=>{if(!x.isValidElement(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(jr(2));t=L.some(t=>vh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=vh(L,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=$r({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return xl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${aa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},ch,t)})(ae),le=$r({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=rl();return nr.jsxs(x.Fragment,{children:[nr.jsx(hh,$r({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),S(e))},onFocus:E},I,{ownerState:ae,className:ms(I.className,se.select,l),id:ie,children:bh(Z)?ph||(ph=nr.jsx("span",{className:"notranslate",children:"​"})):Z})),nr.jsx(gh,$r({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),nr.jsx(mh,{as:h,className:se.icon,ownerState:ae}),nr.jsx($f,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:$r({},v.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),xh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sh=["root"],wh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hc(e)&&"variant"!==e,slot:"Root"},Ch=mc(Xp,wh)(""),Eh=mc(uh,wh)(""),Rh=mc($p,wh)(""),Ah=x.forwardRef(function(e,t){const r=yc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Kd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,xh),A=v?eh:yh,P=Md({props:r,muiFormControl:kd(),states:["variant","error"]}),M=P.variant||E,I=$r({},r,{variant:M,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Hr(k,Sh),T=d||{standard:nr.jsx(Ch,{ownerState:I}),outlined:nr.jsx(Eh,{label:f,ownerState:I}),filled:nr.jsx(Rh,{ownerState:I})}[M],O=il(t,Al(T));return nr.jsx(x.Fragment,{children:x.cloneElement(T,$r({inputComponent:A,inputProps:$r({children:o,error:P.error,IconComponent:u,variant:M,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:$r({id:c},C)},p,{classes:p?Xi(D,p.classes):D},d?d.props.inputProps:{})},(g&&v||l)&&"outlined"===M?{notched:!0}:{},{ref:O,className:ms(T.props.className,a,k.root)},!d&&{variant:M},R))})});Ah.muiName="Select";const Ph=x.createContext();function Mh(e){return bs("MuiTable",e)}ys("MuiTable",["root","stickyHeader"]);const Ih=["className","component","padding","size","stickyHeader"],kh=mc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$r({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Dh="table",Th=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTable"}),{className:n,component:o=Dh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,Ih),u=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return xl({root:["root",r&&"stickyHeader"]},Mh,t)})(u),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return nr.jsx(Ph.Provider,{value:d,children:nr.jsx(kh,$r({as:o,role:o===Dh?null:"table",ref:t,className:ms(c.root,n),ownerState:u},l))})}),Oh=x.createContext();function Lh(e){return bs("MuiTableBody",e)}ys("MuiTableBody",["root"]);const qh=["className","component"],Nh=mc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),_h={variant:"body"},jh="tbody",zh=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableBody"}),{className:n,component:o=jh}=r,i=Hr(r,qh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return xl({root:["root"]},Lh,t)})(a);return nr.jsx(Oh.Provider,{value:_h,children:nr.jsx(Nh,$r({className:ms(s.root,n),as:o,ref:t,role:o===jh?null:"rowgroup",ownerState:a},i))})});function Fh(e){return bs("MuiTableCell",e)}const $h=ys("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Hh=["align","className","component","padding","scope","size","sortDirection","variant"],Bh=mc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${aa(r.size)}`],"normal"!==r.padding&&t[`padding${aa(r.padding)}`],"inherit"!==r.align&&t[`align${aa(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Ql(Xl(e.palette.divider,1),.88):Jl(Xl(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${$h.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Wh=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Hr(r,Hh),p=x.useContext(Ph),f=x.useContext(Oh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const v=c||f&&f.variant,b=$r({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return xl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${aa(n)}`,"normal"!==o&&`padding${aa(o)}`,`size${aa(i)}`]},Fh,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),nr.jsx(Bh,$r({as:m,ref:t,className:ms(y.root,o),"aria-sort":S,scope:g,ownerState:b},d))});function Vh(e){return bs("MuiTableContainer",e)}ys("MuiTableContainer",["root"]);const Uh=["className","component"],Gh=mc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Yh=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Uh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return xl({root:["root"]},Vh,t)})(a);return nr.jsx(Gh,$r({ref:t,as:o,className:ms(s.root,n),ownerState:a},i))});function Kh(e){return bs("MuiTableHead",e)}ys("MuiTableHead",["root"]);const Xh=["className","component"],Jh=mc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Zh={variant:"head"},Qh="thead",em=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableHead"}),{className:n,component:o=Qh}=r,i=Hr(r,Xh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return xl({root:["root"]},Kh,t)})(a);return nr.jsx(Oh.Provider,{value:Zh,children:nr.jsx(Jh,$r({as:o,className:ms(s.root,n),ref:t,role:o===Qh?null:"rowgroup",ownerState:a},i))})});function tm(e){return bs("MuiTableRow",e)}const rm=ys("MuiTableRow",["root","selected","hover","head","footer"]),nm=["className","component","hover","selected"],om=mc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${rm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),im="tr",am=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableRow"}),{className:n,component:o=im,hover:i=!1,selected:a=!1}=r,s=Hr(r,nm),l=x.useContext(Oh),u=$r({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return xl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},tm,t)})(u);return nr.jsx(om,$r({as:o,ref:t,className:ms(c.root,n),role:o===im?null:"row",ownerState:u},s))});function sm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function lm({fontSize:e="medium",children:t=null,className:r=""}={}){return nr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function um(e={}){return nr.jsx(lm,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.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 cm(e={}){return nr.jsx(lm,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.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 dm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.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 pm(e={}){return nr.jsx(lm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function fm(e={}){return nr.jsx(lm,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function hm({className:e}){return nr.jsx(lm,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.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"}),nr.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 mm(e={}){return nr.jsx(lm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const gm={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var vm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(sm,{"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 ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:Ft,backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.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:Ft},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.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:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_42,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${Ys(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${Ys(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${Ys(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${Ys(qt.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:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ft,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(dm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Nt,borderRadius:Ft,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ft,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Vt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(dm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(sm,{"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:Ft},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ft,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ft,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:zt,height:zt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ft,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Nt,fontFamily:Vt.FONT_FAMILY,fontWeight:Bt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ht,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ht,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:Ft,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:Ft,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(sm,{...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:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ft}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:_t,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Nt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Nt,fontWeight:Bt,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Bt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(fm,{}),checkedIcon:nr.jsx(cm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(mm,{}),checkedIcon:nr.jsx(um,{}),indeterminateIcon:nr.jsx(pm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ft,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.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:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.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:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Bt},secondary:{fontSize:Nt,color:qt.GREYSCALE_45,fontWeight:Ht,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:_t,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:_t,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Nt,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.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:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:Ft,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ft,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.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:qt.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:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:qt.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:_t,fontWeight:Bt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:Ft},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:_t,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ft,"&:hover":{backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ft,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Bt,backgroundColor:qt.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:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(hm,{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 ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Ft,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Nt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Ft}}},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:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Nt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...gm}:{}}))(t);const bm=e=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15}),ym={...Lt};var xm={},Sm={exports:{}},wm={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wm);var Cm=wm.exports;!function(e){var t=Cm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Sm);var Em=Sm.exports,Rm={};function Am(e,t){return function(){return null}}function Pm(e){return e&&"object"===Fl(e)&&e.constructor===Object}function Mm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return Pm(e)&&Pm(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Pm(t[o])&&o in e?n[o]=Mm(e[o],t[o],r):n[o]=t[o])}),n}var Im=($i.element,function(){return null});Im.isRequired=($i.element.isRequired,function(){return null});var km=function(){return null};var Dm={exports:{}},Tm={},Om=60103,Lm=60106,qm=60107,Nm=60108,_m=60114,jm=60109,zm=60110,Fm=60112,$m=60113,Hm=60120,Bm=60115,Wm=60116,Vm=60121,Um=60122,Gm=60117,Ym=60129,Km=60131;if("function"==typeof Symbol&&Symbol.for){var Xm=Symbol.for;Om=Xm("react.element"),Lm=Xm("react.portal"),qm=Xm("react.fragment"),Nm=Xm("react.strict_mode"),_m=Xm("react.profiler"),jm=Xm("react.provider"),zm=Xm("react.context"),Fm=Xm("react.forward_ref"),$m=Xm("react.suspense"),Hm=Xm("react.suspense_list"),Bm=Xm("react.memo"),Wm=Xm("react.lazy"),Vm=Xm("react.block"),Um=Xm("react.server.block"),Gm=Xm("react.fundamental"),Ym=Xm("react.debug_trace_mode"),Km=Xm("react.legacy_hidden")}function Jm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Om:switch(e=e.type){case qm:case _m:case Nm:case $m:case Hm:return e;default:switch(e=e&&e.$$typeof){case zm:case Fm:case Wm:case Bm:case jm:return e;default:return t}}case Lm:return t}}}var Zm=jm,Qm=Om,eg=Fm,tg=qm,rg=Wm,ng=Bm,og=Lm,ig=_m,ag=Nm,sg=$m;Tm.ContextConsumer=zm,Tm.ContextProvider=Zm,Tm.Element=Qm,Tm.ForwardRef=eg,Tm.Fragment=tg,Tm.Lazy=rg,Tm.Memo=ng,Tm.Portal=og,Tm.Profiler=ig,Tm.StrictMode=ag,Tm.Suspense=sg,Tm.isAsyncMode=function(){return!1},Tm.isConcurrentMode=function(){return!1},Tm.isContextConsumer=function(e){return Jm(e)===zm},Tm.isContextProvider=function(e){return Jm(e)===jm},Tm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Om},Tm.isForwardRef=function(e){return Jm(e)===Fm},Tm.isFragment=function(e){return Jm(e)===qm},Tm.isLazy=function(e){return Jm(e)===Wm},Tm.isMemo=function(e){return Jm(e)===Bm},Tm.isPortal=function(e){return Jm(e)===Lm},Tm.isProfiler=function(e){return Jm(e)===_m},Tm.isStrictMode=function(e){return Jm(e)===Nm},Tm.isSuspense=function(e){return Jm(e)===$m},Tm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qm||e===_m||e===Ym||e===Nm||e===$m||e===Hm||e===Km||"object"==typeof e&&null!==e&&(e.$$typeof===Wm||e.$$typeof===Bm||e.$$typeof===jm||e.$$typeof===zm||e.$$typeof===Fm||e.$$typeof===Gm||e.$$typeof===Vm||e[0]===Um)},Tm.typeOf=Jm,Dm.exports=Tm;var lg=Dm.exports,ug=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ug);return t&&t[1]||""}(e)||t}function dg(e,t,r){var n=cg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var pg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),fg=$i.oneOfType([$i.func,$i.object]),hg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Am,deepmerge:Mm,elementAcceptingRef:Im,elementTypeAcceptingRef:km,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return cg(e,"Component");if("object"===Fl(e))switch(e.$$typeof){case lg.ForwardRef:return dg(e,e.render,"ForwardRef");case lg.Memo:return dg(e,e.type,"memo");default:return}}},ponyfillGlobal:pg,refType:fg}),mg=Gt(hg);Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.hexToRgb=bg,Rm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=xg(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Rm.hslToRgb=yg,Rm.decomposeColor=xg,Rm.recomposeColor=Sg,Rm.getContrastRatio=function(e,t){var r=wg(e),n=wg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Rm.getLuminance=wg,Rm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return wg(e)>.5?Eg(e,t):Rg(e,t)},Rm.fade=function(e,t){return Cg(e,t)},Rm.alpha=Cg,Rm.darken=Eg,Rm.lighten=Rg;var gg=mg;function vg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function bg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function yg(e){var t=(e=xg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Sg({type:s,values:l})}function xg(e){if(e.type)return e;if("#"===e.charAt(0))return xg(bg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,gg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function Sg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function wg(e){var t="hsl"===(e=xg(e)).type?xg(yg(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 Cg(e,t){return e=xg(e),t=vg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Sg(e)}function Eg(e,t){if(e=xg(e),t=vg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Sg(e)}function Rg(e,t){if(e=xg(e),t=vg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Sg(e)}var Ag,Pg,Mg,Ig={},kg={exports:{}},Dg={exports:{}},Tg={exports:{}};function Og(){return Ag||(Ag=1,function(e){var t=Cm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Tg)),Tg.exports}function Lg(){return Pg||(Pg=1,function(e){var t=Cm.default,r=Og();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}function qg(){return Mg||(Mg=1,function(e){var t=Lg();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(kg)),kg.exports}var Ng,_g={exports:{}};function jg(){return Ng||(Ng=1,function(e){var t=$u();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(_g)),_g.exports}var zg,Fg={};var $g,Hg={};var Bg,Wg={},Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg={};var ev,tv={};var rv,nv={};var ov,iv,av={};function sv(){if(iv)return Wg;iv=1;var e=Ul;Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,M=e.type,I=void 0===M?"light":M,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},_={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(v),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(P),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},_[I]),L);return j},Wg.dark=Wg.light=void 0;var t=e(ju()),r=e(jg()),n=mg,o=e(function(){if(Bg)return Vg;Bg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var e={black:"#000",white:"#fff"};return Vg.default=e,Vg}()),i=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),a=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),s=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),l=e(function(){if(Zg)return Qg;Zg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.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 Qg.default=e,Qg}()),u=e(function(){if(ev)return tv;ev=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.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 tv.default=e,tv}()),c=e(function(){if(rv)return nv;rv=1,Object.defineProperty(nv,"__esModule",{value:!0}),nv.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 nv.default=e,nv}()),d=e(function(){if(ov)return av;ov=1,Object.defineProperty(av,"__esModule",{value:!0}),av.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 av.default=e,av}()),p=Rm,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Wg.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Wg.dark=h,Wg}var lv,uv={};var cv,dv={};var pv,fv={};var hv={};function mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gv(e,t){if(e){if("string"==typeof e)return mv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mv(e,t):void 0}}function vv(e){return function(e){if(Array.isArray(e))return mv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gv(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 bv(e,t){return t?Mm(e,t,{clone:!1}):e}var yv={xs:0,sm:600,md:960,lg:1280,xl:1920},xv={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(yv[e],"px)")}};function Sv(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||xv;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Fl(t)){var o=e.theme.breakpoints||xv;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function wv(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Cv(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=wv(e.theme,o)||{};return Sv(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=wv(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=$l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function Ev(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?bv(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function Rv(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Av=Cv({prop:"border",themeKey:"borders",transform:Rv}),Pv=Cv({prop:"borderTop",themeKey:"borders",transform:Rv}),Mv=Cv({prop:"borderRight",themeKey:"borders",transform:Rv}),Iv=Cv({prop:"borderBottom",themeKey:"borders",transform:Rv}),kv=Cv({prop:"borderLeft",themeKey:"borders",transform:Rv}),Dv=Cv({prop:"borderColor",themeKey:"palette"}),Tv=Cv({prop:"borderRadius",themeKey:"shape"}),Ov=Ev(Av,Pv,Mv,Iv,kv,Dv,Tv);function Lv(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function qv(e){var t=function(t){var r=e(t);return t.css?$r({},bv(r,e($r({theme:t.theme},t.css))),Lv(t.css,[e.filterProps])):t.sx?$r({},bv(r,e($r({theme:t.theme},t.sx))),Lv(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(vv(e.filterProps)),t}var Nv=Ev(Cv({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Cv({prop:"display"}),Cv({prop:"overflow"}),Cv({prop:"textOverflow"}),Cv({prop:"visibility"}),Cv({prop:"whiteSpace"})),_v=Cv({prop:"flexBasis"}),jv=Cv({prop:"flexDirection"}),zv=Cv({prop:"flexWrap"}),Fv=Cv({prop:"justifyContent"}),$v=Cv({prop:"alignItems"}),Hv=Cv({prop:"alignContent"}),Bv=Cv({prop:"order"}),Wv=Cv({prop:"flex"}),Vv=Cv({prop:"flexGrow"}),Uv=Cv({prop:"flexShrink"}),Gv=Cv({prop:"alignSelf"}),Yv=Cv({prop:"justifyItems"}),Kv=Cv({prop:"justifySelf"}),Xv=Ev(_v,jv,zv,Fv,$v,Hv,Bv,Wv,Vv,Uv,Gv,Yv,Kv),Jv=Cv({prop:"gridGap"}),Zv=Cv({prop:"gridColumnGap"}),Qv=Cv({prop:"gridRowGap"}),eb=Cv({prop:"gridColumn"}),tb=Cv({prop:"gridRow"}),rb=Cv({prop:"gridAutoFlow"}),nb=Cv({prop:"gridAutoColumns"}),ob=Cv({prop:"gridAutoRows"}),ib=Cv({prop:"gridTemplateColumns"}),ab=Cv({prop:"gridTemplateRows"}),sb=Cv({prop:"gridTemplateAreas"}),lb=Cv({prop:"gridArea"}),ub=Ev(Jv,Zv,Qv,eb,tb,rb,nb,ob,ib,ab,sb,lb),cb=Cv({prop:"color",themeKey:"palette"}),db=Cv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),pb=Ev(cb,db),fb=Cv({prop:"position"}),hb=Cv({prop:"zIndex",themeKey:"zIndex"}),mb=Cv({prop:"top"}),gb=Cv({prop:"right"}),vb=Cv({prop:"bottom"}),bb=Cv({prop:"left"}),yb=Ev(fb,hb,mb,gb,vb,bb),xb=Cv({prop:"boxShadow",themeKey:"shadows"});function Sb(e){return e<=1?"".concat(100*e,"%"):e}var wb=Cv({prop:"width",transform:Sb}),Cb=Cv({prop:"maxWidth",transform:Sb}),Eb=Cv({prop:"minWidth",transform:Sb}),Rb=Cv({prop:"height",transform:Sb}),Ab=Cv({prop:"maxHeight",transform:Sb}),Pb=Cv({prop:"minHeight",transform:Sb}),Mb=Cv({prop:"size",cssProperty:"width",transform:Sb}),Ib=Cv({prop:"size",cssProperty:"height",transform:Sb}),kb=Cv({prop:"boxSizing"}),Db=Ev(wb,Cb,Eb,Rb,Ab,Pb,kb);function Tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||gv(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 Ob={m:"margin",p:"padding"},Lb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nb=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!qb[e])return[e];e=qb[e]}var t=Tb(e.split(""),2),r=t[0],n=t[1],o=Ob[r],i=Lb[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),_b=["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 jb(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 zb(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Fb(e){var t=jb(e.theme);return Object.keys(e).map(function(r){if(-1===_b.indexOf(r))return null;var n=zb(Nb(r),t),o=e[r];return Sv(e,o,n)}).reduce(bv,{})}Fb.propTypes={},Fb.filterProps=_b;var $b,Hb=Cv({prop:"fontFamily",themeKey:"typography"}),Bb=Cv({prop:"fontSize",themeKey:"typography"}),Wb=Cv({prop:"fontStyle",themeKey:"typography"}),Vb=Cv({prop:"fontWeight",themeKey:"typography"}),Ub=Cv({prop:"letterSpacing"}),Gb=Cv({prop:"lineHeight"}),Yb=Cv({prop:"textAlign"}),Kb=Ev(Hb,Bb,Wb,Vb,Ub,Gb,Yb),Xb=Object.freeze({__proto__:null,alignContent:Hv,alignItems:$v,alignSelf:Gv,bgcolor:db,border:Av,borderBottom:Iv,borderColor:Dv,borderLeft:kv,borderRadius:Tv,borderRight:Mv,borderTop:Pv,borders:Ov,bottom:vb,boxSizing:kb,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||xv,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e($r({theme:t.theme},t[o]))),r},null);return bv(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(vv(e.filterProps)),t},color:cb,compose:Ev,createUnarySpacing:jb,css:function(e){return qv(e)},display:Nv,flex:Wv,flexBasis:_v,flexDirection:jv,flexGrow:Vv,flexShrink:Uv,flexWrap:zv,flexbox:Xv,fontFamily:Hb,fontSize:Bb,fontStyle:Wb,fontWeight:Vb,grid:ub,gridArea:lb,gridAutoColumns:nb,gridAutoFlow:rb,gridAutoRows:ob,gridColumn:eb,gridColumnGap:Zv,gridGap:Jv,gridRow:tb,gridRowGap:Qv,gridTemplateAreas:sb,gridTemplateColumns:ib,gridTemplateRows:ab,height:Rb,justifyContent:Fv,justifyItems:Yv,justifySelf:Kv,left:bb,letterSpacing:Ub,lineHeight:Gb,maxHeight:Ab,maxWidth:Cb,minHeight:Pb,minWidth:Eb,order:Bv,palette:pb,position:fb,positions:yb,right:gb,shadows:xb,sizeHeight:Ib,sizeWidth:Mb,sizing:Db,spacing:Fb,style:Cv,styleFunctionSx:qv,textAlign:Yb,top:mb,typography:Kb,width:wb,zIndex:hb}),Jb=Gt(Xb);var Zb,Qb={};function ey(){if(Zb)return Qb;Zb=1;var e=Ul;Object.defineProperty(Qb,"__esModule",{value:!0}),Qb.default=Qb.duration=Qb.easing=void 0;var t=e(jg()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};Qb.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Qb.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return Qb.default=i,Qb}var ty,ry,ny={};function oy(){if(ry)return Ig;ry=1;var e=Ul;Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.createMuiTheme=function(){return p.apply(void 0,arguments)},Ig.default=void 0,e(qg());var t=e(jg()),r=mg,n=e(function(){if(zg)return Fg;zg=1;var e=Ul;Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Fg.keys=void 0;var t=e(ju()),r=e(jg()),n=["xs","sm","md","lg","xl"];return Fg.keys=n,Fg}()),o=e(function(){if($g)return Hg;$g=1;var e=Ul;Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(qg()),r=e(ju());return Hg}()),i=e(sv()),a=e(function(){if(lv)return uv;lv=1;var e=Ul;Object.defineProperty(uv,"__esModule",{value:!0}),uv.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,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=R||function(e){return"".concat(e/C*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(v,48,1.167,0),h4:I(v,34,1.235,.25),h5:I(v,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(v,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(v,16,1.5,.15),body2:I(v,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(v,12,1.66,.4),overline:I(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(ju()),r=e(jg()),n=mg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return uv}()),s=e(function(){if(cv)return dv;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(",")}cv=1,Object.defineProperty(dv,"__esModule",{value:!0}),dv.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 dv.default=t,dv}()),l=e(function(){if(pv)return fv;pv=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=void 0;var e={borderRadius:4};return fv.default=e,fv}()),u=e(function(){if($b)return hv;$b=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=Jb;return hv}()),c=e(ey()),d=e(function(){if(ty)return ny;ty=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ny.default=e,ny}());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,b=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(b),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),M=1;M<A;M++)P[M-1]=arguments[M];return R=P.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return Ig.default=f,Ig}var iy,ay={};var sy={},ly="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",uy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function cy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==uy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ly]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function dy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var py="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},fy="object"===("undefined"==typeof window?"undefined":py(window))&&"object"===("undefined"==typeof document?"undefined":py(document))&&9===document.nodeType;function hy(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$l(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var my={}.constructor;function gy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(gy);if(e.constructor!==my)return e;var t={};for(var r in e)t[r]=gy(e[r]);return t}function vy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=gy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var by=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},yy=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=by(e[r]," ");else t=by(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function xy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Sy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function wy(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=xy(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Sy(p+":"+u+yy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Sy(h+":"+u+yy(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Sy(g+":"+u+yy(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Sy(""+e+u+"{"+n,--i)+Sy("}",i)):n}var Cy=/([[\].#*$><+~=|^:(),"'`\s])/g,Ey="undefined"!=typeof CSS&&CSS.escape,Ry=function(e){return Ey?Ey(e):e.replace(Cy,"\\$1")},Ay=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Py=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(qc(qc(o)),s),o.selectorText="."+Ry(o.id)),o}Rc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=yy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return wy(this.selectorText,this.style,r)},hy(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Ay),My={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Py(e,t,r)}},Iy={indent:1,children:!0},ky=/@([\w-]+)/,Dy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(ky);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new tx($r({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Iy);var t=xy(e).linebreak;if(null==e.indent&&(e.indent=Iy.indent),null==e.children&&(e.children=Iy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ty=/@container|@media|@supports\s+/,Oy={onCreateRule:function(e,t,r){return Ty.test(e)?new Dy(e,t,r):null}},Ly={indent:1,children:!0},qy=/@keyframes\s+([\w-]+)/,Ny=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(qy);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Ry(a(this,i)),this.rules=new tx($r({},r,{parent:this})),t)this.rules.add(s,t[s],$r({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ly);var t=xy(e).linebreak;if(null==e.indent&&(e.indent=Ly.indent),null==e.children&&(e.children=Ly.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),_y=/@keyframes\s+/,jy=/\$([\w-]+)/g,zy=function(e,t){return"string"==typeof e?e.replace(jy,function(e,r){return r in t?t[r]:e}):e},Fy=function(e,t,r){var n=e[t],o=zy(n,r);o!==n&&(e[t]=o)},$y={onCreateRule:function(e,t,r){return"string"==typeof e&&_y.test(e)?new Ny(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Fy(e,"animation-name",r.keyframes),"animation"in e&&Fy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return zy(e,n.keyframes);default:return e}}},Hy=function(e){function t(){return e.apply(this,arguments)||this}return Rc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return wy(this.key,this.style,r)},t}(Ay),By={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Hy(e,t,r):null}},Wy=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=xy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=wy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return wy(this.at,this.style,e)},e}(),Vy=/@font-face/,Uy={onCreateRule:function(e,t,r){return Vy.test(e)?new Wy(e,t,r):null}},Gy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return wy(this.key,this.style,e)},e}(),Yy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Gy(e,t,r):null}},Ky=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Xy={"@charset":!0,"@import":!0,"@namespace":!0},Jy={onCreateRule:function(e,t,r){return e in Xy?new Ky(e,t,r):null}},Zy=[My,Oy,$y,By,Uy,Yy,Jy],Qy={process:!0},ex={force:!0,process:!0},tx=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=$r({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Ry(this.classes[d]));var p=vy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=$r({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Py?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ny&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Py?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ny&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Qy);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,ex)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ex)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=xy(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),rx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=$r({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new tx(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),nx=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ox=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Hr(t,["attached"]),o=xy(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},hy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ix=new ox,ax="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),sx="2f1acc6c3a606b082e5eef5e54414ffb";null==ax[sx]&&(ax[sx]=0);var lx=ax[sx]++,ux=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+lx+o+t:i+r.key+"-"+lx+(o?"-"+o:"")+"-"+t}},cx=function(e){var t;return function(){return t||(t=e()),t}},dx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},px=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=yy(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},fx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},hx=function(e,t){return e.selectorText=t,e.selectorText===t},mx=cx(function(){return document.querySelector("head")});function gx(e){var t=ix.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=mx(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var vx=cx(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),bx=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},yx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},xx=function(){function e(e){this.getPropertyValue=dx,this.setProperty=px,this.removeProperty=fx,this.setSelector=hx,this.hasInsertedRules=!1,this.cssRules=[],e&&ix.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=vx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=gx(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else mx().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=yx(r,t);if(!1===(o=bx(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=yx(r,t),l=bx(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof rx&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Sx=0,wx=function(){function e(e){this.id=Sx++,this.version="10.10.0",this.plugins=new nx,this.options={id:{minify:!1},createGenerateId:ux,Renderer:fy?xx:null,plugins:[]},this.generateId=ux({minify:!1});for(var t=0;t<Zy.length;t++)this.plugins.use(Zy[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=$r({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ix.index?0:ix.index+1);var n=new rx(e,$r({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ix.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=$r({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=vy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),Cx=function(e){return new wx(e)},Ex="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Rx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Rx(n);i&&(t||(t={}),t[r]=i)}}return t}
90
+ `),Gc.rippleVisible,ed,550,({theme:e})=>e.transitions.easing.easeInOut,Gc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Gc.child,Gc.childLeaving,td,550,({theme:e})=>e.transitions.easing.easeInOut,Gc.childPulsate,rd,({theme:e})=>e.transitions.easing.easeInOut),id=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,Yc),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=x.useRef(!1),p=ul(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,nr.jsx(od,{classes:{ripple:ms(o.ripple,Gc.ripple),rippleVisible:ms(o.rippleVisible,Gc.rippleVisible),ripplePulsate:ms(o.ripplePulsate,Gc.ripplePulsate),child:ms(o.child,Gc.child),childLeaving:ms(o.childLeaving,Gc.childLeaving),childPulsate:ms(o.childPulsate,Gc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=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;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},[n,m,p]),v=x.useCallback(()=>{g({},{pulsate:!0})},[g]),b=x.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{b(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:b}),[v,g,b]),nr.jsx(nd,$r({className:ms(Gc.root,o.root,i),ref:h},a,{children:nr.jsx(Fc,{component:null,exit:!0,children:s})}))});function ad(e){return bs("MuiButtonBase",e)}const sd=ys("MuiButtonBase",["root","disabled","focusVisible"]),ld=["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"],ud=mc("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"},[`&.${sd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cd=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Hr(r,ld),O=x.useRef(null),L=x.useRef(null),q=il(L,k),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=bl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const W=H&&!u&&!l;function V(e,t,r=c){return ol(n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0})}x.useEffect(()=>{F&&d&&!u&&H&&L.current.pulsate()},[u,d,F,H]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",e=>{j(e),!1===N.current&&$(!1),f&&f(e)},!1),te=ol(e=>{O.current||(O.current=e.currentTarget),_(e),!0===N.current&&($(!0),b&&b(e)),v&&v(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=ol(e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=ol(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=il(t,z,O),ue=$r({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=xl({root:["root",t&&"disabled",r&&"focusVisible"]},ad,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return nr.jsxs(ud,$r({as:ae,className:ms(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:D},se,T,{children:[i,W?nr.jsx(id,$r({ref:q,center:o},I)):null]}))});function dd(e){return bs("MuiIconButton",e)}const pd=ys("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fd=["edge","children","className","color","disabled","disableFocusRipple","size"],hd=mc(cd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${aa(r.color)}`],r.edge&&t[`edge${aa(r.edge)}`],t[`size${aa(r.size)}`]]}})(({theme:e,ownerState:t})=>$r({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Xl(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return $r({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&$r({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":$r({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${pd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),md=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Hr(r,fd),d=$r({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return xl({root:["root",r&&"disabled","default"!==n&&`color${aa(n)}`,o&&`edge${aa(o)}`,`size${aa(i)}`]},dd,t)})(d);return nr.jsx(hd,$r({className:ms(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function gd(e){return bs("MuiTypography",e)}ys("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bd=mc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${aa(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$r({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})),yd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sd=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTypography"}),n=(e=>xd[e]||e)(r.color),o=cs($r({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=yd}=o,f=Hr(o,vd),h=$r({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||yd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return xl({root:["root",i,"inherit"!==e.align&&`align${aa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},gd,a)})(h);return nr.jsx(bd,$r({as:m,ref:t,ownerState:h,className:ms(g.root,a)},f))});const wd=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=il(x.isValidElement(r)?Al(r):null,t);if(Ws(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Ws(()=>{if(i&&!o)return Qs(t,i),()=>{Qs(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return nr.jsx(x.Fragment,{children:r})}return nr.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Cd=["onChange","maxRows","minRows","style","value"];function Ed(e){return parseInt(e,10)||0}const Rd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ad(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pd=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,Cd),{current:l}=x.useRef(null!=a),u=x.useRef(null),c=il(t,u),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Zs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Ed(i.paddingBottom)+Ed(i.paddingTop),l=Ed(i.borderBottomWidth)+Ed(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[n,o,e.placeholder]),h=ol(()=>{const e=u.current,t=f();if(!e||!t||Ad(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Ad(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Ws(()=>{const e=Xs(m),t=null==u?void 0:u.current;if(!t)return;const r=Zs(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Ws(()=>{m()});return nr.jsxs(x.Fragment,{children:[nr.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},Rd,i,{paddingTop:0,paddingBottom:0})})]})});function Md({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Id=x.createContext(void 0);function kd(){return x.useContext(Id)}function Dd(e){return nr.jsx(ls,$r({},e,{defaultTheme:Ou,themeId:Fr}))}function Td(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Od(e,t=!1){return e&&(Td(e.value)&&""!==e.value||t&&Td(e.defaultValue)&&""!==e.defaultValue)}function Ld(e){return bs("MuiInputBase",e)}const qd=ys("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Nd=["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"],_d=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${aa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},zd=mc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_d})(({theme:e,ownerState:t})=>$r({},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",[`&.${qd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$r({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fd=mc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$r({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $r({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${qd.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"})}),$d=nr.jsx(Dd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Hd=x.forwardRef(function(e,t){var r;const n=yc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:P,onKeyDown:M,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:_="text",value:j}=n,z=Hr(n,Nd),F=null!=v.value?v.value:j,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),W=il(H,b,v.ref,B),[V,U]=x.useState(!1),G=kd(),Y=Md({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,x.useEffect(()=>{!G&&d&&V&&(U(!1),E&&E())},[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{Od(e)?K&&K():X&&X()},[K,X]);Ws(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=v;w&&"input"===Z&&(Q=$r(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Pd);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=$r({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return xl({root:["root",`color${aa(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${aa(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Ld,t)})(ee),re=q.root||l.Root||zd,ne=L.root||u.root||{},oe=q.input||l.Input||Fd;return Q=$r({},Q,null!=(r=L.input)?r:u.input),nr.jsxs(x.Fragment,{children:[!p&&$d,nr.jsxs(re,$r({},ne,!Sl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:ms(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,nr.jsx(Id.Provider,{value:null,children:nr.jsx(oe,$r({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:M,onKeyUp:I,type:_},Q,!Sl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:W,className:ms(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(jr(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},Y,{startAdornment:N})):null]}))]})});function Bd(e){return bs("MuiInput",e)}const Wd=$r({},qd,ys("MuiInput",["root","underline","input"]));function Vd(e){return bs("MuiOutlinedInput",e)}const Ud=$r({},qd,ys("MuiOutlinedInput",["root","notchedOutline","input"]));function Gd(e){return bs("MuiFilledInput",e)}const Yd=$r({},qd,ys("MuiFilledInput",["root","underline","input"]));var Kd=function(e,t){function r(r,n){return nr.jsx(Cc,$r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Cc.muiName,x.memo(x.forwardRef(r))}(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jd={entering:{opacity:1},entered:{opacity:1}},Zd=x.forwardRef(function(e,t){const r=Lu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:v=Oc}=e,b=Hr(e,Xd),y=x.useRef(null),S=il(y,Al(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{$c(e);const n=Hc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),R=w(c),A=w(h),P=w(e=>{const t=Hc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),M=w(f);return nr.jsx(v,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:P,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>x.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Jd[e],m,a.props.style),ref:S},t))}))});function Qd(e){return bs("MuiBackdrop",e)}ys("MuiBackdrop",["root","invisible"]);const ep=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tp=mc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$r({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"})),rp=x.forwardRef(function(e,t){var r,n,o;const i=yc({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=Zd,transitionDuration:g}=i,v=Hr(i,ep),b=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return xl({root:["root",r&&"invisible"]},Qd,t)})(b),x=null!=(r=f.root)?r:c.root;return nr.jsx(m,$r({in:p,timeout:g},v,{children:nr.jsx(tp,$r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ms(y.root,s,null==x?void 0:x.className),ownerState:$r({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),np=ys("MuiBox",["root"]),op=Tu(),ip=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Wi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qa);return x.forwardRef(function(e,a){const s=as(r),l=cs(e),{className:u,component:c="div"}=l,d=Hr(l,gs);return nr.jsx(i,$r({as:c,ref:a,className:ms(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Fr,defaultTheme:op,defaultClassName:np.root,generateClassName:fs.generate});function ap(e){return bs("MuiButton",e)}const sp=ys("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"]),lp=x.createContext({}),up=x.createContext(void 0),cp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dp=e=>$r({},"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}}),pp=mc(cd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${aa(r.color)}`],t[`size${aa(r.size)}`],t[`${r.variant}Size${aa(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $r({},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":$r({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xl(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})`:Xl(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})`:Xl(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sp.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sp.disabled}`]:$r({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 ${Xl(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${sp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sp.disabled}`]:{boxShadow:"none"}}),fp=mc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${aa(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},dp(e))),hp=mc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${aa(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},dp(e))),mp=x.forwardRef(function(e,t){const r=x.useContext(lp),n=x.useContext(up),o=yc({props:Bs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Hr(o,cp),S=$r({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,xl({root:["root",i,`${i}${aa(t)}`,`size${aa(o)}`,`${i}Size${aa(o)}`,`color${aa(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${aa(o)}`],endIcon:["icon","endIcon",`iconSize${aa(o)}`]},ap,a))})(S),C=g&&nr.jsx(fp,{className:w.startIcon,ownerState:S,children:g}),E=p&&nr.jsx(hp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return nr.jsxs(pp,$r({ownerState:S,className:ms(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ms(w.focusVisible,f),ref:t,type:v},y,{classes:w,children:[C,i,E]}))});function gp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vp(e){return parseInt(Zs(e).getComputedStyle(e).paddingRight,10)||0}function bp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&gp(e,o)})}function yp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function xp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Js(e);return t.body===e?Zs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=yl(Js(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vp(n)+e}px`;const t=Js(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vp(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Js(n).body;else{const t=n.parentElement,r=Zs(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const Sp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wp(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Cp(){return!0}function Ep(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=wp,isEnabled:a=Cp,open:s}=e,l=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=il(Al(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Js(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Js(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(x.Fragment,{children:[nr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),nr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Rp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&gp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);bp(t,e.mount,e.modalRef,n,!0);const o=yp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=yp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=xp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=yp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&gp(e.modalRef,t),bp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&gp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ap(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Rp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=il(h,d),[g,v]=x.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=ol(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Js(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=ol(e=>{f.current=e,e&&(c&&E()?w():h.current&&gp(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{c?C():b&&i||A()},[c,A,b,i,C]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=wl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:Ks(()=>{v(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Ks(()=>{v(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:b}}function Pp(e){return bs("MuiModal",e)}ys("MuiModal",["root","hidden","backdrop"]);const Mp=["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"],Ip=mc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),kp=mc(rp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=yc({name:"MuiModal",props:e}),{BackdropComponent:u=kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:M,slotProps:I,slots:k}=l,D=Hr(l,Mp),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=Ap($r({},T,{rootRef:t})),F=$r({},T,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return xl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Pp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Ip,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:v.root,U=null!=(s=null==I?void 0:I.backdrop)?s:v.backdrop,G=Rl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ms(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Rl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L($r({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ms(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||M||z&&!j?nr.jsx(wd,{ref:N,container:h,disablePortal:w,children:nr.jsxs(B,$r({},G,{children:[!R&&u?nr.jsx(W,$r({},Y)):null,nr.jsx(Ep,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:_,open:M,children:x.cloneElement(f,H)})]}))}):null});function Tp(e){return bs("MuiDivider",e)}const Op=ys("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Lp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qp=mc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$r({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)`:Xl(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})=>$r({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>$r({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Np=mc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$r({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)`})),_p=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Hr(r,Lp),h=$r({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return xl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Tp,n)})(h);return nr.jsx(qp,$r({as:a,className:ms(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?nr.jsx(Np,{className:m.wrapper,ownerState:h,children:o}):null}))});_p.muiSkipListHighlight=!0;const jp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zp=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._d(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $r({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Yd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Yd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Yd.disabled}, .${Yd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$r({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}))}),Fp=mc(Fd,{name:"MuiFilledInput",slot:"Input",overridesResolver:jd})(({theme:e,ownerState:t})=>$r({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})),$p=x.forwardRef(function(e,t){var r,n,o,i;const a=yc({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=Hr(a,jp),g=$r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,xl({root:["root",!r&&"underline"],input:["input"]},Gd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Xi(b,null!=p?p:l):b,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:zp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Fp;return nr.jsx(Hd,$r({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});$p.muiName="Input";const Hp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Bp(e){return`scale(${e}, ${e**2})`}const Wp={entering:{opacity:1,transform:Bp(1)},entered:{opacity:1,transform:"none"}},Vp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Up=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Oc}=e,g=Hr(e,Hp),v=ul(),b=x.useRef(),y=Lu(),S=x.useRef(null),w=il(S,Al(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C((e,t)=>{$c(e);const{duration:r,delay:n,easing:o}=Hc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Vp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),P=C(p),M=C(e=>{const{duration:t,delay:r,easing:n}=Hc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Vp?o:.666*o,delay:Vp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Bp(.75),c&&c(e)}),I=C(d);return nr.jsx(m,$r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:M,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,$r({style:$r({opacity:0,transform:Bp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Wp[e],f,o.props.style),ref:w},t))}))});Up.muiSupportAuto=!0;const Gp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Yp=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._d(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$r({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"},[`&.${Wd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wd.disabled}, .${Wd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Kp=mc(Fd,{name:"MuiInput",slot:"Input",overridesResolver:jd})({}),Xp=x.forwardRef(function(e,t){var r,n,o,i;const a=yc({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=Hr(a,Gp),v=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,xl({root:["root",!r&&"underline"],input:["input"]},Bd,t))})(a),b={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Xi(null!=f?f:u,b):b,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Yp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Kp;return nr.jsx(Hd,$r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function Jp(e){return bs("MuiLink",e)}Xp.muiName="Input";const Zp=ys("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Qp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ef=({theme:e,ownerState:t})=>{const r=(e=>Qp[e]||e)(t.color),n=la(e,`palette.${r}`,!1)||t.color,o=la(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Xl(n,.4)},tf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rf=mc(Sd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${aa(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>$r({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$r({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ef({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"},[`&.${Zp.focusVisible}`]:{outline:"auto"}})),nf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Hr(r,tf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=bl(),[v,b]=x.useState(!1),y=il(t,g),S=$r({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return xl({root:["root",`underline${aa(o)}`,"button"===r&&"button",n&&"focusVisible"]},Jp,t)})(S);return nr.jsx(rf,$r({color:o,className:ms(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),s&&s(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Qp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),of=x.createContext({});function af(e){return bs("MuiList",e)}ys("MuiList",["root","padding","dense","subheader"]);const sf=["children","className","component","dense","disablePadding","subheader"],lf=mc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),uf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Hr(r,sf),c=x.useMemo(()=>({dense:a}),[a]),d=$r({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return xl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},af,t)})(d);return nr.jsx(of.Provider,{value:c,children:nr.jsxs(lf,$r({as:i,className:ms(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})});function cf(e){return bs("MuiListItemIcon",e)}const df=ys("MuiListItemIcon",["root","alignItemsFlexStart"]),pf=["className"],ff=mc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),hf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,pf),i=$r({},r,{alignItems:x.useContext(of).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return xl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cf,r)})(i);return nr.jsx(ff,$r({className:ms(a.root,n),ownerState:i,ref:t},o))}),mf=ys("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function bf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function xf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&yf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Sf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Hr(e,gf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ws(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${yl(Js(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=il(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return nr.jsx(uf,$r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Js(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xf(t,n,l,s,vf);else if("ArrowUp"===r)e.preventDefault(),xf(t,n,l,s,bf);else if("Home"===r)e.preventDefault(),xf(t,null,l,s,vf);else if("End"===r)e.preventDefault(),xf(t,null,l,s,bf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&yf(n,o);o.previousKeyMatched&&(l||xf(t,n,!1,s,vf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function wf(e){return bs("MuiPopover",e)}ys("MuiPopover",["root","paper"]);const Cf=["onEntering"],Ef=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rf=["slotProps"];function Af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Pf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Mf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function If(e){return"function"==typeof e?e():e}const kf=mc(Dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Df=mc(Uc,{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}),Tf=x.forwardRef(function(e,t){var r,n,o;const i=yc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Up,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Hr(i.TransitionProps,Cf),P=Hr(i,Ef),M=null!=(r=null==y?void 0:y.paper)?r:v,I=x.useRef(),k=il(I,M.ref),D=$r({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"]},wf,t)})(D),O=x.useCallback(()=>{if("anchorPosition"===c)return u;const e=If(s),t=(e&&1===e.nodeType?e:Js(I.current).body).getBoundingClientRect();return{top:t.top+Af(t,l.vertical),left:t.left+Pf(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),L=x.useCallback(e=>({vertical:Af(e,S.vertical),horizontal:Pf(e,S.horizontal)}),[S.horizontal,S.vertical]),q=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Mf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Zs(If(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Mf(r)}},[s,c,O,L,m]),[N,_]=x.useState(g),j=x.useCallback(()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)},[q]);x.useEffect(()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,R,j]);x.useEffect(()=>{g&&j()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),x.useEffect(()=>{if(!g)return;const e=Xs(()=>{j()}),t=Zs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,j]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Js(If(s)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:kf,H=null!=(o=null==b?void 0:b.paper)?o:Df,B=Rl({elementType:H,externalSlotProps:$r({},M,{style:N?M.style:$r({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:ms(T.paper,null==M?void 0:M.className)}),W=Rl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ms(T.root,p)}),{slotProps:V}=W,U=Hr(W,Rf);return nr.jsx($,$r({},U,!Sl($)&&{slotProps:V,disableScrollLock:R},{children:nr.jsx(w,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{_(!1)},timeout:z},A,{children:nr.jsx(H,$r({},B,{children:d}))}))}))});function Of(e){return bs("MuiMenu",e)}ys("MuiMenu",["root","paper","list"]);const Lf=["onEntering"],qf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Nf={vertical:"top",horizontal:"right"},_f={vertical:"top",horizontal:"left"},jf=mc(Tf,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zf=mc(Df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ff=mc(Sf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$f=x.forwardRef(function(e,t){var r,n;const o=yc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Hr(o.TransitionProps,Lf),S=Hr(o,qf),w=(()=>{const e=x.useContext(Tl);return null!=e&&e})(),C=$r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return xl({root:["root"],paper:["paper"],list:["list"]},Of,t)})(C),R=i&&!l&&d,A=x.useRef(null);let P=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))});const M=null!=(r=v.paper)?r:zf,I=null!=(n=b.paper)?n:p,k=Rl({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[E.root,s]}),D=Rl({elementType:M,externalSlotProps:I,ownerState:C,className:E.paper});return nr.jsx(jf,$r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Nf:_f,slots:{paper:M,root:v.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:nr.jsx(Ff,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:ms(E.list,u.className),children:a}))}))});function Hf(e){return bs("MuiMenuItem",e)}const Bf=ys("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Vf=mc(cd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>$r({},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"}},[`&.${Bf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xl(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})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Op.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Op.inset}`]:{marginLeft:52},[`& .${mf.root}`]:{marginTop:0,marginBottom:0},[`& .${mf.inset}`]:{paddingLeft:36},[`& .${df.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${df.root} svg`]:{fontSize:"1.25rem"}}))),Uf=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Hr(r,Wf),f=x.useContext(of),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Ws(()=>{n&&m.current&&m.current.focus()},[n]);const g=$r({},r,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $r({},a,xl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Hf,a))})(r),b=il(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),nr.jsx(of.Provider,{value:h,children:nr.jsx(Vf,$r({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:ms(v.focusVisible,l),className:ms(v.root,d)},p,{ownerState:g,classes:v}))})});function Gf(e){return bs("MuiNativeSelect",e)}const Yf=ys("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Kf=["className","disabled","error","IconComponent","inputRef","variant"],Xf=({ownerState:e,theme:t})=>$r({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$r({},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"},[`&.${Yf.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}}),Jf=mc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Yf.multiple}`]:t.multiple}]}})(Xf),Zf=({ownerState:e,theme:t})=>$r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Yf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qf=mc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${aa(r.variant)}`],r.open&&t.iconOpen]}})(Zf),eh=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Kf),u=$r({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return xl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${aa(r)}`,i&&"iconOpen",n&&"disabled"]},Gf,t)})(u);return nr.jsxs(x.Fragment,{children:[nr.jsx(Jf,$r({ownerState:u,className:ms(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:nr.jsx(Qf,{as:i,ownerState:u,className:c.icon})]})});var th;const rh=["children","classes","className","label","notched"],nh=mc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:hc})({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%"}),oh=mc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:hc})(({ownerState:e,theme:t})=>$r({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&&$r({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 ih=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ah=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_d})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $r({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ud.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ud.error} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ud.disabled} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$r({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),sh=mc(function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,rh),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return nr.jsx(nh,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(oh,{ownerState:a,children:i?nr.jsx("span",{children:r}):th||(th=nr.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}}),lh=mc(Fd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jd})(({theme:e,ownerState:t})=>$r({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})),uh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=yc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Hr(s,ih),v=(e=>{const{classes:t}=e;return $r({},t,xl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vd,t))})(s),b=kd(),y=Md({props:s,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:ah,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:lh;return nr.jsx(Hd,$r({slots:{root:w,input:C},renderSuffix:e=>nr.jsx(sh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=nr.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:$r({},v,{notchedOutline:null})}))});function ch(e){return bs("MuiSelect",e)}uh.muiName="Input";const dh=ys("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ph;const fh=["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"],hh=mc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${dh.select}`]:t.select},{[`&.${dh.select}`]:t[r.variant]},{[`&.${dh.error}`]:t.error},{[`&.${dh.multiple}`]:t.multiple}]}})(Xf,{[`&.${dh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mh=mc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${aa(r.variant)}`],r.open&&t.iconOpen]}})(Zf),gh=mc("input",{shouldForwardProp:e=>fc(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 vh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function bh(e){return null==e||"string"==typeof e&&!e.trim()}const yh=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:P,renderValue:M,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Hr(e,fh),[L,q]=nl({controlled:D,default:c,name:"Select"}),[N,_]=nl({controlled:A,default:u,name:"Select"}),j=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,W]=x.useState(),V=il(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(V,()=>({focus:()=>{z.current.focus()},node:j.current,value:L}),[L]),x.useEffect(()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=Js(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:G.clientWidth),_(e))},K=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}b||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Od({value:L})||p)&&(M?Z=M(L):te=!0);const re=K.map(e=>{if(!x.isValidElement(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(jr(2));t=L.some(t=>vh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=vh(L,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=$r({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return xl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${aa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},ch,t)})(ae),le=$r({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=rl();return nr.jsxs(x.Fragment,{children:[nr.jsx(hh,$r({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),S(e))},onFocus:E},I,{ownerState:ae,className:ms(I.className,se.select,l),id:ie,children:bh(Z)?ph||(ph=nr.jsx("span",{className:"notranslate",children:"​"})):Z})),nr.jsx(gh,$r({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),nr.jsx(mh,{as:h,className:se.icon,ownerState:ae}),nr.jsx($f,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:$r({},v.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),xh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sh=["root"],wh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hc(e)&&"variant"!==e,slot:"Root"},Ch=mc(Xp,wh)(""),Eh=mc(uh,wh)(""),Rh=mc($p,wh)(""),Ah=x.forwardRef(function(e,t){const r=yc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Kd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,xh),A=v?eh:yh,P=Md({props:r,muiFormControl:kd(),states:["variant","error"]}),M=P.variant||E,I=$r({},r,{variant:M,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Hr(k,Sh),T=d||{standard:nr.jsx(Ch,{ownerState:I}),outlined:nr.jsx(Eh,{label:f,ownerState:I}),filled:nr.jsx(Rh,{ownerState:I})}[M],O=il(t,Al(T));return nr.jsx(x.Fragment,{children:x.cloneElement(T,$r({inputComponent:A,inputProps:$r({children:o,error:P.error,IconComponent:u,variant:M,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:$r({id:c},C)},p,{classes:p?Xi(D,p.classes):D},d?d.props.inputProps:{})},(g&&v||l)&&"outlined"===M?{notched:!0}:{},{ref:O,className:ms(T.props.className,a,k.root)},!d&&{variant:M},R))})});Ah.muiName="Select";const Ph=x.createContext();function Mh(e){return bs("MuiTable",e)}ys("MuiTable",["root","stickyHeader"]);const Ih=["className","component","padding","size","stickyHeader"],kh=mc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$r({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Dh="table",Th=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTable"}),{className:n,component:o=Dh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,Ih),u=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return xl({root:["root",r&&"stickyHeader"]},Mh,t)})(u),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return nr.jsx(Ph.Provider,{value:d,children:nr.jsx(kh,$r({as:o,role:o===Dh?null:"table",ref:t,className:ms(c.root,n),ownerState:u},l))})}),Oh=x.createContext();function Lh(e){return bs("MuiTableBody",e)}ys("MuiTableBody",["root"]);const qh=["className","component"],Nh=mc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),_h={variant:"body"},jh="tbody",zh=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableBody"}),{className:n,component:o=jh}=r,i=Hr(r,qh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return xl({root:["root"]},Lh,t)})(a);return nr.jsx(Oh.Provider,{value:_h,children:nr.jsx(Nh,$r({className:ms(s.root,n),as:o,ref:t,role:o===jh?null:"rowgroup",ownerState:a},i))})});function Fh(e){return bs("MuiTableCell",e)}const $h=ys("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Hh=["align","className","component","padding","scope","size","sortDirection","variant"],Bh=mc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${aa(r.size)}`],"normal"!==r.padding&&t[`padding${aa(r.padding)}`],"inherit"!==r.align&&t[`align${aa(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Ql(Xl(e.palette.divider,1),.88):Jl(Xl(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${$h.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Wh=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Hr(r,Hh),p=x.useContext(Ph),f=x.useContext(Oh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const v=c||f&&f.variant,b=$r({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return xl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${aa(n)}`,"normal"!==o&&`padding${aa(o)}`,`size${aa(i)}`]},Fh,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),nr.jsx(Bh,$r({as:m,ref:t,className:ms(y.root,o),"aria-sort":S,scope:g,ownerState:b},d))});function Vh(e){return bs("MuiTableContainer",e)}ys("MuiTableContainer",["root"]);const Uh=["className","component"],Gh=mc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Yh=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Uh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return xl({root:["root"]},Vh,t)})(a);return nr.jsx(Gh,$r({ref:t,as:o,className:ms(s.root,n),ownerState:a},i))});function Kh(e){return bs("MuiTableHead",e)}ys("MuiTableHead",["root"]);const Xh=["className","component"],Jh=mc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Zh={variant:"head"},Qh="thead",em=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableHead"}),{className:n,component:o=Qh}=r,i=Hr(r,Xh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return xl({root:["root"]},Kh,t)})(a);return nr.jsx(Oh.Provider,{value:Zh,children:nr.jsx(Jh,$r({as:o,className:ms(s.root,n),ref:t,role:o===Qh?null:"rowgroup",ownerState:a},i))})});function tm(e){return bs("MuiTableRow",e)}const rm=ys("MuiTableRow",["root","selected","hover","head","footer"]),nm=["className","component","hover","selected"],om=mc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${rm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),im="tr",am=x.forwardRef(function(e,t){const r=yc({props:e,name:"MuiTableRow"}),{className:n,component:o=im,hover:i=!1,selected:a=!1}=r,s=Hr(r,nm),l=x.useContext(Oh),u=$r({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return xl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},tm,t)})(u);return nr.jsx(om,$r({as:o,ref:t,className:ms(c.root,n),role:o===im?null:"row",ownerState:u},s))});function sm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function lm({fontSize:e="medium",children:t=null,className:r=""}={}){return nr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function um(e={}){return nr.jsx(lm,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.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 cm(e={}){return nr.jsx(lm,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.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 dm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.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 pm(e={}){return nr.jsx(lm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function fm(e={}){return nr.jsx(lm,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function hm({className:e}){return nr.jsx(lm,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.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"}),nr.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 mm(e={}){return nr.jsx(lm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var gm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(sm,{"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 ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:Ft,backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.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:Ft},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.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:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_42,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${Ys(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${Ys(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${Ys(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${Ys(qt.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:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ft,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(dm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Nt,borderRadius:Ft,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ft,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Vt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(dm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(sm,{"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:Ft},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ft,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ft,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:zt,height:zt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ft,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Nt,fontFamily:Vt.FONT_FAMILY,fontWeight:Bt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ht,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ht,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:Ft,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:Ft,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(sm,{...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:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ft}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:_t,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Nt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Nt,fontWeight:Bt,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Bt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(fm,{}),checkedIcon:nr.jsx(cm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(mm,{}),checkedIcon:nr.jsx(um,{}),indeterminateIcon:nr.jsx(pm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ft,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.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:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.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:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Bt},secondary:{fontSize:Nt,color:qt.GREYSCALE_45,fontWeight:Ht,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:_t,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:_t,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Nt,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.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:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:Ft,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ft,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.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:qt.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:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:qt.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:_t,fontWeight:Bt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:Ft},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:_t,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ft,"&:hover":{backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ft,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Bt,backgroundColor:qt.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:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(hm,{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 ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Ft,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Nt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Ft}}},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:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Nt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const vm=e=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15}),bm={...Lt};var ym={},xm={exports:{}},Sm={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sm);var wm=Sm.exports;!function(e){var t=wm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(xm);var Cm=xm.exports,Em={};function Rm(e,t){return function(){return null}}function Am(e){return e&&"object"===Fl(e)&&e.constructor===Object}function Pm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return Am(e)&&Am(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Am(t[o])&&o in e?n[o]=Pm(e[o],t[o],r):n[o]=t[o])}),n}var Mm=($i.element,function(){return null});Mm.isRequired=($i.element.isRequired,function(){return null});var Im=function(){return null};var km={exports:{}},Dm={},Tm=60103,Om=60106,Lm=60107,qm=60108,Nm=60114,_m=60109,jm=60110,zm=60112,Fm=60113,$m=60120,Hm=60115,Bm=60116,Wm=60121,Vm=60122,Um=60117,Gm=60129,Ym=60131;if("function"==typeof Symbol&&Symbol.for){var Km=Symbol.for;Tm=Km("react.element"),Om=Km("react.portal"),Lm=Km("react.fragment"),qm=Km("react.strict_mode"),Nm=Km("react.profiler"),_m=Km("react.provider"),jm=Km("react.context"),zm=Km("react.forward_ref"),Fm=Km("react.suspense"),$m=Km("react.suspense_list"),Hm=Km("react.memo"),Bm=Km("react.lazy"),Wm=Km("react.block"),Vm=Km("react.server.block"),Um=Km("react.fundamental"),Gm=Km("react.debug_trace_mode"),Ym=Km("react.legacy_hidden")}function Xm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Tm:switch(e=e.type){case Lm:case Nm:case qm:case Fm:case $m:return e;default:switch(e=e&&e.$$typeof){case jm:case zm:case Bm:case Hm:case _m:return e;default:return t}}case Om:return t}}}var Jm=_m,Zm=Tm,Qm=zm,eg=Lm,tg=Bm,rg=Hm,ng=Om,og=Nm,ig=qm,ag=Fm;Dm.ContextConsumer=jm,Dm.ContextProvider=Jm,Dm.Element=Zm,Dm.ForwardRef=Qm,Dm.Fragment=eg,Dm.Lazy=tg,Dm.Memo=rg,Dm.Portal=ng,Dm.Profiler=og,Dm.StrictMode=ig,Dm.Suspense=ag,Dm.isAsyncMode=function(){return!1},Dm.isConcurrentMode=function(){return!1},Dm.isContextConsumer=function(e){return Xm(e)===jm},Dm.isContextProvider=function(e){return Xm(e)===_m},Dm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Tm},Dm.isForwardRef=function(e){return Xm(e)===zm},Dm.isFragment=function(e){return Xm(e)===Lm},Dm.isLazy=function(e){return Xm(e)===Bm},Dm.isMemo=function(e){return Xm(e)===Hm},Dm.isPortal=function(e){return Xm(e)===Om},Dm.isProfiler=function(e){return Xm(e)===Nm},Dm.isStrictMode=function(e){return Xm(e)===qm},Dm.isSuspense=function(e){return Xm(e)===Fm},Dm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Lm||e===Nm||e===Gm||e===qm||e===Fm||e===$m||e===Ym||"object"==typeof e&&null!==e&&(e.$$typeof===Bm||e.$$typeof===Hm||e.$$typeof===_m||e.$$typeof===jm||e.$$typeof===zm||e.$$typeof===Um||e.$$typeof===Wm||e[0]===Vm)},Dm.typeOf=Xm,km.exports=Dm;var sg=km.exports,lg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ug(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(lg);return t&&t[1]||""}(e)||t}function cg(e,t,r){var n=ug(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var dg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),pg=$i.oneOfType([$i.func,$i.object]),fg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Rm,deepmerge:Pm,elementAcceptingRef:Mm,elementTypeAcceptingRef:Im,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ug(e,"Component");if("object"===Fl(e))switch(e.$$typeof){case sg.ForwardRef:return cg(e,e.render,"ForwardRef");case sg.Memo:return cg(e,e.type,"memo");default:return}}},ponyfillGlobal:dg,refType:pg}),hg=Gt(fg);Object.defineProperty(Em,"__esModule",{value:!0}),Em.hexToRgb=vg,Em.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=yg(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Em.hslToRgb=bg,Em.decomposeColor=yg,Em.recomposeColor=xg,Em.getContrastRatio=function(e,t){var r=Sg(e),n=Sg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Em.getLuminance=Sg,Em.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Sg(e)>.5?Cg(e,t):Eg(e,t)},Em.fade=function(e,t){return wg(e,t)},Em.alpha=wg,Em.darken=Cg,Em.lighten=Eg;var mg=hg;function gg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function vg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function bg(e){var t=(e=yg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),xg({type:s,values:l})}function yg(e){if(e.type)return e;if("#"===e.charAt(0))return yg(vg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,mg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function xg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Sg(e){var t="hsl"===(e=yg(e)).type?yg(bg(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 wg(e,t){return e=yg(e),t=gg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,xg(e)}function Cg(e,t){if(e=yg(e),t=gg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return xg(e)}function Eg(e,t){if(e=yg(e),t=gg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return xg(e)}var Rg,Ag,Pg,Mg={},Ig={exports:{}},kg={exports:{}},Dg={exports:{}};function Tg(){return Rg||(Rg=1,function(e){var t=wm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}function Og(){return Ag||(Ag=1,function(e){var t=wm.default,r=Tg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(kg)),kg.exports}function Lg(){return Pg||(Pg=1,function(e){var t=Og();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Ig)),Ig.exports}var qg,Ng={exports:{}};function _g(){return qg||(qg=1,function(e){var t=$u();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}var jg,zg={};var Fg,$g={};var Hg,Bg={},Wg={};var Vg,Ug={};var Gg,Yg={};var Kg,Xg={};var Jg,Zg={};var Qg,ev={};var tv,rv={};var nv,ov,iv={};function av(){if(ov)return Bg;ov=1;var e=Ul;Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,M=e.type,I=void 0===M?"light":M,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},_={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(v),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(P),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},_[I]),L);return j},Bg.dark=Bg.light=void 0;var t=e(ju()),r=e(_g()),n=hg,o=e(function(){if(Hg)return Wg;Hg=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.default=void 0;var e={black:"#000",white:"#fff"};return Wg.default=e,Wg}()),i=e(function(){if(Vg)return Ug;Vg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.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 Ug.default=e,Ug}()),a=e(function(){if(Gg)return Yg;Gg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.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 Yg.default=e,Yg}()),s=e(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.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 Xg.default=e,Xg}()),l=e(function(){if(Jg)return Zg;Jg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.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 Zg.default=e,Zg}()),u=e(function(){if(Qg)return ev;Qg=1,Object.defineProperty(ev,"__esModule",{value:!0}),ev.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 ev.default=e,ev}()),c=e(function(){if(tv)return rv;tv=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.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 rv.default=e,rv}()),d=e(function(){if(nv)return iv;nv=1,Object.defineProperty(iv,"__esModule",{value:!0}),iv.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 iv.default=e,iv}()),p=Em,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Bg.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Bg.dark=h,Bg}var sv,lv={};var uv,cv={};var dv,pv={};var fv={};function hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mv(e,t){if(e){if("string"==typeof e)return hv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hv(e,t):void 0}}function gv(e){return function(e){if(Array.isArray(e))return hv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mv(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 vv(e,t){return t?Pm(e,t,{clone:!1}):e}var bv={xs:0,sm:600,md:960,lg:1280,xl:1920},yv={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(bv[e],"px)")}};function xv(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||yv;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Fl(t)){var o=e.theme.breakpoints||yv;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function Sv(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function wv(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Sv(e.theme,o)||{};return xv(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Sv(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=$l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function Cv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?vv(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function Ev(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Rv=wv({prop:"border",themeKey:"borders",transform:Ev}),Av=wv({prop:"borderTop",themeKey:"borders",transform:Ev}),Pv=wv({prop:"borderRight",themeKey:"borders",transform:Ev}),Mv=wv({prop:"borderBottom",themeKey:"borders",transform:Ev}),Iv=wv({prop:"borderLeft",themeKey:"borders",transform:Ev}),kv=wv({prop:"borderColor",themeKey:"palette"}),Dv=wv({prop:"borderRadius",themeKey:"shape"}),Tv=Cv(Rv,Av,Pv,Mv,Iv,kv,Dv);function Ov(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Lv(e){var t=function(t){var r=e(t);return t.css?$r({},vv(r,e($r({theme:t.theme},t.css))),Ov(t.css,[e.filterProps])):t.sx?$r({},vv(r,e($r({theme:t.theme},t.sx))),Ov(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(gv(e.filterProps)),t}var qv=Cv(wv({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),wv({prop:"display"}),wv({prop:"overflow"}),wv({prop:"textOverflow"}),wv({prop:"visibility"}),wv({prop:"whiteSpace"})),Nv=wv({prop:"flexBasis"}),_v=wv({prop:"flexDirection"}),jv=wv({prop:"flexWrap"}),zv=wv({prop:"justifyContent"}),Fv=wv({prop:"alignItems"}),$v=wv({prop:"alignContent"}),Hv=wv({prop:"order"}),Bv=wv({prop:"flex"}),Wv=wv({prop:"flexGrow"}),Vv=wv({prop:"flexShrink"}),Uv=wv({prop:"alignSelf"}),Gv=wv({prop:"justifyItems"}),Yv=wv({prop:"justifySelf"}),Kv=Cv(Nv,_v,jv,zv,Fv,$v,Hv,Bv,Wv,Vv,Uv,Gv,Yv),Xv=wv({prop:"gridGap"}),Jv=wv({prop:"gridColumnGap"}),Zv=wv({prop:"gridRowGap"}),Qv=wv({prop:"gridColumn"}),eb=wv({prop:"gridRow"}),tb=wv({prop:"gridAutoFlow"}),rb=wv({prop:"gridAutoColumns"}),nb=wv({prop:"gridAutoRows"}),ob=wv({prop:"gridTemplateColumns"}),ib=wv({prop:"gridTemplateRows"}),ab=wv({prop:"gridTemplateAreas"}),sb=wv({prop:"gridArea"}),lb=Cv(Xv,Jv,Zv,Qv,eb,tb,rb,nb,ob,ib,ab,sb),ub=wv({prop:"color",themeKey:"palette"}),cb=wv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),db=Cv(ub,cb),pb=wv({prop:"position"}),fb=wv({prop:"zIndex",themeKey:"zIndex"}),hb=wv({prop:"top"}),mb=wv({prop:"right"}),gb=wv({prop:"bottom"}),vb=wv({prop:"left"}),bb=Cv(pb,fb,hb,mb,gb,vb),yb=wv({prop:"boxShadow",themeKey:"shadows"});function xb(e){return e<=1?"".concat(100*e,"%"):e}var Sb=wv({prop:"width",transform:xb}),wb=wv({prop:"maxWidth",transform:xb}),Cb=wv({prop:"minWidth",transform:xb}),Eb=wv({prop:"height",transform:xb}),Rb=wv({prop:"maxHeight",transform:xb}),Ab=wv({prop:"minHeight",transform:xb}),Pb=wv({prop:"size",cssProperty:"width",transform:xb}),Mb=wv({prop:"size",cssProperty:"height",transform:xb}),Ib=wv({prop:"boxSizing"}),kb=Cv(Sb,wb,Cb,Eb,Rb,Ab,Ib);function Db(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||mv(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 Tb={m:"margin",p:"padding"},Ob={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qb=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!Lb[e])return[e];e=Lb[e]}var t=Db(e.split(""),2),r=t[0],n=t[1],o=Tb[r],i=Ob[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),Nb=["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 _b(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 jb(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function zb(e){var t=_b(e.theme);return Object.keys(e).map(function(r){if(-1===Nb.indexOf(r))return null;var n=jb(qb(r),t),o=e[r];return xv(e,o,n)}).reduce(vv,{})}zb.propTypes={},zb.filterProps=Nb;var Fb,$b=wv({prop:"fontFamily",themeKey:"typography"}),Hb=wv({prop:"fontSize",themeKey:"typography"}),Bb=wv({prop:"fontStyle",themeKey:"typography"}),Wb=wv({prop:"fontWeight",themeKey:"typography"}),Vb=wv({prop:"letterSpacing"}),Ub=wv({prop:"lineHeight"}),Gb=wv({prop:"textAlign"}),Yb=Cv($b,Hb,Bb,Wb,Vb,Ub,Gb),Kb=Object.freeze({__proto__:null,alignContent:$v,alignItems:Fv,alignSelf:Uv,bgcolor:cb,border:Rv,borderBottom:Mv,borderColor:kv,borderLeft:Iv,borderRadius:Dv,borderRight:Pv,borderTop:Av,borders:Tv,bottom:gb,boxSizing:Ib,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||yv,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e($r({theme:t.theme},t[o]))),r},null);return vv(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(gv(e.filterProps)),t},color:ub,compose:Cv,createUnarySpacing:_b,css:function(e){return Lv(e)},display:qv,flex:Bv,flexBasis:Nv,flexDirection:_v,flexGrow:Wv,flexShrink:Vv,flexWrap:jv,flexbox:Kv,fontFamily:$b,fontSize:Hb,fontStyle:Bb,fontWeight:Wb,grid:lb,gridArea:sb,gridAutoColumns:rb,gridAutoFlow:tb,gridAutoRows:nb,gridColumn:Qv,gridColumnGap:Jv,gridGap:Xv,gridRow:eb,gridRowGap:Zv,gridTemplateAreas:ab,gridTemplateColumns:ob,gridTemplateRows:ib,height:Eb,justifyContent:zv,justifyItems:Gv,justifySelf:Yv,left:vb,letterSpacing:Vb,lineHeight:Ub,maxHeight:Rb,maxWidth:wb,minHeight:Ab,minWidth:Cb,order:Hv,palette:db,position:pb,positions:bb,right:mb,shadows:yb,sizeHeight:Mb,sizeWidth:Pb,sizing:kb,spacing:zb,style:wv,styleFunctionSx:Lv,textAlign:Gb,top:hb,typography:Yb,width:Sb,zIndex:fb}),Xb=Gt(Kb);var Jb,Zb={};function Qb(){if(Jb)return Zb;Jb=1;var e=Ul;Object.defineProperty(Zb,"__esModule",{value:!0}),Zb.default=Zb.duration=Zb.easing=void 0;var t=e(_g()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};Zb.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Zb.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return Zb.default=i,Zb}var ey,ty,ry={};function ny(){if(ty)return Mg;ty=1;var e=Ul;Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.createMuiTheme=function(){return p.apply(void 0,arguments)},Mg.default=void 0,e(Lg());var t=e(_g()),r=hg,n=e(function(){if(jg)return zg;jg=1;var e=Ul;Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},zg.keys=void 0;var t=e(ju()),r=e(_g()),n=["xs","sm","md","lg","xl"];return zg.keys=n,zg}()),o=e(function(){if(Fg)return $g;Fg=1;var e=Ul;Object.defineProperty($g,"__esModule",{value:!0}),$g.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Lg()),r=e(ju());return $g}()),i=e(av()),a=e(function(){if(sv)return lv;sv=1;var e=Ul;Object.defineProperty(lv,"__esModule",{value:!0}),lv.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,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=R||function(e){return"".concat(e/C*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(v,48,1.167,0),h4:I(v,34,1.235,.25),h5:I(v,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(v,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(v,16,1.5,.15),body2:I(v,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(v,12,1.66,.4),overline:I(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(ju()),r=e(_g()),n=hg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return lv}()),s=e(function(){if(uv)return cv;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(",")}uv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.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 cv.default=t,cv}()),l=e(function(){if(dv)return pv;dv=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=void 0;var e={borderRadius:4};return pv.default=e,pv}()),u=e(function(){if(Fb)return fv;Fb=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=Xb;return fv}()),c=e(Qb()),d=e(function(){if(ey)return ry;ey=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ry.default=e,ry}());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,b=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(b),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),M=1;M<A;M++)P[M-1]=arguments[M];return R=P.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return Mg.default=f,Mg}var oy,iy={};var ay={},sy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ly=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function uy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==ly.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[sy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function cy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var dy="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},py="object"===("undefined"==typeof window?"undefined":dy(window))&&"object"===("undefined"==typeof document?"undefined":dy(document))&&9===document.nodeType;function fy(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$l(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var hy={}.constructor;function my(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(my);if(e.constructor!==hy)return e;var t={};for(var r in e)t[r]=my(e[r]);return t}function gy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=my(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var vy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},by=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=vy(e[r]," ");else t=vy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function yy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function xy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Sy(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=yy(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=xy(p+":"+u+by(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=xy(h+":"+u+by(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=xy(g+":"+u+by(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),xy(""+e+u+"{"+n,--i)+xy("}",i)):n}var wy=/([[\].#*$><+~=|^:(),"'`\s])/g,Cy="undefined"!=typeof CSS&&CSS.escape,Ey=function(e){return Cy?Cy(e):e.replace(wy,"\\$1")},Ry=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ay=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(qc(qc(o)),s),o.selectorText="."+Ey(o.id)),o}Rc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=by(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return Sy(this.selectorText,this.style,r)},fy(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Ry),Py={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ay(e,t,r)}},My={indent:1,children:!0},Iy=/@([\w-]+)/,ky=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Iy);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ex($r({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=My);var t=yy(e).linebreak;if(null==e.indent&&(e.indent=My.indent),null==e.children&&(e.children=My.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Dy=/@container|@media|@supports\s+/,Ty={onCreateRule:function(e,t,r){return Dy.test(e)?new ky(e,t,r):null}},Oy={indent:1,children:!0},Ly=/@keyframes\s+([\w-]+)/,qy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Ly);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Ey(a(this,i)),this.rules=new ex($r({},r,{parent:this})),t)this.rules.add(s,t[s],$r({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Oy);var t=yy(e).linebreak;if(null==e.indent&&(e.indent=Oy.indent),null==e.children&&(e.children=Oy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Ny=/@keyframes\s+/,_y=/\$([\w-]+)/g,jy=function(e,t){return"string"==typeof e?e.replace(_y,function(e,r){return r in t?t[r]:e}):e},zy=function(e,t,r){var n=e[t],o=jy(n,r);o!==n&&(e[t]=o)},Fy={onCreateRule:function(e,t,r){return"string"==typeof e&&Ny.test(e)?new qy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&zy(e,"animation-name",r.keyframes),"animation"in e&&zy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return jy(e,n.keyframes);default:return e}}},$y=function(e){function t(){return e.apply(this,arguments)||this}return Rc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return Sy(this.key,this.style,r)},t}(Ry),Hy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new $y(e,t,r):null}},By=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=yy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Sy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Sy(this.at,this.style,e)},e}(),Wy=/@font-face/,Vy={onCreateRule:function(e,t,r){return Wy.test(e)?new By(e,t,r):null}},Uy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Sy(this.key,this.style,e)},e}(),Gy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Uy(e,t,r):null}},Yy=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Ky={"@charset":!0,"@import":!0,"@namespace":!0},Xy={onCreateRule:function(e,t,r){return e in Ky?new Yy(e,t,r):null}},Jy=[Py,Ty,Fy,Hy,Vy,Gy,Xy],Zy={process:!0},Qy={force:!0,process:!0},ex=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=$r({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Ey(this.classes[d]));var p=gy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=$r({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ay?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof qy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ay?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof qy&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Zy);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Qy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Qy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=yy(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),tx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=$r({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ex(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),rx=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),nx=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Hr(t,["attached"]),o=yy(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},fy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ox=new nx,ix="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ax="2f1acc6c3a606b082e5eef5e54414ffb";null==ix[ax]&&(ix[ax]=0);var sx=ix[ax]++,lx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+sx+o+t:i+r.key+"-"+sx+(o?"-"+o:"")+"-"+t}},ux=function(e){var t;return function(){return t||(t=e()),t}},cx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},dx=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=by(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},px=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},fx=function(e,t){return e.selectorText=t,e.selectorText===t},hx=ux(function(){return document.querySelector("head")});function mx(e){var t=ox.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=hx(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var gx=ux(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vx=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},bx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},yx=function(){function e(e){this.getPropertyValue=cx,this.setProperty=dx,this.removeProperty=px,this.setSelector=fx,this.hasInsertedRules=!1,this.cssRules=[],e&&ox.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=gx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=mx(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else hx().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=bx(r,t);if(!1===(o=vx(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=bx(r,t),l=vx(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof tx&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),xx=0,Sx=function(){function e(e){this.id=xx++,this.version="10.10.0",this.plugins=new rx,this.options={id:{minify:!1},createGenerateId:lx,Renderer:py?yx:null,plugins:[]},this.generateId=lx({minify:!1});for(var t=0;t<Jy.length;t++)this.plugins.use(Jy[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=$r({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ox.index?0:ox.index+1);var n=new tx(e,$r({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ox.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=$r({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=gy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),wx=function(e){return new Sx(e)},Cx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ex(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Ex(n);i&&(t||(t={}),t[r]=i)}}return t}
91
91
  /**
92
92
  * A better abstraction over CSS.
93
93
  *
94
94
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
95
95
  * @website https://github.com/cssinjs/jss
96
96
  * @license MIT
97
- */Cx();var Ax=Date.now(),Px="fnValues"+Ax,Mx="fnStyle"+ ++Ax,Ix="@global",kx="@global ",Dx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ix,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new tx($r({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Tx=function(){function e(e,t,r){this.type="global",this.at=Ix,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,$r({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ox=/\s*,\s*/g;function Lx(e,t){for(var r=e.split(Ox),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function qx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ix)return new Dx(e,t,r);if("@"===e[0]&&e.substr(0,8)===kx)return new Tx(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Ix]:null;if(o){for(var i in o)t.addRule(i,o[i],$r({},r,{selector:Lx(i,e.selector)}));delete n[Ix]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Ix){var i=Lx(o.substr(7),e.selector);t.addRule(i,n[o],$r({},r,{selector:i})),delete n[o]}}(e,t))}}}var Nx=/\s*,\s*/g,_x=/&/g,jx=/\$([\w-]+)/g;function zx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Nx),n=e.split(Nx),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(_x,a):a+" "+l}return o}function r(e,t,r){if(r)return $r({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=$r({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(jx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],$r({},a,{selector:f})):u.addRule(h,n[c],$r({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Fx=/[A-Z]/g,$x=/^ms-/,Hx={};function Bx(e){return"-"+e.toLowerCase()}function Wx(e){if(Hx.hasOwnProperty(e))return Hx[e];var t=e.replace(Fx,Bx);return Hx[e]=$x.test(t)?"-"+t:t}function Vx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Wx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Vx):t.fallbacks=Vx(e.fallbacks)),t}var Ux=Ex&&CSS?CSS.px:"px",Gx=Ex&&CSS?CSS.ms:"ms",Yx=Ex&&CSS?CSS.percent:"%";function Kx(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var Xx=Kx({"animation-delay":Gx,"animation-duration":Gx,"background-position":Ux,"background-position-x":Ux,"background-position-y":Ux,"background-size":Ux,border:Ux,"border-bottom":Ux,"border-bottom-left-radius":Ux,"border-bottom-right-radius":Ux,"border-bottom-width":Ux,"border-left":Ux,"border-left-width":Ux,"border-radius":Ux,"border-right":Ux,"border-right-width":Ux,"border-top":Ux,"border-top-left-radius":Ux,"border-top-right-radius":Ux,"border-top-width":Ux,"border-width":Ux,"border-block":Ux,"border-block-end":Ux,"border-block-end-width":Ux,"border-block-start":Ux,"border-block-start-width":Ux,"border-block-width":Ux,"border-inline":Ux,"border-inline-end":Ux,"border-inline-end-width":Ux,"border-inline-start":Ux,"border-inline-start-width":Ux,"border-inline-width":Ux,"border-start-start-radius":Ux,"border-start-end-radius":Ux,"border-end-start-radius":Ux,"border-end-end-radius":Ux,margin:Ux,"margin-bottom":Ux,"margin-left":Ux,"margin-right":Ux,"margin-top":Ux,"margin-block":Ux,"margin-block-end":Ux,"margin-block-start":Ux,"margin-inline":Ux,"margin-inline-end":Ux,"margin-inline-start":Ux,padding:Ux,"padding-bottom":Ux,"padding-left":Ux,"padding-right":Ux,"padding-top":Ux,"padding-block":Ux,"padding-block-end":Ux,"padding-block-start":Ux,"padding-inline":Ux,"padding-inline-end":Ux,"padding-inline-start":Ux,"mask-position-x":Ux,"mask-position-y":Ux,"mask-size":Ux,height:Ux,width:Ux,"min-height":Ux,"max-height":Ux,"min-width":Ux,"max-width":Ux,bottom:Ux,left:Ux,top:Ux,right:Ux,inset:Ux,"inset-block":Ux,"inset-block-end":Ux,"inset-block-start":Ux,"inset-inline":Ux,"inset-inline-end":Ux,"inset-inline-start":Ux,"box-shadow":Ux,"text-shadow":Ux,"column-gap":Ux,"column-rule":Ux,"column-rule-width":Ux,"column-width":Ux,"font-size":Ux,"font-size-delta":Ux,"letter-spacing":Ux,"text-decoration-thickness":Ux,"text-indent":Ux,"text-stroke":Ux,"text-stroke-width":Ux,"word-spacing":Ux,motion:Ux,"motion-offset":Ux,outline:Ux,"outline-offset":Ux,"outline-width":Ux,perspective:Ux,"perspective-origin-x":Yx,"perspective-origin-y":Yx,"transform-origin":Yx,"transform-origin-x":Yx,"transform-origin-y":Yx,"transform-origin-z":Yx,"transition-delay":Gx,"transition-duration":Gx,"vertical-align":Ux,"flex-basis":Ux,"shape-margin":Ux,size:Ux,gap:Ux,grid:Ux,"grid-gap":Ux,"row-gap":Ux,"grid-row-gap":Ux,"grid-column-gap":Ux,"grid-template-rows":Ux,"grid-template-columns":Ux,"grid-auto-rows":Ux,"grid-auto-columns":Ux,"box-shadow-x":Ux,"box-shadow-y":Ux,"box-shadow-blur":Ux,"box-shadow-spread":Ux,"font-line-height":Ux,"text-shadow-x":Ux,"text-shadow-y":Ux,"text-shadow-blur":Ux});function Jx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Jx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Jx(o,t[o],r);else for(var i in t)t[i]=Jx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Xx[e];return!a||0===t&&a===Ux?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Zx(e){void 0===e&&(e={});var t=Kx(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Jx(n,e[n],t);return e},onChangeValue:function(e,r){return Jx(r,e,t)}}}var Qx="",eS="",tS="",rS="",nS=fy&&"ontouchstart"in document.documentElement;if(fy){var oS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},iS=document.createElement("p").style;for(var aS in oS)if(aS+"Transform"in iS){Qx=aS,eS=oS[aS];break}"Webkit"===Qx&&"msHyphens"in iS&&(Qx="ms",eS=oS.ms,rS="edge"),"Webkit"===Qx&&"-apple-trailing-word"in iS&&(tS="apple")}var sS=Qx,lS=eS,uS=tS,cS=rS,dS=nS;var pS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===sS?"-webkit-"+e:lS+e)}},fS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===sS?lS+"print-"+e:e)}},hS=/[-\s]+(.)?/g;function mS(e,t){return t?t.toUpperCase():""}function gS(e){return e.replace(hS,mS)}function vS(e){return gS("-"+e)}var bS,yS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===sS){var r="mask-image";if(gS(r)in t)return e;if(sS+vS(r)in t)return lS+e}return e}},xS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==uS||dS?e:lS+e)}},SS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:lS+e)}},wS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:lS+e)}},CS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===sS||"ms"===sS&&"edge"!==cS?lS+e:e)}},ES={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===sS||"ms"===sS||"apple"===uS?lS+e:e)}},RS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===sS?"WebkitColumn"+vS(e)in t&&lS+"column-"+e:"Moz"===sS&&("page"+vS(e)in t&&"page-"+e))}},AS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===sS)return e;var r=e.replace("-inline","");return sS+vS(r)in t&&lS+r}},PS={supportedProperty:function(e,t){return gS(e)in t&&e}},MS={supportedProperty:function(e,t){var r=vS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:sS+r in t?lS+e:"Webkit"!==sS&&"Webkit"+r in t&&"-webkit-"+e}},IS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===sS?""+lS+e:e)}},kS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===sS?lS+"scroll-chaining":e)}},DS={"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"},TS={supportedProperty:function(e,t){var r=DS[e];return!!r&&(sS+vS(r)in t&&lS+r)}},OS={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"},LS=Object.keys(OS),qS=function(e){return lS+e},NS={supportedProperty:function(e,t,r){var n=r.multiple;if(LS.indexOf(e)>-1){var o=OS[e];if(!Array.isArray(o))return sS+vS(o)in t&&lS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(sS+vS(o[0])in t))return!1;return o.map(qS)}return!1}},_S=[pS,fS,yS,xS,SS,wS,CS,ES,RS,AS,PS,MS,IS,kS,TS,NS],jS=_S.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),zS=_S.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,vv(t.noPrefill)),e},[]),FS={};if(fy){bS=document.createElement("p");var $S=window.getComputedStyle(document.documentElement,"");for(var HS in $S)isNaN(HS)||(FS[$S[HS]]=$S[HS]);zS.forEach(function(e){return delete FS[e]})}function BS(e,t){if(void 0===t&&(t={}),!bS)return e;if(null!=FS[e])return FS[e];"transition"!==e&&"transform"!==e||(t[e]=e in bS.style);for(var r=0;r<jS.length&&(FS[e]=jS[r](e,bS.style,t),!FS[e]);r++);try{bS.style[e]=""}catch(e){return!1}return FS[e]}var WS,VS={},US={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},GS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function YS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?BS(t):", "+BS(r);return n||(t||r)}function KS(e,t){var r=t;if(!WS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=VS[n])return VS[n];try{WS.style[e]=r}catch(e){return VS[n]=!1,!1}if(US[e])r=r.replace(GS,YS);else if(""===WS.style[e]&&("-ms-flex"===(r=lS+r)&&(WS.style[e]="-ms-flexbox"),WS.style[e]=r,""===WS.style[e]))return VS[n]=!1,!1;return WS.style[e]="",VS[n]=r,VS[n]}function XS(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=BS(r);i&&i!==r&&(o=!0);var a=!1,s=KS(i,yy(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===sS?e:"@"+lS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return KS(t,yy(e))||e}}}function JS(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function ZS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=vy(e,{},r);return n[Mx]=t,n},onProcessStyle:function(e,t){if(Px in t||Mx in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Px]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Mx];i&&(o.style=i(e)||{});var a=o[Px];if(a)for(var s in a)o.prop(s,a[s](e),n)}},qx(),zx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Vx(e[t]);return e}return Vx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Wx(t);return t===n?e:(r.prop(n,e),null)}},Zx(),"undefined"==typeof window?null:XS(),JS()]}}function QS(e,t){if(null==e)return{};var r,n,o=Hr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=$r({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}fy&&(WS=document.createElement("p"));var tw=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},rw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},nw=function(e,t,r){e.get(t).delete(r)},ow=S.createContext(null);function iw(){return S.useContext(ow)}var aw,sw=Cx(ZS()),lw=cy(),uw=new Map,cw={disableGeneration:!1,generateClassName:lw,jss:sw,sheetsCache:null,sheetsManager:uw,sheetsRegistry:null},dw=S.createContext(cw);function pw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=QS(e,["children","injectFirst","disableGeneration"]),s=$r({},S.useContext(dw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!aw){var l=document.head;aw=document.createComment("mui-inject-first"),l.insertBefore(aw,l.firstChild)}s.jss=Cx({plugins:ZS().plugins,insertionPoint:aw})}return S.createElement(dw.Provider,{value:s},t)}var fw=-1e9;var hw={};function mw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=rw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},tw(o.sheetsManager,i,n,s));var l=$r({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=rw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,$r({link:!1},l))).attach(),o.sheetsCache&&tw(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Rx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,$r({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=ew({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function gw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?hw:i,s=QS(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=$r({},o);return Object.keys(i).forEach(function(e){a[e]=Mm(a[e],i[e])}),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:fw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=iw()||a,n=$r({},S.useContext(dw),s),i=S.useRef(),u=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),S.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return mw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=rw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(nw(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),S.useEffect(function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=ew({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var vw=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 hy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ox;var r=cy();return S.createElement(pw,$r({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 S.createElement("style",$r({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function bw(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=bw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function yw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bw(e))&&(n&&(n+=" "),n+=t);return n}var xw={exports:{}},Sw={},ww="function"==typeof Symbol&&Symbol.for,Cw=ww?Symbol.for("react.element"):60103,Ew=ww?Symbol.for("react.portal"):60106,Rw=ww?Symbol.for("react.fragment"):60107,Aw=ww?Symbol.for("react.strict_mode"):60108,Pw=ww?Symbol.for("react.profiler"):60114,Mw=ww?Symbol.for("react.provider"):60109,Iw=ww?Symbol.for("react.context"):60110,kw=ww?Symbol.for("react.async_mode"):60111,Dw=ww?Symbol.for("react.concurrent_mode"):60111,Tw=ww?Symbol.for("react.forward_ref"):60112,Ow=ww?Symbol.for("react.suspense"):60113,Lw=ww?Symbol.for("react.suspense_list"):60120,qw=ww?Symbol.for("react.memo"):60115,Nw=ww?Symbol.for("react.lazy"):60116,_w=ww?Symbol.for("react.block"):60121,jw=ww?Symbol.for("react.fundamental"):60117,zw=ww?Symbol.for("react.responder"):60118,Fw=ww?Symbol.for("react.scope"):60119;function $w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cw:switch(e=e.type){case kw:case Dw:case Rw:case Pw:case Aw:case Ow:return e;default:switch(e=e&&e.$$typeof){case Iw:case Tw:case Nw:case qw:case Mw:return e;default:return t}}case Ew:return t}}}function Hw(e){return $w(e)===Dw}Sw.AsyncMode=kw,Sw.ConcurrentMode=Dw,Sw.ContextConsumer=Iw,Sw.ContextProvider=Mw,Sw.Element=Cw,Sw.ForwardRef=Tw,Sw.Fragment=Rw,Sw.Lazy=Nw,Sw.Memo=qw,Sw.Portal=Ew,Sw.Profiler=Pw,Sw.StrictMode=Aw,Sw.Suspense=Ow,Sw.isAsyncMode=function(e){return Hw(e)||$w(e)===kw},Sw.isConcurrentMode=Hw,Sw.isContextConsumer=function(e){return $w(e)===Iw},Sw.isContextProvider=function(e){return $w(e)===Mw},Sw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cw},Sw.isForwardRef=function(e){return $w(e)===Tw},Sw.isFragment=function(e){return $w(e)===Rw},Sw.isLazy=function(e){return $w(e)===Nw},Sw.isMemo=function(e){return $w(e)===qw},Sw.isPortal=function(e){return $w(e)===Ew},Sw.isProfiler=function(e){return $w(e)===Pw},Sw.isStrictMode=function(e){return $w(e)===Aw},Sw.isSuspense=function(e){return $w(e)===Ow},Sw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Rw||e===Dw||e===Pw||e===Aw||e===Ow||e===Lw||"object"==typeof e&&null!==e&&(e.$$typeof===Nw||e.$$typeof===qw||e.$$typeof===Mw||e.$$typeof===Iw||e.$$typeof===Tw||e.$$typeof===jw||e.$$typeof===zw||e.$$typeof===Fw||e.$$typeof===_w)},Sw.typeOf=$w,xw.exports=Sw;var Bw=xw.exports,Ww={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gw={};function Yw(e){return Bw.isMemo(e)?Uw:Gw[e.$$typeof]||Ww}Gw[Bw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gw[Bw.Memo]=Uw;var Kw=Object.defineProperty,Xw=Object.getOwnPropertyNames,Jw=Object.getOwnPropertySymbols,Zw=Object.getOwnPropertyDescriptor,Qw=Object.getPrototypeOf,eC=Object.prototype;var tC=function e(t,r,n){if("string"!=typeof r){if(eC){var o=Qw(r);o&&o!==eC&&e(t,o,n)}var i=Xw(r);Jw&&(i=i.concat(Jw(r)));for(var a=Yw(t),s=Yw(r),l=0;l<i.length;++l){var u=i[l];if(!(Vw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Zw(r,u);try{Kw(t,u,c)}catch(e){}}}}return t},rC=Ut(tC);function nC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef(function(r,n){var o=r.innerRef,i=QS(r,["innerRef"]),a=iw()||e;return S.createElement(t,$r({theme:a,ref:o||n},i))});return rC(r,t),r}}var oC,iC=nC(),aC=Object.freeze({__proto__:null,ServerStyleSheets:vw,StylesContext:dw,StylesProvider:pw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=iw(),o=S.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):$r({},e,t)}(n,r);return null!=e&&(e[ly]=null!==n),e},[r,n]);return S.createElement(ow.Provider,{value:o},t)},createGenerateClassName:cy,createStyles:function(e){return e},getThemeProps:dy,jssPreset:ZS,makeStyles:gw,mergeClasses:ew,sheetsManager:uw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=QS(n,["name"]),a=o,s=gw("function"==typeof t?function(e){return{root:function(r){return t($r({theme:e},r))}}}:{root:t},$r({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=S.forwardRef(function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=QS(t,["children","className","clone","component"]),f=yw(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return S.cloneElement(l,$r({className:yw(l.props.className,f)},h));if("function"==typeof l)return l($r({className:f},h));var m=d||e;return S.createElement(m,$r({ref:n,className:f},h),l)});return rC(l,e),l}},useTheme:iw,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=QS(t,["defaultTheme","withTheme","name"]),l=a,u=gw(e,$r({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=S.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=QS(e,["classes","innerRef"]),c=u($r({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=iw()||n,a&&(d=dy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,$r({ref:s||t,classes:c},d))});return rC(c,r),c}},withTheme:iC,withThemeCreator:nC}),sC=Gt(aC);
97
+ */wx();var Rx=Date.now(),Ax="fnValues"+Rx,Px="fnStyle"+ ++Rx,Mx="@global",Ix="@global ",kx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Mx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ex($r({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Dx=function(){function e(e,t,r){this.type="global",this.at=Mx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,$r({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Tx=/\s*,\s*/g;function Ox(e,t){for(var r=e.split(Tx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Lx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Mx)return new kx(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ix)return new Dx(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Mx]:null;if(o){for(var i in o)t.addRule(i,o[i],$r({},r,{selector:Ox(i,e.selector)}));delete n[Mx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Mx){var i=Ox(o.substr(7),e.selector);t.addRule(i,n[o],$r({},r,{selector:i})),delete n[o]}}(e,t))}}}var qx=/\s*,\s*/g,Nx=/&/g,_x=/\$([\w-]+)/g;function jx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(qx),n=e.split(qx),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Nx,a):a+" "+l}return o}function r(e,t,r){if(r)return $r({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=$r({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(_x,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],$r({},a,{selector:f})):u.addRule(h,n[c],$r({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var zx=/[A-Z]/g,Fx=/^ms-/,$x={};function Hx(e){return"-"+e.toLowerCase()}function Bx(e){if($x.hasOwnProperty(e))return $x[e];var t=e.replace(zx,Hx);return $x[e]=Fx.test(t)?"-"+t:t}function Wx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Bx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Wx):t.fallbacks=Wx(e.fallbacks)),t}var Vx=Cx&&CSS?CSS.px:"px",Ux=Cx&&CSS?CSS.ms:"ms",Gx=Cx&&CSS?CSS.percent:"%";function Yx(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var Kx=Yx({"animation-delay":Ux,"animation-duration":Ux,"background-position":Vx,"background-position-x":Vx,"background-position-y":Vx,"background-size":Vx,border:Vx,"border-bottom":Vx,"border-bottom-left-radius":Vx,"border-bottom-right-radius":Vx,"border-bottom-width":Vx,"border-left":Vx,"border-left-width":Vx,"border-radius":Vx,"border-right":Vx,"border-right-width":Vx,"border-top":Vx,"border-top-left-radius":Vx,"border-top-right-radius":Vx,"border-top-width":Vx,"border-width":Vx,"border-block":Vx,"border-block-end":Vx,"border-block-end-width":Vx,"border-block-start":Vx,"border-block-start-width":Vx,"border-block-width":Vx,"border-inline":Vx,"border-inline-end":Vx,"border-inline-end-width":Vx,"border-inline-start":Vx,"border-inline-start-width":Vx,"border-inline-width":Vx,"border-start-start-radius":Vx,"border-start-end-radius":Vx,"border-end-start-radius":Vx,"border-end-end-radius":Vx,margin:Vx,"margin-bottom":Vx,"margin-left":Vx,"margin-right":Vx,"margin-top":Vx,"margin-block":Vx,"margin-block-end":Vx,"margin-block-start":Vx,"margin-inline":Vx,"margin-inline-end":Vx,"margin-inline-start":Vx,padding:Vx,"padding-bottom":Vx,"padding-left":Vx,"padding-right":Vx,"padding-top":Vx,"padding-block":Vx,"padding-block-end":Vx,"padding-block-start":Vx,"padding-inline":Vx,"padding-inline-end":Vx,"padding-inline-start":Vx,"mask-position-x":Vx,"mask-position-y":Vx,"mask-size":Vx,height:Vx,width:Vx,"min-height":Vx,"max-height":Vx,"min-width":Vx,"max-width":Vx,bottom:Vx,left:Vx,top:Vx,right:Vx,inset:Vx,"inset-block":Vx,"inset-block-end":Vx,"inset-block-start":Vx,"inset-inline":Vx,"inset-inline-end":Vx,"inset-inline-start":Vx,"box-shadow":Vx,"text-shadow":Vx,"column-gap":Vx,"column-rule":Vx,"column-rule-width":Vx,"column-width":Vx,"font-size":Vx,"font-size-delta":Vx,"letter-spacing":Vx,"text-decoration-thickness":Vx,"text-indent":Vx,"text-stroke":Vx,"text-stroke-width":Vx,"word-spacing":Vx,motion:Vx,"motion-offset":Vx,outline:Vx,"outline-offset":Vx,"outline-width":Vx,perspective:Vx,"perspective-origin-x":Gx,"perspective-origin-y":Gx,"transform-origin":Gx,"transform-origin-x":Gx,"transform-origin-y":Gx,"transform-origin-z":Gx,"transition-delay":Ux,"transition-duration":Ux,"vertical-align":Vx,"flex-basis":Vx,"shape-margin":Vx,size:Vx,gap:Vx,grid:Vx,"grid-gap":Vx,"row-gap":Vx,"grid-row-gap":Vx,"grid-column-gap":Vx,"grid-template-rows":Vx,"grid-template-columns":Vx,"grid-auto-rows":Vx,"grid-auto-columns":Vx,"box-shadow-x":Vx,"box-shadow-y":Vx,"box-shadow-blur":Vx,"box-shadow-spread":Vx,"font-line-height":Vx,"text-shadow-x":Vx,"text-shadow-y":Vx,"text-shadow-blur":Vx});function Xx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Xx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Xx(o,t[o],r);else for(var i in t)t[i]=Xx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Kx[e];return!a||0===t&&a===Vx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Jx(e){void 0===e&&(e={});var t=Yx(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Xx(n,e[n],t);return e},onChangeValue:function(e,r){return Xx(r,e,t)}}}var Zx="",Qx="",eS="",tS="",rS=py&&"ontouchstart"in document.documentElement;if(py){var nS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},oS=document.createElement("p").style;for(var iS in nS)if(iS+"Transform"in oS){Zx=iS,Qx=nS[iS];break}"Webkit"===Zx&&"msHyphens"in oS&&(Zx="ms",Qx=nS.ms,tS="edge"),"Webkit"===Zx&&"-apple-trailing-word"in oS&&(eS="apple")}var aS=Zx,sS=Qx,lS=eS,uS=tS,cS=rS;var dS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===aS?"-webkit-"+e:sS+e)}},pS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===aS?sS+"print-"+e:e)}},fS=/[-\s]+(.)?/g;function hS(e,t){return t?t.toUpperCase():""}function mS(e){return e.replace(fS,hS)}function gS(e){return mS("-"+e)}var vS,bS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===aS){var r="mask-image";if(mS(r)in t)return e;if(aS+gS(r)in t)return sS+e}return e}},yS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==lS||cS?e:sS+e)}},xS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:sS+e)}},SS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:sS+e)}},wS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===aS||"ms"===aS&&"edge"!==uS?sS+e:e)}},CS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===aS||"ms"===aS||"apple"===lS?sS+e:e)}},ES={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===aS?"WebkitColumn"+gS(e)in t&&sS+"column-"+e:"Moz"===aS&&("page"+gS(e)in t&&"page-"+e))}},RS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===aS)return e;var r=e.replace("-inline","");return aS+gS(r)in t&&sS+r}},AS={supportedProperty:function(e,t){return mS(e)in t&&e}},PS={supportedProperty:function(e,t){var r=gS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:aS+r in t?sS+e:"Webkit"!==aS&&"Webkit"+r in t&&"-webkit-"+e}},MS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===aS?""+sS+e:e)}},IS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===aS?sS+"scroll-chaining":e)}},kS={"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"},DS={supportedProperty:function(e,t){var r=kS[e];return!!r&&(aS+gS(r)in t&&sS+r)}},TS={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"},OS=Object.keys(TS),LS=function(e){return sS+e},qS={supportedProperty:function(e,t,r){var n=r.multiple;if(OS.indexOf(e)>-1){var o=TS[e];if(!Array.isArray(o))return aS+gS(o)in t&&sS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(aS+gS(o[0])in t))return!1;return o.map(LS)}return!1}},NS=[dS,pS,bS,yS,xS,SS,wS,CS,ES,RS,AS,PS,MS,IS,DS,qS],_S=NS.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),jS=NS.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,gv(t.noPrefill)),e},[]),zS={};if(py){vS=document.createElement("p");var FS=window.getComputedStyle(document.documentElement,"");for(var $S in FS)isNaN($S)||(zS[FS[$S]]=FS[$S]);jS.forEach(function(e){return delete zS[e]})}function HS(e,t){if(void 0===t&&(t={}),!vS)return e;if(null!=zS[e])return zS[e];"transition"!==e&&"transform"!==e||(t[e]=e in vS.style);for(var r=0;r<_S.length&&(zS[e]=_S[r](e,vS.style,t),!zS[e]);r++);try{vS.style[e]=""}catch(e){return!1}return zS[e]}var BS,WS={},VS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},US=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function GS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?HS(t):", "+HS(r);return n||(t||r)}function YS(e,t){var r=t;if(!BS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=WS[n])return WS[n];try{BS.style[e]=r}catch(e){return WS[n]=!1,!1}if(VS[e])r=r.replace(US,GS);else if(""===BS.style[e]&&("-ms-flex"===(r=sS+r)&&(BS.style[e]="-ms-flexbox"),BS.style[e]=r,""===BS.style[e]))return WS[n]=!1,!1;return BS.style[e]="",WS[n]=r,WS[n]}function KS(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=HS(r);i&&i!==r&&(o=!0);var a=!1,s=YS(i,by(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===aS?e:"@"+sS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return YS(t,by(e))||e}}}function XS(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function JS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=gy(e,{},r);return n[Px]=t,n},onProcessStyle:function(e,t){if(Ax in t||Px in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Ax]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Px];i&&(o.style=i(e)||{});var a=o[Ax];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Lx(),jx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Wx(e[t]);return e}return Wx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Bx(t);return t===n?e:(r.prop(n,e),null)}},Jx(),"undefined"==typeof window?null:KS(),XS()]}}function ZS(e,t){if(null==e)return{};var r,n,o=Hr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function QS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=$r({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}py&&(BS=document.createElement("p"));var ew=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},tw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},rw=function(e,t,r){e.get(t).delete(r)},nw=S.createContext(null);function ow(){return S.useContext(nw)}var iw,aw=wx(JS()),sw=uy(),lw=new Map,uw={disableGeneration:!1,generateClassName:sw,jss:aw,sheetsCache:null,sheetsManager:lw,sheetsRegistry:null},cw=S.createContext(uw);function dw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=ZS(e,["children","injectFirst","disableGeneration"]),s=$r({},S.useContext(cw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!iw){var l=document.head;iw=document.createComment("mui-inject-first"),l.insertBefore(iw,l.firstChild)}s.jss=wx({plugins:JS().plugins,insertionPoint:iw})}return S.createElement(cw.Provider,{value:s},t)}var pw=-1e9;var fw={};function hw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=tw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ew(o.sheetsManager,i,n,s));var l=$r({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=tw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,$r({link:!1},l))).attach(),o.sheetsCache&&ew(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ex(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,$r({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=QS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function mw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?fw:i,s=ZS(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=$r({},o);return Object.keys(i).forEach(function(e){a[e]=Pm(a[e],i[e])}),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:pw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ow()||a,n=$r({},S.useContext(cw),s),i=S.useRef(),u=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),S.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return hw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=tw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(rw(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),S.useEffect(function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=QS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var gw=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 fy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new nx;var r=uy();return S.createElement(dw,$r({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 S.createElement("style",$r({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function vw(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=vw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=vw(e))&&(n&&(n+=" "),n+=t);return n}var yw={exports:{}},xw={},Sw="function"==typeof Symbol&&Symbol.for,ww=Sw?Symbol.for("react.element"):60103,Cw=Sw?Symbol.for("react.portal"):60106,Ew=Sw?Symbol.for("react.fragment"):60107,Rw=Sw?Symbol.for("react.strict_mode"):60108,Aw=Sw?Symbol.for("react.profiler"):60114,Pw=Sw?Symbol.for("react.provider"):60109,Mw=Sw?Symbol.for("react.context"):60110,Iw=Sw?Symbol.for("react.async_mode"):60111,kw=Sw?Symbol.for("react.concurrent_mode"):60111,Dw=Sw?Symbol.for("react.forward_ref"):60112,Tw=Sw?Symbol.for("react.suspense"):60113,Ow=Sw?Symbol.for("react.suspense_list"):60120,Lw=Sw?Symbol.for("react.memo"):60115,qw=Sw?Symbol.for("react.lazy"):60116,Nw=Sw?Symbol.for("react.block"):60121,_w=Sw?Symbol.for("react.fundamental"):60117,jw=Sw?Symbol.for("react.responder"):60118,zw=Sw?Symbol.for("react.scope"):60119;function Fw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ww:switch(e=e.type){case Iw:case kw:case Ew:case Aw:case Rw:case Tw:return e;default:switch(e=e&&e.$$typeof){case Mw:case Dw:case qw:case Lw:case Pw:return e;default:return t}}case Cw:return t}}}function $w(e){return Fw(e)===kw}xw.AsyncMode=Iw,xw.ConcurrentMode=kw,xw.ContextConsumer=Mw,xw.ContextProvider=Pw,xw.Element=ww,xw.ForwardRef=Dw,xw.Fragment=Ew,xw.Lazy=qw,xw.Memo=Lw,xw.Portal=Cw,xw.Profiler=Aw,xw.StrictMode=Rw,xw.Suspense=Tw,xw.isAsyncMode=function(e){return $w(e)||Fw(e)===Iw},xw.isConcurrentMode=$w,xw.isContextConsumer=function(e){return Fw(e)===Mw},xw.isContextProvider=function(e){return Fw(e)===Pw},xw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ww},xw.isForwardRef=function(e){return Fw(e)===Dw},xw.isFragment=function(e){return Fw(e)===Ew},xw.isLazy=function(e){return Fw(e)===qw},xw.isMemo=function(e){return Fw(e)===Lw},xw.isPortal=function(e){return Fw(e)===Cw},xw.isProfiler=function(e){return Fw(e)===Aw},xw.isStrictMode=function(e){return Fw(e)===Rw},xw.isSuspense=function(e){return Fw(e)===Tw},xw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ew||e===kw||e===Aw||e===Rw||e===Tw||e===Ow||"object"==typeof e&&null!==e&&(e.$$typeof===qw||e.$$typeof===Lw||e.$$typeof===Pw||e.$$typeof===Mw||e.$$typeof===Dw||e.$$typeof===_w||e.$$typeof===jw||e.$$typeof===zw||e.$$typeof===Nw)},xw.typeOf=Fw,yw.exports=xw;var Hw=yw.exports,Bw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ww={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uw={};function Gw(e){return Hw.isMemo(e)?Vw:Uw[e.$$typeof]||Bw}Uw[Hw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uw[Hw.Memo]=Vw;var Yw=Object.defineProperty,Kw=Object.getOwnPropertyNames,Xw=Object.getOwnPropertySymbols,Jw=Object.getOwnPropertyDescriptor,Zw=Object.getPrototypeOf,Qw=Object.prototype;var eC=function e(t,r,n){if("string"!=typeof r){if(Qw){var o=Zw(r);o&&o!==Qw&&e(t,o,n)}var i=Kw(r);Xw&&(i=i.concat(Xw(r)));for(var a=Gw(t),s=Gw(r),l=0;l<i.length;++l){var u=i[l];if(!(Ww[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Jw(r,u);try{Yw(t,u,c)}catch(e){}}}}return t},tC=Ut(eC);function rC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef(function(r,n){var o=r.innerRef,i=ZS(r,["innerRef"]),a=ow()||e;return S.createElement(t,$r({theme:a,ref:o||n},i))});return tC(r,t),r}}var nC,oC=rC(),iC=Object.freeze({__proto__:null,ServerStyleSheets:gw,StylesContext:cw,StylesProvider:dw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=ow(),o=S.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):$r({},e,t)}(n,r);return null!=e&&(e[sy]=null!==n),e},[r,n]);return S.createElement(nw.Provider,{value:o},t)},createGenerateClassName:uy,createStyles:function(e){return e},getThemeProps:cy,jssPreset:JS,makeStyles:mw,mergeClasses:QS,sheetsManager:lw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=ZS(n,["name"]),a=o,s=mw("function"==typeof t?function(e){return{root:function(r){return t($r({theme:e},r))}}}:{root:t},$r({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=S.forwardRef(function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=ZS(t,["children","className","clone","component"]),f=bw(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return S.cloneElement(l,$r({className:bw(l.props.className,f)},h));if("function"==typeof l)return l($r({className:f},h));var m=d||e;return S.createElement(m,$r({ref:n,className:f},h),l)});return tC(l,e),l}},useTheme:ow,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=ZS(t,["defaultTheme","withTheme","name"]),l=a,u=mw(e,$r({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=S.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=ZS(e,["classes","innerRef"]),c=u($r({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ow()||n,a&&(d=cy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,$r({ref:s||t,classes:c},d))});return tC(c,r),c}},withTheme:oC,withThemeCreator:rC}),aC=Gt(iC);
98
98
  /** @license Material-UI v4.11.5
99
99
  *
100
100
  * This source code is licensed under the MIT license found in the
101
101
  * LICENSE file in the root directory of this source tree.
102
- */var lC,uC,cC={},dC={};function pC(){if(lC)return dC;lC=1;var e=Ul;Object.defineProperty(dC,"__esModule",{value:!0}),dC.default=void 0;var t=(0,e(oy()).default)();return dC.default=t,dC}var fC,hC,mC={},gC={};function vC(){if(hC)return mC;hC=1;var e=Ul;Object.defineProperty(mC,"__esModule",{value:!0}),mC.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(ju()),r=mg,n=function(){if(fC)return gC;fC=1;var e=Ul;Object.defineProperty(gC,"__esModule",{value:!0}),gC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gC.getUnit=r,gC.toUnitless=n,gC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},gC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},gC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},gC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(qg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return gC}();return mC}var bC,yC={};var xC,SC={};var wC,CC={};var EC,RC={};!function(e){var t=Ul,r=Em;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Rm;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(oy()),a=t(function(){if(iy)return ay;iy=1;var e=Ul;Object.defineProperty(ay,"__esModule",{value:!0}),ay.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=mg,r=e(oy());return ay}()),s=t(function(){if(oC)return sy;oC=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=function(t){return(0,e.createStyles)(t)};var e=sC;return sy}()),l=t(function(){if(uC)return cC;uC=1;var e=Ul;Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var t=e(ju()),r=sC,n=e(pC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return cC.default=o,cC}()),u=t(vC()),c=t(function(){if(bC)return yC;bC=1;var e=Ul;Object.defineProperty(yC,"__esModule",{value:!0}),yC.default=void 0;var t=e(ju()),r=sC,n=e(pC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return yC.default=o,yC}()),d=ey();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(function(){if(xC)return SC;xC=1;var e=Ul;Object.defineProperty(SC,"__esModule",{value:!0}),SC.default=function(){return(0,t.useTheme)()||r.default};var t=sC;e(S);var r=e(pC());return SC}()),f=t(function(){if(wC)return CC;wC=1;var e=Ul;Object.defineProperty(CC,"__esModule",{value:!0}),CC.default=void 0;var t=e(ju()),r=sC,n=e(pC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CC.default=o,CC}()),h=t(function(){if(EC)return RC;EC=1;var e=Ul;Object.defineProperty(RC,"__esModule",{value:!0}),RC.default=void 0;var t=sC,r=e(pC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return RC.default=n,RC}()),m=sC}(xm),xm.alpha(qt.GREYSCALE_0,.05),xm.alpha(qt.GREEN_PALE,.5),xm.alpha(qt.BLUE_PALE,.5),xm.alpha(qt.GREEN_PALE,.5),xm.alpha(qt.BLUE_PALE,.5),xm.alpha(qt.GREEN_PALE,.5),xm.alpha(qt.BLUE_PALE,.5),xm.alpha(qt.GREEN_PALE,.5),xm.alpha(qt.BLUE_PALE,.5),xm.alpha(qt.GREEN_PALE,.5),xm.alpha(qt.BLUE_PALE,.5);const AC=(e="light",t=!1)=>((e,t=!1)=>({components:vm(0,t),palette:bm(),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:_t,fontWeightLight:$t,fontWeightRegular:Ht,fontWeightMedium:Bt,fontWeightBold:Wt,htmlFontSize:_t,fontFamily:Vt.FONT_FAMILY,button:{fontWeight:Bt,fontSize:_t,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:zt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:Bt,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:Bt,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Nt,color:qt.TEXT_SECONDARY}},shape:{borderRadius:Ft}}))(0,t),PC=AC().palette,MC={TEXT:PC.text.primary,DISABLED:PC.text.disabled,HOVER:PC.action.hover,WHITE:ym.GREYSCALE_100,BORDER_LIGHT:ym.GREYSCALE_90,BORDER_MEDIUM:ym.GREYSCALE_85,BORDER_HEAVY:ym.GREYSCALE_50,DARK_MODE_TEXT:ym.GREYSCALE_95,DARK_MODE_BORDER:ym.GREYSCALE_95,DARK_MODE_DISABLED:ym.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:ym.GREYSCALE_95,SELECTED:PC.primary.main,LINK:PC.info.main,ERROR:PC.error.main},IC=(e,t=MC.TEXT,r=MC.WHITE)=>{const n=oe(e??""),o=oe(t),i=oe(r);return n.isInvalid()?t:function(e,t,r){const n=ie(e,t),o=ie(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},kC=e=>{const t=e.getStyle("","","dataColors.selected")||MC.SELECTED,r=function(e,t){const r=oe("#FFFFFF"),n=oe(e),o=oe(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ie(r,n),a=ie(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,MC.TEXT);return{background:t,color:r}},DC=(e,t)=>{const r=oe(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},TC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},OC=e=>{const t=oe(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},LC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},qC=e=>{e.stopPropagation(),e.preventDefault()},NC=e=>!!e&&0===oe(e).a,_C="#grid",jC=(e,t,r,n=MC.WHITE)=>e&&!NC(e)?e:NC(t)?r&&!NC(r)?r:n:t,zC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},FC=(e,t,r,n,o)=>{const i=zC(".qv-object .qv-inner-object",r),a=zC(".qv-panel-sheet",r),s=zC(_C,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return OC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=oe(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=NC(d),f=!NC(h=p?s:d)&&IC(h,MC.TEXT,MC.DARK_MODE_TEXT)===Q(MC.DARK_MODE_TEXT);var h;return{color:d,headerColor:jC(l,d,s),isDark:f}},$C=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(_C),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:FC(t,l,r,a,s)}),[l.name(),r,a,s,t,u])};const HC=3,BC=/\n/g;function WC(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const VC=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=HC,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=wt(e=>{if(void 0===e)return 0;if(a){const t=e.split(BC).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(BC," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=wt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(BC):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=WC(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function UC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=HC,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=A(()=>VC({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var GC,YC=B;GC=YC.createRoot,YC.hydrateRoot;const KC="Source Sans Pro, sans-serif",XC=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=xe(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,KC].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function JC(e,t){const[r,n]=P(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var ZC={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 QC=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ZC).forEach(t=>{e.add(ZC[t])})}}(e)},[e]),e),eE="12px",tE="nebula-table-utils-head-menu-button",rE="nebula-table-utils-head-menu-wrapper",nE="nebula-table-utils-head-menu",oE="nebula-table-utils-head-menu-list-id",iE="sn-copy-cell";let aE=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 sE="nebula-table-utils-column-adjuster";let lE=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}({}),uE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const cE={darker:.15,brighter:.3,opacity:.03},dE={darker:.3,brighter:.5,opacity:.05};let pE=function(e){return e.Cyclic="C",e}({});const fE=document.createElement("textarea");function hE(e){fE.value=e,document.body.appendChild(fE),fE.select(),fE.setSelectionRange(0,fE.value.length),document.execCommand("copy"),document.body.removeChild(fE)}fE.style.position="absolute",fE.style.left="-9999px",fE.setAttribute("readonly","");const mE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{hE(t)}):hE(t))};function gE(e){return"init"in e}function vE(e){return!!e.write}function bE(e){return"v"in e||"e"in e}function yE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function xE(e){return"function"==typeof(null==e?void 0:e.then)}function SE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function wE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const CE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function EE(e){return e.i||(e.i=CE()),e.r||(e.r=CE()),e.c||(e.c=CE()),e.m||(e.m=CE()),e.u||(e.u=CE()),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 RE=(e,t,...r)=>t.read(...r),AE=(e,t,...r)=>t.write(...r),PE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},ME=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},IE=(e,t)=>{var r;const n=UE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},kE=e=>{const t=UE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},DE=e=>{const t=UE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of wE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(n.set(r,i.n),a(e,r),s(e,r)),n.delete(r)}},TE=new WeakSet,OE=(e,t)=>{var r,n;const o=UE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],v=o[26],b=c(e,t);if(bE(b)){if(i.has(t)&&a.get(t)!==b.n)return b;let r=!1;for(const[t,n]of b.d)if(f(e,t).n!==n){r=!0;break}if(!r)return b}let y=!0;const x=new Set(b.d.keys()),S=new Map,w=()=>{for(const e of x)S.has(e)||b.d.delete(e)},C=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},E=r=>{var n;if(r===t){const t=c(e,r);if(!bE(t)){if(!gE(r))throw new Error("no atom init");g(e,r,r.init)}return yE(t)}const o=f(e,r);try{return yE(o)}finally{S.set(r,o.n),b.d.set(r,o.n),xE(b.v)&&SE(t,b.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),y||C()}};let R,A;const P={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||vE(t)||console.warn("setSelf function cannot be used with read-only atom"),!A&&vE(t)&&(A=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&y&&console.warn("setSelf function cannot be called in sync"),!y)try{return h(e,t,...r)}finally{p(e),d(e)}}),A}},M=b.n,I=a.get(t)===M;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&TE.delete(e);const n=u(e,t,E,P);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&TE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),xE(n)){v(e,n,()=>null==R?void 0:R.abort());const t=()=>{w(),C()};n.then(t,t)}else w();return null==(r=l.r)||r.call(l,t),b}catch(e){return delete b.v,b.e=e,++b.n,b}finally{y=!1,b.n!==M&&I&&(a.set(t,b.n),s.add(t),null==(n=l.c)||n.call(l,t))}},LE=(e,t)=>{const r=UE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of wE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},qE=(e,t,...r)=>{const n=UE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20];let m=!0;const g=t=>yE(c(e,t)),v=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!gE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&TE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{m||(u(e),l(e))}};try{return a(e,t,g,v,...r)}finally{m=!1}},NE=(e,t)=>{var r;const n=UE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},_E=(e,t)=>{var r;const n=UE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),vE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},jE=(e,t)=>{var r,n;const o=UE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},zE=(e,t,r)=>{const n=UE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(xE(r))for(const n of a.d.keys())SE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,xE(l)&&i(e,l))},FE=(e,t)=>yE((0,UE(e)[14])(e,t)),$E=(e,t,...r)=>{const n=UE(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},HE=(e,t,r)=>{const n=UE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},BE=(e,t,r)=>{const n=UE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},WE=(e,t)=>{const r=UE(e)[25].get(t);null==r||r.forEach(e=>e())},VE=new WeakMap,UE=e=>{const t=VE.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function GE(e){const t=UE(e),r=t[24];return r?r(t):t}let YE,KE=0;function XE(e,t){const r="atom"+ ++KE,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=JE,n.write=ZE),t&&(n.write=t),n}function JE(e){return e(this)}function ZE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function QE(){return function(...e){const t={get:e=>(0,UE(t)[21])(t,e),set:(e,...r)=>(0,UE(t)[22])(t,e,...r),sub:(e,r)=>(0,UE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},RE,AE,PE,ME,IE,kE,DE,OE,LE,qE,NE,_E,jE,zE,FE,$E,HE,void 0,new WeakMap,BE,WE].map((t,r)=>e[r]||t);return VE.set(t,Object.freeze(r)),t}()}const eR=I(void 0);function tR(e){return L(eR)||(YE||(YE=QE(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=YE),globalThis.__JOTAI_DEFAULT_STORE__!==YE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),YE)}function rR({children:e,store:t}){const r=M(null);return t?w(eR.Provider,{value:t},e):(null===r.current&&(r.current=QE()),w(eR.Provider,{value:r.current},e))}const nR=e=>"function"==typeof(null==e?void 0:e.then),oR=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},iR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(oR(e),e)}),aR=new WeakMap,sR=(e,t,r)=>{const n=GE(e)[26];let o=aR.get(t);return o||(o=new Promise((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();nR(t)?(aR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),aR.set(t,o)),o};function lR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=tR(),[[i,a,s],l]=k(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),D(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);nR(t)&&oR(sR(o,t,()=>o.get(e)))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)});return l(),t},[o,e,r,n]),T(u),nR(u)){const t=sR(o,u,()=>o.get(e));return n&&oR(t),iR(t)}return u}function uR(e,t){const r=tR();return O((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function cR(e,t){return[lR(e),uR(e)]}const dR=XE(void 0),pR=XE({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),fR=XE({}),hR=XE({}),mR=XE(e=>{const t=e(hR);return e=>t.flags.isEnabled(e)}),gR=XE(!1),vR=XE({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),bR=XE(e=>e(vR).qHyperCube.qSize.qcy),yR=XE(e=>!!e(vR).snapshotData),xR=XE(e=>e(vR).qHyperCube.qDimensionInfo.length),SR=XE(e=>e(vR).qStateName),wR=XE(e=>e(vR).snapshotData),CR=XE(e=>!1!==e(vR).usePagination),ER=XE(e=>!e(mR)("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||!1!==e(vR).accessibleHeader),RR=XE(),AR=XE(!1),PR=XE(e=>e(RR),(e,t,r)=>{t(RR,r),t(AR,r.isModal())}),MR=XE(),IR=XE(e=>{const t=e(MR),r=e(yR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(MR,r)}),kR=XE(e=>!!e(IR).active),DR=XE(e=>!!e(IR).passive),TR=XE(e=>!!e(IR).select),OR=XE(e=>!!e(IR).scroll),LR=XE(e=>{const t=e(kR),r=e(AR);return t&&!r}),qR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),NR=XE(),_R=XE(e=>e(NR)?.direction),jR=XE(e=>e(NR)?.footerContainer),zR=XE(e=>e(NR)?.viewState),FR=XE(e=>e(NR)?.freeResize),$R=XE(e=>{const t=e(vR),r=e(zR),n=e(CR);return void 0!==r?.usePagination?r.usePagination:n||qR(t,r)}),HR=XE({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),BR=XE(e=>e(HR),(e,t,r)=>{e($R)&&t(HR,r)}),WR=XE(),VR=XE(e=>{const t=e(WR);if(t&&"getEffectiveProperties"in t)return t}),UR={width:0,height:0,top:0,left:0},GR=XE(UR),YR=XE(UR),KR=XE(e=>e(GR),(e,t,r)=>{const n=e(vR),o=e(FR),i=e(GR),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(YR,r),t(GR,a?{...r,...n.snapshotData?.content?.size}:r))}),XR=XE({}),JR=new WeakMap,ZR=XE(e=>{const t=e(XR),r=JR.get(t);if(r)return r;const n=GC(t);return JR.set(t,n),n}),QR=XE({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),eA=XE({get:e=>e,add:()=>{},language:()=>"en"});var tA={exports:{}};self,tA.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(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 y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=b(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){I(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function _(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(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(_(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(_(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(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var b=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(v,b,y);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,be,i(e,ve)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,be)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:je};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[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)");ke[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function _e(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},b=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=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:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),b({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,P=void 0===A?O():A;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:b}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),k("qMaxStackedCells",v,b),k("qNoOfLeftDims",v,b),D("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",v,b,"S"),D("qReductionMode",v,b,"N"),D("qSortbyYValue",v,b),D("qIndentMode",v,b),D("qShowTotalsAbove",v,b),I(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:b.qMeasures,modifierTypes:M}),p&&W(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Me,quarantineName:Pe})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})}},He={hypercube:V,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})();var rA=Ut(tA.exports);const nA="qHyperCubeDef.qMeasures",oA="measures",iA="qHyperCubeDef.qDimensions",aA="dimensions",sA="qDef.representation",lA="tableRepresentation",uA="qDef.conditionalColoring",cA="conditionalColoring",dA="qMiniChartDef",pA="miniChartDef",fA=({propertyTree:e,hyperCubePath:t})=>{const r=rA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return St(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),rA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),rA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),rA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{rA.quarantineArrayProp({properties:e,arrayPath:iA,itemPath:sA,arrayName:aA,quarantineName:lA}),rA.quarantineArrayProp({properties:e,arrayPath:nA,itemPath:sA,arrayName:oA,quarantineName:lA}),rA.quarantineArrayProp({properties:e,arrayPath:nA,itemPath:uA,arrayName:oA,quarantineName:cA}),rA.quarantineArrayProp({properties:e,arrayPath:nA,itemPath:dA,arrayName:oA,quarantineName:pA})})(r.properties),r};const hA=/^q[A-Z]/,mA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],gA=e=>"object"==typeof e&&null!==e,vA=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!hA.test(e)&&!mA.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>gA(e)?vA(e,`${o}.${t}`):e):gA(n)&&(e[r]=vA(n,o))}),e),bA=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:uE.Pixels,pixels:e}:{type:uE.FitToContent}:i.qDef.columnWidth=e}return i},yA=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}vA(e.properties)}const a=rA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(rA.conditionalShow.unquarantine(a.qProperty),i)St(a,"qProperty.totals.show",!1),St(a,"qProperty.usePagination",!0),St(a,"qProperty.accessibleHeader",!0);else{rA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{rA.unquarantineArrayProp({properties:e,arrayPath:iA,itemPath:sA,arrayName:aA,quarantineName:lA}),rA.unquarantineArrayProp({properties:e,arrayPath:nA,itemPath:sA,arrayName:oA,quarantineName:lA}),rA.unquarantineArrayProp({properties:e,arrayPath:nA,itemPath:uA,arrayName:oA,quarantineName:cA}),rA.unquarantineArrayProp({properties:e,arrayPath:nA,itemPath:dA,arrayName:oA,quarantineName:pA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>bA(e,t,n)),measures:a.filter(e=>e>=o).map(e=>bA(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(St(a,"qProperty.qHyperCubeDef.qDimensions",o),St(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var xA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},SA=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}(SA||{}),wA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(wA||{}),CA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(CA||{}),EA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(EA||{});const RA=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,AA=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case CA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case SA.BEGINNING_OF_WORD:t="*^",r="*";break;case SA.ENDS_WITH:t="*";break;case SA.STARTS_WITH:r="*";break;case SA.MATCHES_EXACTLY:break;case SA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case CA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===wA.GENERAL,n=t?.modifier?.type===EA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${RA(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${RA(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${RA(t.firstValue?.field)})`):(i=`${RA(e.field)}`,a=`${t.firstValue?.aggregator}(total ${RA(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${RA(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${RA(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case CA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case CA.VALUES:default:o=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==o&&r.push(`${t}${o}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},PA=[];for(let e=0;e<256;++e)PA.push((e+256).toString(16).slice(1));let MA;const IA=new Uint8Array(16);var kA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DA(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!MA){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");MA=crypto.getRandomValues.bind(crypto)}return MA(IA)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(PA[e[t+0]]+PA[e[t+1]]+PA[e[t+2]]+PA[e[t+3]]+"-"+PA[e[t+4]]+PA[e[t+5]]+"-"+PA[e[t+6]]+PA[e[t+7]]+"-"+PA[e[t+8]]+PA[e[t+9]]+"-"+PA[e[t+10]]+PA[e[t+11]]+PA[e[t+12]]+PA[e[t+13]]+PA[e[t+14]]+PA[e[t+15]]).toLowerCase()}(n)}const TA=()=>crypto?.randomUUID?.()??function(e){return kA.randomUUID&&!e?kA.randomUUID():DA(e)}();class OA extends s{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}#l(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map((e,t)=>[e.qDef.cId,t]));this.hcProperties.qColumnOrder=e.reduce((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e},[])}async toggleAlternatives(e,t){await Promise.all(e.map(e=>"dimension"===e.type?e.isAlternative?this.#a(e.id):this.#s(e.id):e.isAlternative?this.#o(e.id):this.#i(e.id))),this.#l(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce((e,t,r)=>(e[t]=r,e),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#l(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:TA(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=AA(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#u(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=AA(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#u(e);return t}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const LA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function qA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function NA(e){return e>0?0:1}function _A(e){return e.translator.get("Visualizations.Descriptions.Column")}function jA(e){return{measures:{min:NA,max:1e3,description:()=>_A(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;qA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;LA(o,i)}},dimensions:{min:NA,max:1e3,description:()=>_A(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return qA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;LA(o,n)}}}}let zA=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}({}),FA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const $A=e=>{switch(e?.type){case"url":return zA.Link;case"image":return zA.Image;case"indicator":return zA.Indicator;case"miniChart":return zA.MiniChart;default:return zA.Text}},HA=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),BA=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>$A(e.qDef.representation)===zA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},WA=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:HA({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>$A(e.qDef.representation)===zA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>$A(e.qDef.representation)===zA.Link&&e.qDef.representation?.urlPosition===FA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>$A(e.qDef.representation)===zA.Link&&e.qDef.representation?.urlPosition===FA.Attribute},...BA(r)}},VA=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[zA.Image],i=!n?.("qMiniChartDef")&&t[zA.MiniChart],a=!n?.("tableIndicators")&&t[zA.Indicator],s=o&&t[zA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>$A(e.qDef.representation)===zA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var UA,GA={};UA=GA,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Me});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={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 u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function b(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),v=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:b,getAboveComp:function(e,t,r,n){return v(e,t)+r+b(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var P=i().bind(null,!0),M={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){L(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}M.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(M.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(M.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},M.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},M.clone=function(e){return P({},e)},M.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):P(e,t)};const q=M;var N="accumulation";function _(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=_(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(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(B(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(B(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(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(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:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",ve="qDef.qLabelExpression",be="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?be:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:ve}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,be,s(e,ge)),a(e,ye,s(e,ve)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,be)),a(e,ve,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="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},Ae(e)}var Pe={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Me={modifiers:Pe,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Pe[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:_e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ye({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Pe[r.type].updateModifier&&Pe[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Pe[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Pe[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:r,layout:n})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Pe[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&je(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Pe[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:_e(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Pe[e.type]&&Pe[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=_e(t);if(We({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ie[t.id].masterItemSubscriber=Ie[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void c();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in UA.default=n.default,n)-1===["default"].indexOf(Ze)&&(UA[Ze]=n[Ze]);Object.defineProperty(UA,"__esModule",{value:!0})})();var YA=Ut(GA);const KA={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},XA={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},JA=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!YA.hasActiveModifiers({measures:[e],properties:t.properties})||YA.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),ZA={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uE.Auto,translation:"Common.Auto"},{value:uE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:uE.Pixels,translation:"Object.Table.Column.Pixels"},{value:uE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===uE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===uE.Percentage}},QA=e=>({...KA,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...XA,...ZA}),eP={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},tP=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:JA(e)}},rP=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:eP},presentation:{type:"items",translation:"properties.presentation",items:{...QA(e),...WA(e)}}}}}),nP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:tP(e)},presentation:{type:"items",translation:"properties.presentation",items:{...QA(e),...VA(e,{[zA.Image]:!0,[zA.Indicator]:!0,[zA.MiniChart]:!0})}}}}}),oP=e=>({...rP(e),...nP(e)}),iP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...oP(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),aP={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}},sP=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},lP=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),uP=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),cP=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},dP=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>cP(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...xe(n).filter(e=>!a.includes(e)).map(e=>cP(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),pP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],fP=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>cP(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...pP.filter(e=>!i.includes(e)).map(e=>cP(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),hP=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:dP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:fP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:uP(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:uP(`${e}.background`,"properties.background",(t,r)=>{const n=r?MC.WHITE:MC.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),mP=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:uP(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:uP(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),gP=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},vP=e=>e.grid?.zebraStripes?.show,bP={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},yP=e=>e?.content?.hoverEffect,xP={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:yP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:yP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},SP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,wP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:hP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:gP,disableNoneCallback:SP}),dimensionValueSection:hP({section:"dimensionValues",translator:t,flags:e,getThemeValue:gP}),measureValueSection:hP({section:"measureValues",translator:t,flags:e,getThemeValue:gP}),totalRowSection:hP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:gP,disableNoneCallback:SP}),nullValues:mP({section:"nullValues",fallbackBackground:MC.NULL_VALUE_BACKGROUND,getThemeValue:gP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...bP},border:uP("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??MC.BORDER_MEDIUM),divider:uP("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??MC.BORDER_HEAVY)}}}},hoverEffectSection:xP,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:vP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:vP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:vP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:vP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),CP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[wP(e),lP(e),sP(e),{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...aP}}),EP={uses:"sorting"},RP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},AP=e=>({type:"items",component:"accordion",items:{data:iP(e),sorting:EP,addOns:RP,settings:CP(e)}});function PP(e){return{definition:AP(e),exploration:xA,data:jA(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return yA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>fA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new OA(t,e.translator),usePropertyHandler:"sn-table-data"}}}var MP={exports:{}};
102
+ */var sC,lC,uC={},cC={};function dC(){if(sC)return cC;sC=1;var e=Ul;Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var t=(0,e(ny()).default)();return cC.default=t,cC}var pC,fC,hC={},mC={};function gC(){if(fC)return hC;fC=1;var e=Ul;Object.defineProperty(hC,"__esModule",{value:!0}),hC.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(ju()),r=hg,n=function(){if(pC)return mC;pC=1;var e=Ul;Object.defineProperty(mC,"__esModule",{value:!0}),mC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},mC.getUnit=r,mC.toUnitless=n,mC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},mC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},mC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},mC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(Lg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return mC}();return hC}var vC,bC={};var yC,xC={};var SC,wC={};var CC,EC={};!function(e){var t=Ul,r=Cm;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Em;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(ny()),a=t(function(){if(oy)return iy;oy=1;var e=Ul;Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=hg,r=e(ny());return iy}()),s=t(function(){if(nC)return ay;nC=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.default=function(t){return(0,e.createStyles)(t)};var e=aC;return ay}()),l=t(function(){if(lC)return uC;lC=1;var e=Ul;Object.defineProperty(uC,"__esModule",{value:!0}),uC.default=void 0;var t=e(ju()),r=aC,n=e(dC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return uC.default=o,uC}()),u=t(gC()),c=t(function(){if(vC)return bC;vC=1;var e=Ul;Object.defineProperty(bC,"__esModule",{value:!0}),bC.default=void 0;var t=e(ju()),r=aC,n=e(dC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return bC.default=o,bC}()),d=Qb();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(function(){if(yC)return xC;yC=1;var e=Ul;Object.defineProperty(xC,"__esModule",{value:!0}),xC.default=function(){return(0,t.useTheme)()||r.default};var t=aC;e(S);var r=e(dC());return xC}()),f=t(function(){if(SC)return wC;SC=1;var e=Ul;Object.defineProperty(wC,"__esModule",{value:!0}),wC.default=void 0;var t=e(ju()),r=aC,n=e(dC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return wC.default=o,wC}()),h=t(function(){if(CC)return EC;CC=1;var e=Ul;Object.defineProperty(EC,"__esModule",{value:!0}),EC.default=void 0;var t=aC,r=e(dC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return EC.default=n,EC}()),m=aC}(ym),ym.alpha(qt.GREYSCALE_0,.05),ym.alpha(qt.GREEN_PALE,.5),ym.alpha(qt.BLUE_PALE,.5),ym.alpha(qt.GREEN_PALE,.5),ym.alpha(qt.BLUE_PALE,.5),ym.alpha(qt.GREEN_PALE,.5),ym.alpha(qt.BLUE_PALE,.5),ym.alpha(qt.GREEN_PALE,.5),ym.alpha(qt.BLUE_PALE,.5),ym.alpha(qt.GREEN_PALE,.5),ym.alpha(qt.BLUE_PALE,.5);const RC=(e="light")=>({components:gm(),palette:vm(),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:_t,fontWeightLight:$t,fontWeightRegular:Ht,fontWeightMedium:Bt,fontWeightBold:Wt,htmlFontSize:_t,fontFamily:Vt.FONT_FAMILY,button:{fontWeight:Bt,fontSize:_t,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:zt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:Bt,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:Bt,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Nt,color:qt.TEXT_SECONDARY}},shape:{borderRadius:Ft}}),AC=RC().palette,PC={TEXT:AC.text.primary,DISABLED:AC.text.disabled,HOVER:AC.action.hover,WHITE:bm.GREYSCALE_100,BORDER_LIGHT:bm.GREYSCALE_90,BORDER_MEDIUM:bm.GREYSCALE_85,BORDER_HEAVY:bm.GREYSCALE_50,DARK_MODE_TEXT:bm.GREYSCALE_95,DARK_MODE_BORDER:bm.GREYSCALE_95,DARK_MODE_DISABLED:bm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:bm.GREYSCALE_95,SELECTED:AC.primary.main,LINK:AC.info.main,ERROR:AC.error.main},MC=(e,t=PC.TEXT,r=PC.WHITE)=>{const n=oe(e??""),o=oe(t),i=oe(r);return n.isInvalid()?t:function(e,t,r){const n=ie(e,t),o=ie(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},IC=e=>{const t=e.getStyle("","","dataColors.selected")||PC.SELECTED,r=function(e,t){const r=oe("#FFFFFF"),n=oe(e),o=oe(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ie(r,n),a=ie(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,PC.TEXT);return{background:t,color:r}},kC=(e,t)=>{const r=oe(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},DC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},TC=e=>{const t=oe(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},OC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},LC=e=>{e.stopPropagation(),e.preventDefault()},qC=e=>!!e&&0===oe(e).a,NC="#grid",_C=(e,t,r,n=PC.WHITE)=>e&&!qC(e)?e:qC(t)?r&&!qC(r)?r:n:t,jC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},zC=(e,t,r,n,o)=>{const i=jC(".qv-object .qv-inner-object",r),a=jC(".qv-panel-sheet",r),s=jC(NC,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return TC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=oe(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=qC(d),f=!qC(h=p?s:d)&&MC(h,PC.TEXT,PC.DARK_MODE_TEXT)===Q(PC.DARK_MODE_TEXT);var h;return{color:d,headerColor:_C(l,d,s),isDark:f}},FC=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(NC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:zC(t,l,r,a,s)}),[l.name(),r,a,s,t,u])};const $C=3,HC=/\n/g;function BC(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const WC=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=$C,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=wt(e=>{if(void 0===e)return 0;if(a){const t=e.split(HC).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(HC," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=wt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(HC):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=BC(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function VC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=$C,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=A(()=>WC({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var UC,GC=B;UC=GC.createRoot,GC.hydrateRoot;const YC="Source Sans Pro, sans-serif",KC=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=xe(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,YC].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function XC(e,t){const[r,n]=P(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var JC={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 ZC=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(JC).forEach(t=>{e.add(JC[t])})}}(e)},[e]),e),QC="12px",eE="nebula-table-utils-head-menu-button",tE="nebula-table-utils-head-menu-wrapper",rE="nebula-table-utils-head-menu",nE="nebula-table-utils-head-menu-list-id",oE="sn-copy-cell";let iE=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 aE="nebula-table-utils-column-adjuster";let sE=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}({}),lE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const uE={darker:.15,brighter:.3,opacity:.03},cE={darker:.3,brighter:.5,opacity:.05};let dE=function(e){return e.Cyclic="C",e}({});const pE=document.createElement("textarea");function fE(e){pE.value=e,document.body.appendChild(pE),pE.select(),pE.setSelectionRange(0,pE.value.length),document.execCommand("copy"),document.body.removeChild(pE)}pE.style.position="absolute",pE.style.left="-9999px",pE.setAttribute("readonly","");const hE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{fE(t)}):fE(t))};function mE(e){return"init"in e}function gE(e){return!!e.write}function vE(e){return"v"in e||"e"in e}function bE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function yE(e){return"function"==typeof(null==e?void 0:e.then)}function xE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function SE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const wE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function CE(e){return e.i||(e.i=wE()),e.r||(e.r=wE()),e.c||(e.c=wE()),e.m||(e.m=wE()),e.u||(e.u=wE()),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 EE=(e,t,...r)=>t.read(...r),RE=(e,t,...r)=>t.write(...r),AE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},PE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},ME=(e,t)=>{var r;const n=VE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},IE=e=>{const t=VE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},kE=e=>{const t=VE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of SE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(n.set(r,i.n),a(e,r),s(e,r)),n.delete(r)}},DE=new WeakSet,TE=(e,t)=>{var r,n;const o=VE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],v=o[26],b=o[28],y=c(e,t),x=b[0];if(vE(y)){if(i.has(t)&&a.get(t)!==y.n||y.m===x)return y.m=x,y;let r=!1;for(const[t,n]of y.d)if(f(e,t).n!==n){r=!0;break}if(!r)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=new Map,E=()=>{for(const e of w)C.has(e)||y.d.delete(e)},R=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},A=r=>{var n;if(r===t){const t=c(e,r);if(!vE(t)){if(!mE(r))throw new Error("no atom init");g(e,r,r.init)}return bE(t)}const o=f(e,r);try{return bE(o)}finally{C.set(r,o.n),y.d.set(r,o.n),yE(y.v)&&xE(t,y.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),S||R()}};let P,M;const I={get signal(){return P||(P=new AbortController),P.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||gE(t)||console.warn("setSelf function cannot be used with read-only atom"),!M&&gE(t)&&(M=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,...r)}finally{p(e),d(e)}}),M}},k=y.n,D=a.get(t)===k;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&DE.delete(e);const n=u(e,t,A,I);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&DE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),yE(n)){v(e,n,()=>null==P?void 0:P.abort());const t=()=>{E(),R()};n.then(t,t)}else E();return null==(r=l.r)||r.call(l,t),y.m=x,y}catch(e){return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==k&&D&&(a.set(t,y.n),s.add(t),null==(n=l.c)||n.call(l,t))}},OE=(e,t)=>{const r=VE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of SE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},LE=(e,t,...r)=>{const n=VE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20],m=n[28];let g=!0;const v=t=>bE(c(e,t)),b=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!mE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&DE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(++m[0],o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{g||(u(e),l(e))}};try{return a(e,t,v,b,...r)}finally{g=!1}},qE=(e,t)=>{var r;const n=VE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},NE=(e,t)=>{var r;const n=VE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),gE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},_E=(e,t)=>{var r,n;const o=VE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},jE=(e,t,r)=>{const n=VE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(yE(r))for(const n of a.d.keys())xE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,yE(l)&&i(e,l))},zE=(e,t)=>bE((0,VE(e)[14])(e,t)),FE=(e,t,...r)=>{const n=VE(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},$E=(e,t,r)=>{const n=VE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},HE=(e,t,r)=>{const n=VE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},BE=(e,t)=>{const r=VE(e)[25].get(t);null==r||r.forEach(e=>e())},WE=new WeakMap,VE=e=>{const t=WE.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function UE(e){const t=VE(e),r=t[24];return r?r(t):t}let GE,YE=0;function KE(e,t){const r="atom"+ ++YE,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=XE,n.write=JE),t&&(n.write=t),n}function XE(e){return e(this)}function JE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function ZE(){return function(...e){const t={get:e=>(0,VE(t)[21])(t,e),set:(e,...r)=>(0,VE(t)[22])(t,e,...r),sub:(e,r)=>(0,VE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},EE,RE,AE,PE,ME,IE,kE,TE,OE,LE,qE,NE,_E,jE,zE,FE,$E,void 0,new WeakMap,HE,BE,[0]].map((t,r)=>e[r]||t);return WE.set(t,Object.freeze(r)),t}()}const QE=I(void 0);function eR(e){return L(QE)||(GE||(GE=ZE(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=GE),globalThis.__JOTAI_DEFAULT_STORE__!==GE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),GE)}function tR({children:e,store:t}){const r=M(null);return t?w(QE.Provider,{value:t},e):(null===r.current&&(r.current=ZE()),w(QE.Provider,{value:r.current},e))}const rR=e=>"function"==typeof(null==e?void 0:e.then),nR=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},oR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(nR(e),e)}),iR=new WeakMap,aR=(e,t,r)=>{const n=UE(e)[26];let o=iR.get(t);return o||(o=new Promise((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();rR(t)?(iR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),iR.set(t,o)),o};function sR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=eR(),[[i,a,s],l]=k(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),D(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);rR(t)&&nR(aR(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(l,r);l()});return l(),t},[o,e,r,n]),T(u),rR(u)){const t=aR(o,u,()=>o.get(e));return n&&nR(t),oR(t)}return u}function lR(e,t){const r=eR();return O((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function uR(e,t){return[sR(e),lR(e)]}const cR=KE(void 0),dR=KE({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),pR=KE({}),fR=KE({}),hR=KE(e=>{const t=e(fR);return e=>t.flags.isEnabled(e)}),mR=KE(!1),gR=KE({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),vR=KE(e=>e(gR).qHyperCube.qSize.qcy),bR=KE(e=>!!e(gR).snapshotData),yR=KE(e=>e(gR).qHyperCube.qDimensionInfo.length),xR=KE(e=>e(gR).qStateName),SR=KE(e=>e(gR).snapshotData),wR=KE(e=>!1!==e(gR).usePagination),CR=KE(e=>!e(hR)("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||!1!==e(gR).accessibleHeader),ER=KE(),RR=KE(!1),AR=KE(e=>e(ER),(e,t,r)=>{t(ER,r),t(RR,r.isModal())}),PR=KE(),MR=KE(e=>{const t=e(PR),r=e(bR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(PR,r)}),IR=KE(e=>!!e(MR).active),kR=KE(e=>!!e(MR).passive),DR=KE(e=>!!e(MR).select),TR=KE(e=>!!e(MR).scroll),OR=KE(e=>{const t=e(IR),r=e(RR);return t&&!r}),LR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),qR=KE(),NR=KE(e=>e(qR)?.direction),_R=KE(e=>e(qR)?.footerContainer),jR=KE(e=>e(qR)?.viewState),zR=KE(e=>e(qR)?.freeResize),FR=KE(e=>{const t=e(gR),r=e(jR),n=e(wR);return void 0!==r?.usePagination?r.usePagination:n||LR(t,r)}),$R=KE({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),HR=KE(e=>e($R),(e,t,r)=>{e(FR)&&t($R,r)}),BR=KE(),WR=KE(e=>{const t=e(BR);if(t&&"getEffectiveProperties"in t)return t}),VR={width:0,height:0,top:0,left:0},UR=KE(VR),GR=KE(VR),YR=KE(e=>e(UR),(e,t,r)=>{const n=e(gR),o=e(zR),i=e(UR),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(GR,r),t(UR,a?{...r,...n.snapshotData?.content?.size}:r))}),KR=KE({}),XR=new WeakMap,JR=KE(e=>{const t=e(KR),r=XR.get(t);if(r)return r;const n=UC(t);return XR.set(t,n),n}),ZR=KE({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),QR=KE({get:e=>e,add:()=>{},language:()=>"en"});var eA={exports:{}};self,eA.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(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 y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=b(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){I(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function _(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(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(_(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(_(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(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var b=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(v,b,y);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,be,i(e,ve)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,be)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:je};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[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)");ke[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function _e(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},b=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=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:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),b({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,P=void 0===A?O():A;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:b}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),k("qMaxStackedCells",v,b),k("qNoOfLeftDims",v,b),D("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",v,b,"S"),D("qReductionMode",v,b,"N"),D("qSortbyYValue",v,b),D("qIndentMode",v,b),D("qShowTotalsAbove",v,b),I(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:b.qMeasures,modifierTypes:M}),p&&W(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Me,quarantineName:Pe})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})}},He={hypercube:V,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})();var tA=Ut(eA.exports);const rA="qHyperCubeDef.qMeasures",nA="measures",oA="qHyperCubeDef.qDimensions",iA="dimensions",aA="qDef.representation",sA="tableRepresentation",lA="qDef.conditionalColoring",uA="conditionalColoring",cA="qMiniChartDef",dA="miniChartDef",pA=({propertyTree:e,hyperCubePath:t})=>{const r=tA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return St(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),tA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),tA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),tA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{tA.quarantineArrayProp({properties:e,arrayPath:oA,itemPath:aA,arrayName:iA,quarantineName:sA}),tA.quarantineArrayProp({properties:e,arrayPath:rA,itemPath:aA,arrayName:nA,quarantineName:sA}),tA.quarantineArrayProp({properties:e,arrayPath:rA,itemPath:lA,arrayName:nA,quarantineName:uA}),tA.quarantineArrayProp({properties:e,arrayPath:rA,itemPath:cA,arrayName:nA,quarantineName:dA})})(r.properties),r};const fA=/^q[A-Z]/,hA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],mA=e=>"object"==typeof e&&null!==e,gA=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!fA.test(e)&&!hA.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>mA(e)?gA(e,`${o}.${t}`):e):mA(n)&&(e[r]=gA(n,o))}),e),vA=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:lE.Pixels,pixels:e}:{type:lE.FitToContent}:i.qDef.columnWidth=e}return i},bA=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}gA(e.properties)}const a=tA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(tA.conditionalShow.unquarantine(a.qProperty),i)St(a,"qProperty.totals.show",!1),St(a,"qProperty.usePagination",!0),St(a,"qProperty.accessibleHeader",!0);else{tA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{tA.unquarantineArrayProp({properties:e,arrayPath:oA,itemPath:aA,arrayName:iA,quarantineName:sA}),tA.unquarantineArrayProp({properties:e,arrayPath:rA,itemPath:aA,arrayName:nA,quarantineName:sA}),tA.unquarantineArrayProp({properties:e,arrayPath:rA,itemPath:lA,arrayName:nA,quarantineName:uA}),tA.unquarantineArrayProp({properties:e,arrayPath:rA,itemPath:cA,arrayName:nA,quarantineName:dA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>vA(e,t,n)),measures:a.filter(e=>e>=o).map(e=>vA(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(St(a,"qProperty.qHyperCubeDef.qDimensions",o),St(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var yA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},xA=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}(xA||{}),SA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(SA||{}),wA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(wA||{}),CA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(CA||{});const EA=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,RA=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case wA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case xA.BEGINNING_OF_WORD:t="*^",r="*";break;case xA.ENDS_WITH:t="*";break;case xA.STARTS_WITH:r="*";break;case xA.MATCHES_EXACTLY:break;case xA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case wA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===SA.GENERAL,n=t?.modifier?.type===CA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${EA(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${EA(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${EA(t.firstValue?.field)})`):(i=`${EA(e.field)}`,a=`${t.firstValue?.aggregator}(total ${EA(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${EA(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${EA(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case wA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case wA.VALUES:default:o=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==o&&r.push(`${t}${o}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},AA=[];for(let e=0;e<256;++e)AA.push((e+256).toString(16).slice(1));let PA;const MA=new Uint8Array(16);var IA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kA(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!PA){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");PA=crypto.getRandomValues.bind(crypto)}return PA(MA)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(AA[e[t+0]]+AA[e[t+1]]+AA[e[t+2]]+AA[e[t+3]]+"-"+AA[e[t+4]]+AA[e[t+5]]+"-"+AA[e[t+6]]+AA[e[t+7]]+"-"+AA[e[t+8]]+AA[e[t+9]]+"-"+AA[e[t+10]]+AA[e[t+11]]+AA[e[t+12]]+AA[e[t+13]]+AA[e[t+14]]+AA[e[t+15]]).toLowerCase()}(n)}const DA=()=>crypto?.randomUUID?.()??function(e){return IA.randomUUID&&!e?IA.randomUUID():kA(e)}();class TA extends s{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}#l(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map((e,t)=>[e.qDef.cId,t]));this.hcProperties.qColumnOrder=e.reduce((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e},[])}async toggleAlternatives(e,t){await Promise.all(e.map(e=>"dimension"===e.type?e.isAlternative?this.#a(e.id):this.#s(e.id):e.isAlternative?this.#o(e.id):this.#i(e.id))),this.#l(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce((e,t,r)=>(e[t]=r,e),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#l(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:DA(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=RA(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#u(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=RA(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#u(e);return t}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const OA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function LA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function qA(e){return e>0?0:1}function NA(e){return e.translator.get("Visualizations.Descriptions.Column")}function _A(e){return{measures:{min:qA,max:1e3,description:()=>NA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;LA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;OA(o,i)}},dimensions:{min:qA,max:1e3,description:()=>NA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return LA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;OA(o,n)}}}}let jA=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}({}),zA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const FA=e=>{switch(e?.type){case"url":return jA.Link;case"image":return jA.Image;case"indicator":return jA.Indicator;case"miniChart":return jA.MiniChart;default:return jA.Text}},$A=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),HA=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>FA(e.qDef.representation)===jA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},BA=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:$A({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>FA(e.qDef.representation)===jA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>FA(e.qDef.representation)===jA.Link&&e.qDef.representation?.urlPosition===zA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>FA(e.qDef.representation)===jA.Link&&e.qDef.representation?.urlPosition===zA.Attribute},...HA(r)}},WA=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[jA.Image],i=!n?.("qMiniChartDef")&&t[jA.MiniChart],a=!n?.("tableIndicators")&&t[jA.Indicator],s=o&&t[jA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>FA(e.qDef.representation)===jA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var VA,UA={};VA=UA,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Me});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={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 u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function b(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),v=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:b,getAboveComp:function(e,t,r,n){return v(e,t)+r+b(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var P=i().bind(null,!0),M={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){L(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}M.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(M.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(M.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},M.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},M.clone=function(e){return P({},e)},M.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):P(e,t)};const q=M;var N="accumulation";function _(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=_(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(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(B(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(B(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(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(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:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",ve="qDef.qLabelExpression",be="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?be:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:ve}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,be,s(e,ge)),a(e,ye,s(e,ve)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,be)),a(e,ve,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="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},Ae(e)}var Pe={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Me={modifiers:Pe,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Pe[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:_e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ye({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Pe[r.type].updateModifier&&Pe[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Pe[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Pe[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:r,layout:n})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Pe[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&je(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Pe[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:_e(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Pe[e.type]&&Pe[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=_e(t);if(We({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ie[t.id].masterItemSubscriber=Ie[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void c();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in VA.default=n.default,n)-1===["default"].indexOf(Ze)&&(VA[Ze]=n[Ze]);Object.defineProperty(VA,"__esModule",{value:!0})})();var GA=Ut(UA);const YA={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},KA={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},XA=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!GA.hasActiveModifiers({measures:[e],properties:t.properties})||GA.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),JA={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:lE.Auto,translation:"Common.Auto"},{value:lE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:lE.Pixels,translation:"Object.Table.Column.Pixels"},{value:lE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:lE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===lE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===lE.Percentage}},ZA=e=>({...YA,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...KA,...JA}),QA={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},eP=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:XA(e)}},tP=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:QA},presentation:{type:"items",translation:"properties.presentation",items:{...ZA(e),...BA(e)}}}}}),rP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:eP(e)},presentation:{type:"items",translation:"properties.presentation",items:{...ZA(e),...WA(e,{[jA.Image]:!0,[jA.Indicator]:!0,[jA.MiniChart]:!0})}}}}}),nP=e=>({...tP(e),...rP(e)}),oP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...nP(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),iP={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}},aP=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},sP=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),lP=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),uP=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},cP=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>uP(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...xe(n).filter(e=>!a.includes(e)).map(e=>uP(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),dP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],pP=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>uP(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...dP.filter(e=>!i.includes(e)).map(e=>uP(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),fP=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:cP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:pP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:lP(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:lP(`${e}.background`,"properties.background",(t,r)=>{const n=r?PC.WHITE:PC.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),hP=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:lP(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:lP(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),mP=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},gP=e=>e.grid?.zebraStripes?.show,vP={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},bP=e=>e?.content?.hoverEffect,yP={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:bP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:bP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},xP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,SP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:fP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:mP,disableNoneCallback:xP}),dimensionValueSection:fP({section:"dimensionValues",translator:t,flags:e,getThemeValue:mP}),measureValueSection:fP({section:"measureValues",translator:t,flags:e,getThemeValue:mP}),totalRowSection:fP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:mP,disableNoneCallback:xP}),nullValues:hP({section:"nullValues",fallbackBackground:PC.NULL_VALUE_BACKGROUND,getThemeValue:mP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...vP},border:lP("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??PC.BORDER_MEDIUM),divider:lP("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??PC.BORDER_HEAVY)}}}},hoverEffectSection:yP,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:gP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:gP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:gP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:gP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),wP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[SP(e),sP(e),aP(e),{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...iP}}),CP={uses:"sorting"},EP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},RP=e=>({type:"items",component:"accordion",items:{data:oP(e),sorting:CP,addOns:EP,settings:wP(e)}});function AP(e){return{definition:RP(e),exploration:yA,data:_A(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return bA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>pA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new TA(t,e.translator),usePropertyHandler:"sn-table-data"}}}var PP={exports:{}};
103
103
  /*!
104
104
  * CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
105
105
  *
@@ -118,4 +118,4 @@ function Wi(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
118
118
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
119
  * See the License for the specific language governing permissions and
120
120
  * limitations under the License.
121
- */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+c+")",p=o+"(?:\\s*"+i+"|"+("-?"+("(?:[_a-z]|"+r+"|"+c+")")+d+"*")+")?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+o+"(?:\\s*"+i+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+c+")*?",v="(?![a-zA-Z])",b="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+b+"[^;}]+;?)","gi"),P=new RegExp("("+u+"[^\\}]*?})","gi"),M=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+v+y+b,"gi"),D=new RegExp(l+"(right)"+v+y+b,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,q=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),_=new RegExp(l+"(rtl)"+x,"gi"),j=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),W=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),V=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),Y=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(P,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(q,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(_,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(M,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(j,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(W,Q).replace(V,te).replace(U,ne).replace(G,ne).replace(Y,te).replace(K,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(MP,MP.exports);var IP=Ut(MP.exports);function kP(e,t,r){switch(e.type){case Zr:case Jr:case Kr:return e.return=e.return||e.value;case Xr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===Kr&&(e.children=e.value)})}var n=$n(Array.prototype.concat(e.children),kP);return cn(n)?e.return=e.value+"{"+n+"}":""}function DP(e,t,r,n){if(e.type===Qr||"@supports"===e.type||e.type===Xr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Xr)){var o=IP.transform(kP(e));e.children=o?qn(o)[0].children:[],e.return=""}}function TP(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(DP,"name",{value:"stylisRTLPlugin"});const OP=TP(({options:e,...t})=>XE(VC(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);function LP(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function qP(e){const t=XE(()=>[]),r=XE(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!bE(t)){if(!gE(o))throw new Error("no atom init");S(e,o,o.init)}return yE(t)}const i=v(e,o);try{return yE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!gE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),b(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(LP())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=GE(e),d=c[1],p=c[3],f=EE(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],b=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=NP.get(e);r||(r=new Set,NP.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),o&&w.delete(o)}),f.u.add(r,function(){w.delete(u),o&&w.add(o)}),f.c.add(r,function(){a?s=!0:w.add(u)})},LP()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const NP=new WeakMap;class _P{#c={on:new Map,once:new Map};#d=10;#p(e){this.listenerCount(e)>this.#d&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#f(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#p(t)}setMaxListeners(e){this.#d=e}on(e,t){this.#f("on",e,t)}once(e,t){this.#f("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const jP=XE(()=>new _P);let zP=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),FP=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),$P=function(e){return e.A="ascending",e.D="descending",e}({}),HP=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const BP=[0,0],WP=e=>"number"==typeof e&&!Number.isNaN(+e),VP=e=>WP(e.qNum),UP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),GP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),YP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},KP=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return oe(e.localPaletteColors[t].color??"").blend(oe(s.color??""),s.t)},XP=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:GP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:YP(n,t,r)}))),n},JP=(e,t,r,n)=>{const o=XP(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=KP(e,a,t);break}n=i}return r})(o,t);return a},ZP=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!WP(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!WP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},QP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=ZP(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!WP(t))return 0;let a=r&&WP(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},eM=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=QP(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return YP(o,r.limitPaletteColorIndex,n);const a=GP(r.limitRange,t);return JP(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},tM=(AC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),rM=4/3,nM="12px",oM="600",iM="Source Sans Pro, sans-serif",aM={height:"auto",fontSize:nM,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},sM={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:oM},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},lM=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,uM=(e,t)=>e.representation.type===zA.Image&&"fitHeight"===e.representation.imageSize?lM(t,e.representation):e.align,cM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",dM=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},pM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,fM=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",hM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",mM=24,gM=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),vM=mc(ip,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?cM(e,n):void 0})),bM=mc(ip,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${rE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${rE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),yM=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),xM=mc(ip,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),SM=mc(md,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),wM=XE(),CM=XE(0),EM=XE(0),RM=4/3,AM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function PM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const MM=(e,t)=>e?{borderBottomColor:MC.DARK_MODE_BORDER,borderRightColor:MC.DARK_MODE_BORDER,borderLeftColor:MC.DARK_MODE_BORDER,borderTopColor:MC.DARK_MODE_BORDER}:{borderLeftColor:MC.BORDER_MEDIUM,borderRightColor:MC.BORDER_MEDIUM,borderTopColor:MC.BORDER_HEAVY,borderBottomColor:t?MC.BORDER_HEAVY:MC.BORDER_LIGHT},IM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*RM+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},kM=e=>e.components?.find(e=>"theme"===e.key),DM=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:AM(r?.fontColor)?PM(MC.TEXT,t,r?.fontColor):i||MC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...MM(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function TM(e,t,r){const n=kM(e)?.header,o=DM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=oe(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=DC(o.background??MC.WHITE,cE),o.activeBackground=DC(o.background??MC.WHITE,dE),o}const OM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in sM)(e)&&Object.assign(t,sM[e])),t};function LM(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&OC(i);a&&(n[r[t]]=a),o=i?OM(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=IC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var qM={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:_M(e),value:_M(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},NM=qM;function _M(e){try{return decodeURIComponent(e)}catch{return e}}function jM(e){if(!(this instanceof jM))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>NM.fromSearchString(t.search)}})}function zM(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")}jM.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},jM.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=zM(t.key),t.value?r+=`=${zM(t.value)}`:r+=t.useEqualSign?"=":"";return r};var FM=jM;var $M,HM=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}},BM=class{decode(e){let t="";const r=new HM(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},WM=e=>e>=0&&e<=1114111,VM=e=>e.match(/[\s]/),UM=class extends BM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!VM(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return WM(a)?String.fromCharCode(a):"�"}},GM=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},YM=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return GM.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return GM.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||GM.newInstanceIfNeeded(e,t,this._value)}},KM=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 YM);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},XM=(()=>{const e=[],t=[],r=new KM;let n,o,i;for(n 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[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),JM=class extends BM{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,XM.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=XM.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&WM(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&WM(n)?String.fromCharCode(n):null}},ZM=class extends BM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),WM(i))?String.fromCharCode(i):(e.reset(),null)}},QM=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,eI=5e6,tI=5e5,rI=(e,t)=>{const{maxByteSizeSvg:r=tI,maxByteSizeImage:n=eI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=QM.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&($M=document.createElement("div"));var nI=Array.prototype.indexOf,oI=[",",".","_"," "],iI=[",",".","-","_"," "],aI={width:["%"],height:["%"]},sI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},lI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":sI.image,"background-color":sI.color,"border-color":sI.color,"border-image":sI.image,color:sI.color,icon:sI.image,"list-style-image":sI.image,"outline-color":sI.color},uI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function cI(e,t,r){let n;if(t){if(nI)return nI.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function dI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return $M.appendChild(r),t=$M.innerHTML,$M.removeChild(r),t}function pI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=hI(e).toLowerCase(),t=hI(t),i=0;i<uI.attr_name.length;i++)if(e.match(uI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<uI.attr_val.length;i++)if(t.toLowerCase().match(uI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=aI[e],n||(n=iI),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&cI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function fI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=hI(e).toLowerCase(),t=hI(t),cI(e,uI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<uI.css_val.length;n++)if(t.toLowerCase().indexOf(uI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=lI[e],o||(o=sI.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&cI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function hI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new JM,new ZM,new UM];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var mI=[];for(let e=0;e<255;e++)mI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var gI={html:e=>dI(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=fI(t,r[t],!0),i+=fI(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=pI(e,t[e],!0),o+=pI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function vI(e,t){throw new Error(t)}var bI={canonicalize:hI,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?gI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&vI(this,"Invalid parameter type"),gI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&vI(this,"Invalid parameter type"),gI.attr(e)):void vI(this,"Invalid parameter type")},encodeForAttr:pI,encodeForAttr2:function(e){return pI("nonsens",e,!0)},encodeForCSS:fI,encodeForHref:function(e){hI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new FM(e),r=FM.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+FM.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=oI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),cI(o,t)>=0||null==mI[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:dI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=hI(t).toLowerCase():vI(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:rI,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const yI=(e,t)=>t.qAttrExps?.qValues?.[e],xI=(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"}}},SI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!bI.isSafeDataURL(t))?{type:zA.Text,url:void 0,text:e,labelStructure:o}:{type:zA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:xI(n,a),labelStructure:o,imageBox:i},wI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:zA.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:zA.MiniChart,text:n,miniChart:a}},CI=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===FA.Attribute?void 0:r?.urlLabel},EI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:zA.Link,url:bI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:zA.Text,url:void 0,text:t,labelStructure:e}}},RI=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=$A(t),d=s(e);return c===zA.Image&&u[zA.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=yI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),SI({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return SI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=yI(r.imageLabel??-1,e)?.qText??n;return SI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:zA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===zA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===FA.Attribute){const i=CI(r.url??-1,e,t);return EI({labelStructure:n,text:o||i||"",url:i})}if(i===FA.Dimension){const i=CI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),EI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:zA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===zA.Indicator&&u[zA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:zA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===zA.MiniChart&&u[zA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?wI(e,t,i,d):{type:zA.Text,url:void 0,text:d,labelStructure:a}};import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const AI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),PI=new WeakMap,MI=()=>{};function II(e,t=MI){return((e,t,r)=>{const n=AI(()=>new WeakMap,PI,t);return AI(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=XE(0),i=XE([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,e=>e+1)])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=XE(s=>{let l;s(o);try{l=s(a)}catch(e){}const u=s(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=>{n.set(u,e);const[t]=s(i);t()},e=>{r.set(u,e);const[t]=s(i);t()}),r.has(u))throw r.get(u);return n.has(u)?{p:u,v:n.get(u)}:l&&"v"in l?{p:u,f:t(l.v),v:l.v}:{p:u,f:t()}});return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),XE(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const kI=XE(e=>{const t=e(zR),r=e(wR);return e(CR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),DI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),TI=({cId:e})=>e??TA(),OI=1e4;function LI(e,t){return[...t].reverse().find(t=>t*e<=OI)||Math.floor(OI/e)}function qI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function NI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function _I(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return WP(r?.qNum)}function jI(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const zI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",FI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=oe(r??""),i=oe(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?DC(s,cE):void 0,u=s?DC(s,dE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:IC(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const $I=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===pE.Cyclic,g=l===s[0];let v,b,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:v}=e)}else({qMiniChart:b}=h);const{qFallbackTitle:A,textAlign:P,qAttrExprInfo:M,qSortIndicator:I,qReverseSort:k,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:L}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:k,columnWidth:T??{type:uE.Auto},selectionColIdx:S,isActivelySorted:g,id:TI(h),label:A,groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:M.map(e=>e.id),qAttrExprInfoIndex:DI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:NI(e,f,u,d??-1),...!f&&{isTotalNumeric:_I(e,d??-1)},...jI(P,v,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:b,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?FI(L,r):void 0}}(e,o,t,r,n))},HI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",BI=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,WI={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},VI=XE(e=>{const t=e(UI),r=e(vR),n=e(kI),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>OI?{...t,rowsPerPage:LI(l,t.rowsPerPageOptions),page:0}:t}),UI=XE(WI),GI=XE(e=>{const t=e(vR),r=e(zR),n=e(kI);return qR(t,r)?{page:n.page||WI.page,rowsPerPage:n.rowsPerPage||WI.rowsPerPage,rowsPerPageOptions:WI.rowsPerPageOptions}:e(VI)},(e,t,r)=>{t(UI,e=>({...e,...r}))}),YI=!0,KI=XE(async e=>{const t=e(vR),r=e(zR),n=e(_R),{page:o,rowsPerPage:i}=e(GI),a=e(kI),s=e(WR),l=e(hR),u=e(yR),c=e(mR),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,v=qI(t,r),b=$I(t,YI,n,c),y=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const x=y.at(0)?.qMatrix.map((e,r)=>{const o=[];return b.forEach((i,a)=>{const s=e[a],u=HI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?UP(u):VP(s);o[a]={id:TA(),...s,align:zI(d,i.bodyTextAlign,n,YI),rowIdx:r+h,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===m-1,isNumeric:d,isNull:(!c||!d)&&BI(s,i.isDim),representation:RI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[zA.Image]:!0,[zA.Indicator]:!0,[zA.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:v,columns:b,rows:x}}),XI=II(KI,e=>e),JI=25e4,ZI=XE(e=>{const t=e(vR),r=e(zR),n=e(IR),o=e(_R),i=e(mR),a=$I(t,false,o,i),s=qI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(JI,l),c=l>JI&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),QI={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},ek=XE(),tk=XE(e=>{const t=e($R),r=e(ek);return r||(t?e(XI)??QI:e(ZI))}),rk=XE(e=>e(tk).totalsPosition),nk=XE(e=>e(tk).columns),ok=XE(e=>e(tk).rows),ik=XE(e=>e(tk).totalRowCount),ak=XE(e=>e(tk).totalColumnCount),sk=XE(e=>e(tk).paginationNeeded),lk=XE(e=>{const t=e(XR),r=e(QR),n=e(vR),o=e(rk),i=e(ok),a=o.atTop,s=function(e,t,r,n){const o=kM(e)?.content,i=DM("content",t,o);i.background=t.background.color;const a=IM(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=AM(l)||!!c,p=AM(s)||!!u,f=d||p;let h;h=AM(s)?PM(MC.HOVER,t,s):u||(d?"":MC.HOVER);const m=f?PM(IC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=TM(n,r,!a),u=function(e,t,r){const n=kM(e)?.content,o=DM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=TM(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),uk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},ck=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=uk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},dk=(e,t,r,n=MC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=ck(e,t,r);return jC(i,o,a,n)??n},pk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return nM}},fk=e=>e?.some(e=>"italic"===e)?"italic":"normal",hk=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?oM:"normal",mk=e=>!1===e?1:3,gk=e=>parseInt(e??aM.fontSize,10)*rM,vk=e=>e?.some(e=>"underline"===e)?"underline":"none",bk=XE(e=>{const t=e(zR),r=e($R),n=e(QR),o=e(vR),i=e(lk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=kM(o)??{},f=r?MC.WHITE:MC.TRANSPARENT,h=dk(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??iM,fontSize:pk(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:fk(a?.fontStyle),fontWeight:hk(a?.fontStyle,oM),textDecoration:vk(a?.fontStyle),color:uk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??MC.TEXT,background:h},headerMenuHoverBackground:DC(h,cE),headerMenuActiveBackground:DC(h,dE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??iM,fontSize:pk(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:fk(s?.fontStyle),fontWeight:hk(s?.fontStyle,"normal"),textDecoration:vk(s?.fontStyle),color:uk(n,s?.fontColor)??uk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??MC.TEXT,background:ck(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??MC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??iM,fontSize:pk(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:fk(l?.fontStyle),fontWeight:hk(l?.fontStyle,"normal"),textDecoration:vk(l?.fontStyle),color:uk(n,l?.fontColor)??uk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??MC.TEXT,background:ck(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??MC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??iM,fontSize:pk(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:fk(u?.fontStyle),fontWeight:hk(u?.fontStyle,oM),textDecoration:vk(u?.fontStyle),color:uk(n,u?.fontColor)??uk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??MC.TEXT,background:dk(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:fk(c?.fontStyle),fontWeight:hk(c?.fontStyle,"normal"),textDecoration:vk(c?.fontStyle),color:uk(n,c?.fontColor)??uk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??MC.TEXT,background:uk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??MC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??mk(o.multiline?.wrapTextInCells),headerLineClamp:mk(o.multiline?.wrapTextInHeaders),border:uk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?MC.DARK_MODE_BORDER:MC.BORDER_MEDIUM),divider:uk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??MC.BORDER_HEAVY,hoverColors:{color:uk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:uk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:uk(n,d?.zebraStripes?.color?.odd),background:uk(n,d?.zebraStripes?.background?.odd)},even:{color:uk(n,d?.zebraStripes?.color?.even),background:uk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===uk(n,c?.background),overrideNullValueColor:void 0===uk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:kC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:v,totalRowLineHeight:b,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(gk(e.header.fontSize)+8,32),r=gk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(gk(e.dimension.values.fontSize),gk(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(g);return g.headerMinRowHeight=v,g.totalRowLineHeight=b,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),yk=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(lE.PixelsMax,Math.max(lE.PixelsMin,f)),i-=n[a]};switch(s){case uE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?lE.PixelsDefault:+e)(l),h();break;case uE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?lE.PercentageDefault:+e)(u)/100*t,h();break;case uE.FitToContent:e.representation?.type===zA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case uE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(lE.AutoMinTable,e)})}return n},xk=XE(e=>{const t=e(bk),r=e(tk).totalsPosition,n=e(ER),{measureText:o}=e(OP({...t.header,fontWeight:oM})),{measureText:i}=e(OP({...t.totalRow,fontWeight:oM})),{estimateWidth:a}=e(OP(t.dimension.values)),{estimateWidth:s}=e(OP(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=mM),t+=mM,t+=mM,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),Sk=XE(null),wk=XE(e=>{const t=e(tk),r=e(KR).width,n=e(EM),o=e(xk);return yk(t.columns,r-n,o)}),Ck=XE(e=>e(Sk)??e(wk),(e,t,r)=>{t(Sk,r)}),Ek=qP(e=>{const t=e(jP);!1===e(wM)&&t.emit("done-adjusting-column-width")}),Rk=qP((e,t)=>{e(vR),t(Sk,null)}),Ak=({children:e})=>(lR(Rk),lR(Ek),e);function Pk(e){const t=AC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Tu({...t,direction:e})}const Mk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Ik={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},kk=mc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Mk},"&::-moz-range-track":{...Mk},"&::-ms-track":{...Mk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Ik},"&::-moz-range-thumb":{...Ik},"&::-ms-thumb":{...Ik},"&: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"}})),Dk=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=QC({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",v={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},b=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};JC(()=>{m&&b()},[e]);const y=e=>{const t=Math.max(e,lE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:uE.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{qC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{qC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===aE.Left||e.key===aE.Right){qC(e);const t=5,r=e.key===aE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===aE.Space||e.key===aE.Enter?(qC(e),s(e),l?.(!1),x()):e.key===aE.Esc&&(qC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return nr.jsx(kk,{style:v,hoverColor:o,isLastColumn:r,className:sE,"data-testid":sE,onMouseDown:e=>{qC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:uE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(qC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),b(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":lE.PixelsMin,"aria-valuemax":lE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Tk=q((e,t)=>nr.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:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Ok=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},Lk=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),qk=mc(Tk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Nk=mc($f)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),_k=mc(_p)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),jk=mc(Uf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),zk=mc(Uf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),Fk=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),$k=mc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),Hk=mc(Sd)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Bk=mc(hf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),Wk=q((e,t)=>nr.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:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Vk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Vk(t):t:e.parentElement?.children?.[0]},Uk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Uk(t):t},Gk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===aE.Down||t===aE.Up){const r=e=>t===aE.Down?Vk(e):Uk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},Yk=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let Kk={};const Xk=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(zk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),Kk={}),a?.length&&(p(!0),Kk[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Gk,children:[l?nr.jsx(Fk,{direction:u,isPagination:c}):null,nr.jsxs($k,{children:[nr.jsx(Bk,{direction:u,isPagination:c,children:nr.jsx(o,{})}),nr.jsx(Hk,{variant:"body2",children:n})]}),a?.length?nr.jsx(Wk,{}):null]},t),a?.length?nr.jsx(eD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Yk(a,Kk),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},Jk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&nr.jsx(jk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>nr.jsx(Xk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),Zk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[Jk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(_k,{"data-testid":"group-divider",variant:"middle"}):void 0]),Qk={appear:0,enter:0,exit:0},eD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(Nk,{className:nE,open:t,anchorEl:e,onClose:r,transitionDuration:Qk,MenuListProps:{id:oE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Zk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,tD=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),rD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),nD=(e,t)=>e.some(e=>t[e]>0),oD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},iD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(oD);return JC(()=>{e||(s(oD),i(null))},[e]),D(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=rD(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:nD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:nD(["qSelected"],e),canSelectPossible:nD(["qOption"],e),canSelectAlternative:nD(["qAlternative"],e),canSelectExcluded:nD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},aD=q((e,t)=>nr.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:nr.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"})})),sD=q((e,t)=>nr.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:nr.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"})})),lD=q((e,t)=>nr.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:nr.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"})})),uD=q((e,t)=>nr.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:nr.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"})})),cD=q((e,t)=>nr.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:nr.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"})})),dD=q((e,t)=>nr.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:nr.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"})})),pD=q((e,t)=>nr.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:nr.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"})})),fD=q((e,t)=>nr.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:nr.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"})})),hD=q((e,t)=>nr.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:nr.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"})})),mD=q((e,t)=>nr.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:nr.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"})})),gD=q((e,t)=>nr.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:nr.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"})})),vD=q((e,t)=>nr.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:nr.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"})})),bD=q((e,t)=>nr.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:nr.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"})})),yD=q((e,t)=>nr.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:nr.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 xD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const SD="/qListObjectDef",wD=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[xD.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:aD,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:uD,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:fD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:cD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[xD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:hD,enabled:!0}]}]),!e.isLocked&&r[xD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:yD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(SD))},icon:mD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(SD))},icon:bD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(SD))},icon:gD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(SD))},icon:vD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(SD))},icon:sD,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:pD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:dD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[xD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:lD,enabled:!0}]}]),f},CD=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:v=eE})=>{const b=M(null),y=QC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=iD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=Ok({model:f,headerData:n}),P=tD({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=O(e=>{e.stopPropagation(),t(!1)},[t]),k=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?nr.jsxs(Lk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:rE,onClick:!1===g?k:void 0,ref:b,isAccessibleHeader:g,children:[s?nr.jsx(qk,{height:v,className:tE,"data-testid":tE,isInteractionsActive:i.active??!1,children:nr.jsx(Tk,{})}):null,nr.jsx(eD,{open:e,anchorEl:!1===g?b.current:r.current,onClose:I,menuGroups:wD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:P,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ED=e=>e.isDark?{background:e.color,borderColor:MC.DARK_MODE_BORDER,color:MC.DARK_MODE_TEXT,disabledColor:MC.DARK_MODE_DISABLED,iconColor:MC.DARK_MODE_TEXT}:{background:e.color,borderColor:MC.BORDER_MEDIUM,color:MC.TEXT,disabledColor:MC.DISABLED},RD=mc(ip,{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}`})),AD=mc(Ah,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),PD=mc(mp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),MD=mc(Sd)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),ID=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>ED(n.background),[n]);if(!r.active)return null;const a=o?nr.jsx(RD,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},kD=I({}),DD=()=>L(kD),TD=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,b=A(()=>ED(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=QC({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:v,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,b,v,y,g]);return nr.jsx(kD.Provider,{value:S,children:e})};let OD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),LD=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 qD=q((e,t)=>nr.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:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),ND=q((e,t)=>nr.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:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),_D=q((e,t)=>nr.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:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),jD={FirstPage:ND,PreviousPage:qD,NextPage:Wk,LastPage:_D,FirstPageRTL:_D,PreviousPageRTL:Wk,NextPageRTL:qD,LastPageRTL:ND},zD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=DD(),u=r.concat("rtl"===n?"RTL":""),c=jD[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},FD=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=DD(),o=0===e.page,{IconComponent:i,styledProps:a}=zD({type:OD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||LD.FirstPage)?null:nr.jsx(PD,{...a,disabled:!r.active,children:nr.jsx(i,{height:eE})})},$D=(e,t,r=!1)=>{r&&e.key===aE.Tab&&!e.shiftKey&&(qC(e),LC(e.target,t,!1))},HD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=DD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=zD({type:OD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{$D(e,t,n)}:void 0;return o<=(a?.lastPage||LD.LastPage)?null:nr.jsx(PD,{...u,onKeyDown:c,disabled:!i.active,children:nr.jsx(l,{height:eE})})},BD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=DD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=zD({type:OD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>LD.FirstPage&&o>LD.LastPage)&&t.enabled?e=>{$D(e,t,n)}:void 0;return nr.jsx(PD,{...l,onKeyDown:u,disabled:!i.active,children:nr.jsx(s,{height:eE})})},WD=()=>{const{pageInfo:e,interactions:t}=DD(),r=0===e.page,{IconComponent:n,styledProps:o}=zD({type:OD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return nr.jsx(PD,{...o,disabled:!t.active,children:nr.jsx(n,{height:eE})})},VD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=DD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||LD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(MD,{variant:"caption",dir:"ltr",children:s})},UD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=DD(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return nr.jsxs(nr.Fragment,{children:[nr.jsxs(MD,{variant:"caption",id:p,children:[c,":"]}),nr.jsx(AD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},GD=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=DD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||LD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map(e=>nr.jsx("option",{value:e,children:e},e))});return nr.jsx(UD,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},YD=1e3,KD="…",XD=({totalPages:e,page:t})=>{const r=Math.min(e,YD),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-YD):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(nr.jsx("option",{value:KD,disabled:!0,children:KD},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:KD,disabled:!0,children:KD},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},JD=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=DD(),{page:i}=e;if(t<=(o?.selectPage||LD.SelectPage))return null;const a=nr.jsx(XD,{totalPages:r,page:i});return nr.jsx(UD,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var ZD=N(e=>nr.jsxs(TD,{...e,children:[nr.jsx(GD,{}),nr.jsx(JD,{}),nr.jsx(VD,{}),nr.jsx(FD,{}),nr.jsx(WD,{}),nr.jsx(BD,{}),nr.jsx(HD,{})]}));const QD=e=>nr.jsx(ID,{...e,children:nr.jsx(ZD,{...e})}),eT=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},tT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},rT=e=>e.ctrlKey||e.metaKey,nT=e=>e.shiftKey&&rT(e),oT=e=>[aE.Left,aE.Right,aE.Up,aE.Down].includes(e),iT=e=>e.shiftKey&&oT(e.key),aT=e=>(e=>oT(e)||[aE.Home,aE.End,aE.PageUp,aE.PageDown].includes(e))(e.key)&&!nT(e),sT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),eT(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},lT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&iT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&iT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===aE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return eT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},uT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},cT=(e,t)=>{switch(t.type){case FP.Select:return sT(e,t.payload);case FP.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case FP.SelectMouseUp:return((e,t)=>uT(e.isSelectMultiValues||e.firstCell!==t.cell?e:sT(e,t)))(e,t.payload);case FP.SelectMultiAdd:return lT(e,t.payload);case FP.SelectMultiEnd:return uT(e);case FP.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case FP.Clear:return e.rows.size?{...e,rows:new Map}:e;case FP.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},dT=XE(e=>{const t=e(PR);return function(e,t){return XE(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(tk).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},cT)}),pT=XE(e=>e(e(dT)),(e,t,r)=>{t(e(dT),r)}),fT=TP(e=>XE(t=>{const{colIdx:r,rows:n,api:o}=t(pT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?zP.Disabled:n.has(e.qElemNumber)?zP.Selected:zP.Possible:zP.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),hT=XE(e=>{const t=e(Ck),r=e(KR).width,n=e(EM);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var mT=Symbol.for("preact-signals");function gT(){if(ST>1)ST--;else{var e,t=!1;for(!function(){var e=RT;for(RT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==xT;){var r=xT;for(xT=void 0,wT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&kT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(wT=0,ST--,t)throw e}}function vT(e){if(ST>0)return e();ET=++CT,ST++;try{return e()}finally{gT()}}var bT=void 0;function yT(e){var t=bT;bT=void 0;try{return e()}finally{bT=t}}var xT=void 0,ST=0,wT=0,CT=0,ET=0,RT=void 0,AT=0;function PT(e){if(void 0!==bT){var t=e.n;if(void 0===t||t.t!==bT)return t={i:0,S:e,p:bT.s,n:void 0,t:bT,e:void 0,x:void 0,r:t},void 0!==bT.s&&(bT.s.n=t),bT.s=t,e.n=t,32&bT.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=bT.s,t.n=void 0,bT.s.n=t,bT.s=t),t}}function MT(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 IT(e,t){return new MT(e,t)}function kT(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 DT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function TT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function OT(e,t){MT.call(this,void 0),this.x=e,this.s=void 0,this.g=AT-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 LT(e,t){return new OT(e,t)}function qT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){ST++;var r=bT;bT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,NT(e),t}finally{bT=r,gT()}}}function NT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,qT(e)}function _T(e){if(bT!==this)throw new Error("Out-of-order effect");TT(this),bT=e,this.f&=-2,8&this.f&&NT(this),gT()}function jT(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 zT(e,t){var r=new jT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}MT.prototype.brand=mT,MT.prototype.h=function(){return!0},MT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:yT(function(){var e;null==(e=t.W)||e.call(t)}))},MT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&yT(function(){var e;null==(e=t.Z)||e.call(t)}))}},MT.prototype.subscribe=function(e){var t=this;return zT(function(){var r=t.value,n=bT;bT=void 0;try{e(r)}finally{bT=n}},{name:"sub"})},MT.prototype.valueOf=function(){return this.value},MT.prototype.toString=function(){return this.value+""},MT.prototype.toJSON=function(){return this.value},MT.prototype.peek=function(){var e=bT;bT=void 0;try{return this.value}finally{bT=e}},Object.defineProperty(MT.prototype,"value",{get:function(){var e=PT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wT>100)throw new Error("Cycle detected");!function(e){0!==ST&&0===wT&&e.l!==ET&&(e.l=ET,RT={S:e,v:e.v,i:e.i,o:RT})}(this),this.v=e,this.i++,AT++,ST++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gT()}}}}),OT.prototype=new MT,OT.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===AT)return!0;if(this.g=AT,this.f|=1,this.i>0&&!kT(this))return this.f&=-2,!0;var e=bT;try{DT(this),bT=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 bT=e,TT(this),this.f&=-2,!0},OT.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)}MT.prototype.S.call(this,e)},OT.prototype.U=function(e){if(void 0!==this.t&&(MT.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)}},OT.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(OT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=PT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),jT.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()}},jT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,qT(this),DT(this),ST++;var e=bT;return bT=this,_T.bind(this,e)},jT.prototype.N=function(){2&this.f||(this.f|=2,this.u=xT,xT=this)},jT.prototype.d=function(){this.f|=8,1&this.f||NT(this)},jT.prototype.dispose=function(){this.d()};var FT,$T,HT,BT,WT,VT,UT,GT,YT,KT,XT,JT,ZT,QT,eO,tO,rO,nO,oO,iO,aO=Object.create,sO=Object.defineProperty,lO=Object.defineProperties,uO=Object.getOwnPropertyDescriptor,cO=Object.getOwnPropertyDescriptors,dO=Object.getOwnPropertySymbols,pO=Object.prototype.hasOwnProperty,fO=Object.prototype.propertyIsEnumerable,hO=e=>{throw TypeError(e)},mO=(e,t,r)=>t in e?sO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gO=(e,t)=>sO(e,"name",{value:t,configurable:!0}),vO=["class","method","getter","setter","accessor","field","value","get","set"],bO=e=>void 0!==e&&"function"!=typeof e?hO("Function expected"):e,yO=(e,t,r,n,o)=>({kind:vO[e],name:t,metadata:n,addInitializer:e=>r._?hO("Already initialized"):o.push(bO(e||null))}),xO=(e,t)=>{return mO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},SO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},wO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=vO[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&uO(d<4?o:{get[r](){return RO(this,i)},set[r](e){return PO(this,i,e)}},r));d?f&&d<4&&gO(i,(d>2?"set ":d>1?"get ":"")+r):gO(o,r);for(var y=n.length-1;y>=0;y--)u=yO(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?RO:MO)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>PO(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?bO(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?hO("Object expected"):(bO(a=s.get)&&(b.get=a),bO(a=s.set)&&(b.set=a),bO(a=s.init)&&g.unshift(a));return d||xO(e,o),b&&sO(o,r,b),f?4^d?i:b:o},CO=(e,t,r)=>t.has(e)||hO("Cannot "+r),EO=(e,t)=>Object(t)!==t?hO('Cannot use the "in" operator on this value'):e.has(t),RO=(e,t,r)=>(CO(e,t,"read from private field"),r?r.call(e):t.get(e)),AO=(e,t,r)=>t.has(e)?hO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),PO=(e,t,r,n)=>(CO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),MO=(e,t,r)=>(CO(e,t,"access private method"),r);function IO(e,t){if(t){let r;return LT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return LT(e)}function kO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!kO(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!kO(e[r],t[r]));return!o}return!1}function DO({get:e},t){return{init:e=>IT(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function TO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=IO(e.bind(this)),r.set(this,t)),t.value}}function OO(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>lO(e,cO(t)))(((e,t)=>{for(var r in t||(t={}))pO.call(t,r)&&mO(e,r,t[r]);if(dO)for(var r of dO(t))fO.call(t,r)&&mO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function LO(...e){const t=e.map(e=>zT(e));return()=>t.forEach(e=>e())}VT=[DO],WT=[DO],BT=[DO],HT=[OO()],$T=[OO()],FT=[OO()];var qO,NO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,SO(UT,5,this),AO(this,JT),AO(this,GT,SO(UT,8,this)),SO(UT,11,this),AO(this,ZT,SO(UT,12,this)),SO(UT,15,this),AO(this,rO,SO(UT,16,this)),SO(UT,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return RO(this,JT,oO)}get initial(){return RO(this,JT,KT)}get previous(){return RO(this,JT,eO)}set current(e){const t=yT(()=>RO(this,JT,oO));e&&t&&this.equals(t,e)||vT(()=>{RO(this,JT,KT)||PO(this,JT,e,XT),PO(this,JT,t,tO),PO(this,JT,e,iO)})}reset(e=this.defaultValue){vT(()=>{PO(this,JT,void 0,tO),PO(this,JT,e,XT),PO(this,JT,e,iO)})}};function _O(e){return yT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}UT=[,,,aO(null)],GT=new WeakMap,JT=new WeakSet,ZT=new WeakMap,rO=new WeakMap,YT=wO(UT,20,"#initial",VT,JT,GT),KT=YT.get,XT=YT.set,QT=wO(UT,20,"#previous",WT,JT,ZT),eO=QT.get,tO=QT.set,nO=wO(UT,20,"#current",BT,JT,rO),oO=nO.get,iO=nO.set,wO(UT,2,"current",HT,NO),wO(UT,2,"initial",$T,NO),wO(UT,2,"previous",FT,NO),xO(UT,NO);qO=new WeakMap;var jO,zO,FO,$O,HO,BO=Object.create,WO=Object.defineProperty,VO=Object.getOwnPropertyDescriptor,UO=Object.getOwnPropertySymbols,GO=Object.prototype.hasOwnProperty,YO=Object.prototype.propertyIsEnumerable,KO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),XO=e=>{throw TypeError(e)},JO=Math.pow,ZO=(e,t,r)=>t in e?WO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QO=["class","method","getter","setter","accessor","field","value","get","set"],eL=e=>void 0!==e&&"function"!=typeof e?XO("Function expected"):e,tL=(e,t,r,n,o)=>({kind:QO[e],name:t,metadata:n,addInitializer:e=>r._?XO("Already initialized"):o.push(eL(e||null))}),rL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=QO[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,VO(o,r)),h=n.length-1;h>=0;h--)(l=tL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,eL(a)&&(f[d]=a);return f&&WO(o,r,f),o},nL=(e,t,r)=>t.has(e)||XO("Cannot "+r),oL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},iL=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))GO.call(t,r)&&ZO(e,r,t[r]);if(UO)for(var r of UO(t))YO.call(t,r)&&ZO(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new oL((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return oL.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var aL,sL=class extends(FO=NO,zO=[TO],jO=[TO],FO){constructor(e){var t,r,n;super(oL.from(e),(e,t)=>oL.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(HO,5,this),t=this,n=0,(r=$O).has(t)?XO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return oL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=oL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(nL(a=this,s=$O,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vT(()=>{((e,t,r)=>{nL(e,t,"write to private field"),t.set(e,r)})(this,$O,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(oL.from(e)),this.velocity={x:0,y:0}}};function lL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(JO(n,2)+JO(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}HO=(e=>{var t;return[,,,BO(null!=(t=null==e?void 0:e[KO("metadata")])?t:null)]})(FO),$O=new WeakMap,rL(HO,2,"delta",zO,sL),rL(HO,2,"direction",jO,sL),aL=HO,ZO(sL,KO("metadata"),aL[3]);var uL,cL,dL,pL,fL=(e=>(e.Horizontal="x",e.Vertical="y",e))(fL||{}),hL=Object.values(fL),mL=Object.create,gL=Object.defineProperty,vL=Object.defineProperties,bL=Object.getOwnPropertyDescriptor,yL=Object.getOwnPropertyDescriptors,xL=Object.getOwnPropertySymbols,SL=Object.prototype.hasOwnProperty,wL=Object.prototype.propertyIsEnumerable,CL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),EL=e=>{throw TypeError(e)},RL=(e,t,r)=>t in e?gL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AL=(e,t)=>{for(var r in t||(t={}))SL.call(t,r)&&RL(e,r,t[r]);if(xL)for(var r of xL(t))wL.call(t,r)&&RL(e,r,t[r]);return e},PL=(e,t)=>vL(e,yL(t)),ML=(e,t)=>gL(e,"name",{value:t,configurable:!0}),IL=(e,t)=>{var r={};for(var n in e)SL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&xL)for(var n of xL(e))t.indexOf(n)<0&&wL.call(e,n)&&(r[n]=e[n]);return r},kL=e=>{var t;return[,,,mL(null!=(t=null==e?void 0:e[CL("metadata")])?t:null)]},DL=["class","method","getter","setter","accessor","field","value","get","set"],TL=e=>void 0!==e&&"function"!=typeof e?EL("Function expected"):e,OL=(e,t,r,n,o)=>({kind:DL[e],name:t,metadata:n,addInitializer:e=>r._?EL("Already initialized"):o.push(TL(e||null))}),LL=(e,t)=>RL(t,CL("metadata"),e[3]),qL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},NL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=DL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&bL(d<4?o:{get[r](){return zL(this,i)},set[r](e){return $L(this,i,e)}},r));d?f&&d<4&&ML(i,(d>2?"set ":d>1?"get ":"")+r):ML(o,r);for(var y=n.length-1;y>=0;y--)u=OL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>jL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?zL:HL)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>$L(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?TL(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?EL("Object expected"):(TL(a=s.get)&&(b.get=a),TL(a=s.set)&&(b.set=a),TL(a=s.init)&&g.unshift(a));return d||LL(e,o),b&&gL(o,r,b),f?4^d?i:b:o},_L=(e,t,r)=>t.has(e)||EL("Cannot "+r),jL=(e,t)=>Object(t)!==t?EL('Cannot use the "in" operator on this value'):e.has(t),zL=(e,t,r)=>(_L(e,t,"read from private field"),r?r.call(e):t.get(e)),FL=(e,t,r)=>t.has(e)?EL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),$L=(e,t,r,n)=>(_L(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),HL=(e,t,r)=>(_L(e,t,"access private method"),r);function BL(e,t){return{plugin:e,options:t}}function WL(e){return t=>BL(e,t)}function VL(e){return"function"==typeof e?{plugin:e,options:void 0}:e}uL=[DO];var UL=class{constructor(e,t){this.manager=e,this.options=t,FL(this,dL,qL(cL,8,this,!1)),qL(cL,11,this),FL(this,pL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return yT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=zT(e.bind(this));return zL(this,pL).add(t),t}destroy(){zL(this,pL).forEach(e=>e())}static configure(e){return BL(this,e)}};cL=kL(null),dL=new WeakMap,pL=new WeakMap,NL(cL,4,"disabled",uL,UL,dL),LL(cL,UL);var GL,YL=class extends UL{},KL=class{constructor(e){this.manager=e,this.instances=new Map,FL(this,GL,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(VL).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of zL(this,GL))if(!r.includes(e)){if(e.prototype instanceof YL)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);$L(this,GL,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function XL(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}GL=new WeakMap;var JL,ZL,QL=[],eq=class extends UL{constructor(e){super(e),FL(this,JL),FL(this,ZL),this.computeCollisions=this.computeCollisions.bind(this),$L(this,ZL,IT(QL)),this.destroy=LO(()=>{const e=this.computeCollisions(),t=yT(()=>this.manager.dragOperation.position.current);if(e!==QL){const e=zL(this,JL);if($L(this,JL,t),e&&t.x==e.x&&t.y==e.y)return}else $L(this,JL,void 0);zL(this,ZL).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){yT(()=>{e?zL(this,ZL).value=this.computeCollisions():$L(this,JL,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return QL;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=yT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?QL:(s.sort(XL),s)}get collisions(){return zL(this,ZL).value}};JL=new WeakMap,ZL=new WeakMap;var tq=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},rq=class extends tq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function nq(e,t=!0){let r=!1;return PL(AL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var oq,iq,aq,sq,lq,uq,cq,dq,pq,fq=class extends YL{constructor(e){super(e);let t=[];this.destroy=LO(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=nq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;yT(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},hq=(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))(hq||{}),mq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(mq||{});cq=[DO],uq=[TO],lq=[TO],sq=[TO],aq=[TO],iq=[TO],oq=[TO];var gq=class{constructor(){qL(dq,5,this),FL(this,pq,qL(dq,8,this,"idle")),qL(dq,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}};dq=kL(null),pq=new WeakMap,NL(dq,4,"value",cq,gq,pq),NL(dq,2,"current",uq,gq),NL(dq,2,"idle",lq,gq),NL(dq,2,"initializing",sq,gq),NL(dq,2,"initialized",aq,gq),NL(dq,2,"dragging",iq,gq),NL(dq,2,"dropped",oq,gq),LL(dq,gq);var vq,bq,yq,xq,Sq,wq,Cq,Eq,Rq,Aq=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 yT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=nq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return yT(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;vT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=nq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return yT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=nq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return yT(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=yT(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=zT(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};xq=[DO],yq=[DO],bq=[DO],vq=[DO];var Pq=class{constructor(e,t){FL(this,wq,qL(Sq,8,this)),qL(Sq,11,this),FL(this,Cq,qL(Sq,12,this)),qL(Sq,15,this),FL(this,Eq,qL(Sq,16,this)),qL(Sq,19,this),FL(this,Rq,qL(Sq,20,this)),qL(Sq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};Sq=kL(null),wq=new WeakMap,Cq=new WeakMap,Eq=new WeakMap,Rq=new WeakMap,NL(Sq,4,"manager",xq,Pq,wq),NL(Sq,4,"id",yq,Pq,Cq),NL(Sq,4,"data",bq,Pq,Eq),NL(Sq,4,"disabled",vq,Pq,Rq),LL(Sq,Pq);var Mq,Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,_q,jq,zq,Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq=class{constructor(){this.map=IT(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=LO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},Qq=class extends(Lq=Pq,Oq=[DO],Tq=[DO],Dq=[DO],kq=[TO],Iq=[TO],Mq=[TO],Lq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=IL(r,["modifiers","type","sensors"]);super(a,t),qL(qq,5,this),FL(this,Nq,qL(qq,8,this)),qL(qq,11,this),FL(this,_q,qL(qq,12,this)),qL(qq,15,this),FL(this,jq,qL(qq,16,this,this.isDragSource?"dragging":"idle")),qL(qq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};qq=kL(Lq),Nq=new WeakMap,_q=new WeakMap,jq=new WeakMap,NL(qq,4,"type",Oq,Qq,Nq),NL(qq,4,"modifiers",Tq,Qq,_q),NL(qq,4,"status",Dq,Qq,jq),NL(qq,2,"isDropping",kq,Qq),NL(qq,2,"isDragging",Iq,Qq),NL(qq,2,"isDragSource",Mq,Qq),LL(qq,Qq);var eN=class extends(Vq=Pq,Wq=[DO],Bq=[DO],Hq=[DO],$q=[DO],Fq=[DO],zq=[TO],Vq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(IL(r,["accept","collisionDetector","collisionPriority","type"]),t),qL(Uq,5,this),FL(this,Gq,qL(Uq,8,this)),qL(Uq,11,this),FL(this,Yq,qL(Uq,12,this)),qL(Uq,15,this),FL(this,Kq,qL(Uq,16,this)),qL(Uq,19,this),FL(this,Xq,qL(Uq,20,this)),qL(Uq,23,this),FL(this,Jq,qL(Uq,24,this)),qL(Uq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Uq=kL(Vq),Gq=new WeakMap,Yq=new WeakMap,Kq=new WeakMap,Xq=new WeakMap,Jq=new WeakMap,NL(Uq,4,"accept",Wq,eN,Gq),NL(Uq,4,"type",Bq,eN,Yq),NL(Uq,4,"collisionDetector",Hq,eN,Kq),NL(Uq,4,"collisionPriority",$q,eN,Xq),NL(Uq,4,"shape",Fq,eN,Jq),NL(Uq,2,"isDropTarget",zq,eN),LL(Uq,eN);var tN,rN=class extends UL{constructor(e,t){super(e,t),this.manager=e,this.options=t}},nN=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)}},oN=class{constructor(e){this.options=e,FL(this,tN)}set controller(e){$L(this,tN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=zL(this,tN))||t.activate(e)}};tN=new WeakMap;var iN,aN,sN,lN,uN,cN,dN,pN,fN,hN,mN,gN,vN,bN,yN,xN,SN,wN,CN,EN=class extends UL{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},RN=class{constructor(e){this.draggables=new Zq,this.droppables=new Zq,this.plugins=new KL(e),this.sensors=new KL(e),this.modifiers=new KL(e)}register(e,t){if(e instanceof Qq)return this.draggables.register(e.id,e);if(e instanceof eN)return this.droppables.register(e.id,e);if(e.prototype instanceof EN)return this.modifiers.register(e,t);if(e.prototype instanceof rN)return this.sensors.register(e,t);if(e.prototype instanceof UL)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Pq)return e instanceof Qq?this.draggables.unregister(e.id,e):e instanceof eN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof EN)return this.modifiers.unregister(e);if(e.prototype instanceof rN)return this.sensors.unregister(e);if(e.prototype instanceof UL)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()}};fN=[TO],pN=[DO],dN=[DO],cN=[DO],uN=[DO],lN=[DO],sN=[TO],aN=[TO],iN=[TO];var AN=class{constructor(e){qL(vN,5,this),FL(this,hN),FL(this,mN),FL(this,gN,new NO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new gq,FL(this,bN,qL(vN,8,this,!1)),qL(vN,11,this),FL(this,yN,qL(vN,12,this,null)),qL(vN,15,this),FL(this,xN,qL(vN,16,this,null)),qL(vN,19,this),FL(this,SN,qL(vN,20,this,null)),qL(vN,23,this),FL(this,wN,qL(vN,24,this,[])),qL(vN,27,this),this.position=new sL({x:0,y:0}),FL(this,CN,{x:0,y:0}),$L(this,hN,e)}get shape(){const{current:e,initial:t,previous:r}=zL(this,gN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?zL(this,gN).current=e:zL(this,gN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=zL(this,hN).registry.draggables.get(t);return r&&$L(this,mN,r),null!=(e=null!=r?r:zL(this,mN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=zL(this,hN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(PL(AL({},this.snapshot()),{transform:r}));return $L(this,CN,r),r}snapshot(){return yT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:zL(this,CN),shape:this.shape?_O(this.shape):null,position:_O(this.position),status:_O(this.status),canceled:this.canceled}))}reset(){vT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,zL(this,gN).reset(),this.position.reset({x:0,y:0}),$L(this,CN,{x:0,y:0}),this.modifiers=[]})}};vN=kL(null),hN=new WeakMap,mN=new WeakMap,gN=new WeakMap,bN=new WeakMap,yN=new WeakMap,xN=new WeakMap,SN=new WeakMap,wN=new WeakMap,CN=new WeakMap,NL(vN,2,"shape",fN,AN),NL(vN,4,"canceled",pN,AN,bN),NL(vN,4,"activatorEvent",dN,AN,yN),NL(vN,4,"sourceIdentifier",cN,AN,xN),NL(vN,4,"targetIdentifier",uN,AN,SN),NL(vN,4,"modifiers",lN,AN,wN),NL(vN,2,"source",sN,AN),NL(vN,2,"target",aN,AN),NL(vN,2,"transform",iN,AN),LL(vN,AN);var PN={get rendering(){return Promise.resolve()}};function MN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var IN=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 r=null!=e?e:{},n=MN(r.plugins,[]),o=MN(r.sensors,[]),i=MN(r.modifiers,[]),a=null!=(t=r.renderer)?t:PN,s=new rq(this),l=new RN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new Aq(this),this.dragOperation=new AN(this),this.collisionObserver=new eq(this),this.plugins=[fq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=LO(()=>{var e,t,r;const n=yT(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=VL(e);return new t(this,r)}))?r:o});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}},kN=e=>{throw TypeError(e)},DN=(e,t,r)=>t.has(e)||kN("Cannot "+r),TN=(e,t,r)=>(DN(e,t,"read from private field"),t.get(e)),ON=(e,t,r)=>t.has(e)?kN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),LN=(e,t,r,n)=>(DN(e,t,"write to private field"),t.set(e,r),r),qN=(e,t,r)=>(DN(e,t,"access private method"),r);function NN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function _N(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(NN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function jN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function zN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function FN(e){return"nodeType"in e}function $N(e){var t,r,n;return e?zN(e)?e:FN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function HN(e){const{Document:t}=$N(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function BN(e){return!(!e||zN(e))&&(e instanceof $N(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function WN(e){return e instanceof $N(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function VN(e){return e?zN(e)?e.document:FN(e)?HN(e)?e:BN(e)||WN(e)?e.ownerDocument:document:document:document}function UN(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function GN(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!UN(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),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!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i: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=r*g,b=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+b),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-b),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 YN(e){return{x:e.clientX,y:e.clientY}}var KN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function XN(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...XN(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...XN(o.document,t))}}catch(e){}return r}function JN(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ZN(){var e,t;const r=JN()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function QN(e){return!(!e||!FN(e))&&e instanceof $N(e).ShadowRoot}function e_(e){if(e&&FN(e)){let t=e.getRootNode();if(QN(t))return t;if(t instanceof Document)return t}return VN(e)}function t_(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function r_(e){return"value"in e}function n_(e){return"CANVAS"===e.tagName}function o_(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return o_(e,{x:t-o,y:r-i})}}return n}var i_=new WeakMap;var a_=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function s_(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function l_(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var u_,c_=KN?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},d_=class extends c_{constructor(e){super(t=>{TN(this,u_)?e(t,this):LN(this,u_,!0)}),ON(this,u_,!1)}};u_=new WeakMap;var p_,f_,h_,m_,g_,v_,b_,y_,x_,S_,w_,C_=Array.from({length:100},(e,t)=>t/100),E_=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,ON(this,x_),this.disconnect=()=>{var e,t,r;LN(this,b_,!0),null==(e=TN(this,h_))||e.disconnect(),null==(t=TN(this,m_))||t.disconnect(),TN(this,g_).disconnect(),null==(r=TN(this,v_))||r.remove()},ON(this,p_,!0),ON(this,f_),ON(this,h_),ON(this,m_),ON(this,g_),ON(this,v_),ON(this,b_,!1),ON(this,y_,l_(()=>{var e,t,r;const{element:n}=this;if(null==(e=TN(this,m_))||e.disconnect(),TN(this,b_)||!TN(this,p_)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=GN(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,LN(this,m_,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:iL.intersectionRatio(r,GN(n)))&&TN(this,y_).call(this)},{threshold:C_,rootMargin:m,root:o})),TN(this,m_).observe(n),qN(this,x_,S_).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),LN(this,p_,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=GN(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(LN(this,v_,document.createElement("div")),TN(this,v_).style.background="rgba(0,0,0,0.15)",TN(this,v_).style.position="fixed",TN(this,v_).style.pointerEvents="none",o.body.appendChild(TN(this,v_))),LN(this,g_,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=TN(this,p_);LN(this,p_,a),(s||l)&&(u&&!a?(null==(r=TN(this,m_))||r.disconnect(),this.callback(null),null==(n=TN(this,h_))||n.disconnect(),LN(this,h_,void 0),TN(this,v_)&&(TN(this,v_).style.visibility="hidden")):TN(this,y_).call(this),a&&!TN(this,h_)&&(LN(this,h_,new d_(TN(this,y_))),TN(this,h_).observe(e)))},{threshold:C_,root:o})),TN(this,p_)&&!r.skipInitial&&this.callback(this.boundingClientRect),TN(this,g_).observe(e)}};p_=new WeakMap,f_=new WeakMap,h_=new WeakMap,m_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,y_=new WeakMap,x_=new WeakSet,S_=function(){TN(this,b_)||(qN(this,x_,w_).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,TN(this,f_))||(this.callback(this.boundingClientRect),LN(this,f_,this.boundingClientRect)))},w_=function(){if(TN(this,v_)){const{top:e,left:t,width:r,height:n}=GN(this.element);TN(this,v_).style.overflow="hidden",TN(this,v_).style.visibility="visible",TN(this,v_).style.top=`${Math.floor(e)}px`,TN(this,v_).style.left=`${Math.floor(t)}px`,TN(this,v_).style.width=`${Math.floor(r)}px`,TN(this,v_).style.height=`${Math.floor(n)}px`}};var R_,A_,P_,M_,I_=new WeakMap,k_=new WeakMap;function D_(e,t){let r=I_.get(e);if(!r){const t=new E_(e,t=>{const r=I_.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),I_.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(I_.delete(e),r.disconnect())}}var T_=class{constructor(e,t,r){this.callback=t,ON(this,R_),ON(this,A_,!1),ON(this,P_),ON(this,M_,l_(e=>{if(!TN(this,A_)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of TN(this,P_))if(e.target.contains(t)){this.callback(TN(this,R_).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=s_(e);for(;r;)t.add(r),r=s_(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=D_(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!k_.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),k_.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=k_.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),k_.delete(n))}):()=>{}}(e,TN(this,M_));LN(this,P_,n),LN(this,R_,new E_(e,t,r)),this.disconnect=()=>{TN(this,A_)||(LN(this,A_,!0),o(),i(),TN(this,R_).disconnect())}}};function O_(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function L_(e){try{O_(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function q_(e){return!(!KN||!e)&&e===VN(e).scrollingElement}function N_(e){var t,r;const n=$N(e),o=q_(e)?function(e){var t,r,n,o;const{documentElement:i}=VN(e),a=$N(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):jN(e),i=n.visualViewport,a=q_(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.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:o,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 __(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=N_(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}R_=new WeakMap,A_=new WeakMap,P_=new WeakMap,M_=new WeakMap;var j_=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))}},z_=new j_(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),F_=new j_(e=>setTimeout(e,50)),$_=new Map,H_=$_.clear.bind($_);function B_(e,t=!1){if(!t)return W_(e);let r=$_.get(e);return r||(r=W_(e),$_.set(e,r),F_.schedule(H_),r)}function W_(e){return $N(e).getComputedStyle(e)}var V_={excludeElement:!0,escapeShadowDOM:!0};function U_(e,t=V_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(HN(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&QN(a))return t(a.host);if(!BN(a))return WN(a)?t(a.parentElement):i;if(i.has(a))return i;const s=B_(a,!0);if(n&&a===e||function(e,t=B_(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=B_(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function G_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=s_(e);for(;n;){if(n===t)return r;const e=jN(n),{x:o,y:i}=Y_(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=s_(n)}return r}function Y_(e,t=jN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(BN(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=B_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function K_(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function X_(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=K_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,b=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:b+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var J_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(J_||{}),Z_={x:.2,y:.2},Q_={x:10,y:10};function ej(e,t,r,n=25,o=Z_,i=Q_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=N_(e),f=G_(e),h=X_(B_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new iL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),b={x:0,y:0},y={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(b.y=g?1:-1,y.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(b.y=g?-1:1,y.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(b.x=m?-1:1,y.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(b.x=m?1:-1,y.x=n*Math.abs((v.left+S-a)/S)),{direction:b,speed:y}}function tj(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!BN(e))return e.scrollIntoView();var n=function(e){const[t]=U_(e,{limit:1});return null!=t?t:null}(e);if(!BN(n))return;const o=B_(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function rj({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function nj(e,t=B_(e).translate,r=!0){if(r){const t=_N(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=K_(e);if(t)return t}}}if(t){const e=K_(t);if(e)return e}return{x:0,y:0,z:0}}var oj=new j_(e=>setTimeout(e,0)),ij=new Map,aj=ij.clear.bind(ij);function sj(e,t){const r=function(e){const t=e.ownerDocument;let r=ij.get(t);if(r)return r;r=t.getAnimations(),ij.set(t,r),oj.schedule(aj);const n=r.filter(t=>NN(t.effect)&&t.effect.target===e);return ij.set(e,n),r}(e).filter(e=>{var r,n;if(NN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var lj=class extends iL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=G_(e),ignoreTransforms:s,getBoundingClientRect:l=jN}=t,u=sj(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||JN())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=B_(e),v=X_(g),b={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=NN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=X_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,b.x=y.scaleX,b.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=b,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function uj(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 cj=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(uj(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(uj(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(uj(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function dj(e){return!!e&&(e instanceof $N(e).Element||FN(e)&&e.nodeType===Node.ELEMENT_NODE)}function pj(e){if(!e)return!1;const{KeyboardEvent:t}=$N(e.target);return e instanceof t}var fj={};function hj(e){const t=null==fj[e]?0:fj[e]+1;return fj[e]=t,`${e}-${t}`}var mj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/oL.distance(t.shape.center,r),type:mq.PointerIntersection,priority:hq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=oL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:mq.ShapeIntersection,priority:hq.Normal}}return null})(e)},gj=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?iL.from(n.current.boundingRectangle).corners:void 0,a=iL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+oL.distance(oL.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:mq.Collision,priority:hq.Normal}},vj=Object.create,bj=Object.defineProperty,yj=Object.defineProperties,xj=Object.getOwnPropertyDescriptor,Sj=Object.getOwnPropertyDescriptors,wj=Object.getOwnPropertySymbols,Cj=Object.prototype.hasOwnProperty,Ej=Object.prototype.propertyIsEnumerable,Rj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Aj=e=>{throw TypeError(e)},Pj=(e,t,r)=>t in e?bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mj=(e,t)=>{for(var r in t||(t={}))Cj.call(t,r)&&Pj(e,r,t[r]);if(wj)for(var r of wj(t))Ej.call(t,r)&&Pj(e,r,t[r]);return e},Ij=(e,t)=>yj(e,Sj(t)),kj=(e,t)=>bj(e,"name",{value:t,configurable:!0}),Dj=(e,t)=>{var r={};for(var n in e)Cj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&wj)for(var n of wj(e))t.indexOf(n)<0&&Ej.call(e,n)&&(r[n]=e[n]);return r},Tj=e=>{var t;return[,,,vj(null!=(t=null==e?void 0:e[Rj("metadata")])?t:null)]},Oj=["class","method","getter","setter","accessor","field","value","get","set"],Lj=e=>void 0!==e&&"function"!=typeof e?Aj("Function expected"):e,qj=(e,t,r,n,o)=>({kind:Oj[e],name:t,metadata:n,addInitializer:e=>r._?Aj("Already initialized"):o.push(Lj(e||null))}),Nj=(e,t)=>Pj(t,Rj("metadata"),e[3]),_j=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},jj=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Oj[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&xj(d<4?o:{get[r](){return $j(this,i)},set[r](e){return Bj(this,i,e)}},r));d?f&&d<4&&kj(i,(d>2?"set ":d>1?"get ":"")+r):kj(o,r);for(var y=n.length-1;y>=0;y--)u=qj(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Fj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?$j:Wj)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>Bj(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?Lj(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?Aj("Object expected"):(Lj(a=s.get)&&(b.get=a),Lj(a=s.set)&&(b.set=a),Lj(a=s.init)&&g.unshift(a));return d||Nj(e,o),b&&bj(o,r,b),f?4^d?i:b:o},zj=(e,t,r)=>t.has(e)||Aj("Cannot "+r),Fj=(e,t)=>Object(t)!==t?Aj('Cannot use the "in" operator on this value'):e.has(t),$j=(e,t,r)=>(zj(e,t,"read from private field"),r?r.call(e):t.get(e)),Hj=(e,t,r)=>t.has(e)?Aj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Bj=(e,t,r,n)=>(zj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Wj=(e,t,r)=>(zj(e,t,"access private method"),r),Vj="button",Uj="draggable",Gj="dnd-kit-description",Yj="dnd-kit-announcement",Kj={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."},Xj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function Jj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var Zj=["dragover","dragmove"],Qj=class extends UL{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=Gj,announcement:o=Yj}={},announcements:i=Xj,screenReaderInstructions:a=Kj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:hj(n),u=r?`${o}-${r}`:hj(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>z_.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,Zj.includes(e)?g():(m(),g.cancel()))})),b=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(b),Jj(r)&&!JN()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",Vj)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",Uj)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&z_.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}};var ez,tz,rz,nz,oz,iz,az,sz,lz,uz,cz,dz,pz,fz=new Map,hz=class extends(oz=YL,nz=[DO],rz=[TO],tz=[TO],ez=[TO],oz){constructor(e){super(e),_j(az,5,this),Hj(this,lz),Hj(this,iz,new Set),Hj(this,sz,_j(az,8,this,new Set)),_j(az,11,this),this.registerEffect(Wj(this,lz,uz))}register(e){return $j(this,iz).add(e),()=>{$j(this,iz).delete(e)}}addRoot(e){return yT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{yT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return e_(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return e_(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}};az=Tj(oz),iz=new WeakMap,sz=new WeakMap,lz=new WeakSet,uz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of $j(this,iz))t.push(Wj(this,lz,cz).call(this,r,e));return()=>{for(const e of t)e()}},cz=function(e,t){let r=fz.get(e);r||(r=new Map,fz.set(e,r));let n=r.get(t);if(!n){const o=HN(e)?Wj(this,lz,dz).call(this,e,r,t):Wj(this,lz,pz).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},dz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&fz.delete(e)}}},pz=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(QN(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&fz.delete(e)}}},jj(az,4,"additionalRoots",nz,hz,sz),jj(az,2,"sourceRoot",rz,hz),jj(az,2,"targetRoot",tz,hz),jj(az,2,"roots",ez,hz),Nj(az,hz);var mz="data-dnd-",gz=`${mz}dropping`,vz="--dnd-",bz=`${mz}dragging`,yz=`${mz}placeholder`,xz=[bz,yz,"popover","aria-pressed","aria-grabbing"],Sz=["view-transition-name"],wz=`\n :is(:root,:host) [${bz}] {\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(${vz}top, 0px) !important;\n left: var(${vz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${vz}width, auto);\n max-width: var(${vz}width, auto);\n height: var(${vz}height, auto);\n max-height: var(${vz}height, auto);\n transition: var(${vz}transition) !important;\n }\n\n :is(:root,:host) [${yz}] {\n transition: none;\n }\n\n :is(:root,:host) [${yz}='hidden'] {\n visibility: hidden;\n }\n\n [${bz}] * {\n pointer-events: none !important;\n }\n\n [${bz}]:not([${gz}]) {\n translate: var(${vz}translate) !important;\n }\n\n [${bz}][style*='${vz}scale'] {\n scale: var(${vz}scale) !important;\n transform-origin: var(${vz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${bz}][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 [${bz}]::backdrop, [${mz}overlay]:not([${bz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Cz(e,t="hidden"){return yT(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${mz}${hj("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(r_(e)&&r_(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),n_(e)&&n_(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),i_.set(a,i),r.push(()=>{i_.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(yz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Ez(e,t){return e===t||s_(e)===s_(t)}function Rz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&dj(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>L_(t))}function Az(e){return"TR"===e.tagName}var Pz,Mz,Iz,kz,Dz,Tz,Oz,Lz=250,qz="ease";var Nz=class extends(Mz=UL,Pz=[DO],Mz){constructor(e,t){super(e,t),Hj(this,Dz),Hj(this,kz,_j(Iz,8,this)),_j(Iz,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(hz),n=null==r?void 0:r.register(wz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(Wj(this,Dz,Tz).bind(this,r)),this.registerEffect(Wj(this,Dz,Oz))}};Iz=Tj(Mz),kz=new WeakMap,Dz=new WeakSet,Tz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=e_(t);return r?e.addRoot(r):void 0},Oz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=G_(f),m=G_(c),g=!Ez(c,f),v=new lj(c,{frameTransform:g?m:null,ignoreTransforms:!g}),b=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=b,S/=y);const E=new cj(f),{transition:R,translate:A,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=B_(c),N="clone"===d,_="content-box"===P,j=_?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=_?parseInt(M)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:Cz(l,N?"clone":"hidden"),$=yT(()=>pj(o.dragOperation.activatorEvent));if("none"!==A){const e=K_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=yT(()=>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:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==b||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(bz,"true");const Z=yT(()=>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,re=ZN();if(E.set({width:x-j,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${b} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},vz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;O_(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),L_(f),f.addEventListener("beforetoggle",Rz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new lj(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=ZN();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},vz),null==(t=se.getElementMutationObserver())||t.takeRecords(),Az(se.element)&&Az(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[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new lj(se.feedbackElement)}));var se;const le=new lj(f);yT(()=>a.shape=le);const ue=$N(f),ce=e=>{this.manager.actions.stop({event:e})},de=t_(ue);$&&ue.addEventListener("resize",ce),"idle"===yT(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||xz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(uj(e)&&uj(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Sz.includes(e)||e.startsWith(vz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void L_(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void L_(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;BN(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),O_(f)&&(f.removeEventListener("beforetoggle",Rz),f.removeAttribute("popover")),f.removeAttribute(bz),E.reset(),ie&&Az(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,ve=LO(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=yT(()=>a.modifiers),l=yT(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},vz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=oL.delta(o,i);a.shape=iL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new lj(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({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=Lz,easing:s=qz}=null!=i?i:{};L_(e.feedbackElement);const[,l]=null!=(t=_N(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Ez(e.feedbackElement,u)?null:void 0},d=new lj(e.feedbackElement,c),p=null!=(n=K_(B_(e.feedbackElement).translate))?n:e.translate,f=new lj(u,c),h=iL.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`]}:{},b=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},vz),e.feedbackElement.setAttribute(gz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),rj({element:e.feedbackElement,keyframes:Ij(Mj(Mj({},v),b),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:t_($N(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(gz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},jj(Iz,4,"overlay",Pz,Nz,kz),Nj(Iz,Nz),Nz.configure=WL(Nz);var _z,jz,zz,Fz,$z,Hz,Bz,Wz=Nz,Vz=!0;zz=[DO],Fz=J_.Forward,_z=[DO],jz=J_.Reverse;var Uz=class{constructor(){Hj(this,Hz,_j($z,8,this,Vz)),_j($z,11,this),Hj(this,Bz,_j($z,12,this,Vz)),_j($z,15,this)}isLocked(e){return e!==J_.Idle&&(null==e?this[J_.Forward]===Vz&&this[J_.Reverse]===Vz:this[e]===Vz)}unlock(e){e!==J_.Idle&&(this[e]=false)}};$z=Tj(null),Hz=new WeakMap,Bz=new WeakMap,jj($z,4,Fz,zz,Uz,Hz),jj($z,4,jz,_z,Uz,Bz),Nj($z,Uz);var Gz,Yz,Kz,Xz,Jz,Zz,Qz=[J_.Forward,J_.Reverse],eF=class{constructor(){this.x=new Uz,this.y=new Uz}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},tF=class extends UL{constructor(e){super(e);const t=IT(new eF);let r=null;this.signal=t,zT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new eF);const{delta:o}=e.dragOperation.position;if(r){const e={x:rF(o.x,r.x),y:rF(o.y,r.y)},n=t.peek();vT(()=>{for(const t of hL)for(const r of Qz)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function rF(e,t){return Math.sign(e-t)}var nF=class extends(Yz=YL,Gz=[DO],Yz){constructor(e){super(e),Hj(this,Xz,_j(Kz,8,this,!1)),_j(Kz,11,this),Hj(this,Jz),Hj(this,Zz,()=>{if(!$j(this,Jz))return;const{element:e,by:t}=$j(this,Jz);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return Bj(this,Jz,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:oF(n.x),y:oF(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=__(e,n);if(r.x||r.y){const{speed:r,direction:s}=ej(e,o,i);if(a)for(const e of hL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=$j(this,Jz))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return Bj(this,Jz,{element:e,by:{x:a,y:l}}),z_.schedule($j(this,Zz)),!0}}}}}return Bj(this,Jz,void 0),!1};let t=null,r=null;const n=IO(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=o_(e_(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=IO(()=>{const t=n.value,{documentElement:o}=VN(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=U_(n,{excludeElement:!1});return r=e,e}}if(t){const e=U_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},kO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new tF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&pj(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function oF(e){return e>0?J_.Forward:e<0?J_.Reverse:J_.Idle}Kz=Tj(Yz),Xz=new WeakMap,Jz=new WeakMap,Zz=new WeakMap,jj(Kz,4,"autoScrolling",Gz,nF,Xz),Nj(Kz,nF);var iF,aF=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()}),sF=class extends UL{constructor(e,t){super(e);const r=e.registry.plugins.get(nF);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=zT(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>aF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},lF={capture:!0,passive:!0},uF=class extends YL{constructor(e){super(e),Hj(this,iF),this.handleScroll=()=>{null==$j(this,iF)&&Bj(this,iF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),Bj(this,iF,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=zT(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,lF),()=>{o.removeEventListener("scroll",this.handleScroll,lF)}}})}};iF=new WeakMap;function cF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var dF,pF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),fF=class extends rN{constructor(e,t){super(e),this.manager=e,this.options=t,Hj(this,dF,[]),this.listeners=new a_,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!dj(e.target))return;if(t.disabled)return;const{keyboardCodes:n=pF.keyboardCodes,preventActivation:o=pF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=zT(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{pj(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),tj(n);const{center:o}=new lj(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=VN(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];$j(this,dF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=pF.keyboardCodes}=null!=r?r:{};if(gF(e,[...n.end,...n.cancel])){e.preventDefault();const t=gF(e,n.cancel);return void this.handleEnd(e,t)}gF(e,n.up)?this.handleMove("up",e):gF(e,n.down)&&this.handleMove("down",e),gF(e,n.left)?this.handleMove("left",e):gF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:pF.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(sF);!1===(null==e?void 0:e.disabled)&&(e.disable(),$j(this,dF).push(()=>{e.enable()}))}cleanup(){$j(this,dF).forEach(e=>e()),Bj(this,dF,[])}destroy(){this.cleanup(),this.listeners.clear()}};dF=new WeakMap,fF.configure=WL(fF),fF.defaults=pF;var hF,mF=fF;function gF(e,t){return t.includes(e.code)}var vF,bF;hF=new WeakMap;vF=new WeakMap,bF=new WeakMap;var yF=class{};yF.Delay=class extends oN{constructor(){super(...arguments),Hj(this,vF),Hj(this,bF)}onEvent(e){switch(e.type){case"pointerdown":Bj(this,bF,YN(e)),Bj(this,vF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!$j(this,bF))return;const{x:t,y:r}=YN(e);lL({x:t-$j(this,bF).x,y:r-$j(this,bF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){$j(this,vF)&&(clearTimeout($j(this,vF)),Bj(this,bF,void 0),Bj(this,vF,void 0))}},yF.Distance=class extends oN{constructor(){super(...arguments),Hj(this,hF)}onEvent(e){switch(e.type){case"pointerdown":Bj(this,hF,YN(e));break;case"pointermove":if(!$j(this,hF))return;const{x:t,y:r}=YN(e),n={x:t-$j(this,hF).x,y:r-$j(this,hF).y},{tolerance:o}=this.options;if(o&&lL(n,o))return void this.abort();lL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){Bj(this,hF,void 0)}};var xF,SF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!dj(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new yF.Delay({value:250,tolerance:5})]:function(e){if(!dj(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new yF.Delay({value:200,tolerance:0})]:[new yF.Delay({value:200,tolerance:10}),new yF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!dj(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),wF=class extends rN{constructor(e,t){super(e),this.manager=e,this.options=t,Hj(this,xF,new Set),this.listeners=new a_,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,r=this.options){const{activationConstraints:n=SF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=zT(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=$N(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(PF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!dj(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=SF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=BN(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=G_(t.element),{x:s,y:l}=YN(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new nN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=XN(),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:i?this.handleCancel:EF,options:{capture:!0}}]);$j(this,xF).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=YN(e),n=G_(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,z_.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=VN(t.target).body;o.setPointerCapture(t.pointerId);const i=dj(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:EF,options:{passive:!1}},{type:"click",listener:EF},{type:"contextmenu",listener:EF},{type:"keydown",listener:this.handleKeyDown}]);$j(this,xF).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},$j(this,xF).forEach(e=>e()),$j(this,xF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};xF=new WeakMap,wF.configure=WL(wF),wF.defaults=SF;var CF=wF;function EF(e){e.preventDefault()}function RF(){}var AF=new WeakSet;function PF(e){e&&!AF.has(e)&&(e.addEventListener("touchmove",RF,{capture:!1,passive:!1}),AF.add(e))}var MF,IF,kF,DF,TF,OF,LF,qF,NF,_F,jF,zF,FF,$F,HF,BF,WF,VF,UF={modifiers:[],plugins:[Qj,sF,class extends UL{constructor(e,t){super(e,t),this.manager=e;const r=IO(()=>{var e;return VN(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=zT(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},Wz,class extends UL{constructor(e,t){super(e,t),this.manager=e,this.destroy=zT(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),cF(),document.addEventListener("selectionchange",cF,{capture:!0}),()=>{document.removeEventListener("selectionchange",cF,{capture:!0}),e.remove()}}})}}],sensors:[CF,mF]},GF=class extends IN{constructor(e={}){const t=MN(e.plugins,UF.plugins),r=MN(e.sensors,UF.sensors),n=MN(e.modifiers,UF.modifiers);super(Ij(Mj({},e),{plugins:[uF,nF,hz,...t],sensors:r,modifiers:n}))}},YF=class extends(DF=Qq,kF=[DO],IF=[DO],MF=[DO],DF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=Dj(r,["element","effects","handle","feedback"]);super(Mj({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(VL))?t:[...r.sensors]).map(e=>{const t=e instanceof rN?e:r.registry.register(e.plugin),n=e instanceof rN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),Hj(this,OF,_j(TF,8,this)),_j(TF,11,this),Hj(this,LF,_j(TF,12,this)),_j(TF,15,this),Hj(this,qF,_j(TF,16,this)),_j(TF,19,this),this.element=n,this.handle=i,this.feedback=a}};TF=Tj(DF),OF=new WeakMap,LF=new WeakMap,qF=new WeakMap,jj(TF,4,"handle",kF,YF,OF),jj(TF,4,"element",IF,YF,LF),jj(TF,4,"feedback",MF,YF,qF),Nj(TF,YF);var KF=class extends(jF=eN,_F=[DO],NF=[DO],jF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=Dj(r,["element","effects"]);const{collisionDetector:a=mj}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new lj(r),o=yT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=IT(!1);super(Ij(Mj({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new T_(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),Hj(this,WF),Hj(this,FF,_j(zF,8,this)),_j(zF,11,this),Hj(this,VF,_j(zF,12,this)),_j(zF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){Bj(this,WF,e,BF)}get element(){var e;return null!=(e=this.proxy)?e:$j(this,WF,HF)}};function XF(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}zF=Tj(jF),FF=new WeakMap,WF=new WeakSet,VF=new WeakMap,$F=jj(zF,20,"#element",_F,WF,FF),HF=$F.get,BF=$F.set,jj(zF,4,"proxy",NF,KF,VF),Nj(zF,KF);var JF="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:D;function ZF(){const e=P(0)[1];return O(()=>{e(e=>e+1)},[e])}function QF(e,t=[],r=!1){const n=M(e);return n.current=e,function(e,t=!1){const r=M(e.peek()),n=M(!1),o=ZF();return JF(()=>zT(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A(()=>IO(()=>n.current()),t),r)}function e$(e,t){const r=M(new Map),n=ZF();return JF(()=>{if(e)return zT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=yT(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())});r.current.clear()},[e]),A(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function t$(e,t){e()}function r$(e){const t=M(e);return JF(()=>{t.current=e},[e]),t}function n$(e,t,r=D,n=Object.is){const o=M(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function o$(e,t){const r=M(XF(e));JF(()=>{const n=XF(e);n!==r.current&&(r.current=n,t(n))})}var i$=Object.getOwnPropertySymbols,a$=Object.prototype.hasOwnProperty,s$=Object.prototype.propertyIsEnumerable,l$=I(new GF),u$=N(q(({children:e},t)=>{const[r,n]=P(0),o=M(null),i=M(null),a=A(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),z(()=>{e(),n(e=>e+1)})}}),[]);return JF(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),c$=[void 0,kO];function d$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)a$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&i$)for(var n of i$(e))t.indexOf(n)<0&&s$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=MN(d,UF.plugins),m=MN(f,UF.sensors),g=MN(p,UF.modifiers),v=r$(o),b=r$(i),y=r$(s),x=r$(a),S=r$(l),w=r$(n),C=function(e){const t=M(null);t.current||(t.current=e());return j(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new GF(u)});return D(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=v.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=b.current)?void 0:t.call(b,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),n$(h,()=>C&&(C.plugins=h),...c$),n$(m,()=>C&&(C.sensors=m),...c$),n$(g,()=>C&&(C.modifiers=g),...c$),nr.jsxs(l$.Provider,{value:C,children:[nr.jsx(u$,{ref:c,children:r}),r]})}function p$(){return L(l$)}function f$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=M(null),l=p$(),u=null!=(a=QF(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;D(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof Wz);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),D(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof Wz);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=A(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?h$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return nr.jsx(l$.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return nr.jsx(m$,{source:u,children:e});return e}())})}function h$(){return()=>{}}function m$({children:e,source:t}){return e(e$(t))}var g$,v$,b$,y$,x$,S$=Object.create,w$=Object.defineProperty,C$=Object.getOwnPropertyDescriptor,E$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),R$=e=>{throw TypeError(e)},A$=["class","method","getter","setter","accessor","field","value","get","set"],P$=e=>void 0!==e&&"function"!=typeof e?R$("Function expected"):e,M$=(e,t,r,n,o)=>({kind:A$[e],name:t,metadata:n,addInitializer:e=>r._?R$("Already initialized"):o.push(P$(e||null))}),I$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=A$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,C$(o,r)),h=n.length-1;h>=0;h--)(l=M$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,P$(a)&&(f[d]=a);return f&&w$(o,r,f),o},k$=(e,t,r)=>t.has(e)||R$("Cannot "+r),D$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},T$=class extends(b$=NO,v$=[TO],g$=[TO],b$){constructor(e){var t,r,n;super(D$.from(e),(e,t)=>D$.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(x$,5,this),t=this,n=0,(r=y$).has(t)?R$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return D$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=D$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(k$(a=this,s=y$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vT(()=>{((e,t,r)=>{k$(e,t,"write to private field"),t.set(e,r)})(this,y$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(D$.from(e)),this.velocity={x:0,y:0}}};x$=(e=>{var t;return[,,,S$(null!=(t=null==e?void 0:e[E$("metadata")])?t:null)]})(b$),y$=new WeakMap,I$(x$,2,"delta",v$,T$),I$(x$,2,"direction",g$,T$),((e,t)=>{((e,t,r)=>{t in e?w$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,E$("metadata"),e[3])})(x$,T$);var O$=(e=>(e.Horizontal="x",e.Vertical="y",e))(O$||{});function L$(e){const t=p$();D(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}Object.values(O$);const q$=()=>{const[e,t]=P(!1);return L$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},N$=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),_$=XE(e=>{const t=e(xR),r=e(VR);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),j$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),z$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),F$=e=>e.atTop?2:1,$$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],H$=e=>e?.setAttribute("tabIndex","0"),B$=e=>e?.setAttribute("tabIndex","-1"),W$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(B$)},V$=e=>{e?.focus(),H$(e)},U$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${sE}`);V$(t)},0)},G$=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{W$(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case aE.Down:u<s&&u++;break;case aE.Up:u>a&&u--;break;case aE.Right:if(i)break;[u,c]="rtl"===n?j$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):z$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case aE.Left:if(i)break;[u,c]="rtl"===n?z$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):j$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case aE.Home:(rT(e)||i)&&(u=a),i||(c=0);break;case aE.End:(rT(e)||i)&&(u=s),i||(c=l);break;case aE.PageDown:u=Math.min(s,u+10);break;case aE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=$$(t,a);return V$(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},Y$=(e,t,r,n)=>{W$(t),r(e),n.enabled&&!n.active?n.focus?.():V$($$(t,e))},K$=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${nE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${HP.First}`),r=e.querySelector(`.${HP.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},X$=q((e,t)=>nr.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:nr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),J$=mc(Wh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...aM,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),Z$=mc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:nM,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),Q$=parseInt(nM,10)/2,eH=mc("div")({position:"absolute",bottom:-Q$,left:`calc(50% - ${Q$}px)`}),tH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},rH=mc(ip)({height:"100%"}),nH=mc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...tH,whiteSpace:"nowrap",display:r?"block":void 0}:{...tH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),oH=mc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),iH="cell-text",aH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=lR(bk);return o?nr.jsx(nH,{"data-testid":iH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(nH,{"data-testid":iH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},sH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=lR(SR),l=lR(_$),u=lR(_R),c=lR(IR),d=lR(fR),p=lR(eA),f=lR(dR),h=lR(Ck)[t.pageColIdx],m=lR(WR),g=M(null),v=M(null),b=(({column:e,columnWidth:t})=>{const r=lR(bk),{measureText:n}=UC({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:oM});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(aD,{height:nM,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(uD,{height:nM,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(Z$,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(yM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(X$,{height:nM,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,b,u);return nr.jsxs(bM,{shouldShowMenuIcon:b.shouldShowMenuIcon,shouldShowLockIcon:b.shouldShowLockIcon,alignment:dM(t,i,u),children:[S,nr.jsxs(vM,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,nr.jsx(aH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(CD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[xD.Sorting]:!0,[xD.Searching]:!0,[xD.Selections]:!0,[xD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:v},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:U$},shouldShowMenuIcon:b.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),nr.jsx(gM,{ref:v,direction:u,isPagination:i}),nr.jsx(gM,{ref:g,direction:u})]}):null]})},lH=q((e,t)=>nr.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:nr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),uH=(e,t)=>e.isCyclic&&t,cH=({column:e})=>{const t=lR(bk),r=lR(_R),n=lR(WR),o=S.useRef(null),[i,a]=S.useState(!1),s=Ok({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(SM,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(lH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(eD,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:cD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},dH=e=>e.isLocked,pH=({column:e})=>{const t=lR(dR),r=lR(SR),n=lR(bk);return nr.jsx(SM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=rD(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:nr.jsx(X$,{height:16,"data-testid":"head-cell-lock-icon"})})},fH=({column:e,open:t,setOpen:r,isPagination:n})=>{const o=lR(bk),i=lR(SR),a=lR(_R),s=lR(IR),l=lR(fR),u=lR(eA),c=lR(dR),d=lR(WR),p=lR(_$),f=S.useRef(null),h=S.useRef(null);return nr.jsxs(SM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[nr.jsx(CD,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:u,anchorRef:f,menuAvailabilityFlags:{[xD.Sorting]:!0,[xD.Searching]:!0,[xD.Selections]:!0,[xD.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),p?.(e,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:c,qStateName:i},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:U$},shouldShowMenuIcon:!0,model:d,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),nr.jsx(gM,{ref:h,direction:a,isPagination:n}),nr.jsx(gM,{ref:f,direction:a})]})},hH=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,mH=(e,t)=>{const r=M(t);r.current=t,_(()=>{if(!e.current)return()=>{};const t=new ResizeObserver(e=>{r.current(e)});return t.observe(e.current),()=>{t.disconnect()}},[e])},gH=mc(ip)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),vH=({children:e})=>{const t=S.useRef(null),[r,n]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return mH(t,i),nr.jsx(gH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},bH=({children:e})=>e,yH=(e,t)=>!e.isLocked&&e.isDim&&t,xH=({column:e,open:t,setOpen:r})=>{const n=lR(bk),o=lR(SR),i=lR(_R),a=lR(fR);lR(dR);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),u=tD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(SM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:nr.jsx(hD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},SH=q((e,t)=>nr.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:nr.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"})})),wH=q((e,t)=>nr.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:nr.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"})})),CH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(wH,{height:nM,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(SH,{height:nM,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(eH,{children:n}):void 0},EH=0,RH=1,AH=2,PH=3,MH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a}=e,s=lR(bk),l=lR(LR),{measureText:u}=UC(s.header),[c,d]=S.useState(!1),p="number"==typeof a&&a>lE.PixelsMin+18;return nr.jsxs(vH,{children:[nr.jsx(bH,{prio:AH,minWidth:mM,children:dH(t)?nr.jsx(pH,{column:t}):null},"Lock"),nr.jsx(bH,{prio:RH,minWidth:mM,children:uH(t,l)?nr.jsx(cH,{column:t}):null},"Cyclic"),nr.jsx(bH,{ignore:!0,children:nr.jsx(CH,{column:t})},"Sort"),nr.jsx(bH,{minWidth:u(t.label)+8,children:nr.jsx(xM,{justifyContent:t.headTextAlign,children:nr.jsx(aH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(bH,{prio:p?void 0:EH,minWidth:mM,children:c||yH(t,l)?nr.jsx(xH,{open:c,setOpen:d,column:t}):null},"Search"),nr.jsx(bH,{prio:PH,minWidth:mM,children:l?nr.jsx(fH,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},IH=mc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})(({background:e,applicableStyle:t})=>({...t,background:e})),kH=()=>{},DH=({column:e,isPagination:t})=>{const r=lR(bk),n=lR(_R),o=lR(hT),i=lR(rk),a=!1,s=lR(ER)?sH:MH;return nr.jsx(IH,{className:"sn-table-cell",applicableStyle:{...r.header,...N$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:fM(n,a,o),borderLeftWidth:hM(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:kH})})},TH=({isPagination:e})=>{const t=lR(nk),[r,n]=P();L$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?nr.jsx(f$,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(DH,{column:o,isPagination:e})})}):null},OH=[CF.configure({activationConstraints:[new yF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],LH=UF.plugins.filter(e=>e!==Qj),qH=({children:e})=>{const t=lR(VR),r=lR(nk);return nr.jsx(d$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex(e=>e.id===r),i=t.findIndex(e=>e.id===n),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map(e=>e.colIdx).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:OH,plugins:LH,children:e})};function NH(e,t){const r=M(!1);D(()=>{r.current?e():r.current=!0},t)}const _H=XE(BP),jH=TP(e=>XE(t=>{const[r,n]=t(_H);return 0===r&&n===e})),zH=()=>{const e=lR(pR);D(()=>{e.notifyIsDoneRendering()})};var FH={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const $H=XE(e=>{const t=e(eA),r=e(XR);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(FH).forEach(t=>{e.add(FH[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${HP.First}`),s=r.querySelector(`.${HP.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===HP.First?(l=s,n=HP.Second):(l=a,n=HP.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),HH=(e,t)=>{const r=lR($H),n=lR(XR),o=lR(ak),i=lR(ik),a=lR(ok),s=lR(rk),[l,u]=cR(_H),c=lR(AR),d=lR(BR);NH(()=>{const t=((e,t,r=!1)=>{const n=[F$(t),e[1]];return r?n:BP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(W$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=$$(t,e);r.current?(V$(s),r.current=!1):H$(s),n&&(a({keys:[s?.textContent??""]}),tT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},BH=e=>{const t=lR(_R),r=lR(kI);D(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])},WH=e=>{qC(e),rT(e)&&mE(e.currentTarget)},VH=e=>{aT(e.evt)&&(qC(e.evt),G$(e))},UH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!aT(t))return;qC(t);const i=((e,t)=>[e.pageRowIdx+F$(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?F$(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=G$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:FP.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):tT(o,a,i)})({...e,nextCell:s})},GH=e=>{const{evt:t}=e;nT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{qC(e);const a=Math.ceil(t/r)-1;e.key===aE.Right&&n<a?(o(),i(n+1)):e.key===aE.Left&&n>0&&(o(),i(n-1))})(e):t.key===aE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(qC(e),t.blur?.(!0))})(e):oT(t.key)&&qC(t)},YH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(zP.Disabled))return void qC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case aE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{qC(e),t.isSelectable&&r&&n({type:FP.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case aE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{qC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case aE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(qC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case aE.C:WH(t);break;case aE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(qC(e),LC(e.currentTarget,t,e.shiftKey))})(n);break;default:UH(n)}},KH=e=>{const t=lR(wM),r=uR(CM),n=uR(EM),o=lR(jP),i=M();mH(e,a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}),D(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},XH=mc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),JH=mc(Yh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),ZH=mc(Th,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),QH=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(XH,{className:HP.First,"data-testid":HP.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(XH,{className:HP.Second,"data-testid":HP.Second,"aria-live":"polite","aria-atomic":"true"})]}),eB=e=>{const t=M(new Map),r=M(null);D(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=O((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=O(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},tB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),rB=()=>eB(tB),nB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=lR(PR),n=lR(BR),o=uR(pT);D(()=>{const i=()=>{o({type:FP.Reset})},a=()=>{o({type:FP.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},oB=e=>{e.stopPropagation()},iB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:oB,color:MC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),aB=({href:e,text:t,interactions:r,color:n})=>nr.jsx(nf,{...iB({href:e,text:t,interactions:r,color:n}),children:t}),sB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),lB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),uB="qDimensionInfo/0",cB="qMeasureInfo/0",dB="x",pB="y",fB=e=>({key:"bars",type:"box",data:{extract:{field:uB,props:{start:0,end:{field:cB}}}},settings:{major:{scale:dB},minor:{scale:pB},box:{maxWidthPx:8,fill:{fn:e}}}}),hB=e=>({key:"p",type:"point",data:{extract:{field:uB,props:{y:{field:cB}}}},settings:{x:{scale:dB},y:{scale:pB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),mB=({qNum:e})=>void 0===e?0:Math.sign(e),gB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=TC(e,t?.negative,r),a=TC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:uB,props:{start:0,end:{field:cB,value:mB}}}},settings:{major:{scale:dB},minor:{scale:pB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},vB=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=TC(e,t?.main,o),l=TC(e,t?.max,s),u=TC(e,t?.min,s),c=TC(e,t?.first,s),d=TC(e,t?.last,s);return e=>{const t=pB in e.datum?pB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[fB(a)];case"dots":return[hB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:uB,props:{v:{field:cB}}}},settings:{coordinates:{major:{scale:dB},minor:{scale:pB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(TC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,hB(a)]:[t]}case"posNeg":return[gB(e,n)];default:return[]}},bB=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),yB=(e,t,r,n)=>({y:{data:{field:cB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:uB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),xB=U();xB.use(V),xB.renderer.prio(["canvas"]);const SB={resolve:()=>{},promise:{}},wB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?kt():SB);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O(()=>{if(null===t.current||null!==e.current)return;u();r.current=sB(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return xB.chart({element:e,data:{type:"q",key:"qHyperCube",data:bB(s)},settings:{scales:yB(a,l,u,i),components:vB(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:O(()=>{null!==r.current&&lB(r.current),r.current=null,l()},[r,l])}},CB=e=>{const t=M(null),r=M(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(lB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=sB(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},EB=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=wB({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O(e=>{e.isIntersecting?n():r()},[n,r]);D(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{D(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=CB(t);D(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},RB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=EB({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},AB=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},PB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},MB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=lR(_R),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=nr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:PB(s),objectPosition:AB(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?lM(o,e):void 0},children:c}):c},IB=q((e,t)=>nr.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:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),kB=q((e,t)=>nr.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:nr.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"})})),DB=q((e,t)=>nr.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:[nr.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"}),nr.jsx("use",{fillRule:"evenodd"})]})),TB=q((e,t)=>nr.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:nr.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=q((e,t)=>nr.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:nr.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"})})),LB=q((e,t)=>nr.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:nr.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"})})),qB=q((e,t)=>nr.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:nr.jsx("path",{d:"M2 7.5h12v1H2z"})})),NB=q((e,t)=>nr.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:nr.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=q((e,t)=>nr.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:nr.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"})})),jB=q((e,t)=>nr.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:nr.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=q((e,t)=>nr.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:nr.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"})})),FB={m:q((e,t)=>nr.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:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":jB,R:wH,S:SH,T:q((e,t)=>nr.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:nr.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"})})),U:q((e,t)=>nr.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:nr.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"})})),P:_B,Q:LB,"è":q((e,t)=>nr.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:nr.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"})})),"¢":TB,"©":DB,"23F4":OB,2013:zB,"&":NB,add:IB,"minus-2":qB,dot:kB},$B=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&FB[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},HB=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=lR(bk),o=lR(_R),i=lR(QR),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=eM(e,t,o,i),d=(e=>parseInt(e||nM,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&$B({size:d,iconKey:f,color:p}),nr.jsx(aH,{isNumeric:!0,children:a}),"right"===h&&$B({size:d,iconKey:f,color:p})]}):$B({size:d,iconKey:f,color:p})},BB=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,WB=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=lR(bk),u=lR(pR),c=lR(vR),d=lR(QR),p=lR(_R),f=lR(IR),h=lR(AR);if(t.representation.type===zA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===zA.Image)return nr.jsx(MB,{representation:t.representation,textStyle:r,maxImageHeight:BB(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==zA.Link||h||(m=nr.jsx(aB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==zA.Indicator||Number.isNaN(g)?t.representation.type===zA.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(RB,{height:BB(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):nr.jsx(aH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):nr.jsx(HB,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},VB=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),UB=mc("div")({"& path":{stroke:"none !important"}}),GB=({children:e,cellSelectionState:t})=>t===zP.Selected?nr.jsxs(oH,{children:[e,nr.jsx(UB,{children:nr.jsx(VB,{})})]}):e,YB=e=>{const t=function(){const e=p$(),t=QF(()=>null==e?void 0:e.dragOperation.source,[e]),r=QF(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},KB=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:FP.SelectMultiEnd})};r({type:FP.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:FP.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:FP.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),XB=e=>{const t=lR(sk),r=lR(rk),n=lR($H),o=lR(XR),i=lR(_R),a=uR(_H),s=uR(pT),l=lR(BR),u=lR(TR),c=lR(PR),d=d=>{YH({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===aE.Shift&&t({type:FP.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Y$([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=KB(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},JB=e=>{D(()=>()=>{fT.remove(e)},[e])},ZB=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},QB=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},eW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return QB(t,e,n?"even":"odd")}return e},tW=(e,t)=>{const r=lR(bk),n=lR(fT(e));JB(e);let o=t.isDim?r.dimension.values:r.measure.values;o=eW(o,r,e),o=ZB(o,r,e);const i=LM(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===zP.Selected?{...e,...r}:t===zP.Disabled?{...e,background:`${tM}, ${e.background}`}:e}(A(()=>e.isNull?o:LM(o,e.qAttrExps,t.qAttrExprInfoIDs),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},rW=mc(zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),nW=mc(am,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),oW=mc(Wh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...aM,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),iW=mc(Wh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...aM,...e,fontWeight:oM,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),aW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=lR(_R),a=lR(IR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=XB(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=tW(e,t),m=YB(t.id);return nr.jsx(oW,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${iE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:nr.jsx(GB,{cellSelectionState:h,children:nr.jsx(WB,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:pM(i,e.align)})})})},sW=XE(0),lW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=lR(bk),i=lR(DR),a=lR(sW),s=YB(e.id);return nr.jsx(iW,{totalsStyle:{...o.totalRow,...N$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${iE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(aH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},uW=()=>{const e=lR(rk),t=lR(nk),r=lR(ok),n=lR(XR),o=lR(kR),i=lR(_R),a=uR(_H),s=lR(AR),l=lR(BR);return nr.jsx(am,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return nr.jsx(lW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case aE.C:WH(r);break;case aE.Space:r.preventDefault();break;default:VH(e)}else qC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{Y$(c,n,a,l)}},t.id)})})};var cW=N(uW);const dW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=lR(ok),n=lR(rk),o=lR(nk),i=lR(bk),a=lR(vR),s=!!kM(a)?.content?.hoverEffect;nB({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return eB(t)})(t),u=rB();return nr.jsxs(rW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(cW,{}):void 0,r.map((e,t)=>nr.jsx(nW,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(aW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?nr.jsx(cW,{}):void 0]})};var pW=N(dW);const fW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,hW=XE(e=>{const t=e(vR),r=e(WR);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),mW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=lR(hW),s=lR(_R),l=lR(kR),u=lR(eA),[c,d]=cR(Ck);if(!l)return null;return nr.jsx(Dk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{B$(e);const t=e.closest(".sn-table-cell");V$(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},gW=e=>e.target?.getAttribute("class")?.includes(sE),vW=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),o=lR(_$),i=lR(wM);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||gW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!gW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var bW=Object.defineProperty,yW=Object.defineProperties,xW=Object.getOwnPropertyDescriptors,SW=Object.getOwnPropertySymbols,wW=Object.prototype.hasOwnProperty,CW=Object.prototype.propertyIsEnumerable,EW=(e,t,r)=>t in e?bW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RW=(e,t)=>{for(var r in t||(t={}))wW.call(t,r)&&EW(e,r,t[r]);if(SW)for(var r of SW(t))CW.call(t,r)&&EW(e,r,t[r]);return e},AW=(e,t)=>yW(e,xW(t)),PW=class extends EN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return AW(RW({},e),{[t]:r})}};PW.configure=WL(PW);var MW=PW;MW.configure({axis:"x",value:0}),MW.configure({axis:"y",value:0});var IW=class extends EN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return AW(RW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};IW.configure=WL(IW);var kW=class extends EN{constructor(e,t){super(e,t),this.boundingRectangle=IT(null),this.destroy=zT(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=jN(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=RW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new iL(l,u,s,a),r,n);return c}};kW.configure=WL(kW);var DW=kW,TW=Object.create,OW=Object.defineProperty,LW=Object.defineProperties,qW=Object.getOwnPropertyDescriptor,NW=Object.getOwnPropertyDescriptors,_W=Object.getOwnPropertySymbols,jW=Object.prototype.hasOwnProperty,zW=Object.prototype.propertyIsEnumerable,FW=e=>{throw TypeError(e)},$W=(e,t,r)=>t in e?OW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HW=(e,t)=>{for(var r in t||(t={}))jW.call(t,r)&&$W(e,r,t[r]);if(_W)for(var r of _W(t))zW.call(t,r)&&$W(e,r,t[r]);return e},BW=(e,t)=>LW(e,NW(t)),WW=["class","method","getter","setter","accessor","field","value","get","set"],VW=e=>void 0!==e&&"function"!=typeof e?FW("Function expected"):e,UW=(e,t,r,n,o)=>({kind:WW[e],name:t,metadata:n,addInitializer:e=>r._?FW("Already initialized"):o.push(VW(e||null))}),GW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},YW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=WW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,qW({get[r](){return XW(this,i)},set[r](e){return ZW(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=UW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?VW(s)&&(g[f]=s):"object"!=typeof s||null===s?FW("Object expected"):(VW(a=s.get)&&(g.get=a),VW(a=s.set)&&(g.set=a),VW(a=s.init)&&h.unshift(a));return g&&OW(o,r,g),o},KW=(e,t,r)=>t.has(e)||FW("Cannot "+r),XW=(e,t,r)=>(KW(e,t,"read from private field"),t.get(e)),JW=(e,t,r)=>t.has(e)?FW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ZW=(e,t,r,n)=>(KW(e,t,"write to private field"),t.set(e,r),r);function QW(e){return e instanceof IV||e instanceof MV}var eV=Object.defineProperty,tV=Object.defineProperties,rV=Object.getOwnPropertyDescriptors,nV=Object.getOwnPropertySymbols,oV=Object.prototype.hasOwnProperty,iV=Object.prototype.propertyIsEnumerable,aV=(e,t,r)=>t in e?eV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sV=(e,t)=>{for(var r in t||(t={}))oV.call(t,r)&&aV(e,r,t[r]);if(nV)for(var r of nV(t))iV.call(t,r)&&aV(e,r,t[r]);return e},lV=(e,t)=>tV(e,rV(t));function uV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function cV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function dV(e,t){return function(e,t,r){var n,o,i;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 n=e.findIndex(e=>u(e,a.id)),o=e.findIndex(e=>u(e,s.id));if(-1===n||-1===o){if(cV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}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&&cV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return lV(sV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return lV(sV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o: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&&cV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return lV(sV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return lV(sV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return lV(sV({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return lV(sV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,uV)}var pV="__default__";function fV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function hV(e,t){return e.index-t.index}function mV(e){return Array.from(e).sort(hV)}var gV,vV,bV,yV,xV,SV,wV,CV,EV=[class extends UL{constructor(e){super(e);const t=zT(()=>{const{dragOperation:t}=e;if(pj(t.activatorEvent)&&QW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(nF);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!pj(e.nativeEvent))return;if(!QW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];vT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&QW(e)||!e.element)continue;let r=e.shape;const n=new lj(e.element,{getBoundingClientRect:e=>GN(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,gj);vT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!QW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;tj(c);const d=new lj(c);if(!d)return;const p=iL.delta(d,iL.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends UL{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof IV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(mV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!QW(o)||!QW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=mV(l),g=s?m:mV(u),v=null!=(c=o.sortable.group)?c:pV,b=null!=(d=i.sortable.group)?d:pV,y={[v]:m,[b]:g},x=dV(y,e);if(y===x)return;const S=x[b].indexOf(o.sortable),w=x[b].indexOf(i.sortable);r.collisionObserver.disable(),fV(f,S,h,w),vT(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[b].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;QW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=mV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(fV(r,i.index,a,o.index),vT(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],RV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},AV=new class{constructor(){AO(this,qO,new WeakMap)}get(e,t){var r;return e?null==(r=RO(this,qO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return RO(this,qO).has(e)||RO(this,qO).set(e,new Map),null==(n=RO(this,qO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=RO(this,qO).get(e))?void 0:t.clear():void 0}};vV=[DO],gV=[DO];var PV=class{constructor(e,t){JW(this,yV,GW(bV,8,this)),GW(bV,11,this),JW(this,xV),JW(this,SV),JW(this,wV,GW(bV,12,this)),GW(bV,15,this),JW(this,CV),this.register=()=>(vT(()=>{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=()=>{vT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{vT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=RV,plugins:u=EV}=r,c=((e,t)=>{var r={};for(var n in e)jW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_W)for(var n of _W(e))t.indexOf(n)<0&&zW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new IV(c,t,this),this.draggable=new MV(BW(HW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&AV.clear(this.manager),(null==n?void 0:n.dragging)&&AV.set(this.manager,this.id,yT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=XW(this,SV),o=XW(this,xV);e===n&&t===o||(ZW(this,SV,e),ZW(this,xV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),ZW(this,CV,c.element),this.manager=t,this.index=i,ZW(this,SV,i),this.group=o,ZW(this,xV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=AV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=AV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){yT(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=B_(n),l=nj(n,s,!1),u=nj(n,s);if(i||a){const r=t_($N(n))?BW(HW({},t),{duration:0}):t;rj({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){vT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){vT(()=>{const t=XW(this,CV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),ZW(this,CV,e)})}get element(){var e,t;const r=XW(this,CV);if(r)return null!=(t=null!=(e=i_.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){vT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){vT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){vT(()=>{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:mj}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vT(()=>{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)}};bV=[,,,TW(null)],yV=new WeakMap,xV=new WeakMap,SV=new WeakMap,wV=new WeakMap,CV=new WeakMap,YW(bV,4,"index",vV,PV,yV),YW(bV,4,"group",gV,PV,wV),((e,t)=>{return $W(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(bV,PV);var MV=class extends YF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},IV=class extends KF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},kV=Object.defineProperty,DV=Object.defineProperties,TV=Object.getOwnPropertyDescriptors,OV=Object.getOwnPropertySymbols,LV=Object.prototype.hasOwnProperty,qV=Object.prototype.propertyIsEnumerable,NV=(e,t,r)=>t in e?kV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_V=(e,t)=>{for(var r in t||(t={}))LV.call(t,r)&&NV(e,r,t[r]);if(OV)for(var r of OV(t))qV.call(t,r)&&NV(e,r,t[r]);return e};function jV(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=_V(_V({},RV),e.transition),v=function(e){var t;const r=null!=(t=p$())?t:void 0,[n]=P(()=>e(r));return n.manager!==r&&(n.manager=r),JF(n.register,[r,n]),n}(t=>new PV(((e,t)=>DV(e,TV(t)))(_V({},e),{transition:g,register:!1,handle:XF(s),element:XF(a),target:XF(h),feedback:d}),t)),b=e$(v,zV);return n$(o,()=>v.id=o),JF(()=>{vT(()=>{v.group=u,v.index=l})},[v,u,l]),n$(m,()=>v.type=m),n$(t,()=>v.accept=t,void 0,kO),n$(i,()=>i&&(v.data=i)),n$(l,()=>{var e;(null==(e=v.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&v.refreshShape()},t$),o$(s,e=>v.handle=e),o$(a,e=>v.element=e),o$(h,e=>v.target=e),n$(c,()=>v.disabled=!0===c),n$(f,()=>v.sensors=f),n$(r,()=>v.collisionDetector=r),n$(n,()=>v.collisionPriority=n),n$(d,()=>v.feedback=null!=d?d:"default"),n$(g,()=>v.transition=g,void 0,kO),n$(p,()=>v.modifiers=p,void 0,kO),n$(e.alignment,()=>v.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:O(e=>{v.handle=null!=e?e:void 0},[v]),ref:O(e=>{var t,r;(e||!(null==(t=v.element)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.element=null!=e?e:void 0)},[v]),sourceRef:O(e=>{var t,r;(e||!(null==(t=v.source)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.source=null!=e?e:void 0)},[v]),targetRef:O(e=>{var t,r;(e||!(null==(t=v.target)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.target=null!=e?e:void 0)},[v])}}function zV(e,t,r){return!("isDragSource"!==e||r||!t)}const FV=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/oL.distance(r.shape.center,s),type:mq.Collision,priority:hq.Normal}:null},$V=[DW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],HV=(e,t)=>{const r=lR(_R),n=lR(mR),o=!lR(LR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return jV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:$V,data:e,feedback:"clone",collisionDetector:FV({invert:"rtl"===r})})},BV=({column:e,columnIndex:t,columnsLength:r})=>{const n=lR(bk),o=lR(XR),i=lR(_R),a=lR(IR),s=lR(nk),l=lR(rk),u=lR(Ck)[t],c=uR(_H),d=lR(jH(t)),p=lR(LR),f=lR(BR),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:v}=vW({isInteractionEnabled:p,column:e}),b=uR(wM),{ref:y,isDragging:x}=HV(e,t),S=YB(e.id),w=lR(ER),C=w?sH:MH,E=e.isActivelySorted?$P[e.sortDirection]:void 0,R=h?oE:void 0,A=h?"true":void 0,P=t===r-1,M=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(J$,{"data-dragging":x,ref:y,headerStyle:{...n.header,...N$(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${iE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case aE.C:WH(r);break;case aE.Enter:case aE.Space:n?.(r);break;default:VH(e)}else qC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&Y$(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:v,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),nr.jsx(mW,{column:e,isLastColumn:P,setIsAdjustingWidth:b})]},e.id)},WV=()=>{const e=lR(nk),t=lR(bk),r=lR(vR),n=lR(zR),o=uR(sW),i=lR(Ck),a=M(null),s=fW(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),nr.jsx(em,{style:{visibility:s?"collapse":void 0},children:nr.jsx(am,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map((t,r)=>nr.jsx(BV,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var VV=N(WV);const UV=()=>{const e=lR($H),[t,r]=cR(GI),{page:n,rowsPerPage:o}=t,i=lR(jR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=lR(tk),p=lR(bk),f=lR(kI),h=lR(vR),m=lR(QR),g=lR(KR),v=lR(XR),b=lR(zR),y=lR(_R),x=lR(IR),S=lR(eA),w=lR(hT),C=uR(pT),E=lR(AR),R=lR(BR),A=M(!1),P=M(null),I=M(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=qR(h,b),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=v.getElementsByTagName("table")[0].contains(document.activeElement)},[v]),_=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),j=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return BH(P),((e,t)=>{const r=lR(BR);D(()=>{const n=e.current;if(!n)return;const o=e=>{K$(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(I,A),(()=>{const e=lR(XR),t=lR(BR),r=lR(_H);JC(()=>{const n=$$(e,r);t.active?V$(n):(n?.blur(),W$(e))},[t.active,e])})(),HH(A,n),D(()=>{const e=P.current;e&&(e.scrollLeft=L,e.scrollTop=q)},[t,s,L,q]),NH(()=>{C({type:FP.UpdatePageRows,payload:{pageRows:c}})},[c]),zH(),KH(P),nr.jsxs(qH,{children:[nr.jsxs(rH,{ref:I,dir:y,onKeyDown:e=>{GH({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:_,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(QH,{}),nr.jsxs(JH,{ref:P,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(ZH,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(VV,{}),nr.jsx(pW,{updateShouldRefocus:N,tableWrapperRef:I})]}),nr.jsx(q$,{})]}),nr.jsx(QD,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:_,handleChangeRowsPerPage:j,isSelectionMode:E,direction:y})]}),nr.jsx(TH,{isPagination:!0})]})};var GV=N(UV);const YV=XE(0),KV=XE(e=>{const t=e(bR);return Math.min(JI,t)}),XV=XE(e=>{const t=e(bR);return t===JI?0:Math.floor(t/JI)}),JV=XE(e=>{const t=e(YV),r=e(XV);return Math.min(t,r)}),ZV=XE(e=>({page:e(JV),rowsPerPage:e(KV),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(XV);t(YV,Math.max(0,Math.min(r,n)))});var QV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eU(e,t){return e===t||!(!QV(e)||!QV(t))}function tU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!eU(e[r],t[r]))return!1;return!0}function rU(e,t){var r;void 0===t&&(t=tU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var nU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function oU(e){cancelAnimationFrame(e.id)}function iU(e,t){var r=nU();var n={id:requestAnimationFrame(function o(){nU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var aU=-1;function sU(e){if(void 0===e&&(e=!1),-1===aU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),aU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return aU}var lU=null;function uU(e){if(void 0===e&&(e=!1),null===lU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?lU="positive-descending":(t.scrollLeft=1,lU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),lU}return lU}var cU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function dU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,qc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:qc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=rU(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=rU(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=rU(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(uU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&oU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=iU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return pU(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=sU();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(uU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&oU(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?cU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],P=R[1],M=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var k=C;k<=E;k++)M.push(w(t,{columnIndex:k,data:d,isScrolling:b?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},w(u||c||"div",{children:M,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(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]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var pU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},fU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},hU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},mU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},gU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?vU(e,t,r,i,0,n):bU(e,t,r,Math.max(0,i),n)},vU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=mU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},bU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&mU(e,t,n,r).offset<o;)n+=a,a*=2;return vU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},yU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=mU(e,t,r,i),u="column"===e?hU(t,i):fU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},xU=dU({getColumnOffset:function(e,t,r){return mU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return gU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=mU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=mU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:fU,getEstimatedTotalWidth:hU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return yU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return yU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return mU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return gU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=mU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=mU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),SU=function(e,t){return e};function wU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,qc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:qc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=rU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=rU(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=rU(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(uU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&oU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=iU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return CU(e,t),c(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?sU():0:l.scrollHeight>l.clientHeight?sU():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(uU()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&oU(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?SU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(u>0)for(var P=E;P<=R;P++)A.push(w(t,{data:c,key:p(P,c),index:P,isScrolling:v?y:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var CU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},EU=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},RU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=EU(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},AU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&EU(e,r,t).offset<n;)r+=i,i*=2;return RU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},PU=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},MU=wU({getItemOffset:function(e,t,r){return EU(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:PU,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=EU(e,t,o),p=PU(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?RU(e,t,o,0,r):AU(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=EU(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=EU(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function IU(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var kU=["style"],DU=["style"];function TU(e,t){var r=e.style,n=Hr(e,kU),o=t.style,i=Hr(t,DU);return!IU(r,o)&&!IU(n,i)}const OU=XE(-1),LU=TP(e=>XE(t=>t(OU)===e)),qU=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var NU=S.memo(qU,TU);const _U=()=>{},jU=e=>{e.preventDefault()};const zU=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=lR(LU(t)),d=uR(OU),p=lR(bk),f=lR(_R),h=lR(DR),m=lR(hT),g=o[t]?.[e],{handleMouseDown:v,handleMouseOver:b,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=lR(TR),n=uR(pT),o=lR(fT(e));if(JB(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=KB(jU,e,n,_U);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=O(r=>{const o=hH(r);o&&i&&n(o,e,t)},[t,n,e,i]);return mH(o,a),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=YB(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=eW(o,i,e);a=ZB(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?LM(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===zP.Selected?{...s,...i.selectedColors}:n===zP.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${tM}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return nr.jsx("div",{className:`sn-table-cell ${x} ${iE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:fM(f,g.isLastColumn,m),borderLeftWidth:hM(f,g.isLastColumn,m),justifyContent:uM(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:v,onMouseUp:y,onMouseOver:b,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:nr.jsx(GB,{cellSelectionState:x,children:nr.jsx(WB,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return nr.jsx(NU,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var FU=N(zU,TU);const $U=II(XE(async e=>{const t=e(vR),r=e(WR),n=e(ZV).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(JI,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),HU=e=>{const t=M(e);return t.current=e,t},BU=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,WU=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},VU=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},UU=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:v,qAttrExprInfoIndex:b,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=HI(h,e,a),C=!h&&e.qIsNull,E=C?UP(w):VP(e);f[r]={id:TA(),...e,align:zI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&BI(e,h),representation:RI({cell:e,representationProperties:y,attrExprInfoIndex:b,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[zA.Image]:!0,[zA.Indicator]:!0,[zA.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d})})},GU=({rowCount:e,visibleRowCount:t,visibleColumnCount:r,gridState:n,setEstimatedCellHeight:o})=>{const i=lR(vR),a=lR(QR),s=lR(WR),l=lR(hR),u=lR(_R),c=lR(ZV),d=lR($U),p=lR(nk),f=M([]),h=O((t,r)=>{const n=Array.isArray(r)?r.slice(0,e):(e=>Array(e).fill(void 0))(e);return UU(t,c,n,p,i,l,o,u),f.current=n,n},[e,c,p,i,l,o,u]),[m,g]=P(()=>h(d??[]));JC(()=>{g(h(d??[]))},[d,u]);const v=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=HU(e),a=HU(t),s=A(()=>({enqueue:e=>{const t=BU(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(BU(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>s&&"getHyperCubeData"in s?s.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),b=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(VU(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}},[f,v]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-c.page*c.rowsPerPage);if(WU(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}},[f,v,c]);return D(()=>{const{qcx:e,qcy:o}=i.qHyperCube.qSize,a=n.current.overscanRowStartIndex,s=n.current.overscanColumnStartIndex,l=a+c.page*c.rowsPerPage,u=e-s,d=c.rowsPerPage-a,p=Math.min(100,u,e,r+5),f=Math.min(100,d,o,t+25);return y(s,l,p,f),()=>{v.clear()}},[i,t,r,c,v,y,n,a]),{rowsInPage:m,loadRows:y,loadColumns:b}},YU=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},KU=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,XU=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=lR(bk),i=lR(Ck),{estimateLineCount:a}=UC(o.dimension.values),s=gk(o.dimension.values.fontSize),l=e||t||1===r;return O((e,t,o)=>{if(l||e.representation.type===zA.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)},[l,i,a,r,s,n])},JU=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=lR(kI);_(()=>{const i=e?n:(e=>{let t=0;e.forEach(e=>{t+=e});const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},ZU=({rowCount:e,isSnapshot:t,gridRef:r})=>{const n=lR(bk),[o,i]=P({rowHeights:new Map,cellHeightsInGrid:new Map}),a=n.contentLineHeight,s=n.contentMinRowHeight,l=!!n.contentStaticLineCount,u=Math.max(8e6/e,s)-9,c=u+9,d=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=lR(vR),n=lR(ZV),o=lR(Ck),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;JC(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),JC(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:r,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O((o,i,a)=>{z(()=>{e(e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!KU(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,YU(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:r}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O((o,i,a)=>{e||t||1===r||n(o,i,a)},[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=XU({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return JU({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},QU=(e,t)=>{_(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=hH(e);void 0!==r&&t(r)},[t]);mH(e,r)};let eG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const tG=({loadRows:e,loadColumns:t,rowCount:r,gridState:n})=>{const o=lR(kI),i=lR(vR),a=lR(ZV);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=eG.None,i=eG.None;return o=n>t?eG.Down:n<t?eG.Up:eG.None,i=r>e?eG.Right:r<e?eG.Left:eG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>r)return;const v=s,b=u+a.page*a.rowsPerPage,y=l-s+1,x=c-u+1;if(o.visibleLeft=d,o.visibleWidth=p-d+1,o.visibleTop=f+a.page*a.rowsPerPage,o.visibleHeight=h-f+1,o.page=a.page,o.rowsPerPage=a.rowsPerPage,m===eG.Down){const t=x+25;e(v,b,y,u+t>r?r-u:t)}else if(m===eG.Up){const t=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,b-25);e(v,n,y,t)}if(g===eG.Right){const e=i.qHyperCube.qSize.qcx-v,r=y+5,n=Math.min(e,r);t(v,b,n,x)}else if(g===eG.Left){const e=Math.max(0,v-5),r=Math.min(i.qHyperCube.qSize.qcx,y+5);t(e,b,r,x)}},[n,r,a.page,a.rowsPerPage,o,e,i.qHyperCube.qSize.qcx,t])},rG=()=>{},nG={current:null};const oG=(e,t)=>{const r=lR(ZV),n=lR(vR),o=lR(Ck),i=Math.min(r.rowsPerPage,n.qHyperCube.qSize.qcy-r.page*r.rowsPerPage),a=Math.min(i,Math.ceil(e.height/t)),s=A(()=>o.reduce((t,r)=>t.width<e.width?{width:t.width+r,count:t.count+1}:t,{count:0,width:0}),[e,o]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},iG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},aG={overflow:"hidden",willChange:"auto"};var sG=N(q((e,t)=>{const{columns:r,setInnerBodyHeight:n,bodyHeight:o,stickyContainerRect:i}=e,a=lR(bk),s=lR(kI),l=lR(vR),u=lR(_R),c=lR(Ck),d=M(null),p=M(null),f=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),h=M(0),m=!!kM(l)?.content?.hoverEffect,{rowCount:g,visibleRowCount:v,visibleColumnCount:b}=oG(i,a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=ZU({rowCount:g,isSnapshot:!!l.snapshotData,gridRef:d}),{rowsInPage:C,loadRows:E,loadColumns:R}=GU({rowCount:g,visibleRowCount:v,visibleColumnCount:b,gridState:f,setEstimatedCellHeight:x}),P=tG({loadRows:E,loadColumns:R,rowCount:g,gridState:f}),I=rB(),k=A(()=>({rowsInPage:C,columns:r,isHoverEnabled:m,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I}),[C,r,m,w,y,I]);return _(()=>{1===h.current&&d.current?.scrollToItem({rowIndex:g-1,align:"start"})}),function(e){const t=uR(pT);D(()=>{t({type:FP.UpdatePageRows,payload:{pageRows:e}})},[t,e]),nB({updateShouldRefocus:rG,tableWrapperRef:nG})}(C),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(p.current?.clientHeight??o)-o,n=Math.round(r*e);h.current=e,1===h.current?(d.current?.scrollToItem({rowIndex:g-1,align:"start"}),d.current?.scrollTo({scrollLeft:t})):d.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[p,o,g]),QU(p,n),nr.jsx(xU,{"data-key":"body",ref:d,innerRef:p,style:aG,columnCount:r.length,columnWidth:e=>c[e],height:o,rowCount:g,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:i.width,itemData:k,onItemsRendered:P,itemKey:iG,className:"sn-table-body",direction:u,children:FU})}));const lG=({width:e,height:t,children:r})=>nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),uG=(e,t)=>{const r=M(null),n=lR(Ck);_(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=hH(r);n&&t(n+9,e)},[e,t]);return mH(r,o),r},cG=mc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),dG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=lR(bk),s=lR(_R),l=lR(IR),u=lR(hT),c=uR(wM),d=lR(rk),p=lR(LR),f=lR(Ck)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:v,toggleSortOrder:b}=vW({isInteractionEnabled:p,column:h}),y=lR(ER),x=uG(e,i),S=n.length-1===e,w=y?sH:MH,{ref:C,isDragging:E}=HV(h,e),R=YB(h.id);return nr.jsxs(cG,{"data-dragging":E,ref:C,className:`sn-table-cell ${iE}`,title:l.passive?h.label:void 0,onClick:y?v:b,applicableStyle:{...a.header,...N$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:fM(s,S,u),borderLeftWidth:hM(s,S,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:h.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===h.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:l,hoverBackground:h.headerColor?.headerMenuHoverBackground??a.headerMenuHoverBackground,background:y&&m?h.headerColor?.headerMenuActiveBackground??a.headerMenuActiveBackground:h.headerColor?.background??a.header.background,color:h.headerColor?.color??a.header.color,children:[nr.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),nr.jsx(mW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},pG=e=>{const[t,r]=P(new Map);JC(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>KU(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>YU(t),[t]),setMeasuredCellHeight:n}},fG=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},hG=e=>{const t=lR(QR),r=lR(vR),n=lR(ZV),o=lR(Ck);JC(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},mG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},gG=q((e,t)=>{const{stickyContainerRect:r,columns:n,columResizeHandler:o,setHeaderRowHeight:i}=e,a=S.useRef(null),s=M(null),l=lR(bk),u=lR(vR),c=lR(zR),d=lR(_R),p=lR(Ck),{rowHeight:f,setMeasuredCellHeight:h}=pG(n),m=fW(c,u);return fG(t,a),hG(a),QU(s,i),nr.jsx(MU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...mG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:o,setMeasuredCellHeight:h},direction:d,children:dG})});var vG=N(gG);const bG=q((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,a=lR(_R),s=lR(OR);return nr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:s?"auto":"hidden",width:n,height:o},onScroll:i,dir:a,tabIndex:-1,children:r})}),yG=({children:e,stickyContainerRect:t})=>{const r=lR(_R);return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},xG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=lR(bk),s=lR(vR),l=lR(_R),u=lR(DR),c=lR(hT),d=uG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=YB(n[e].id);return nr.jsx("div",{className:`sn-table-cell ${iE}`,title:u?p:void 0,style:{...t,...a.totalRow,...N$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:fM(l,m,c),borderLeftWidth:hM(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:nr.jsx(aH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},SG=q((e,t)=>{const{stickyContainerRect:r,totals:n,columns:o,setTotalsRowHeight:i}=e,a=M(null),s=M(null),l=lR(bk),u=lR(_R),c=lR(vR),d=lR(Ck),{rowHeight:p,setMeasuredCellHeight:f}=pG(o);return fG(t,a),hG(a),QU(s,i),nr.jsx(MU,{ref:a,outerRef:s,layout:"horizontal",style:mG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:r.width,itemData:{columns:o,totals:n,setMeasuredCellHeight:f},direction:u,children:xG})});var wG=N(SG);const CG=(e,t,r)=>{const n=lR(_R),o=lR(kI);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,r,e,t,n])},EG=()=>{const e=lR(rk),t=lR(nk),r=lR(sk),n=lR(ZV),o=lR(QR),i=lR(KR),a=M(null),s=M(null),l=M(null),u=M(null),c=A(()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(i,r),[i,r]),d=lR(EM),p=lR(CM),f=A(()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(c,p,d),[c,p,d]),{rowCount:h}=oG(f,0),{headerAndTotalsHeight:m,innerBodyHeight:g,setHeaderRowHeight:v,setTotalsRowHeight:b,setInnerBodyHeight:y}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:x,height:S}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n})=>{const o=lR(bk),i=lR(Ck),a=e+t;let s=r*o.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:i.reduce((e,t)=>e+t,0),height:s}})({innerBodyHeight:g,headerAndTotalsHeight:m,rowCount:h,stickyContainerRect:f}),w=CG(s,l,u),C=((e,t,r)=>Math.min(e.height-t,r))(f,m,g),E=O(()=>{a.current&&(a.current.scrollTop=0)},[a]);zH(),_(()=>{a.current&&(a.current.scrollLeft=0,a.current.scrollTop=0)},[t.length]),_(()=>{a.current&&(a.current.scrollTop=0)},[n,h,o]),KH(a);const R=nr.jsx(wG,{stickyContainerRect:f,columns:t,ref:l,totals:e,setTotalsRowHeight:b},"totals");return nr.jsxs(qH,{children:[nr.jsx(bG,{ref:a,width:c.width,height:c.height,onScroll:w,children:nr.jsxs(lG,{width:x,height:S,children:[nr.jsxs(yG,{stickyContainerRect:f,children:[nr.jsx(vG,{stickyContainerRect:f,columns:t,ref:s,columResizeHandler:E,setHeaderRowHeight:v}),e.atTop?R:null,nr.jsx(sG,{ref:u,stickyContainerRect:f,columns:t,setInnerBodyHeight:y,bodyHeight:C}),e.atBottom?R:null]}),nr.jsx(q$,{})]})}),nr.jsx(TH,{isPagination:!1})]})};var RG=N(EG);var AG=N(()=>{const e=lR(vR),t=lR(KR),r=lR(IR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=lR(tk),s=lR(QR),l=lR(eA),u=lR(BR),[c,d]=cR(ZV);return nr.jsxs(rH,{"data-testid":"sn-table",children:[nr.jsx(RG,{}),nr.jsx(QD,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})});const PG=e=>{const t=e.get(WR),r=e.get($R),n=e.get(gR),i=e.get(_R);o(()=>{n&&t&&(r?function(e){const t=e.get(_R),r=e.get(ZR),n=Pk(t);r.render(nr.jsx(Ei,{stylisPlugins:"rtl"===t?[DP]:void 0,children:nr.jsx(vc,{theme:n,children:nr.jsx(rR,{store:e,children:nr.jsx(Ak,{children:nr.jsx(GV,{})})})})}))}(e):function(e){const t=e.get(_R),r=e.get(ZR),n=Pk(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(vc,{theme:n,children:nr.jsx(rR,{store:e,children:nr.jsx(Ak,{children:nr.jsx(AG,{})})})})}))}(e))},[n,r,e,t,i])};function MG(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const IG=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},kG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const DG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||WI.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},TG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=qI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=MG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:DG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=IG(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,v=(kG(h,m,g)?d:d+1)+c;let b=p+c;const y=IG(p,o),x=y?.getBoundingClientRect();return y&&x&&(kG(x,m,g)||(b=p-1+c)),{visibleRowStartIndex:v,visibleRowEndIndex:b}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:DG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},OG={version:JSON.stringify("6.17.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};const LG=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),qG=e=>e.getStyle("object","straightTableV2","backgroundColor");function NG(r){return{qae:{properties:{initial:OG},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>yA({...e}),exportProperties:fA,exploration:xA},ext:PP(r),component(){const n=c(),i=e(()=>QE(),[!1!==n.usePagination]);i.set(hR,r);const s=d();i.set(XR,s),i.set(vR,n),i.set(dR,p()),i.set(WR,f()),i.set(IR,h()),i.set(eA,m()),i.set(PR,g()),i.set(NR,t()),i.set(BR,v()),i.set(KR,b()),i.set(fR,y());const x=$C(n,s,LG,qG);i.set(QR,x),i.set(gR,XC(x,n,r)),i.set(pR,Ot()),(e=>{const t=e.get(ZR);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${iE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{mE(n)}})}),(({store:e})=>{const t=e.get(vR),r=e.get(WR),n=e.get(XR),o=e.get(YR),i=e.get(zR),a=e.get($R);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(kI),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v}=TG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),u(()=>({getViewState:()=>TG(t,e.get(kI),n,i,a)}),[t,e,n,a])})({store:i}),PG(i)}}}export{NG as default};
121
+ */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+c+")",p=o+"(?:\\s*"+i+"|"+("-?"+("(?:[_a-z]|"+r+"|"+c+")")+d+"*")+")?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+o+"(?:\\s*"+i+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+c+")*?",v="(?![a-zA-Z])",b="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+b+"[^;}]+;?)","gi"),P=new RegExp("("+u+"[^\\}]*?})","gi"),M=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+v+y+b,"gi"),D=new RegExp(l+"(right)"+v+y+b,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,q=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),_=new RegExp(l+"(rtl)"+x,"gi"),j=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),W=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),V=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),Y=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(P,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(q,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(_,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(M,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(j,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(W,Q).replace(V,te).replace(U,ne).replace(G,ne).replace(Y,te).replace(K,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(PP,PP.exports);var MP=Ut(PP.exports);function IP(e,t,r){switch(e.type){case Zr:case Jr:case Kr:return e.return=e.return||e.value;case Xr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===Kr&&(e.children=e.value)})}var n=$n(Array.prototype.concat(e.children),IP);return cn(n)?e.return=e.value+"{"+n+"}":""}function kP(e,t,r,n){if(e.type===Qr||"@supports"===e.type||e.type===Xr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Xr)){var o=MP.transform(IP(e));e.children=o?qn(o)[0].children:[],e.return=""}}function DP(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(kP,"name",{value:"stylisRTLPlugin"});const TP=DP(({options:e,...t})=>KE(WC(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);function OP(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function LP(e){const t=KE(()=>[]),r=KE(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!vE(t)){if(!mE(o))throw new Error("no atom init");S(e,o,o.init)}return bE(t)}const i=v(e,o);try{return bE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!mE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),b(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(OP())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=UE(e),d=c[1],p=c[3],f=CE(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],b=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=qP.get(e);r||(r=new Set,qP.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),o&&w.delete(o)}),f.u.add(r,function(){w.delete(u),o&&w.add(o)}),f.c.add(r,function(){a?s=!0:w.add(u)})},OP()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const qP=new WeakMap;class NP{#c={on:new Map,once:new Map};#d=10;#p(e){this.listenerCount(e)>this.#d&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#f(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#p(t)}setMaxListeners(e){this.#d=e}on(e,t){this.#f("on",e,t)}once(e,t){this.#f("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const _P=KE(()=>new NP);let jP=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),zP=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),FP=function(e){return e.A="ascending",e.D="descending",e}({}),$P=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const HP=[0,0],BP=e=>"number"==typeof e&&!Number.isNaN(+e),WP=e=>BP(e.qNum),VP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),UP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},YP=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return oe(e.localPaletteColors[t].color??"").blend(oe(s.color??""),s.t)},KP=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:UP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:GP(n,t,r)}))),n},XP=(e,t,r,n)=>{const o=KP(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=YP(e,a,t);break}n=i}return r})(o,t);return a},JP=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!BP(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!BP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},ZP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=JP(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!BP(t))return 0;let a=r&&BP(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},QP=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZP(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return GP(o,r.limitPaletteColorIndex,n);const a=UP(r.limitRange,t);return XP(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},eM=(RC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),tM=4/3,rM="12px",nM="600",oM="Source Sans Pro, sans-serif",iM={height:"auto",fontSize:rM,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},aM={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:nM},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},sM=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,lM=(e,t)=>e.representation.type===jA.Image&&"fitHeight"===e.representation.imageSize?sM(t,e.representation):e.align,uM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",cM=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},dM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,pM=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",fM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",hM=24,mM=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),gM=mc(ip,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?uM(e,n):void 0})),vM=mc(ip,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${tE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${tE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),bM=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),yM=mc(ip,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),xM=mc(md,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),SM=KE(),wM=KE(0),CM=KE(0),EM=4/3,RM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function AM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const PM=(e,t)=>e?{borderBottomColor:PC.DARK_MODE_BORDER,borderRightColor:PC.DARK_MODE_BORDER,borderLeftColor:PC.DARK_MODE_BORDER,borderTopColor:PC.DARK_MODE_BORDER}:{borderLeftColor:PC.BORDER_MEDIUM,borderRightColor:PC.BORDER_MEDIUM,borderTopColor:PC.BORDER_HEAVY,borderBottomColor:t?PC.BORDER_HEAVY:PC.BORDER_LIGHT},MM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*EM+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},IM=e=>e.components?.find(e=>"theme"===e.key),kM=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:RM(r?.fontColor)?AM(PC.TEXT,t,r?.fontColor):i||PC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...PM(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function DM(e,t,r){const n=IM(e)?.header,o=kM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=oe(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=kC(o.background??PC.WHITE,uE),o.activeBackground=kC(o.background??PC.WHITE,cE),o}const TM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in aM)(e)&&Object.assign(t,aM[e])),t};function OM(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&TC(i);a&&(n[r[t]]=a),o=i?TM(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=MC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var LM={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:NM(e),value:NM(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},qM=LM;function NM(e){try{return decodeURIComponent(e)}catch{return e}}function _M(e){if(!(this instanceof _M))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>qM.fromSearchString(t.search)}})}function jM(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")}_M.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},_M.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=jM(t.key),t.value?r+=`=${jM(t.value)}`:r+=t.useEqualSign?"=":"";return r};var zM=_M;var FM,$M=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}},HM=class{decode(e){let t="";const r=new $M(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},BM=e=>e>=0&&e<=1114111,WM=e=>e.match(/[\s]/),VM=class extends HM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!WM(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return BM(a)?String.fromCharCode(a):"�"}},UM=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},GM=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return UM.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return UM.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||UM.newInstanceIfNeeded(e,t,this._value)}},YM=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 GM);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},KM=(()=>{const e=[],t=[],r=new YM;let n,o,i;for(n 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[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),XM=class extends HM{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,KM.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=KM.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&BM(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&BM(n)?String.fromCharCode(n):null}},JM=class extends HM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),BM(i))?String.fromCharCode(i):(e.reset(),null)}},ZM=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,QM=5e6,eI=5e5,tI=(e,t)=>{const{maxByteSizeSvg:r=eI,maxByteSizeImage:n=QM}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=ZM.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(FM=document.createElement("div"));var rI=Array.prototype.indexOf,nI=[",",".","_"," "],oI=[",",".","-","_"," "],iI={width:["%"],height:["%"]},aI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":aI.image,"background-color":aI.color,"border-color":aI.color,"border-image":aI.image,color:aI.color,icon:aI.image,"list-style-image":aI.image,"outline-color":aI.color},lI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function uI(e,t,r){let n;if(t){if(rI)return rI.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function cI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return FM.appendChild(r),t=FM.innerHTML,FM.removeChild(r),t}function dI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=fI(e).toLowerCase(),t=fI(t),i=0;i<lI.attr_name.length;i++)if(e.match(lI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<lI.attr_val.length;i++)if(t.toLowerCase().match(lI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=iI[e],n||(n=oI),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function pI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=fI(e).toLowerCase(),t=fI(t),uI(e,lI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<lI.css_val.length;n++)if(t.toLowerCase().indexOf(lI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=sI[e],o||(o=aI.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function fI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new XM,new JM,new VM];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var hI=[];for(let e=0;e<255;e++)hI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var mI={html:e=>cI(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=pI(t,r[t],!0),i+=pI(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=dI(e,t[e],!0),o+=dI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function gI(e,t){throw new Error(t)}var vI={canonicalize:fI,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?mI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&gI(this,"Invalid parameter type"),mI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&gI(this,"Invalid parameter type"),mI.attr(e)):void gI(this,"Invalid parameter type")},encodeForAttr:dI,encodeForAttr2:function(e){return dI("nonsens",e,!0)},encodeForCSS:pI,encodeForHref:function(e){fI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new zM(e),r=zM.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+zM.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=nI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),uI(o,t)>=0||null==hI[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:cI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=fI(t).toLowerCase():gI(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:tI,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const bI=(e,t)=>t.qAttrExps?.qValues?.[e],yI=(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"}}},xI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!vI.isSafeDataURL(t))?{type:jA.Text,url:void 0,text:e,labelStructure:o}:{type:jA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:yI(n,a),labelStructure:o,imageBox:i},SI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:jA.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:jA.MiniChart,text:n,miniChart:a}},wI=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===zA.Attribute?void 0:r?.urlLabel},CI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:jA.Link,url:vI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:jA.Text,url:void 0,text:t,labelStructure:e}}},EI=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=FA(t),d=s(e);return c===jA.Image&&u[jA.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=bI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),xI({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return xI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=bI(r.imageLabel??-1,e)?.qText??n;return xI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:jA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===jA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===zA.Attribute){const i=wI(r.url??-1,e,t);return CI({labelStructure:n,text:o||i||"",url:i})}if(i===zA.Dimension){const i=wI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),CI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:jA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===jA.Indicator&&u[jA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:jA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===jA.MiniChart&&u[jA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?SI(e,t,i,d):{type:jA.Text,url:void 0,text:d,labelStructure:a}};import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const RI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),AI=new WeakMap,PI=()=>{};function MI(e,t=PI){return((e,t,r)=>{const n=RI(()=>new WeakMap,AI,t);return RI(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=KE(0),i=KE([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,e=>e+1)])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=KE(s=>{let l;s(o);try{l=s(a)}catch(e){}const u=s(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=>{n.set(u,e);const[t]=s(i);t()},e=>{r.set(u,e);const[t]=s(i);t()}),r.has(u))throw r.get(u);return n.has(u)?{p:u,v:n.get(u)}:l&&"v"in l?{p:u,f:t(l.v),v:l.v}:{p:u,f:t()}});return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),KE(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const II=KE(e=>{const t=e(jR),r=e(SR);return e(wR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),kI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),DI=({cId:e})=>e??DA(),TI=1e4;function OI(e,t){return[...t].reverse().find(t=>t*e<=TI)||Math.floor(TI/e)}function LI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function qI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function NI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return BP(r?.qNum)}function _I(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const jI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",zI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=oe(r??""),i=oe(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?kC(s,uE):void 0,u=s?kC(s,cE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:MC(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const FI=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===dE.Cyclic,g=l===s[0];let v,b,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:v}=e)}else({qMiniChart:b}=h);const{qFallbackTitle:A,textAlign:P,qAttrExprInfo:M,qSortIndicator:I,qReverseSort:k,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:L}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:k,columnWidth:T??{type:lE.Auto},selectionColIdx:S,isActivelySorted:g,id:DI(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:M.map(e=>e.id),qAttrExprInfoIndex:kI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:qI(e,f,u,d??-1),...!f&&{isTotalNumeric:NI(e,d??-1)},..._I(P,v,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:b,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?zI(L,r):void 0}}(e,o,t,r,n))},$I=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",HI=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,BI={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},WI=KE(e=>{const t=e(VI),r=e(gR),n=e(II),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>TI?{...t,rowsPerPage:OI(l,t.rowsPerPageOptions),page:0}:t}),VI=KE(BI),UI=KE(e=>{const t=e(gR),r=e(jR),n=e(II);return LR(t,r)?{page:n.page||BI.page,rowsPerPage:n.rowsPerPage||BI.rowsPerPage,rowsPerPageOptions:BI.rowsPerPageOptions}:e(WI)},(e,t,r)=>{t(VI,e=>({...e,...r}))}),GI=!0,YI=KE(async e=>{const t=e(gR),r=e(jR),n=e(NR),{page:o,rowsPerPage:i}=e(UI),a=e(II),s=e(BR),l=e(fR),u=e(bR),c=e(hR),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,v=LI(t,r),b=FI(t,GI,n,c),y=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const x=y.at(0)?.qMatrix.map((e,r)=>{const o=[];return b.forEach((i,a)=>{const s=e[a],u=$I(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?VP(u):WP(s);o[a]={id:DA(),...s,align:jI(d,i.bodyTextAlign,n,GI),rowIdx:r+h,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===m-1,isNumeric:d,isNull:(!c||!d)&&HI(s,i.isDim),representation:EI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[jA.Image]:!0,[jA.Indicator]:!0,[jA.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:v,columns:b,rows:x}}),KI=MI(YI,e=>e),XI=25e4,JI=KE(e=>{const t=e(gR),r=e(jR),n=e(MR),o=e(NR),i=e(hR),a=FI(t,false,o,i),s=LI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(XI,l),c=l>XI&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),ZI={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},QI=KE(),ek=KE(e=>{const t=e(FR),r=e(QI);return r||(t?e(KI)??ZI:e(JI))}),tk=KE(e=>e(ek).totalsPosition),rk=KE(e=>e(ek).columns),nk=KE(e=>e(ek).rows),ok=KE(e=>e(ek).totalRowCount),ik=KE(e=>e(ek).totalColumnCount),ak=KE(e=>e(ek).paginationNeeded),sk=KE(e=>{const t=e(KR),r=e(ZR),n=e(gR),o=e(tk),i=e(nk),a=o.atTop,s=function(e,t,r,n){const o=IM(e)?.content,i=kM("content",t,o);i.background=t.background.color;const a=MM(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=RM(l)||!!c,p=RM(s)||!!u,f=d||p;let h;h=RM(s)?AM(PC.HOVER,t,s):u||(d?"":PC.HOVER);const m=f?AM(MC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=DM(n,r,!a),u=function(e,t,r){const n=IM(e)?.content,o=kM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=DM(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),lk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},uk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=lk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},ck=(e,t,r,n=PC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=uk(e,t,r);return _C(i,o,a,n)??n},dk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return rM}},pk=e=>e?.some(e=>"italic"===e)?"italic":"normal",fk=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?nM:"normal",hk=e=>!1===e?1:3,mk=e=>parseInt(e??iM.fontSize,10)*tM,gk=e=>e?.some(e=>"underline"===e)?"underline":"none",vk=KE(e=>{const t=e(jR),r=e(FR),n=e(ZR),o=e(gR),i=e(sk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=IM(o)??{},f=r?PC.WHITE:PC.TRANSPARENT,h=ck(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??oM,fontSize:dk(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:pk(a?.fontStyle),fontWeight:fk(a?.fontStyle,nM),textDecoration:gk(a?.fontStyle),color:lk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??PC.TEXT,background:h},headerMenuHoverBackground:kC(h,uE),headerMenuActiveBackground:kC(h,cE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??oM,fontSize:dk(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:pk(s?.fontStyle),fontWeight:fk(s?.fontStyle,"normal"),textDecoration:gk(s?.fontStyle),color:lk(n,s?.fontColor)??lk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??PC.TEXT,background:uk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??PC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??oM,fontSize:dk(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:pk(l?.fontStyle),fontWeight:fk(l?.fontStyle,"normal"),textDecoration:gk(l?.fontStyle),color:lk(n,l?.fontColor)??lk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??PC.TEXT,background:uk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??PC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??oM,fontSize:dk(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:pk(u?.fontStyle),fontWeight:fk(u?.fontStyle,nM),textDecoration:gk(u?.fontStyle),color:lk(n,u?.fontColor)??lk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??PC.TEXT,background:ck(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:pk(c?.fontStyle),fontWeight:fk(c?.fontStyle,"normal"),textDecoration:gk(c?.fontStyle),color:lk(n,c?.fontColor)??lk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??PC.TEXT,background:lk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??PC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??hk(o.multiline?.wrapTextInCells),headerLineClamp:hk(o.multiline?.wrapTextInHeaders),border:lk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?PC.DARK_MODE_BORDER:PC.BORDER_MEDIUM),divider:lk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??PC.BORDER_HEAVY,hoverColors:{color:lk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:lk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:lk(n,d?.zebraStripes?.color?.odd),background:lk(n,d?.zebraStripes?.background?.odd)},even:{color:lk(n,d?.zebraStripes?.color?.even),background:lk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===lk(n,c?.background),overrideNullValueColor:void 0===lk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:IC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:v,totalRowLineHeight:b,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(mk(e.header.fontSize)+8,32),r=mk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(mk(e.dimension.values.fontSize),mk(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(g);return g.headerMinRowHeight=v,g.totalRowLineHeight=b,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),bk=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(sE.PixelsMax,Math.max(sE.PixelsMin,f)),i-=n[a]};switch(s){case lE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?sE.PixelsDefault:+e)(l),h();break;case lE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?sE.PercentageDefault:+e)(u)/100*t,h();break;case lE.FitToContent:e.representation?.type===jA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case lE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(sE.AutoMinTable,e)})}return n},yk=KE(e=>{const t=e(vk),r=e(ek).totalsPosition,n=e(CR),{measureText:o}=e(TP({...t.header,fontWeight:nM})),{measureText:i}=e(TP({...t.totalRow,fontWeight:nM})),{estimateWidth:a}=e(TP(t.dimension.values)),{estimateWidth:s}=e(TP(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=hM),t+=hM,t+=hM,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),xk=KE(null),Sk=KE(e=>{const t=e(ek),r=e(YR).width,n=e(CM),o=e(yk);return bk(t.columns,r-n,o)}),wk=KE(e=>e(xk)??e(Sk),(e,t,r)=>{t(xk,r)}),Ck=LP(e=>{const t=e(_P);!1===e(SM)&&t.emit("done-adjusting-column-width")}),Ek=LP((e,t)=>{e(gR),t(xk,null)}),Rk=({children:e})=>(sR(Ek),sR(Ck),e);function Ak(e){const t=RC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Tu({...t,direction:e})}const Pk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Mk={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Ik=mc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Pk},"&::-moz-range-track":{...Pk},"&::-ms-track":{...Pk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Mk},"&::-moz-range-thumb":{...Mk},"&::-ms-thumb":{...Mk},"&: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"}})),kk=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=ZC({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",v={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},b=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};XC(()=>{m&&b()},[e]);const y=e=>{const t=Math.max(e,sE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:lE.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{LC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{LC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===iE.Left||e.key===iE.Right){LC(e);const t=5,r=e.key===iE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===iE.Space||e.key===iE.Enter?(LC(e),s(e),l?.(!1),x()):e.key===iE.Esc&&(LC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return nr.jsx(Ik,{style:v,hoverColor:o,isLastColumn:r,className:aE,"data-testid":aE,onMouseDown:e=>{LC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:lE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(LC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),b(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":sE.PixelsMin,"aria-valuemax":sE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Dk=q((e,t)=>nr.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:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Tk=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},Ok=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),Lk=mc(Dk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),qk=mc($f)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Nk=mc(_p)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),_k=mc(Uf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),jk=mc(Uf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),zk=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Fk=mc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),$k=mc(Sd)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Hk=mc(hf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),Bk=q((e,t)=>nr.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:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Wk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Wk(t):t:e.parentElement?.children?.[0]},Vk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Vk(t):t},Uk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===iE.Down||t===iE.Up){const r=e=>t===iE.Down?Wk(e):Vk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},Gk=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let Yk={};const Kk=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(jk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),Yk={}),a?.length&&(p(!0),Yk[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Uk,children:[l?nr.jsx(zk,{direction:u,isPagination:c}):null,nr.jsxs(Fk,{children:[nr.jsx(Hk,{direction:u,isPagination:c,children:nr.jsx(o,{})}),nr.jsx($k,{variant:"body2",children:n})]}),a?.length?nr.jsx(Bk,{}):null]},t),a?.length?nr.jsx(Qk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Gk(a,Yk),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},Xk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&nr.jsx(_k,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>nr.jsx(Kk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),Jk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[Xk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(Nk,{"data-testid":"group-divider",variant:"middle"}):void 0]),Zk={appear:0,enter:0,exit:0},Qk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(qk,{className:rE,open:t,anchorEl:e,onClose:r,transitionDuration:Zk,MenuListProps:{id:nE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Jk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,eD=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),tD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),rD=(e,t)=>e.some(e=>t[e]>0),nD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},oD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(nD);return XC(()=>{e||(s(nD),i(null))},[e]),D(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=tD(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:rD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:rD(["qSelected"],e),canSelectPossible:rD(["qOption"],e),canSelectAlternative:rD(["qAlternative"],e),canSelectExcluded:rD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},iD=q((e,t)=>nr.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:nr.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"})})),aD=q((e,t)=>nr.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:nr.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"})})),sD=q((e,t)=>nr.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:nr.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"})})),lD=q((e,t)=>nr.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:nr.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"})})),uD=q((e,t)=>nr.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:nr.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"})})),cD=q((e,t)=>nr.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:nr.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"})})),dD=q((e,t)=>nr.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:nr.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"})})),pD=q((e,t)=>nr.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:nr.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"})})),fD=q((e,t)=>nr.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:nr.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"})})),hD=q((e,t)=>nr.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:nr.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"})})),mD=q((e,t)=>nr.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:nr.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"})})),gD=q((e,t)=>nr.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:nr.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"})})),vD=q((e,t)=>nr.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:nr.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"})})),bD=q((e,t)=>nr.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:nr.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 yD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const xD="/qListObjectDef",SD=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[yD.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:iD,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:lD,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:pD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:uD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[yD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:fD,enabled:!0}]}]),!e.isLocked&&r[yD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:bD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(xD))},icon:hD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(xD))},icon:vD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(xD))},icon:mD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(xD))},icon:gD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(xD))},icon:aD,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:dD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:cD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[yD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:sD,enabled:!0}]}]),f},wD=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:v=QC})=>{const b=M(null),y=ZC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=oD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=Tk({model:f,headerData:n}),P=eD({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=O(e=>{e.stopPropagation(),t(!1)},[t]),k=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?nr.jsxs(Ok,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:tE,onClick:!1===g?k:void 0,ref:b,isAccessibleHeader:g,children:[s?nr.jsx(Lk,{height:v,className:eE,"data-testid":eE,isInteractionsActive:i.active??!1,children:nr.jsx(Dk,{})}):null,nr.jsx(Qk,{open:e,anchorEl:!1===g?b.current:r.current,onClose:I,menuGroups:SD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:P,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},CD=e=>e.isDark?{background:e.color,borderColor:PC.DARK_MODE_BORDER,color:PC.DARK_MODE_TEXT,disabledColor:PC.DARK_MODE_DISABLED,iconColor:PC.DARK_MODE_TEXT}:{background:e.color,borderColor:PC.BORDER_MEDIUM,color:PC.TEXT,disabledColor:PC.DISABLED},ED=mc(ip,{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}`})),RD=mc(Ah,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),AD=mc(mp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),PD=mc(Sd)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),MD=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>CD(n.background),[n]);if(!r.active)return null;const a=o?nr.jsx(ED,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},ID=I({}),kD=()=>L(ID),DD=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,b=A(()=>CD(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=ZC({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:v,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,b,v,y,g]);return nr.jsx(ID.Provider,{value:S,children:e})};let TD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),OD=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 LD=q((e,t)=>nr.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:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),qD=q((e,t)=>nr.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:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),ND=q((e,t)=>nr.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:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),_D={FirstPage:qD,PreviousPage:LD,NextPage:Bk,LastPage:ND,FirstPageRTL:ND,PreviousPageRTL:Bk,NextPageRTL:LD,LastPageRTL:qD},jD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=kD(),u=r.concat("rtl"===n?"RTL":""),c=_D[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},zD=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=kD(),o=0===e.page,{IconComponent:i,styledProps:a}=jD({type:TD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||OD.FirstPage)?null:nr.jsx(AD,{...a,disabled:!r.active,children:nr.jsx(i,{height:QC})})},FD=(e,t,r=!1)=>{r&&e.key===iE.Tab&&!e.shiftKey&&(LC(e),OC(e.target,t,!1))},$D=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=kD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=jD({type:TD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{FD(e,t,n)}:void 0;return o<=(a?.lastPage||OD.LastPage)?null:nr.jsx(AD,{...u,onKeyDown:c,disabled:!i.active,children:nr.jsx(l,{height:QC})})},HD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=kD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=jD({type:TD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>OD.FirstPage&&o>OD.LastPage)&&t.enabled?e=>{FD(e,t,n)}:void 0;return nr.jsx(AD,{...l,onKeyDown:u,disabled:!i.active,children:nr.jsx(s,{height:QC})})},BD=()=>{const{pageInfo:e,interactions:t}=kD(),r=0===e.page,{IconComponent:n,styledProps:o}=jD({type:TD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return nr.jsx(AD,{...o,disabled:!t.active,children:nr.jsx(n,{height:QC})})},WD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=kD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||OD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(PD,{variant:"caption",dir:"ltr",children:s})},VD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=kD(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return nr.jsxs(nr.Fragment,{children:[nr.jsxs(PD,{variant:"caption",id:p,children:[c,":"]}),nr.jsx(RD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},UD=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=kD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||OD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map(e=>nr.jsx("option",{value:e,children:e},e))});return nr.jsx(VD,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},GD=1e3,YD="…",KD=({totalPages:e,page:t})=>{const r=Math.min(e,GD),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-GD):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(nr.jsx("option",{value:YD,disabled:!0,children:YD},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:YD,disabled:!0,children:YD},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},XD=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=kD(),{page:i}=e;if(t<=(o?.selectPage||OD.SelectPage))return null;const a=nr.jsx(KD,{totalPages:r,page:i});return nr.jsx(VD,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var JD=N(e=>nr.jsxs(DD,{...e,children:[nr.jsx(UD,{}),nr.jsx(XD,{}),nr.jsx(WD,{}),nr.jsx(zD,{}),nr.jsx(BD,{}),nr.jsx(HD,{}),nr.jsx($D,{})]}));const ZD=e=>nr.jsx(MD,{...e,children:nr.jsx(JD,{...e})}),QD=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},eT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},tT=e=>e.ctrlKey||e.metaKey,rT=e=>e.shiftKey&&tT(e),nT=e=>[iE.Left,iE.Right,iE.Up,iE.Down].includes(e),oT=e=>e.shiftKey&&nT(e.key),iT=e=>(e=>nT(e)||[iE.Home,iE.End,iE.PageUp,iE.PageDown].includes(e))(e.key)&&!rT(e),aT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),QD(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},sT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&oT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&oT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===iE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return QD(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},lT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},uT=(e,t)=>{switch(t.type){case zP.Select:return aT(e,t.payload);case zP.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case zP.SelectMouseUp:return((e,t)=>lT(e.isSelectMultiValues||e.firstCell!==t.cell?e:aT(e,t)))(e,t.payload);case zP.SelectMultiAdd:return sT(e,t.payload);case zP.SelectMultiEnd:return lT(e);case zP.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case zP.Clear:return e.rows.size?{...e,rows:new Map}:e;case zP.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},cT=KE(e=>{const t=e(AR);return function(e,t){return KE(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(ek).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},uT)}),dT=KE(e=>e(e(cT)),(e,t,r)=>{t(e(cT),r)}),pT=DP(e=>KE(t=>{const{colIdx:r,rows:n,api:o}=t(dT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?jP.Disabled:n.has(e.qElemNumber)?jP.Selected:jP.Possible:jP.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),fT=KE(e=>{const t=e(wk),r=e(YR).width,n=e(CM);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var hT=Symbol.for("preact-signals");function mT(){if(xT>1)xT--;else{var e,t=!1;for(!function(){var e=ET;for(ET=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==yT;){var r=yT;for(yT=void 0,ST++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&IT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(ST=0,xT--,t)throw e}}function gT(e){if(xT>0)return e();CT=++wT,xT++;try{return e()}finally{mT()}}var vT=void 0;function bT(e){var t=vT;vT=void 0;try{return e()}finally{vT=t}}var yT=void 0,xT=0,ST=0,wT=0,CT=0,ET=void 0,RT=0;function AT(e){if(void 0!==vT){var t=e.n;if(void 0===t||t.t!==vT)return t={i:0,S:e,p:vT.s,n:void 0,t:vT,e:void 0,x:void 0,r:t},void 0!==vT.s&&(vT.s.n=t),vT.s=t,e.n=t,32&vT.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=vT.s,t.n=void 0,vT.s.n=t,vT.s=t),t}}function PT(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 MT(e,t){return new PT(e,t)}function IT(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 kT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function DT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function TT(e,t){PT.call(this,void 0),this.x=e,this.s=void 0,this.g=RT-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 OT(e,t){return new TT(e,t)}function LT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){xT++;var r=vT;vT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,qT(e),t}finally{vT=r,mT()}}}function qT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,LT(e)}function NT(e){if(vT!==this)throw new Error("Out-of-order effect");DT(this),vT=e,this.f&=-2,8&this.f&&qT(this),mT()}function _T(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 jT(e,t){var r=new _T(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}PT.prototype.brand=hT,PT.prototype.h=function(){return!0},PT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:bT(function(){var e;null==(e=t.W)||e.call(t)}))},PT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&bT(function(){var e;null==(e=t.Z)||e.call(t)}))}},PT.prototype.subscribe=function(e){var t=this;return jT(function(){var r=t.value,n=vT;vT=void 0;try{e(r)}finally{vT=n}},{name:"sub"})},PT.prototype.valueOf=function(){return this.value},PT.prototype.toString=function(){return this.value+""},PT.prototype.toJSON=function(){return this.value},PT.prototype.peek=function(){var e=vT;vT=void 0;try{return this.value}finally{vT=e}},Object.defineProperty(PT.prototype,"value",{get:function(){var e=AT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ST>100)throw new Error("Cycle detected");!function(e){0!==xT&&0===ST&&e.l!==CT&&(e.l=CT,ET={S:e,v:e.v,i:e.i,o:ET})}(this),this.v=e,this.i++,RT++,xT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{mT()}}}}),TT.prototype=new PT,TT.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===RT)return!0;if(this.g=RT,this.f|=1,this.i>0&&!IT(this))return this.f&=-2,!0;var e=vT;try{kT(this),vT=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 vT=e,DT(this),this.f&=-2,!0},TT.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)}PT.prototype.S.call(this,e)},TT.prototype.U=function(e){if(void 0!==this.t&&(PT.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)}},TT.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(TT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=AT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),_T.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()}},_T.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,LT(this),kT(this),xT++;var e=vT;return vT=this,NT.bind(this,e)},_T.prototype.N=function(){2&this.f||(this.f|=2,this.u=yT,yT=this)},_T.prototype.d=function(){this.f|=8,1&this.f||qT(this)},_T.prototype.dispose=function(){this.d()};var zT,FT,$T,HT,BT,WT,VT,UT,GT,YT,KT,XT,JT,ZT,QT,eO,tO,rO,nO,oO,iO=Object.create,aO=Object.defineProperty,sO=Object.defineProperties,lO=Object.getOwnPropertyDescriptor,uO=Object.getOwnPropertyDescriptors,cO=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,pO=Object.prototype.propertyIsEnumerable,fO=e=>{throw TypeError(e)},hO=(e,t,r)=>t in e?aO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mO=(e,t)=>aO(e,"name",{value:t,configurable:!0}),gO=["class","method","getter","setter","accessor","field","value","get","set"],vO=e=>void 0!==e&&"function"!=typeof e?fO("Function expected"):e,bO=(e,t,r,n,o)=>({kind:gO[e],name:t,metadata:n,addInitializer:e=>r._?fO("Already initialized"):o.push(vO(e||null))}),yO=(e,t)=>{return hO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},xO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},SO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=gO[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&lO(d<4?o:{get[r](){return EO(this,i)},set[r](e){return AO(this,i,e)}},r));d?f&&d<4&&mO(i,(d>2?"set ":d>1?"get ":"")+r):mO(o,r);for(var y=n.length-1;y>=0;y--)u=bO(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>CO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?EO:PO)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>AO(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?vO(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?fO("Object expected"):(vO(a=s.get)&&(b.get=a),vO(a=s.set)&&(b.set=a),vO(a=s.init)&&g.unshift(a));return d||yO(e,o),b&&aO(o,r,b),f?4^d?i:b:o},wO=(e,t,r)=>t.has(e)||fO("Cannot "+r),CO=(e,t)=>Object(t)!==t?fO('Cannot use the "in" operator on this value'):e.has(t),EO=(e,t,r)=>(wO(e,t,"read from private field"),r?r.call(e):t.get(e)),RO=(e,t,r)=>t.has(e)?fO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),AO=(e,t,r,n)=>(wO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),PO=(e,t,r)=>(wO(e,t,"access private method"),r);function MO(e,t){if(t){let r;return OT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return OT(e)}function IO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!IO(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!IO(e[r],t[r]));return!o}return!1}function kO({get:e},t){return{init:e=>MT(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function DO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=MO(e.bind(this)),r.set(this,t)),t.value}}function TO(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>sO(e,uO(t)))(((e,t)=>{for(var r in t||(t={}))dO.call(t,r)&&hO(e,r,t[r]);if(cO)for(var r of cO(t))pO.call(t,r)&&hO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function OO(...e){const t=e.map(e=>jT(e));return()=>t.forEach(e=>e())}WT=[kO],BT=[kO],HT=[kO],$T=[TO()],FT=[TO()],zT=[TO()];var LO,qO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,xO(VT,5,this),RO(this,XT),RO(this,UT,xO(VT,8,this)),xO(VT,11,this),RO(this,JT,xO(VT,12,this)),xO(VT,15,this),RO(this,tO,xO(VT,16,this)),xO(VT,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return EO(this,XT,nO)}get initial(){return EO(this,XT,YT)}get previous(){return EO(this,XT,QT)}set current(e){const t=bT(()=>EO(this,XT,nO));e&&t&&this.equals(t,e)||gT(()=>{EO(this,XT,YT)||AO(this,XT,e,KT),AO(this,XT,t,eO),AO(this,XT,e,oO)})}reset(e=this.defaultValue){gT(()=>{AO(this,XT,void 0,eO),AO(this,XT,e,KT),AO(this,XT,e,oO)})}};function NO(e){return bT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}VT=[,,,iO(null)],UT=new WeakMap,XT=new WeakSet,JT=new WeakMap,tO=new WeakMap,GT=SO(VT,20,"#initial",WT,XT,UT),YT=GT.get,KT=GT.set,ZT=SO(VT,20,"#previous",BT,XT,JT),QT=ZT.get,eO=ZT.set,rO=SO(VT,20,"#current",HT,XT,tO),nO=rO.get,oO=rO.set,SO(VT,2,"current",$T,qO),SO(VT,2,"initial",FT,qO),SO(VT,2,"previous",zT,qO),yO(VT,qO);LO=new WeakMap;var _O,jO,zO,FO,$O,HO=Object.create,BO=Object.defineProperty,WO=Object.getOwnPropertyDescriptor,VO=Object.getOwnPropertySymbols,UO=Object.prototype.hasOwnProperty,GO=Object.prototype.propertyIsEnumerable,YO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),KO=e=>{throw TypeError(e)},XO=Math.pow,JO=(e,t,r)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZO=["class","method","getter","setter","accessor","field","value","get","set"],QO=e=>void 0!==e&&"function"!=typeof e?KO("Function expected"):e,eL=(e,t,r,n,o)=>({kind:ZO[e],name:t,metadata:n,addInitializer:e=>r._?KO("Already initialized"):o.push(QO(e||null))}),tL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=ZO[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,WO(o,r)),h=n.length-1;h>=0;h--)(l=eL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,QO(a)&&(f[d]=a);return f&&BO(o,r,f),o},rL=(e,t,r)=>t.has(e)||KO("Cannot "+r),nL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},oL=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))UO.call(t,r)&&JO(e,r,t[r]);if(VO)for(var r of VO(t))GO.call(t,r)&&JO(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new nL((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return nL.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var iL,aL=class extends(zO=qO,jO=[DO],_O=[DO],zO){constructor(e){var t,r,n;super(nL.from(e),(e,t)=>nL.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})($O,5,this),t=this,n=0,(r=FO).has(t)?KO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return nL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=nL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(rL(a=this,s=FO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);gT(()=>{((e,t,r)=>{rL(e,t,"write to private field"),t.set(e,r)})(this,FO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(nL.from(e)),this.velocity={x:0,y:0}}};function sL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(XO(n,2)+XO(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}$O=(e=>{var t;return[,,,HO(null!=(t=null==e?void 0:e[YO("metadata")])?t:null)]})(zO),FO=new WeakMap,tL($O,2,"delta",jO,aL),tL($O,2,"direction",_O,aL),iL=$O,JO(aL,YO("metadata"),iL[3]);var lL,uL,cL,dL,pL=(e=>(e.Horizontal="x",e.Vertical="y",e))(pL||{}),fL=Object.values(pL),hL=Object.create,mL=Object.defineProperty,gL=Object.defineProperties,vL=Object.getOwnPropertyDescriptor,bL=Object.getOwnPropertyDescriptors,yL=Object.getOwnPropertySymbols,xL=Object.prototype.hasOwnProperty,SL=Object.prototype.propertyIsEnumerable,wL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),CL=e=>{throw TypeError(e)},EL=(e,t,r)=>t in e?mL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RL=(e,t)=>{for(var r in t||(t={}))xL.call(t,r)&&EL(e,r,t[r]);if(yL)for(var r of yL(t))SL.call(t,r)&&EL(e,r,t[r]);return e},AL=(e,t)=>gL(e,bL(t)),PL=(e,t)=>mL(e,"name",{value:t,configurable:!0}),ML=(e,t)=>{var r={};for(var n in e)xL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&yL)for(var n of yL(e))t.indexOf(n)<0&&SL.call(e,n)&&(r[n]=e[n]);return r},IL=e=>{var t;return[,,,hL(null!=(t=null==e?void 0:e[wL("metadata")])?t:null)]},kL=["class","method","getter","setter","accessor","field","value","get","set"],DL=e=>void 0!==e&&"function"!=typeof e?CL("Function expected"):e,TL=(e,t,r,n,o)=>({kind:kL[e],name:t,metadata:n,addInitializer:e=>r._?CL("Already initialized"):o.push(DL(e||null))}),OL=(e,t)=>EL(t,wL("metadata"),e[3]),LL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},qL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=kL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&vL(d<4?o:{get[r](){return jL(this,i)},set[r](e){return FL(this,i,e)}},r));d?f&&d<4&&PL(i,(d>2?"set ":d>1?"get ":"")+r):PL(o,r);for(var y=n.length-1;y>=0;y--)u=TL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>_L(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jL:$L)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>FL(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?DL(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?CL("Object expected"):(DL(a=s.get)&&(b.get=a),DL(a=s.set)&&(b.set=a),DL(a=s.init)&&g.unshift(a));return d||OL(e,o),b&&mL(o,r,b),f?4^d?i:b:o},NL=(e,t,r)=>t.has(e)||CL("Cannot "+r),_L=(e,t)=>Object(t)!==t?CL('Cannot use the "in" operator on this value'):e.has(t),jL=(e,t,r)=>(NL(e,t,"read from private field"),r?r.call(e):t.get(e)),zL=(e,t,r)=>t.has(e)?CL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),FL=(e,t,r,n)=>(NL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),$L=(e,t,r)=>(NL(e,t,"access private method"),r);function HL(e,t){return{plugin:e,options:t}}function BL(e){return t=>HL(e,t)}function WL(e){return"function"==typeof e?{plugin:e,options:void 0}:e}lL=[kO];var VL=class{constructor(e,t){this.manager=e,this.options=t,zL(this,cL,LL(uL,8,this,!1)),LL(uL,11,this),zL(this,dL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return bT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=jT(e.bind(this));return jL(this,dL).add(t),t}destroy(){jL(this,dL).forEach(e=>e())}static configure(e){return HL(this,e)}};uL=IL(null),cL=new WeakMap,dL=new WeakMap,qL(uL,4,"disabled",lL,VL,cL),OL(uL,VL);var UL,GL=class extends VL{},YL=class{constructor(e){this.manager=e,this.instances=new Map,zL(this,UL,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(WL).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of jL(this,UL))if(!r.includes(e)){if(e.prototype instanceof GL)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);FL(this,UL,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function KL(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}UL=new WeakMap;var XL,JL,ZL=[],QL=class extends VL{constructor(e){super(e),zL(this,XL),zL(this,JL),this.computeCollisions=this.computeCollisions.bind(this),FL(this,JL,MT(ZL)),this.destroy=OO(()=>{const e=this.computeCollisions(),t=bT(()=>this.manager.dragOperation.position.current);if(e!==ZL){const e=jL(this,XL);if(FL(this,XL,t),e&&t.x==e.x&&t.y==e.y)return}else FL(this,XL,void 0);jL(this,JL).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){bT(()=>{e?jL(this,JL).value=this.computeCollisions():FL(this,XL,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return ZL;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=bT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?ZL:(s.sort(KL),s)}get collisions(){return jL(this,JL).value}};XL=new WeakMap,JL=new WeakMap;var eq=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},tq=class extends eq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function rq(e,t=!0){let r=!1;return AL(RL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var nq,oq,iq,aq,sq,lq,uq,cq,dq,pq=class extends GL{constructor(e){super(e);let t=[];this.destroy=OO(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=rq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;bT(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},fq=(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))(fq||{}),hq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(hq||{});uq=[kO],lq=[DO],sq=[DO],aq=[DO],iq=[DO],oq=[DO],nq=[DO];var mq=class{constructor(){LL(cq,5,this),zL(this,dq,LL(cq,8,this,"idle")),LL(cq,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}};cq=IL(null),dq=new WeakMap,qL(cq,4,"value",uq,mq,dq),qL(cq,2,"current",lq,mq),qL(cq,2,"idle",sq,mq),qL(cq,2,"initializing",aq,mq),qL(cq,2,"initialized",iq,mq),qL(cq,2,"dragging",oq,mq),qL(cq,2,"dropped",nq,mq),OL(cq,mq);var gq,vq,bq,yq,xq,Sq,wq,Cq,Eq,Rq=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 bT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=rq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return bT(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;gT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=rq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return bT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=rq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return bT(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=bT(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=jT(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};yq=[kO],bq=[kO],vq=[kO],gq=[kO];var Aq=class{constructor(e,t){zL(this,Sq,LL(xq,8,this)),LL(xq,11,this),zL(this,wq,LL(xq,12,this)),LL(xq,15,this),zL(this,Cq,LL(xq,16,this)),LL(xq,19,this),zL(this,Eq,LL(xq,20,this)),LL(xq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};xq=IL(null),Sq=new WeakMap,wq=new WeakMap,Cq=new WeakMap,Eq=new WeakMap,qL(xq,4,"manager",yq,Aq,Sq),qL(xq,4,"id",bq,Aq,wq),qL(xq,4,"data",vq,Aq,Cq),qL(xq,4,"disabled",gq,Aq,Eq),OL(xq,Aq);var Pq,Mq,Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,_q,jq,zq,Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq=class{constructor(){this.map=MT(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=OO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},Zq=class extends(Oq=Aq,Tq=[kO],Dq=[kO],kq=[kO],Iq=[DO],Mq=[DO],Pq=[DO],Oq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=ML(r,["modifiers","type","sensors"]);super(a,t),LL(Lq,5,this),zL(this,qq,LL(Lq,8,this)),LL(Lq,11,this),zL(this,Nq,LL(Lq,12,this)),LL(Lq,15,this),zL(this,_q,LL(Lq,16,this,this.isDragSource?"dragging":"idle")),LL(Lq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};Lq=IL(Oq),qq=new WeakMap,Nq=new WeakMap,_q=new WeakMap,qL(Lq,4,"type",Tq,Zq,qq),qL(Lq,4,"modifiers",Dq,Zq,Nq),qL(Lq,4,"status",kq,Zq,_q),qL(Lq,2,"isDropping",Iq,Zq),qL(Lq,2,"isDragging",Mq,Zq),qL(Lq,2,"isDragSource",Pq,Zq),OL(Lq,Zq);var Qq=class extends(Wq=Aq,Bq=[kO],Hq=[kO],$q=[kO],Fq=[kO],zq=[kO],jq=[DO],Wq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(ML(r,["accept","collisionDetector","collisionPriority","type"]),t),LL(Vq,5,this),zL(this,Uq,LL(Vq,8,this)),LL(Vq,11,this),zL(this,Gq,LL(Vq,12,this)),LL(Vq,15,this),zL(this,Yq,LL(Vq,16,this)),LL(Vq,19,this),zL(this,Kq,LL(Vq,20,this)),LL(Vq,23,this),zL(this,Xq,LL(Vq,24,this)),LL(Vq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Vq=IL(Wq),Uq=new WeakMap,Gq=new WeakMap,Yq=new WeakMap,Kq=new WeakMap,Xq=new WeakMap,qL(Vq,4,"accept",Bq,Qq,Uq),qL(Vq,4,"type",Hq,Qq,Gq),qL(Vq,4,"collisionDetector",$q,Qq,Yq),qL(Vq,4,"collisionPriority",Fq,Qq,Kq),qL(Vq,4,"shape",zq,Qq,Xq),qL(Vq,2,"isDropTarget",jq,Qq),OL(Vq,Qq);var eN,tN=class extends VL{constructor(e,t){super(e,t),this.manager=e,this.options=t}},rN=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)}},nN=class{constructor(e){this.options=e,zL(this,eN)}set controller(e){FL(this,eN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=jL(this,eN))||t.activate(e)}};eN=new WeakMap;var oN,iN,aN,sN,lN,uN,cN,dN,pN,fN,hN,mN,gN,vN,bN,yN,xN,SN,wN,CN=class extends VL{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},EN=class{constructor(e){this.draggables=new Jq,this.droppables=new Jq,this.plugins=new YL(e),this.sensors=new YL(e),this.modifiers=new YL(e)}register(e,t){if(e instanceof Zq)return this.draggables.register(e.id,e);if(e instanceof Qq)return this.droppables.register(e.id,e);if(e.prototype instanceof CN)return this.modifiers.register(e,t);if(e.prototype instanceof tN)return this.sensors.register(e,t);if(e.prototype instanceof VL)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Aq)return e instanceof Zq?this.draggables.unregister(e.id,e):e instanceof Qq?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof CN)return this.modifiers.unregister(e);if(e.prototype instanceof tN)return this.sensors.unregister(e);if(e.prototype instanceof VL)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()}};pN=[DO],dN=[kO],cN=[kO],uN=[kO],lN=[kO],sN=[kO],aN=[DO],iN=[DO],oN=[DO];var RN=class{constructor(e){LL(gN,5,this),zL(this,fN),zL(this,hN),zL(this,mN,new qO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new mq,zL(this,vN,LL(gN,8,this,!1)),LL(gN,11,this),zL(this,bN,LL(gN,12,this,null)),LL(gN,15,this),zL(this,yN,LL(gN,16,this,null)),LL(gN,19,this),zL(this,xN,LL(gN,20,this,null)),LL(gN,23,this),zL(this,SN,LL(gN,24,this,[])),LL(gN,27,this),this.position=new aL({x:0,y:0}),zL(this,wN,{x:0,y:0}),FL(this,fN,e)}get shape(){const{current:e,initial:t,previous:r}=jL(this,mN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?jL(this,mN).current=e:jL(this,mN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=jL(this,fN).registry.draggables.get(t);return r&&FL(this,hN,r),null!=(e=null!=r?r:jL(this,hN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=jL(this,fN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(AL(RL({},this.snapshot()),{transform:r}));return FL(this,wN,r),r}snapshot(){return bT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:jL(this,wN),shape:this.shape?NO(this.shape):null,position:NO(this.position),status:NO(this.status),canceled:this.canceled}))}reset(){gT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,jL(this,mN).reset(),this.position.reset({x:0,y:0}),FL(this,wN,{x:0,y:0}),this.modifiers=[]})}};gN=IL(null),fN=new WeakMap,hN=new WeakMap,mN=new WeakMap,vN=new WeakMap,bN=new WeakMap,yN=new WeakMap,xN=new WeakMap,SN=new WeakMap,wN=new WeakMap,qL(gN,2,"shape",pN,RN),qL(gN,4,"canceled",dN,RN,vN),qL(gN,4,"activatorEvent",cN,RN,bN),qL(gN,4,"sourceIdentifier",uN,RN,yN),qL(gN,4,"targetIdentifier",lN,RN,xN),qL(gN,4,"modifiers",sN,RN,SN),qL(gN,2,"source",aN,RN),qL(gN,2,"target",iN,RN),qL(gN,2,"transform",oN,RN),OL(gN,RN);var AN={get rendering(){return Promise.resolve()}};function PN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var MN=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 r=null!=e?e:{},n=PN(r.plugins,[]),o=PN(r.sensors,[]),i=PN(r.modifiers,[]),a=null!=(t=r.renderer)?t:AN,s=new tq(this),l=new EN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new Rq(this),this.dragOperation=new RN(this),this.collisionObserver=new QL(this),this.plugins=[pq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=OO(()=>{var e,t,r;const n=bT(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=WL(e);return new t(this,r)}))?r:o});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}},IN=e=>{throw TypeError(e)},kN=(e,t,r)=>t.has(e)||IN("Cannot "+r),DN=(e,t,r)=>(kN(e,t,"read from private field"),t.get(e)),TN=(e,t,r)=>t.has(e)?IN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ON=(e,t,r,n)=>(kN(e,t,"write to private field"),t.set(e,r),r),LN=(e,t,r)=>(kN(e,t,"access private method"),r);function qN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function NN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(qN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function _N(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function jN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function zN(e){return"nodeType"in e}function FN(e){var t,r,n;return e?jN(e)?e:zN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function $N(e){const{Document:t}=FN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function HN(e){return!(!e||jN(e))&&(e instanceof FN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function BN(e){return e instanceof FN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function WN(e){return e?jN(e)?e.document:zN(e)?$N(e)?e:HN(e)||BN(e)?e.ownerDocument:document:document:document}function VN(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function UN(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!VN(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),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!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i: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=r*g,b=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+b),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-b),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 GN(e){return{x:e.clientX,y:e.clientY}}var YN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function KN(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...KN(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...KN(o.document,t))}}catch(e){}return r}function XN(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function JN(){var e,t;const r=XN()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function ZN(e){return!(!e||!zN(e))&&e instanceof FN(e).ShadowRoot}function QN(e){if(e&&zN(e)){let t=e.getRootNode();if(ZN(t))return t;if(t instanceof Document)return t}return WN(e)}function e_(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function t_(e){return"value"in e}function r_(e){return"CANVAS"===e.tagName}function n_(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return n_(e,{x:t-o,y:r-i})}}return n}var o_=new WeakMap;var i_=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function a_(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function s_(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var l_,u_=YN?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},c_=class extends u_{constructor(e){super(t=>{DN(this,l_)?e(t,this):ON(this,l_,!0)}),TN(this,l_,!1)}};l_=new WeakMap;var d_,p_,f_,h_,m_,g_,v_,b_,y_,x_,S_,w_=Array.from({length:100},(e,t)=>t/100),C_=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,TN(this,y_),this.disconnect=()=>{var e,t,r;ON(this,v_,!0),null==(e=DN(this,f_))||e.disconnect(),null==(t=DN(this,h_))||t.disconnect(),DN(this,m_).disconnect(),null==(r=DN(this,g_))||r.remove()},TN(this,d_,!0),TN(this,p_),TN(this,f_),TN(this,h_),TN(this,m_),TN(this,g_),TN(this,v_,!1),TN(this,b_,s_(()=>{var e,t,r;const{element:n}=this;if(null==(e=DN(this,h_))||e.disconnect(),DN(this,v_)||!DN(this,d_)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=UN(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,ON(this,h_,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:oL.intersectionRatio(r,UN(n)))&&DN(this,b_).call(this)},{threshold:w_,rootMargin:m,root:o})),DN(this,h_).observe(n),LN(this,y_,x_).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),ON(this,d_,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=UN(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(ON(this,g_,document.createElement("div")),DN(this,g_).style.background="rgba(0,0,0,0.15)",DN(this,g_).style.position="fixed",DN(this,g_).style.pointerEvents="none",o.body.appendChild(DN(this,g_))),ON(this,m_,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=DN(this,d_);ON(this,d_,a),(s||l)&&(u&&!a?(null==(r=DN(this,h_))||r.disconnect(),this.callback(null),null==(n=DN(this,f_))||n.disconnect(),ON(this,f_,void 0),DN(this,g_)&&(DN(this,g_).style.visibility="hidden")):DN(this,b_).call(this),a&&!DN(this,f_)&&(ON(this,f_,new c_(DN(this,b_))),DN(this,f_).observe(e)))},{threshold:w_,root:o})),DN(this,d_)&&!r.skipInitial&&this.callback(this.boundingClientRect),DN(this,m_).observe(e)}};d_=new WeakMap,p_=new WeakMap,f_=new WeakMap,h_=new WeakMap,m_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,y_=new WeakSet,x_=function(){DN(this,v_)||(LN(this,y_,S_).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,DN(this,p_))||(this.callback(this.boundingClientRect),ON(this,p_,this.boundingClientRect)))},S_=function(){if(DN(this,g_)){const{top:e,left:t,width:r,height:n}=UN(this.element);DN(this,g_).style.overflow="hidden",DN(this,g_).style.visibility="visible",DN(this,g_).style.top=`${Math.floor(e)}px`,DN(this,g_).style.left=`${Math.floor(t)}px`,DN(this,g_).style.width=`${Math.floor(r)}px`,DN(this,g_).style.height=`${Math.floor(n)}px`}};var E_,R_,A_,P_,M_=new WeakMap,I_=new WeakMap;function k_(e,t){let r=M_.get(e);if(!r){const t=new C_(e,t=>{const r=M_.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),M_.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(M_.delete(e),r.disconnect())}}var D_=class{constructor(e,t,r){this.callback=t,TN(this,E_),TN(this,R_,!1),TN(this,A_),TN(this,P_,s_(e=>{if(!DN(this,R_)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of DN(this,A_))if(e.target.contains(t)){this.callback(DN(this,E_).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=a_(e);for(;r;)t.add(r),r=a_(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=k_(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!I_.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),I_.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=I_.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),I_.delete(n))}):()=>{}}(e,DN(this,P_));ON(this,A_,n),ON(this,E_,new C_(e,t,r)),this.disconnect=()=>{DN(this,R_)||(ON(this,R_,!0),o(),i(),DN(this,E_).disconnect())}}};function T_(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function O_(e){try{T_(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function L_(e){return!(!YN||!e)&&e===WN(e).scrollingElement}function q_(e){var t,r;const n=FN(e),o=L_(e)?function(e){var t,r,n,o;const{documentElement:i}=WN(e),a=FN(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):_N(e),i=n.visualViewport,a=L_(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.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:o,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 N_(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=q_(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}E_=new WeakMap,R_=new WeakMap,A_=new WeakMap,P_=new WeakMap;var __=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))}},j_=new __(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),z_=new __(e=>setTimeout(e,50)),F_=new Map,$_=F_.clear.bind(F_);function H_(e,t=!1){if(!t)return B_(e);let r=F_.get(e);return r||(r=B_(e),F_.set(e,r),z_.schedule($_),r)}function B_(e){return FN(e).getComputedStyle(e)}var W_={excludeElement:!0,escapeShadowDOM:!0};function V_(e,t=W_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if($N(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&ZN(a))return t(a.host);if(!HN(a))return BN(a)?t(a.parentElement):i;if(i.has(a))return i;const s=H_(a,!0);if(n&&a===e||function(e,t=H_(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=H_(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function U_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=a_(e);for(;n;){if(n===t)return r;const e=_N(n),{x:o,y:i}=G_(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=a_(n)}return r}function G_(e,t=_N(e)){const r=Math.round(t.width),n=Math.round(t.height);if(HN(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=H_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function Y_(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function K_(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=Y_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,b=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:b+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var X_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(X_||{}),J_={x:.2,y:.2},Z_={x:10,y:10};function Q_(e,t,r,n=25,o=J_,i=Z_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=q_(e),f=U_(e),h=K_(H_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new oL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),b={x:0,y:0},y={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(b.y=g?1:-1,y.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(b.y=g?-1:1,y.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(b.x=m?-1:1,y.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(b.x=m?1:-1,y.x=n*Math.abs((v.left+S-a)/S)),{direction:b,speed:y}}function ej(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!HN(e))return e.scrollIntoView();var n=function(e){const[t]=V_(e,{limit:1});return null!=t?t:null}(e);if(!HN(n))return;const o=H_(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function tj({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function rj(e,t=H_(e).translate,r=!0){if(r){const t=NN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=Y_(e);if(t)return t}}}if(t){const e=Y_(t);if(e)return e}return{x:0,y:0,z:0}}var nj=new __(e=>setTimeout(e,0)),oj=new Map,ij=oj.clear.bind(oj);function aj(e,t){const r=function(e){const t=e.ownerDocument;let r=oj.get(t);if(r)return r;r=t.getAnimations(),oj.set(t,r),nj.schedule(ij);const n=r.filter(t=>qN(t.effect)&&t.effect.target===e);return oj.set(e,n),r}(e).filter(e=>{var r,n;if(qN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var sj=class extends oL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=U_(e),ignoreTransforms:s,getBoundingClientRect:l=_N}=t,u=aj(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||XN())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=H_(e),v=K_(g),b={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=qN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=K_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,b.x=y.scaleX,b.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=b,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function lj(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 uj=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(lj(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(lj(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(lj(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function cj(e){return!!e&&(e instanceof FN(e).Element||zN(e)&&e.nodeType===Node.ELEMENT_NODE)}function dj(e){if(!e)return!1;const{KeyboardEvent:t}=FN(e.target);return e instanceof t}var pj={};function fj(e){const t=null==pj[e]?0:pj[e]+1;return pj[e]=t,`${e}-${t}`}var hj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/nL.distance(t.shape.center,r),type:hq.PointerIntersection,priority:fq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=nL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:hq.ShapeIntersection,priority:fq.Normal}}return null})(e)},mj=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?oL.from(n.current.boundingRectangle).corners:void 0,a=oL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+nL.distance(nL.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:hq.Collision,priority:fq.Normal}},gj=Object.create,vj=Object.defineProperty,bj=Object.defineProperties,yj=Object.getOwnPropertyDescriptor,xj=Object.getOwnPropertyDescriptors,Sj=Object.getOwnPropertySymbols,wj=Object.prototype.hasOwnProperty,Cj=Object.prototype.propertyIsEnumerable,Ej=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Rj=e=>{throw TypeError(e)},Aj=(e,t,r)=>t in e?vj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pj=(e,t)=>{for(var r in t||(t={}))wj.call(t,r)&&Aj(e,r,t[r]);if(Sj)for(var r of Sj(t))Cj.call(t,r)&&Aj(e,r,t[r]);return e},Mj=(e,t)=>bj(e,xj(t)),Ij=(e,t)=>vj(e,"name",{value:t,configurable:!0}),kj=(e,t)=>{var r={};for(var n in e)wj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Sj)for(var n of Sj(e))t.indexOf(n)<0&&Cj.call(e,n)&&(r[n]=e[n]);return r},Dj=e=>{var t;return[,,,gj(null!=(t=null==e?void 0:e[Ej("metadata")])?t:null)]},Tj=["class","method","getter","setter","accessor","field","value","get","set"],Oj=e=>void 0!==e&&"function"!=typeof e?Rj("Function expected"):e,Lj=(e,t,r,n,o)=>({kind:Tj[e],name:t,metadata:n,addInitializer:e=>r._?Rj("Already initialized"):o.push(Oj(e||null))}),qj=(e,t)=>Aj(t,Ej("metadata"),e[3]),Nj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},_j=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Tj[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&yj(d<4?o:{get[r](){return Fj(this,i)},set[r](e){return Hj(this,i,e)}},r));d?f&&d<4&&Ij(i,(d>2?"set ":d>1?"get ":"")+r):Ij(o,r);for(var y=n.length-1;y>=0;y--)u=Lj(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>zj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?Fj:Bj)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>Hj(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?Oj(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?Rj("Object expected"):(Oj(a=s.get)&&(b.get=a),Oj(a=s.set)&&(b.set=a),Oj(a=s.init)&&g.unshift(a));return d||qj(e,o),b&&vj(o,r,b),f?4^d?i:b:o},jj=(e,t,r)=>t.has(e)||Rj("Cannot "+r),zj=(e,t)=>Object(t)!==t?Rj('Cannot use the "in" operator on this value'):e.has(t),Fj=(e,t,r)=>(jj(e,t,"read from private field"),r?r.call(e):t.get(e)),$j=(e,t,r)=>t.has(e)?Rj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Hj=(e,t,r,n)=>(jj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Bj=(e,t,r)=>(jj(e,t,"access private method"),r),Wj="button",Vj="draggable",Uj="dnd-kit-description",Gj="dnd-kit-announcement",Yj={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."},Kj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function Xj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var Jj=["dragover","dragmove"],Zj=class extends VL{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=Uj,announcement:o=Gj}={},announcements:i=Kj,screenReaderInstructions:a=Yj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:fj(n),u=r?`${o}-${r}`:fj(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>j_.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,Jj.includes(e)?g():(m(),g.cancel()))})),b=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(b),Xj(r)&&!XN()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",Wj)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",Vj)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&j_.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}};var Qj,ez,tz,rz,nz,oz,iz,az,sz,lz,uz,cz,dz,pz=new Map,fz=class extends(nz=GL,rz=[kO],tz=[DO],ez=[DO],Qj=[DO],nz){constructor(e){super(e),Nj(iz,5,this),$j(this,sz),$j(this,oz,new Set),$j(this,az,Nj(iz,8,this,new Set)),Nj(iz,11,this),this.registerEffect(Bj(this,sz,lz))}register(e){return Fj(this,oz).add(e),()=>{Fj(this,oz).delete(e)}}addRoot(e){return bT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{bT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return QN(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return QN(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}};iz=Dj(nz),oz=new WeakMap,az=new WeakMap,sz=new WeakSet,lz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of Fj(this,oz))t.push(Bj(this,sz,uz).call(this,r,e));return()=>{for(const e of t)e()}},uz=function(e,t){let r=pz.get(e);r||(r=new Map,pz.set(e,r));let n=r.get(t);if(!n){const o=$N(e)?Bj(this,sz,cz).call(this,e,r,t):Bj(this,sz,dz).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},cz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&pz.delete(e)}}},dz=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(ZN(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&pz.delete(e)}}},_j(iz,4,"additionalRoots",rz,fz,az),_j(iz,2,"sourceRoot",tz,fz),_j(iz,2,"targetRoot",ez,fz),_j(iz,2,"roots",Qj,fz),qj(iz,fz);var hz="data-dnd-",mz=`${hz}dropping`,gz="--dnd-",vz=`${hz}dragging`,bz=`${hz}placeholder`,yz=[vz,bz,"popover","aria-pressed","aria-grabbing"],xz=["view-transition-name"],Sz=`\n :is(:root,:host) [${vz}] {\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(${gz}top, 0px) !important;\n left: var(${gz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${gz}width, auto);\n max-width: var(${gz}width, auto);\n height: var(${gz}height, auto);\n max-height: var(${gz}height, auto);\n transition: var(${gz}transition) !important;\n }\n\n :is(:root,:host) [${bz}] {\n transition: none;\n }\n\n :is(:root,:host) [${bz}='hidden'] {\n visibility: hidden;\n }\n\n [${vz}] * {\n pointer-events: none !important;\n }\n\n [${vz}]:not([${mz}]) {\n translate: var(${gz}translate) !important;\n }\n\n [${vz}][style*='${gz}scale'] {\n scale: var(${gz}scale) !important;\n transform-origin: var(${gz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${vz}][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 [${vz}]::backdrop, [${hz}overlay]:not([${vz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function wz(e,t="hidden"){return bT(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${hz}${fj("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(t_(e)&&t_(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),r_(e)&&r_(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),o_.set(a,i),r.push(()=>{o_.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(bz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Cz(e,t){return e===t||a_(e)===a_(t)}function Ez(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&cj(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>O_(t))}function Rz(e){return"TR"===e.tagName}var Az,Pz,Mz,Iz,kz,Dz,Tz,Oz=250,Lz="ease";var qz=class extends(Pz=VL,Az=[kO],Pz){constructor(e,t){super(e,t),$j(this,kz),$j(this,Iz,Nj(Mz,8,this)),Nj(Mz,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(fz),n=null==r?void 0:r.register(Sz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(Bj(this,kz,Dz).bind(this,r)),this.registerEffect(Bj(this,kz,Tz))}};Mz=Dj(Pz),Iz=new WeakMap,kz=new WeakSet,Dz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=QN(t);return r?e.addRoot(r):void 0},Tz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=U_(f),m=U_(c),g=!Cz(c,f),v=new sj(c,{frameTransform:g?m:null,ignoreTransforms:!g}),b=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=b,S/=y);const E=new uj(f),{transition:R,translate:A,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=H_(c),N="clone"===d,_="content-box"===P,j=_?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=_?parseInt(M)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:wz(l,N?"clone":"hidden"),$=bT(()=>dj(o.dragOperation.activatorEvent));if("none"!==A){const e=Y_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=bT(()=>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:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==b||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(vz,"true");const Z=bT(()=>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,re=JN();if(E.set({width:x-j,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${b} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},gz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;T_(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),O_(f),f.addEventListener("beforetoggle",Ez));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new sj(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=JN();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},gz),null==(t=se.getElementMutationObserver())||t.takeRecords(),Rz(se.element)&&Rz(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[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new sj(se.feedbackElement)}));var se;const le=new sj(f);bT(()=>a.shape=le);const ue=FN(f),ce=e=>{this.manager.actions.stop({event:e})},de=e_(ue);$&&ue.addEventListener("resize",ce),"idle"===bT(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||yz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(lj(e)&&lj(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(xz.includes(e)||e.startsWith(gz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void O_(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void O_(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;HN(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),T_(f)&&(f.removeEventListener("beforetoggle",Ez),f.removeAttribute("popover")),f.removeAttribute(vz),E.reset(),ie&&Rz(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,ve=OO(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=bT(()=>a.modifiers),l=bT(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},gz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=nL.delta(o,i);a.shape=oL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new sj(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({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=Oz,easing:s=Lz}=null!=i?i:{};O_(e.feedbackElement);const[,l]=null!=(t=NN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Cz(e.feedbackElement,u)?null:void 0},d=new sj(e.feedbackElement,c),p=null!=(n=Y_(H_(e.feedbackElement).translate))?n:e.translate,f=new sj(u,c),h=oL.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`]}:{},b=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},gz),e.feedbackElement.setAttribute(mz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),tj({element:e.feedbackElement,keyframes:Mj(Pj(Pj({},v),b),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:e_(FN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(mz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},_j(Mz,4,"overlay",Az,qz,Iz),qj(Mz,qz),qz.configure=BL(qz);var Nz,_z,jz,zz,Fz,$z,Hz,Bz=qz,Wz=!0;jz=[kO],zz=X_.Forward,Nz=[kO],_z=X_.Reverse;var Vz=class{constructor(){$j(this,$z,Nj(Fz,8,this,Wz)),Nj(Fz,11,this),$j(this,Hz,Nj(Fz,12,this,Wz)),Nj(Fz,15,this)}isLocked(e){return e!==X_.Idle&&(null==e?this[X_.Forward]===Wz&&this[X_.Reverse]===Wz:this[e]===Wz)}unlock(e){e!==X_.Idle&&(this[e]=false)}};Fz=Dj(null),$z=new WeakMap,Hz=new WeakMap,_j(Fz,4,zz,jz,Vz,$z),_j(Fz,4,_z,Nz,Vz,Hz),qj(Fz,Vz);var Uz,Gz,Yz,Kz,Xz,Jz,Zz=[X_.Forward,X_.Reverse],Qz=class{constructor(){this.x=new Vz,this.y=new Vz}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},eF=class extends VL{constructor(e){super(e);const t=MT(new Qz);let r=null;this.signal=t,jT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Qz);const{delta:o}=e.dragOperation.position;if(r){const e={x:tF(o.x,r.x),y:tF(o.y,r.y)},n=t.peek();gT(()=>{for(const t of fL)for(const r of Zz)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function tF(e,t){return Math.sign(e-t)}var rF=class extends(Gz=GL,Uz=[kO],Gz){constructor(e){super(e),$j(this,Kz,Nj(Yz,8,this,!1)),Nj(Yz,11,this),$j(this,Xz),$j(this,Jz,()=>{if(!Fj(this,Xz))return;const{element:e,by:t}=Fj(this,Xz);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return Hj(this,Xz,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:nF(n.x),y:nF(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=N_(e,n);if(r.x||r.y){const{speed:r,direction:s}=Q_(e,o,i);if(a)for(const e of fL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=Fj(this,Xz))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return Hj(this,Xz,{element:e,by:{x:a,y:l}}),j_.schedule(Fj(this,Jz)),!0}}}}}return Hj(this,Xz,void 0),!1};let t=null,r=null;const n=MO(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=n_(QN(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=MO(()=>{const t=n.value,{documentElement:o}=WN(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=V_(n,{excludeElement:!1});return r=e,e}}if(t){const e=V_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},IO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new eF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&dj(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function nF(e){return e>0?X_.Forward:e<0?X_.Reverse:X_.Idle}Yz=Dj(Gz),Kz=new WeakMap,Xz=new WeakMap,Jz=new WeakMap,_j(Yz,4,"autoScrolling",Uz,rF,Kz),qj(Yz,rF);var oF,iF=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()}),aF=class extends VL{constructor(e,t){super(e);const r=e.registry.plugins.get(rF);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=jT(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>iF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},sF={capture:!0,passive:!0},lF=class extends GL{constructor(e){super(e),$j(this,oF),this.handleScroll=()=>{null==Fj(this,oF)&&Hj(this,oF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),Hj(this,oF,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=jT(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,sF),()=>{o.removeEventListener("scroll",this.handleScroll,sF)}}})}};oF=new WeakMap;function uF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var cF,dF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),pF=class extends tN{constructor(e,t){super(e),this.manager=e,this.options=t,$j(this,cF,[]),this.listeners=new i_,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!cj(e.target))return;if(t.disabled)return;const{keyboardCodes:n=dF.keyboardCodes,preventActivation:o=dF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=jT(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{dj(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),ej(n);const{center:o}=new sj(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=WN(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];Fj(this,cF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=dF.keyboardCodes}=null!=r?r:{};if(mF(e,[...n.end,...n.cancel])){e.preventDefault();const t=mF(e,n.cancel);return void this.handleEnd(e,t)}mF(e,n.up)?this.handleMove("up",e):mF(e,n.down)&&this.handleMove("down",e),mF(e,n.left)?this.handleMove("left",e):mF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:dF.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(aF);!1===(null==e?void 0:e.disabled)&&(e.disable(),Fj(this,cF).push(()=>{e.enable()}))}cleanup(){Fj(this,cF).forEach(e=>e()),Hj(this,cF,[])}destroy(){this.cleanup(),this.listeners.clear()}};cF=new WeakMap,pF.configure=BL(pF),pF.defaults=dF;var fF,hF=pF;function mF(e,t){return t.includes(e.code)}var gF,vF;fF=new WeakMap;gF=new WeakMap,vF=new WeakMap;var bF=class{};bF.Delay=class extends nN{constructor(){super(...arguments),$j(this,gF),$j(this,vF)}onEvent(e){switch(e.type){case"pointerdown":Hj(this,vF,GN(e)),Hj(this,gF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Fj(this,vF))return;const{x:t,y:r}=GN(e);sL({x:t-Fj(this,vF).x,y:r-Fj(this,vF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Fj(this,gF)&&(clearTimeout(Fj(this,gF)),Hj(this,vF,void 0),Hj(this,gF,void 0))}},bF.Distance=class extends nN{constructor(){super(...arguments),$j(this,fF)}onEvent(e){switch(e.type){case"pointerdown":Hj(this,fF,GN(e));break;case"pointermove":if(!Fj(this,fF))return;const{x:t,y:r}=GN(e),n={x:t-Fj(this,fF).x,y:r-Fj(this,fF).y},{tolerance:o}=this.options;if(o&&sL(n,o))return void this.abort();sL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){Hj(this,fF,void 0)}};var yF,xF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!cj(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new bF.Delay({value:250,tolerance:5})]:function(e){if(!cj(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new bF.Delay({value:200,tolerance:0})]:[new bF.Delay({value:200,tolerance:10}),new bF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!cj(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),SF=class extends tN{constructor(e,t){super(e),this.manager=e,this.options=t,$j(this,yF,new Set),this.listeners=new i_,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,r=this.options){const{activationConstraints:n=xF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=jT(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=FN(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(AF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!cj(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=xF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=HN(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=U_(t.element),{x:s,y:l}=GN(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new rN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=KN(),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:i?this.handleCancel:CF,options:{capture:!0}}]);Fj(this,yF).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=GN(e),n=U_(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,j_.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=WN(t.target).body;o.setPointerCapture(t.pointerId);const i=cj(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:CF,options:{passive:!1}},{type:"click",listener:CF},{type:"contextmenu",listener:CF},{type:"keydown",listener:this.handleKeyDown}]);Fj(this,yF).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},Fj(this,yF).forEach(e=>e()),Fj(this,yF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};yF=new WeakMap,SF.configure=BL(SF),SF.defaults=xF;var wF=SF;function CF(e){e.preventDefault()}function EF(){}var RF=new WeakSet;function AF(e){e&&!RF.has(e)&&(e.addEventListener("touchmove",EF,{capture:!1,passive:!1}),RF.add(e))}var PF,MF,IF,kF,DF,TF,OF,LF,qF,NF,_F,jF,zF,FF,$F,HF,BF,WF,VF={modifiers:[],plugins:[Zj,aF,class extends VL{constructor(e,t){super(e,t),this.manager=e;const r=MO(()=>{var e;return WN(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=jT(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},Bz,class extends VL{constructor(e,t){super(e,t),this.manager=e,this.destroy=jT(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),uF(),document.addEventListener("selectionchange",uF,{capture:!0}),()=>{document.removeEventListener("selectionchange",uF,{capture:!0}),e.remove()}}})}}],sensors:[wF,hF]},UF=class extends MN{constructor(e={}){const t=PN(e.plugins,VF.plugins),r=PN(e.sensors,VF.sensors),n=PN(e.modifiers,VF.modifiers);super(Mj(Pj({},e),{plugins:[lF,rF,fz,...t],sensors:r,modifiers:n}))}},GF=class extends(kF=Zq,IF=[kO],MF=[kO],PF=[kO],kF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=kj(r,["element","effects","handle","feedback"]);super(Pj({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(WL))?t:[...r.sensors]).map(e=>{const t=e instanceof tN?e:r.registry.register(e.plugin),n=e instanceof tN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),$j(this,TF,Nj(DF,8,this)),Nj(DF,11,this),$j(this,OF,Nj(DF,12,this)),Nj(DF,15,this),$j(this,LF,Nj(DF,16,this)),Nj(DF,19,this),this.element=n,this.handle=i,this.feedback=a}};DF=Dj(kF),TF=new WeakMap,OF=new WeakMap,LF=new WeakMap,_j(DF,4,"handle",IF,GF,TF),_j(DF,4,"element",MF,GF,OF),_j(DF,4,"feedback",PF,GF,LF),qj(DF,GF);var YF=class extends(_F=Qq,NF=[kO],qF=[kO],_F){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=kj(r,["element","effects"]);const{collisionDetector:a=hj}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new sj(r),o=bT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=MT(!1);super(Mj(Pj({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new D_(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),$j(this,BF),$j(this,zF,Nj(jF,8,this)),Nj(jF,11,this),$j(this,WF,Nj(jF,12,this)),Nj(jF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){Hj(this,BF,e,HF)}get element(){var e;return null!=(e=this.proxy)?e:Fj(this,BF,$F)}};function KF(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}jF=Dj(_F),zF=new WeakMap,BF=new WeakSet,WF=new WeakMap,FF=_j(jF,20,"#element",NF,BF,zF),$F=FF.get,HF=FF.set,_j(jF,4,"proxy",qF,YF,WF),qj(jF,YF);var XF="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:D;function JF(){const e=P(0)[1];return O(()=>{e(e=>e+1)},[e])}function ZF(e,t=[],r=!1){const n=M(e);return n.current=e,function(e,t=!1){const r=M(e.peek()),n=M(!1),o=JF();return XF(()=>jT(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A(()=>MO(()=>n.current()),t),r)}function QF(e,t){const r=M(new Map),n=JF();return XF(()=>{if(e)return jT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=bT(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())});r.current.clear()},[e]),A(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function e$(e,t){e()}function t$(e){const t=M(e);return XF(()=>{t.current=e},[e]),t}function r$(e,t,r=D,n=Object.is){const o=M(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function n$(e,t){const r=M(KF(e));XF(()=>{const n=KF(e);n!==r.current&&(r.current=n,t(n))})}var o$=Object.getOwnPropertySymbols,i$=Object.prototype.hasOwnProperty,a$=Object.prototype.propertyIsEnumerable,s$=I(new UF),l$=N(q(({children:e},t)=>{const[r,n]=P(0),o=M(null),i=M(null),a=A(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),z(()=>{e(),n(e=>e+1)})}}),[]);return XF(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),u$=[void 0,IO];function c$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)i$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&o$)for(var n of o$(e))t.indexOf(n)<0&&a$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=PN(d,VF.plugins),m=PN(f,VF.sensors),g=PN(p,VF.modifiers),v=t$(o),b=t$(i),y=t$(s),x=t$(a),S=t$(l),w=t$(n),C=function(e){const t=M(null);t.current||(t.current=e());return j(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new UF(u)});return D(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=v.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=b.current)?void 0:t.call(b,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),r$(h,()=>C&&(C.plugins=h),...u$),r$(m,()=>C&&(C.sensors=m),...u$),r$(g,()=>C&&(C.modifiers=g),...u$),nr.jsxs(s$.Provider,{value:C,children:[nr.jsx(l$,{ref:c,children:r}),r]})}function d$(){return L(s$)}function p$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=M(null),l=d$(),u=null!=(a=ZF(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;D(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof Bz);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),D(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof Bz);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=A(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?f$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return nr.jsx(s$.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return nr.jsx(h$,{source:u,children:e});return e}())})}function f$(){return()=>{}}function h$({children:e,source:t}){return e(QF(t))}var m$,g$,v$,b$,y$,x$=Object.create,S$=Object.defineProperty,w$=Object.getOwnPropertyDescriptor,C$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),E$=e=>{throw TypeError(e)},R$=["class","method","getter","setter","accessor","field","value","get","set"],A$=e=>void 0!==e&&"function"!=typeof e?E$("Function expected"):e,P$=(e,t,r,n,o)=>({kind:R$[e],name:t,metadata:n,addInitializer:e=>r._?E$("Already initialized"):o.push(A$(e||null))}),M$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=R$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,w$(o,r)),h=n.length-1;h>=0;h--)(l=P$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,A$(a)&&(f[d]=a);return f&&S$(o,r,f),o},I$=(e,t,r)=>t.has(e)||E$("Cannot "+r),k$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},D$=class extends(v$=qO,g$=[DO],m$=[DO],v$){constructor(e){var t,r,n;super(k$.from(e),(e,t)=>k$.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(y$,5,this),t=this,n=0,(r=b$).has(t)?E$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return k$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=k$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(I$(a=this,s=b$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);gT(()=>{((e,t,r)=>{I$(e,t,"write to private field"),t.set(e,r)})(this,b$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(k$.from(e)),this.velocity={x:0,y:0}}};y$=(e=>{var t;return[,,,x$(null!=(t=null==e?void 0:e[C$("metadata")])?t:null)]})(v$),b$=new WeakMap,M$(y$,2,"delta",g$,D$),M$(y$,2,"direction",m$,D$),((e,t)=>{((e,t,r)=>{t in e?S$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,C$("metadata"),e[3])})(y$,D$);var T$=(e=>(e.Horizontal="x",e.Vertical="y",e))(T$||{});function O$(e){const t=d$();D(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}Object.values(T$);const L$=()=>{const[e,t]=P(!1);return O$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},q$=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),N$=KE(e=>{const t=e(yR),r=e(WR);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),_$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),j$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),z$=e=>e.atTop?2:1,F$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],$$=e=>e?.setAttribute("tabIndex","0"),H$=e=>e?.setAttribute("tabIndex","-1"),B$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(H$)},W$=e=>{e?.focus(),$$(e)},V$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${aE}`);W$(t)},0)},U$=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{B$(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case iE.Down:u<s&&u++;break;case iE.Up:u>a&&u--;break;case iE.Right:if(i)break;[u,c]="rtl"===n?_$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):j$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case iE.Left:if(i)break;[u,c]="rtl"===n?j$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):_$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case iE.Home:(tT(e)||i)&&(u=a),i||(c=0);break;case iE.End:(tT(e)||i)&&(u=s),i||(c=l);break;case iE.PageDown:u=Math.min(s,u+10);break;case iE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=F$(t,a);return W$(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},G$=(e,t,r,n)=>{B$(t),r(e),n.enabled&&!n.active?n.focus?.():W$(F$(t,e))},Y$=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${rE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${$P.First}`),r=e.querySelector(`.${$P.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},K$=q((e,t)=>nr.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:nr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),X$=mc(Wh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...iM,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),J$=mc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:rM,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),Z$=parseInt(rM,10)/2,Q$=mc("div")({position:"absolute",bottom:-Z$,left:`calc(50% - ${Z$}px)`}),eH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},tH=mc(ip)({height:"100%"}),rH=mc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...eH,whiteSpace:"nowrap",display:r?"block":void 0}:{...eH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),nH=mc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),oH="cell-text",iH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=sR(vk);return o?nr.jsx(rH,{"data-testid":oH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(rH,{"data-testid":oH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},aH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=sR(xR),l=sR(N$),u=sR(NR),c=sR(MR),d=sR(pR),p=sR(QR),f=sR(cR),h=sR(wk)[t.pageColIdx],m=sR(BR),g=M(null),v=M(null),b=(({column:e,columnWidth:t})=>{const r=sR(vk),{measureText:n}=VC({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:nM});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(iD,{height:rM,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(lD,{height:rM,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(J$,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(bM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(K$,{height:rM,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,b,u);return nr.jsxs(vM,{shouldShowMenuIcon:b.shouldShowMenuIcon,shouldShowLockIcon:b.shouldShowLockIcon,alignment:cM(t,i,u),children:[S,nr.jsxs(gM,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,nr.jsx(iH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(wD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[yD.Sorting]:!0,[yD.Searching]:!0,[yD.Selections]:!0,[yD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:v},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:V$},shouldShowMenuIcon:b.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),nr.jsx(mM,{ref:v,direction:u,isPagination:i}),nr.jsx(mM,{ref:g,direction:u})]}):null]})},sH=q((e,t)=>nr.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:nr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),lH=(e,t)=>e.isCyclic&&t,uH=({column:e})=>{const t=sR(vk),r=sR(NR),n=sR(BR),o=S.useRef(null),[i,a]=S.useState(!1),s=Tk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(xM,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(sH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(Qk,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:uD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},cH=e=>e.isLocked,dH=({column:e})=>{const t=sR(cR),r=sR(xR),n=sR(vk);return nr.jsx(xM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=tD(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:nr.jsx(K$,{height:16,"data-testid":"head-cell-lock-icon"})})},pH=({column:e,open:t,setOpen:r,isPagination:n})=>{const o=sR(vk),i=sR(xR),a=sR(NR),s=sR(MR),l=sR(pR),u=sR(QR),c=sR(cR),d=sR(BR),p=sR(N$),f=S.useRef(null),h=S.useRef(null);return nr.jsxs(xM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[nr.jsx(wD,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:u,anchorRef:f,menuAvailabilityFlags:{[yD.Sorting]:!0,[yD.Searching]:!0,[yD.Selections]:!0,[yD.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),p?.(e,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:c,qStateName:i},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:V$},shouldShowMenuIcon:!0,model:d,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),nr.jsx(mM,{ref:h,direction:a,isPagination:n}),nr.jsx(mM,{ref:f,direction:a})]})},fH=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,hH=(e,t)=>{const r=M(t);r.current=t,_(()=>{if(!e.current)return()=>{};const t=new ResizeObserver(e=>{r.current(e)});return t.observe(e.current),()=>{t.disconnect()}},[e])},mH=mc(ip)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),gH=({children:e})=>{const t=S.useRef(null),[r,n]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return hH(t,i),nr.jsx(mH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},vH=({children:e})=>e,bH=(e,t)=>!e.isLocked&&e.isDim&&t,yH=({column:e,open:t,setOpen:r})=>{const n=sR(vk),o=sR(xR),i=sR(NR),a=sR(pR);sR(cR);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),u=eD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(xM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:nr.jsx(fD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},xH=q((e,t)=>nr.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:nr.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"})})),SH=q((e,t)=>nr.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:nr.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"})})),wH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(SH,{height:rM,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(xH,{height:rM,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(Q$,{children:n}):void 0},CH=0,EH=1,RH=2,AH=3,PH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a}=e,s=sR(vk),l=sR(OR),{measureText:u}=VC(s.header),[c,d]=S.useState(!1),p="number"==typeof a&&a>sE.PixelsMin+18;return nr.jsxs(gH,{children:[nr.jsx(vH,{prio:RH,minWidth:hM,children:cH(t)?nr.jsx(dH,{column:t}):null},"Lock"),nr.jsx(vH,{prio:EH,minWidth:hM,children:lH(t,l)?nr.jsx(uH,{column:t}):null},"Cyclic"),nr.jsx(vH,{ignore:!0,children:nr.jsx(wH,{column:t})},"Sort"),nr.jsx(vH,{minWidth:u(t.label)+8,children:nr.jsx(yM,{justifyContent:t.headTextAlign,children:nr.jsx(iH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(vH,{prio:p?void 0:CH,minWidth:hM,children:c||bH(t,l)?nr.jsx(yH,{open:c,setOpen:d,column:t}):null},"Search"),nr.jsx(vH,{prio:AH,minWidth:hM,children:l?nr.jsx(pH,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},MH=mc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})(({background:e,applicableStyle:t})=>({...t,background:e})),IH=()=>{},kH=({column:e,isPagination:t})=>{const r=sR(vk),n=sR(NR),o=sR(fT),i=sR(tk),a=!1,s=sR(CR)?aH:PH;return nr.jsx(MH,{className:"sn-table-cell",applicableStyle:{...r.header,...q$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pM(n,a,o),borderLeftWidth:fM(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:IH})})},DH=({isPagination:e})=>{const t=sR(rk),[r,n]=P();O$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?nr.jsx(p$,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(kH,{column:o,isPagination:e})})}):null},TH=[wF.configure({activationConstraints:[new bF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],OH=VF.plugins.filter(e=>e!==Zj),LH=({children:e})=>{const t=sR(WR),r=sR(rk);return nr.jsx(c$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex(e=>e.id===r),i=t.findIndex(e=>e.id===n),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map(e=>e.colIdx).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:TH,plugins:OH,children:e})};function qH(e,t){const r=M(!1);D(()=>{r.current?e():r.current=!0},t)}const NH=KE(HP),_H=DP(e=>KE(t=>{const[r,n]=t(NH);return 0===r&&n===e})),jH=()=>{const e=sR(dR);D(()=>{e.notifyIsDoneRendering()})};var zH={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const FH=KE(e=>{const t=e(QR),r=e(KR);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(zH).forEach(t=>{e.add(zH[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${$P.First}`),s=r.querySelector(`.${$P.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===$P.First?(l=s,n=$P.Second):(l=a,n=$P.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),$H=(e,t)=>{const r=sR(FH),n=sR(KR),o=sR(ik),i=sR(ok),a=sR(nk),s=sR(tk),[l,u]=uR(NH),c=sR(RR),d=sR(HR);qH(()=>{const t=((e,t,r=!1)=>{const n=[z$(t),e[1]];return r?n:HP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(B$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=F$(t,e);r.current?(W$(s),r.current=!1):$$(s),n&&(a({keys:[s?.textContent??""]}),eT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},HH=e=>{const t=sR(NR),r=sR(II);D(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])},BH=e=>{LC(e),tT(e)&&hE(e.currentTarget)},WH=e=>{iT(e.evt)&&(LC(e.evt),U$(e))},VH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!iT(t))return;LC(t);const i=((e,t)=>[e.pageRowIdx+z$(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?z$(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=U$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:zP.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):eT(o,a,i)})({...e,nextCell:s})},UH=e=>{const{evt:t}=e;rT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{LC(e);const a=Math.ceil(t/r)-1;e.key===iE.Right&&n<a?(o(),i(n+1)):e.key===iE.Left&&n>0&&(o(),i(n-1))})(e):t.key===iE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(LC(e),t.blur?.(!0))})(e):nT(t.key)&&LC(t)},GH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(jP.Disabled))return void LC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case iE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{LC(e),t.isSelectable&&r&&n({type:zP.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case iE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{LC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case iE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(LC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case iE.C:BH(t);break;case iE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(LC(e),OC(e.currentTarget,t,e.shiftKey))})(n);break;default:VH(n)}},YH=e=>{const t=sR(SM),r=lR(wM),n=lR(CM),o=sR(_P),i=M();hH(e,a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}),D(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},KH=mc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),XH=mc(Yh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),JH=mc(Th,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),ZH=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(KH,{className:$P.First,"data-testid":$P.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(KH,{className:$P.Second,"data-testid":$P.Second,"aria-live":"polite","aria-atomic":"true"})]}),QH=e=>{const t=M(new Map),r=M(null);D(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=O((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=O(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},eB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),tB=()=>QH(eB),rB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=sR(AR),n=sR(HR),o=lR(dT);D(()=>{const i=()=>{o({type:zP.Reset})},a=()=>{o({type:zP.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},nB=e=>{e.stopPropagation()},oB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:nB,color:PC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),iB=({href:e,text:t,interactions:r,color:n})=>nr.jsx(nf,{...oB({href:e,text:t,interactions:r,color:n}),children:t}),aB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),sB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),lB="qDimensionInfo/0",uB="qMeasureInfo/0",cB="x",dB="y",pB=e=>({key:"bars",type:"box",data:{extract:{field:lB,props:{start:0,end:{field:uB}}}},settings:{major:{scale:cB},minor:{scale:dB},box:{maxWidthPx:8,fill:{fn:e}}}}),fB=e=>({key:"p",type:"point",data:{extract:{field:lB,props:{y:{field:uB}}}},settings:{x:{scale:cB},y:{scale:dB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),hB=({qNum:e})=>void 0===e?0:Math.sign(e),mB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=DC(e,t?.negative,r),a=DC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:lB,props:{start:0,end:{field:uB,value:hB}}}},settings:{major:{scale:cB},minor:{scale:dB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},gB=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=DC(e,t?.main,o),l=DC(e,t?.max,s),u=DC(e,t?.min,s),c=DC(e,t?.first,s),d=DC(e,t?.last,s);return e=>{const t=dB in e.datum?dB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[pB(a)];case"dots":return[fB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:lB,props:{v:{field:uB}}}},settings:{coordinates:{major:{scale:cB},minor:{scale:dB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(DC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,fB(a)]:[t]}case"posNeg":return[mB(e,n)];default:return[]}},vB=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),bB=(e,t,r,n)=>({y:{data:{field:uB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:lB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),yB=U();yB.use(V),yB.renderer.prio(["canvas"]);const xB={resolve:()=>{},promise:{}},SB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?kt():xB);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O(()=>{if(null===t.current||null!==e.current)return;u();r.current=aB(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return yB.chart({element:e,data:{type:"q",key:"qHyperCube",data:vB(s)},settings:{scales:bB(a,l,u,i),components:gB(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:O(()=>{null!==r.current&&sB(r.current),r.current=null,l()},[r,l])}},wB=e=>{const t=M(null),r=M(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(sB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=aB(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},CB=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=SB({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O(e=>{e.isIntersecting?n():r()},[n,r]);D(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{D(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=wB(t);D(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},EB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=CB({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},RB=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},AB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},PB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=sR(NR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=nr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:AB(s),objectPosition:RB(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?sM(o,e):void 0},children:c}):c},MB=q((e,t)=>nr.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:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),IB=q((e,t)=>nr.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:nr.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=q((e,t)=>nr.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:[nr.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"}),nr.jsx("use",{fillRule:"evenodd"})]})),DB=q((e,t)=>nr.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:nr.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"})})),TB=q((e,t)=>nr.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:nr.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"})})),OB=q((e,t)=>nr.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:nr.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"})})),LB=q((e,t)=>nr.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:nr.jsx("path",{d:"M2 7.5h12v1H2z"})})),qB=q((e,t)=>nr.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:nr.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"})})),NB=q((e,t)=>nr.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:nr.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=q((e,t)=>nr.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:nr.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"})})),jB=q((e,t)=>nr.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:nr.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={m:q((e,t)=>nr.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:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":_B,R:SH,S:xH,T:q((e,t)=>nr.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:nr.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"})})),U:q((e,t)=>nr.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:nr.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"})})),P:NB,Q:OB,"è":q((e,t)=>nr.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:nr.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"})})),"¢":DB,"©":kB,"23F4":TB,2013:jB,"&":qB,add:MB,"minus-2":LB,dot:IB},FB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&zB[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},$B=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=sR(vk),o=sR(NR),i=sR(ZR),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=QP(e,t,o,i),d=(e=>parseInt(e||rM,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&FB({size:d,iconKey:f,color:p}),nr.jsx(iH,{isNumeric:!0,children:a}),"right"===h&&FB({size:d,iconKey:f,color:p})]}):FB({size:d,iconKey:f,color:p})},HB=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,BB=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=sR(vk),u=sR(dR),c=sR(gR),d=sR(ZR),p=sR(NR),f=sR(MR),h=sR(RR);if(t.representation.type===jA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===jA.Image)return nr.jsx(PB,{representation:t.representation,textStyle:r,maxImageHeight:HB(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==jA.Link||h||(m=nr.jsx(iB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==jA.Indicator||Number.isNaN(g)?t.representation.type===jA.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(EB,{height:HB(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):nr.jsx(iH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):nr.jsx($B,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},WB=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),VB=mc("div")({"& path":{stroke:"none !important"}}),UB=({children:e,cellSelectionState:t})=>t===jP.Selected?nr.jsxs(nH,{children:[e,nr.jsx(VB,{children:nr.jsx(WB,{})})]}):e,GB=e=>{const t=function(){const e=d$(),t=ZF(()=>null==e?void 0:e.dragOperation.source,[e]),r=ZF(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},YB=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:zP.SelectMultiEnd})};r({type:zP.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:zP.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:zP.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),KB=e=>{const t=sR(ak),r=sR(tk),n=sR(FH),o=sR(KR),i=sR(NR),a=lR(NH),s=lR(dT),l=sR(HR),u=sR(DR),c=sR(AR),d=d=>{GH({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===iE.Shift&&t({type:zP.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;G$([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=YB(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},XB=e=>{D(()=>()=>{pT.remove(e)},[e])},JB=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},ZB=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},QB=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return ZB(t,e,n?"even":"odd")}return e},eW=(e,t)=>{const r=sR(vk),n=sR(pT(e));XB(e);let o=t.isDim?r.dimension.values:r.measure.values;o=QB(o,r,e),o=JB(o,r,e);const i=OM(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===jP.Selected?{...e,...r}:t===jP.Disabled?{...e,background:`${eM}, ${e.background}`}:e}(A(()=>e.isNull?o:OM(o,e.qAttrExps,t.qAttrExprInfoIDs),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},tW=mc(zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),rW=mc(am,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),nW=mc(Wh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...iM,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),oW=mc(Wh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...iM,...e,fontWeight:nM,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),iW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=sR(NR),a=sR(MR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=KB(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=eW(e,t),m=GB(t.id);return nr.jsx(nW,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${oE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:nr.jsx(UB,{cellSelectionState:h,children:nr.jsx(BB,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:dM(i,e.align)})})})},aW=KE(0),sW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=sR(vk),i=sR(kR),a=sR(aW),s=GB(e.id);return nr.jsx(oW,{totalsStyle:{...o.totalRow,...q$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${oE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(iH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},lW=()=>{const e=sR(tk),t=sR(rk),r=sR(nk),n=sR(KR),o=sR(IR),i=sR(NR),a=lR(NH),s=sR(RR),l=sR(HR);return nr.jsx(am,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return nr.jsx(sW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case iE.C:BH(r);break;case iE.Space:r.preventDefault();break;default:WH(e)}else LC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{G$(c,n,a,l)}},t.id)})})};var uW=N(lW);const cW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=sR(nk),n=sR(tk),o=sR(rk),i=sR(vk),a=sR(gR),s=!!IM(a)?.content?.hoverEffect;rB({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return QH(t)})(t),u=tB();return nr.jsxs(tW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(uW,{}):void 0,r.map((e,t)=>nr.jsx(rW,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(iW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?nr.jsx(uW,{}):void 0]})};var dW=N(cW);const pW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,fW=KE(e=>{const t=e(gR),r=e(BR);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),hW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=sR(fW),s=sR(NR),l=sR(IR),u=sR(QR),[c,d]=uR(wk);if(!l)return null;return nr.jsx(kk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{H$(e);const t=e.closest(".sn-table-cell");W$(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},mW=e=>e.target?.getAttribute("class")?.includes(aE),gW=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),o=sR(N$),i=sR(SM);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||mW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!mW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var vW=Object.defineProperty,bW=Object.defineProperties,yW=Object.getOwnPropertyDescriptors,xW=Object.getOwnPropertySymbols,SW=Object.prototype.hasOwnProperty,wW=Object.prototype.propertyIsEnumerable,CW=(e,t,r)=>t in e?vW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EW=(e,t)=>{for(var r in t||(t={}))SW.call(t,r)&&CW(e,r,t[r]);if(xW)for(var r of xW(t))wW.call(t,r)&&CW(e,r,t[r]);return e},RW=(e,t)=>bW(e,yW(t)),AW=class extends CN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return RW(EW({},e),{[t]:r})}};AW.configure=BL(AW);var PW=AW;PW.configure({axis:"x",value:0}),PW.configure({axis:"y",value:0});var MW=class extends CN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return RW(EW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};MW.configure=BL(MW);var IW=class extends CN{constructor(e,t){super(e,t),this.boundingRectangle=MT(null),this.destroy=jT(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=_N(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=EW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new oL(l,u,s,a),r,n);return c}};IW.configure=BL(IW);var kW=IW,DW=Object.create,TW=Object.defineProperty,OW=Object.defineProperties,LW=Object.getOwnPropertyDescriptor,qW=Object.getOwnPropertyDescriptors,NW=Object.getOwnPropertySymbols,_W=Object.prototype.hasOwnProperty,jW=Object.prototype.propertyIsEnumerable,zW=e=>{throw TypeError(e)},FW=(e,t,r)=>t in e?TW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$W=(e,t)=>{for(var r in t||(t={}))_W.call(t,r)&&FW(e,r,t[r]);if(NW)for(var r of NW(t))jW.call(t,r)&&FW(e,r,t[r]);return e},HW=(e,t)=>OW(e,qW(t)),BW=["class","method","getter","setter","accessor","field","value","get","set"],WW=e=>void 0!==e&&"function"!=typeof e?zW("Function expected"):e,VW=(e,t,r,n,o)=>({kind:BW[e],name:t,metadata:n,addInitializer:e=>r._?zW("Already initialized"):o.push(WW(e||null))}),UW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},GW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=BW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,LW({get[r](){return KW(this,i)},set[r](e){return JW(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=VW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?WW(s)&&(g[f]=s):"object"!=typeof s||null===s?zW("Object expected"):(WW(a=s.get)&&(g.get=a),WW(a=s.set)&&(g.set=a),WW(a=s.init)&&h.unshift(a));return g&&TW(o,r,g),o},YW=(e,t,r)=>t.has(e)||zW("Cannot "+r),KW=(e,t,r)=>(YW(e,t,"read from private field"),t.get(e)),XW=(e,t,r)=>t.has(e)?zW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),JW=(e,t,r,n)=>(YW(e,t,"write to private field"),t.set(e,r),r);function ZW(e){return e instanceof MV||e instanceof PV}var QW=Object.defineProperty,eV=Object.defineProperties,tV=Object.getOwnPropertyDescriptors,rV=Object.getOwnPropertySymbols,nV=Object.prototype.hasOwnProperty,oV=Object.prototype.propertyIsEnumerable,iV=(e,t,r)=>t in e?QW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aV=(e,t)=>{for(var r in t||(t={}))nV.call(t,r)&&iV(e,r,t[r]);if(rV)for(var r of rV(t))oV.call(t,r)&&iV(e,r,t[r]);return e},sV=(e,t)=>eV(e,tV(t));function lV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function uV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function cV(e,t){return function(e,t,r){var n,o,i;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 n=e.findIndex(e=>u(e,a.id)),o=e.findIndex(e=>u(e,s.id));if(-1===n||-1===o){if(uV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}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&&uV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return sV(aV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return sV(aV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o: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&&uV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return sV(aV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return sV(aV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return sV(aV({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return sV(aV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,lV)}var dV="__default__";function pV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function fV(e,t){return e.index-t.index}function hV(e){return Array.from(e).sort(fV)}var mV,gV,vV,bV,yV,xV,SV,wV,CV=[class extends VL{constructor(e){super(e);const t=jT(()=>{const{dragOperation:t}=e;if(dj(t.activatorEvent)&&ZW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(rF);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!dj(e.nativeEvent))return;if(!ZW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];gT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&ZW(e)||!e.element)continue;let r=e.shape;const n=new sj(e.element,{getBoundingClientRect:e=>UN(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,mj);gT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!ZW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;ej(c);const d=new sj(c);if(!d)return;const p=oL.delta(d,oL.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends VL{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof MV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(hV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!ZW(o)||!ZW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=hV(l),g=s?m:hV(u),v=null!=(c=o.sortable.group)?c:dV,b=null!=(d=i.sortable.group)?d:dV,y={[v]:m,[b]:g},x=cV(y,e);if(y===x)return;const S=x[b].indexOf(o.sortable),w=x[b].indexOf(i.sortable);r.collisionObserver.disable(),pV(f,S,h,w),gT(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[b].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;ZW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=hV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(pV(r,i.index,a,o.index),gT(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],EV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},RV=new class{constructor(){RO(this,LO,new WeakMap)}get(e,t){var r;return e?null==(r=EO(this,LO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return EO(this,LO).has(e)||EO(this,LO).set(e,new Map),null==(n=EO(this,LO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=EO(this,LO).get(e))?void 0:t.clear():void 0}};gV=[kO],mV=[kO];var AV=class{constructor(e,t){XW(this,bV,UW(vV,8,this)),UW(vV,11,this),XW(this,yV),XW(this,xV),XW(this,SV,UW(vV,12,this)),UW(vV,15,this),XW(this,wV),this.register=()=>(gT(()=>{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=()=>{gT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{gT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=EV,plugins:u=CV}=r,c=((e,t)=>{var r={};for(var n in e)_W.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&NW)for(var n of NW(e))t.indexOf(n)<0&&jW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new MV(c,t,this),this.draggable=new PV(HW($W({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&RV.clear(this.manager),(null==n?void 0:n.dragging)&&RV.set(this.manager,this.id,bT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=KW(this,xV),o=KW(this,yV);e===n&&t===o||(JW(this,xV,e),JW(this,yV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),JW(this,wV,c.element),this.manager=t,this.index=i,JW(this,xV,i),this.group=o,JW(this,yV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=RV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=RV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){bT(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=H_(n),l=rj(n,s,!1),u=rj(n,s);if(i||a){const r=e_(FN(n))?HW($W({},t),{duration:0}):t;tj({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){gT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){gT(()=>{const t=KW(this,wV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),JW(this,wV,e)})}get element(){var e,t;const r=KW(this,wV);if(r)return null!=(t=null!=(e=o_.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){gT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){gT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){gT(()=>{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:hj}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){gT(()=>{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)}};vV=[,,,DW(null)],bV=new WeakMap,yV=new WeakMap,xV=new WeakMap,SV=new WeakMap,wV=new WeakMap,GW(vV,4,"index",gV,AV,bV),GW(vV,4,"group",mV,AV,SV),((e,t)=>{return FW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(vV,AV);var PV=class extends GF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},MV=class extends YF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},IV=Object.defineProperty,kV=Object.defineProperties,DV=Object.getOwnPropertyDescriptors,TV=Object.getOwnPropertySymbols,OV=Object.prototype.hasOwnProperty,LV=Object.prototype.propertyIsEnumerable,qV=(e,t,r)=>t in e?IV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NV=(e,t)=>{for(var r in t||(t={}))OV.call(t,r)&&qV(e,r,t[r]);if(TV)for(var r of TV(t))LV.call(t,r)&&qV(e,r,t[r]);return e};function _V(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=NV(NV({},EV),e.transition),v=function(e){var t;const r=null!=(t=d$())?t:void 0,[n]=P(()=>e(r));return n.manager!==r&&(n.manager=r),XF(n.register,[r,n]),n}(t=>new AV(((e,t)=>kV(e,DV(t)))(NV({},e),{transition:g,register:!1,handle:KF(s),element:KF(a),target:KF(h),feedback:d}),t)),b=QF(v,jV);return r$(o,()=>v.id=o),XF(()=>{gT(()=>{v.group=u,v.index=l})},[v,u,l]),r$(m,()=>v.type=m),r$(t,()=>v.accept=t,void 0,IO),r$(i,()=>i&&(v.data=i)),r$(l,()=>{var e;(null==(e=v.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&v.refreshShape()},e$),n$(s,e=>v.handle=e),n$(a,e=>v.element=e),n$(h,e=>v.target=e),r$(c,()=>v.disabled=!0===c),r$(f,()=>v.sensors=f),r$(r,()=>v.collisionDetector=r),r$(n,()=>v.collisionPriority=n),r$(d,()=>v.feedback=null!=d?d:"default"),r$(g,()=>v.transition=g,void 0,IO),r$(p,()=>v.modifiers=p,void 0,IO),r$(e.alignment,()=>v.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:O(e=>{v.handle=null!=e?e:void 0},[v]),ref:O(e=>{var t,r;(e||!(null==(t=v.element)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.element=null!=e?e:void 0)},[v]),sourceRef:O(e=>{var t,r;(e||!(null==(t=v.source)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.source=null!=e?e:void 0)},[v]),targetRef:O(e=>{var t,r;(e||!(null==(t=v.target)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.target=null!=e?e:void 0)},[v])}}function jV(e,t,r){return!("isDragSource"!==e||r||!t)}const zV=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/nL.distance(r.shape.center,s),type:hq.Collision,priority:fq.Normal}:null},FV=[kW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],$V=(e,t)=>{const r=sR(NR),n=sR(hR),o=!sR(OR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return _V({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:FV,data:e,feedback:"clone",collisionDetector:zV({invert:"rtl"===r})})},HV=({column:e,columnIndex:t,columnsLength:r})=>{const n=sR(vk),o=sR(KR),i=sR(NR),a=sR(MR),s=sR(rk),l=sR(tk),u=sR(wk)[t],c=lR(NH),d=sR(_H(t)),p=sR(OR),f=sR(HR),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:v}=gW({isInteractionEnabled:p,column:e}),b=lR(SM),{ref:y,isDragging:x}=$V(e,t),S=GB(e.id),w=sR(CR),C=w?aH:PH,E=e.isActivelySorted?FP[e.sortDirection]:void 0,R=h?nE:void 0,A=h?"true":void 0,P=t===r-1,M=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(X$,{"data-dragging":x,ref:y,headerStyle:{...n.header,...q$(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${oE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case iE.C:BH(r);break;case iE.Enter:case iE.Space:n?.(r);break;default:WH(e)}else LC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&G$(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:v,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),nr.jsx(hW,{column:e,isLastColumn:P,setIsAdjustingWidth:b})]},e.id)},BV=()=>{const e=sR(rk),t=sR(vk),r=sR(gR),n=sR(jR),o=lR(aW),i=sR(wk),a=M(null),s=pW(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),nr.jsx(em,{style:{visibility:s?"collapse":void 0},children:nr.jsx(am,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map((t,r)=>nr.jsx(HV,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var WV=N(BV);const VV=()=>{const e=sR(FH),[t,r]=uR(UI),{page:n,rowsPerPage:o}=t,i=sR(_R),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=sR(ek),p=sR(vk),f=sR(II),h=sR(gR),m=sR(ZR),g=sR(YR),v=sR(KR),b=sR(jR),y=sR(NR),x=sR(MR),S=sR(QR),w=sR(fT),C=lR(dT),E=sR(RR),R=sR(HR),A=M(!1),P=M(null),I=M(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=LR(h,b),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=v.getElementsByTagName("table")[0].contains(document.activeElement)},[v]),_=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),j=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return HH(P),((e,t)=>{const r=sR(HR);D(()=>{const n=e.current;if(!n)return;const o=e=>{Y$(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(I,A),(()=>{const e=sR(KR),t=sR(HR),r=sR(NH);XC(()=>{const n=F$(e,r);t.active?W$(n):(n?.blur(),B$(e))},[t.active,e])})(),$H(A,n),D(()=>{const e=P.current;e&&(e.scrollLeft=L,e.scrollTop=q)},[t,s,L,q]),qH(()=>{C({type:zP.UpdatePageRows,payload:{pageRows:c}})},[c]),jH(),YH(P),nr.jsxs(LH,{children:[nr.jsxs(tH,{ref:I,dir:y,onKeyDown:e=>{UH({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:_,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(ZH,{}),nr.jsxs(XH,{ref:P,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(JH,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(WV,{}),nr.jsx(dW,{updateShouldRefocus:N,tableWrapperRef:I})]}),nr.jsx(L$,{})]}),nr.jsx(ZD,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:_,handleChangeRowsPerPage:j,isSelectionMode:E,direction:y})]}),nr.jsx(DH,{isPagination:!0})]})};var UV=N(VV);const GV=KE(0),YV=KE(e=>{const t=e(vR);return Math.min(XI,t)}),KV=KE(e=>{const t=e(vR);return t===XI?0:Math.floor(t/XI)}),XV=KE(e=>{const t=e(GV),r=e(KV);return Math.min(t,r)}),JV=KE(e=>({page:e(XV),rowsPerPage:e(YV),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(KV);t(GV,Math.max(0,Math.min(r,n)))});var ZV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function QV(e,t){return e===t||!(!ZV(e)||!ZV(t))}function eU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!QV(e[r],t[r]))return!1;return!0}function tU(e,t){var r;void 0===t&&(t=eU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var rU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function nU(e){cancelAnimationFrame(e.id)}function oU(e,t){var r=rU();var n={id:requestAnimationFrame(function o(){rU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var iU=-1;function aU(e){if(void 0===e&&(e=!1),-1===iU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),iU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return iU}var sU=null;function lU(e){if(void 0===e&&(e=!1),null===sU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?sU="positive-descending":(t.scrollLeft=1,sU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sU}return sU}var uU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,qc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:qc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=tU(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=tU(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=tU(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(lU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&nU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=oU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return dU(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=aU();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(lU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&nU(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?uU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],P=R[1],M=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var k=C;k<=E;k++)M.push(w(t,{columnIndex:k,data:d,isScrolling:b?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},w(u||c||"div",{children:M,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(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]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var dU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},fU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},hU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},mU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?gU(e,t,r,i,0,n):vU(e,t,r,Math.max(0,i),n)},gU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=hU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},vU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&hU(e,t,n,r).offset<o;)n+=a,a*=2;return gU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},bU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=hU(e,t,r,i),u="column"===e?fU(t,i):pU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},yU=cU({getColumnOffset:function(e,t,r){return hU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return mU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=hU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:pU,getEstimatedTotalWidth:fU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return bU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return bU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return hU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return mU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=hU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),xU=function(e,t){return e};function SU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,qc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:qc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=tU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=tU(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=tU(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(lU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&nU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=oU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return wU(e,t),c(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?aU():0:l.scrollHeight>l.clientHeight?aU():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(lU()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&nU(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?xU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(u>0)for(var P=E;P<=R;P++)A.push(w(t,{data:c,key:p(P,c),index:P,isScrolling:v?y:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},CU=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},EU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=CU(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},RU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&CU(e,r,t).offset<n;)r+=i,i*=2;return EU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},AU=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},PU=SU({getItemOffset:function(e,t,r){return CU(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:AU,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=CU(e,t,o),p=AU(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?EU(e,t,o,0,r):RU(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=CU(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=CU(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function MU(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var IU=["style"],kU=["style"];function DU(e,t){var r=e.style,n=Hr(e,IU),o=t.style,i=Hr(t,kU);return!MU(r,o)&&!MU(n,i)}const TU=KE(-1),OU=DP(e=>KE(t=>t(TU)===e)),LU=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var qU=S.memo(LU,DU);const NU=()=>{},_U=e=>{e.preventDefault()};const jU=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=sR(OU(t)),d=lR(TU),p=sR(vk),f=sR(NR),h=sR(kR),m=sR(fT),g=o[t]?.[e],{handleMouseDown:v,handleMouseOver:b,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=sR(DR),n=lR(dT),o=sR(pT(e));if(XB(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=YB(_U,e,n,NU);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=O(r=>{const o=fH(r);o&&i&&n(o,e,t)},[t,n,e,i]);return hH(o,a),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=GB(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=QB(o,i,e);a=JB(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?OM(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===jP.Selected?{...s,...i.selectedColors}:n===jP.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${eM}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return nr.jsx("div",{className:`sn-table-cell ${x} ${oE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:pM(f,g.isLastColumn,m),borderLeftWidth:fM(f,g.isLastColumn,m),justifyContent:lM(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:v,onMouseUp:y,onMouseOver:b,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:nr.jsx(UB,{cellSelectionState:x,children:nr.jsx(BB,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return nr.jsx(qU,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var zU=N(jU,DU);const FU=MI(KE(async e=>{const t=e(gR),r=e(BR),n=e(JV).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(XI,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),$U=e=>{const t=M(e);return t.current=e,t},HU=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,BU=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},WU=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},VU=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:v,qAttrExprInfoIndex:b,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=$I(h,e,a),C=!h&&e.qIsNull,E=C?VP(w):WP(e);f[r]={id:DA(),...e,align:jI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&HI(e,h),representation:EI({cell:e,representationProperties:y,attrExprInfoIndex:b,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[jA.Image]:!0,[jA.Indicator]:!0,[jA.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d})})},UU=({rowCount:e,visibleRowCount:t,visibleColumnCount:r,gridState:n,setEstimatedCellHeight:o})=>{const i=sR(gR),a=sR(ZR),s=sR(BR),l=sR(fR),u=sR(NR),c=sR(JV),d=sR(FU),p=sR(rk),f=M([]),h=O((t,r)=>{const n=Array.isArray(r)?r.slice(0,e):(e=>Array(e).fill(void 0))(e);return VU(t,c,n,p,i,l,o,u),f.current=n,n},[e,c,p,i,l,o,u]),[m,g]=P(()=>h(d??[]));XC(()=>{g(h(d??[]))},[d,u]);const v=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=$U(e),a=$U(t),s=A(()=>({enqueue:e=>{const t=HU(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(HU(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>s&&"getHyperCubeData"in s?s.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),b=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(WU(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}},[f,v]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-c.page*c.rowsPerPage);if(BU(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}},[f,v,c]);return D(()=>{const{qcx:e,qcy:o}=i.qHyperCube.qSize,a=n.current.overscanRowStartIndex,s=n.current.overscanColumnStartIndex,l=a+c.page*c.rowsPerPage,u=e-s,d=c.rowsPerPage-a,p=Math.min(100,u,e,r+5),f=Math.min(100,d,o,t+25);return y(s,l,p,f),()=>{v.clear()}},[i,t,r,c,v,y,n,a]),{rowsInPage:m,loadRows:y,loadColumns:b}},GU=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},YU=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,KU=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=sR(vk),i=sR(wk),{estimateLineCount:a}=VC(o.dimension.values),s=mk(o.dimension.values.fontSize),l=e||t||1===r;return O((e,t,o)=>{if(l||e.representation.type===jA.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)},[l,i,a,r,s,n])},XU=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=sR(II);_(()=>{const i=e?n:(e=>{let t=0;e.forEach(e=>{t+=e});const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},JU=({rowCount:e,isSnapshot:t,gridRef:r})=>{const n=sR(vk),[o,i]=P({rowHeights:new Map,cellHeightsInGrid:new Map}),a=n.contentLineHeight,s=n.contentMinRowHeight,l=!!n.contentStaticLineCount,u=Math.max(8e6/e,s)-9,c=u+9,d=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=sR(gR),n=sR(JV),o=sR(wk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;XC(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),XC(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:r,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O((o,i,a)=>{z(()=>{e(e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!YU(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,GU(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:r}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O((o,i,a)=>{e||t||1===r||n(o,i,a)},[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=KU({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return XU({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},ZU=(e,t)=>{_(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=fH(e);void 0!==r&&t(r)},[t]);hH(e,r)};let QU=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const eG=({loadRows:e,loadColumns:t,rowCount:r,gridState:n})=>{const o=sR(II),i=sR(gR),a=sR(JV);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=QU.None,i=QU.None;return o=n>t?QU.Down:n<t?QU.Up:QU.None,i=r>e?QU.Right:r<e?QU.Left:QU.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>r)return;const v=s,b=u+a.page*a.rowsPerPage,y=l-s+1,x=c-u+1;if(o.visibleLeft=d,o.visibleWidth=p-d+1,o.visibleTop=f+a.page*a.rowsPerPage,o.visibleHeight=h-f+1,o.page=a.page,o.rowsPerPage=a.rowsPerPage,m===QU.Down){const t=x+25;e(v,b,y,u+t>r?r-u:t)}else if(m===QU.Up){const t=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,b-25);e(v,n,y,t)}if(g===QU.Right){const e=i.qHyperCube.qSize.qcx-v,r=y+5,n=Math.min(e,r);t(v,b,n,x)}else if(g===QU.Left){const e=Math.max(0,v-5),r=Math.min(i.qHyperCube.qSize.qcx,y+5);t(e,b,r,x)}},[n,r,a.page,a.rowsPerPage,o,e,i.qHyperCube.qSize.qcx,t])},tG=()=>{},rG={current:null};const nG=(e,t)=>{const r=sR(JV),n=sR(gR),o=sR(wk),i=Math.min(r.rowsPerPage,n.qHyperCube.qSize.qcy-r.page*r.rowsPerPage),a=Math.min(i,Math.ceil(e.height/t)),s=A(()=>o.reduce((t,r)=>t.width<e.width?{width:t.width+r,count:t.count+1}:t,{count:0,width:0}),[e,o]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},oG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},iG={overflow:"hidden",willChange:"auto"};var aG=N(q((e,t)=>{const{columns:r,setInnerBodyHeight:n,bodyHeight:o,stickyContainerRect:i}=e,a=sR(vk),s=sR(II),l=sR(gR),u=sR(NR),c=sR(wk),d=M(null),p=M(null),f=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),h=M(0),m=!!IM(l)?.content?.hoverEffect,{rowCount:g,visibleRowCount:v,visibleColumnCount:b}=nG(i,a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=JU({rowCount:g,isSnapshot:!!l.snapshotData,gridRef:d}),{rowsInPage:C,loadRows:E,loadColumns:R}=UU({rowCount:g,visibleRowCount:v,visibleColumnCount:b,gridState:f,setEstimatedCellHeight:x}),P=eG({loadRows:E,loadColumns:R,rowCount:g,gridState:f}),I=tB(),k=A(()=>({rowsInPage:C,columns:r,isHoverEnabled:m,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I}),[C,r,m,w,y,I]);return _(()=>{1===h.current&&d.current?.scrollToItem({rowIndex:g-1,align:"start"})}),function(e){const t=lR(dT);D(()=>{t({type:zP.UpdatePageRows,payload:{pageRows:e}})},[t,e]),rB({updateShouldRefocus:tG,tableWrapperRef:rG})}(C),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(p.current?.clientHeight??o)-o,n=Math.round(r*e);h.current=e,1===h.current?(d.current?.scrollToItem({rowIndex:g-1,align:"start"}),d.current?.scrollTo({scrollLeft:t})):d.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[p,o,g]),ZU(p,n),nr.jsx(yU,{"data-key":"body",ref:d,innerRef:p,style:iG,columnCount:r.length,columnWidth:e=>c[e],height:o,rowCount:g,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:i.width,itemData:k,onItemsRendered:P,itemKey:oG,className:"sn-table-body",direction:u,children:zU})}));const sG=({width:e,height:t,children:r})=>nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),lG=(e,t)=>{const r=M(null),n=sR(wk);_(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=fH(r);n&&t(n+9,e)},[e,t]);return hH(r,o),r},uG=mc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),cG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=sR(vk),s=sR(NR),l=sR(MR),u=sR(fT),c=lR(SM),d=sR(tk),p=sR(OR),f=sR(wk)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:v,toggleSortOrder:b}=gW({isInteractionEnabled:p,column:h}),y=sR(CR),x=lG(e,i),S=n.length-1===e,w=y?aH:PH,{ref:C,isDragging:E}=$V(h,e),R=GB(h.id);return nr.jsxs(uG,{"data-dragging":E,ref:C,className:`sn-table-cell ${oE}`,title:l.passive?h.label:void 0,onClick:y?v:b,applicableStyle:{...a.header,...q$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pM(s,S,u),borderLeftWidth:fM(s,S,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:h.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===h.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:l,hoverBackground:h.headerColor?.headerMenuHoverBackground??a.headerMenuHoverBackground,background:y&&m?h.headerColor?.headerMenuActiveBackground??a.headerMenuActiveBackground:h.headerColor?.background??a.header.background,color:h.headerColor?.color??a.header.color,children:[nr.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),nr.jsx(hW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},dG=e=>{const[t,r]=P(new Map);XC(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>YU(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>GU(t),[t]),setMeasuredCellHeight:n}},pG=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},fG=e=>{const t=sR(ZR),r=sR(gR),n=sR(JV),o=sR(wk);XC(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},hG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},mG=q((e,t)=>{const{stickyContainerRect:r,columns:n,columResizeHandler:o,setHeaderRowHeight:i}=e,a=S.useRef(null),s=M(null),l=sR(vk),u=sR(gR),c=sR(jR),d=sR(NR),p=sR(wk),{rowHeight:f,setMeasuredCellHeight:h}=dG(n),m=pW(c,u);return pG(t,a),fG(a),ZU(s,i),nr.jsx(PU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...hG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:o,setMeasuredCellHeight:h},direction:d,children:cG})});var gG=N(mG);const vG=q((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,a=sR(NR),s=sR(TR);return nr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:s?"auto":"hidden",width:n,height:o},onScroll:i,dir:a,tabIndex:-1,children:r})}),bG=({children:e,stickyContainerRect:t})=>{const r=sR(NR);return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},yG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=sR(vk),s=sR(gR),l=sR(NR),u=sR(kR),c=sR(fT),d=lG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=GB(n[e].id);return nr.jsx("div",{className:`sn-table-cell ${oE}`,title:u?p:void 0,style:{...t,...a.totalRow,...q$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:pM(l,m,c),borderLeftWidth:fM(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:nr.jsx(iH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},xG=q((e,t)=>{const{stickyContainerRect:r,totals:n,columns:o,setTotalsRowHeight:i}=e,a=M(null),s=M(null),l=sR(vk),u=sR(NR),c=sR(gR),d=sR(wk),{rowHeight:p,setMeasuredCellHeight:f}=dG(o);return pG(t,a),fG(a),ZU(s,i),nr.jsx(PU,{ref:a,outerRef:s,layout:"horizontal",style:hG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:r.width,itemData:{columns:o,totals:n,setMeasuredCellHeight:f},direction:u,children:yG})});var SG=N(xG);const wG=(e,t,r)=>{const n=sR(NR),o=sR(II);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,r,e,t,n])},CG=()=>{const e=sR(tk),t=sR(rk),r=sR(ak),n=sR(JV),o=sR(ZR),i=sR(YR),a=M(null),s=M(null),l=M(null),u=M(null),c=A(()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(i,r),[i,r]),d=sR(CM),p=sR(wM),f=A(()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(c,p,d),[c,p,d]),{rowCount:h}=nG(f,0),{headerAndTotalsHeight:m,innerBodyHeight:g,setHeaderRowHeight:v,setTotalsRowHeight:b,setInnerBodyHeight:y}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:x,height:S}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n})=>{const o=sR(vk),i=sR(wk),a=e+t;let s=r*o.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:i.reduce((e,t)=>e+t,0),height:s}})({innerBodyHeight:g,headerAndTotalsHeight:m,rowCount:h,stickyContainerRect:f}),w=wG(s,l,u),C=((e,t,r)=>Math.min(e.height-t,r))(f,m,g),E=O(()=>{a.current&&(a.current.scrollTop=0)},[a]);jH(),_(()=>{a.current&&(a.current.scrollLeft=0,a.current.scrollTop=0)},[t.length]),_(()=>{a.current&&(a.current.scrollTop=0)},[n,h,o]),YH(a);const R=nr.jsx(SG,{stickyContainerRect:f,columns:t,ref:l,totals:e,setTotalsRowHeight:b},"totals");return nr.jsxs(LH,{children:[nr.jsx(vG,{ref:a,width:c.width,height:c.height,onScroll:w,children:nr.jsxs(sG,{width:x,height:S,children:[nr.jsxs(bG,{stickyContainerRect:f,children:[nr.jsx(gG,{stickyContainerRect:f,columns:t,ref:s,columResizeHandler:E,setHeaderRowHeight:v}),e.atTop?R:null,nr.jsx(aG,{ref:u,stickyContainerRect:f,columns:t,setInnerBodyHeight:y,bodyHeight:C}),e.atBottom?R:null]}),nr.jsx(L$,{})]})}),nr.jsx(DH,{isPagination:!1})]})};var EG=N(CG);var RG=N(()=>{const e=sR(gR),t=sR(YR),r=sR(MR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=sR(ek),s=sR(ZR),l=sR(QR),u=sR(HR),[c,d]=uR(JV);return nr.jsxs(tH,{"data-testid":"sn-table",children:[nr.jsx(EG,{}),nr.jsx(ZD,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})});const AG=e=>{const t=e.get(BR),r=e.get(FR),n=e.get(mR),i=e.get(NR);o(()=>{n&&t&&(r?function(e){const t=e.get(NR),r=e.get(JR),n=Ak(t);r.render(nr.jsx(Ei,{stylisPlugins:"rtl"===t?[kP]:void 0,children:nr.jsx(vc,{theme:n,children:nr.jsx(tR,{store:e,children:nr.jsx(Rk,{children:nr.jsx(UV,{})})})})}))}(e):function(e){const t=e.get(NR),r=e.get(JR),n=Ak(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(vc,{theme:n,children:nr.jsx(tR,{store:e,children:nr.jsx(Rk,{children:nr.jsx(RG,{})})})})}))}(e))},[n,r,e,t,i])};function PG(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const MG=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},IG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const kG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||BI.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},DG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=LI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=PG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:kG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=MG(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,v=(IG(h,m,g)?d:d+1)+c;let b=p+c;const y=MG(p,o),x=y?.getBoundingClientRect();return y&&x&&(IG(x,m,g)||(b=p-1+c)),{visibleRowStartIndex:v,visibleRowEndIndex:b}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:kG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},TG={version:JSON.stringify("6.19.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};const OG=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),LG=e=>e.getStyle("object","straightTableV2","backgroundColor");function qG(r){return{qae:{properties:{initial:TG},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>bA({...e}),exportProperties:pA,exploration:yA},ext:AP(r),component(){const n=c(),i=e(()=>ZE(),[!1!==n.usePagination]);i.set(fR,r);const s=d();i.set(KR,s),i.set(gR,n),i.set(cR,p()),i.set(BR,f()),i.set(MR,h()),i.set(QR,m()),i.set(AR,g()),i.set(qR,t()),i.set(HR,v()),i.set(YR,b()),i.set(pR,y());const x=FC(n,s,OG,LG);i.set(ZR,x),i.set(mR,KC(x,n,r)),i.set(dR,Ot()),(e=>{const t=e.get(JR);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${oE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{hE(n)}})}),(({store:e})=>{const t=e.get(gR),r=e.get(BR),n=e.get(KR),o=e.get(GR),i=e.get(jR),a=e.get(FR);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(II),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v}=DG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),u(()=>({getViewState:()=>DG(t,e.get(II),n,i,a)}),[t,e,n,a])})({store:i}),AG(i)}}}export{qG as default};