@nebula.js/sn-table 6.23.0 → 6.24.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.23.0
2
+ * @nebula.js/sn-table v6.24.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -118,4 +118,4 @@ function na(e,t){let r;return r=t?Ui(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+")*?",b="(?![a-zA-Z])",v="(?!("+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+v+"[^;}]+;?)","gi"),M=new RegExp("("+u+"[^\\}]*?})","gi"),P=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"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"),j=new RegExp(l+"(rtl)"+x,"gi"),_=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(M,"`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(j,"$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(P,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$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)}(zM,zM.exports);var FM=Zt(zM.exports);function $M(e,t,r){switch(e.type){case tn:case en:case Zr:return e.return=e.return||e.value;case Qr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===Zr&&(e.children=e.value)})}var n=Un(Array.prototype.concat(e.children),$M);return fn(n)?e.return=e.value+"{"+n+"}":""}function HM(e,t,r,n){if(e.type===rn||"@supports"===e.type||e.type===Qr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Qr)){var o=FM.transform($M(e));e.children=o?Fn(o)[0].children:[],e.return=""}}function BM(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(HM,"name",{value:"stylisRTLPlugin"});const WM=BM(({options:e,...t})=>lR(nE(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 VM(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function UM(e){const t=lR(()=>[]),r=lR(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(!kE(t)){if(!PE(o))throw new Error("no atom init");S(e,o,o.init)}return DE(t)}const i=b(e,o);try{return DE(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(!PE(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),v(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(VM())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=iR(e),d=c[1],p=c[3],f=NE(c[6]),h=c[11],m=c[12],g=c[13],b=c[14],v=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=GM.get(e);r||(r=new Set,GM.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)})},VM()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const GM=new WeakMap;class YM{#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 KM=lR(()=>new YM);let XM=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),JM=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}({}),ZM=function(e){return e.A="ascending",e.D="descending",e}({}),QM=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const eP=[0,0],tP=e=>"number"==typeof e&&!Number.isNaN(+e),rP=e=>tP(e.qNum),nP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),oP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),iP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},aP=(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 ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},sP=(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:oP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:iP(n,t,r)}))),n},lP=(e,t,r,n)=>{const o=sP(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=aP(e,a,t);break}n=i}return r})(o,t);return a},uP=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!tP(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||!tP(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)},cP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=uP(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||!tP(t))return 0;let a=r&&tP(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}},dP=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=cP(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 iP(o,r.limitPaletteColorIndex,n);const a=oP(r.limitRange,t);return lP(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}},pP=(_C().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)"),fP=4/3,hP="12px",mP="600",gP="Source Sans Pro, sans-serif",bP={height:"auto",fontSize:hP,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"}},vP={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:mP},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},yP=(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,xP=(e,t)=>e.representation.type===JA.Image&&"fitHeight"===e.representation.imageSize?yP(t,e.representation):e.align,SP=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",wP=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},CP=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,EP=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",RP=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",AP=24,MP=Pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),PP=Pc(vp,{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?SP(e,n):void 0})),IP=Pc(vp,{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},[`& .${hE}`]:{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"},[`& .${hE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),kP=Pc(vp,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),DP=Pc(vp,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),TP=Pc(Pd,{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})),OP=lR(),LP=lR(0),qP=lR(0),NP=4/3,jP=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function _P(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const zP=(e,t)=>e?{borderBottomColor:FC.DARK_MODE_BORDER,borderRightColor:FC.DARK_MODE_BORDER,borderLeftColor:FC.DARK_MODE_BORDER,borderTopColor:FC.DARK_MODE_BORDER}:{borderLeftColor:FC.BORDER_MEDIUM,borderRightColor:FC.BORDER_MEDIUM,borderTopColor:FC.BORDER_HEAVY,borderBottomColor:t?FC.BORDER_HEAVY:FC.BORDER_LIGHT},FP=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*NP+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$P=e=>e.components?.find(e=>"theme"===e.key),HP=(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:jP(r?.fontColor)?_P(FC.TEXT,t,r?.fontColor):i||FC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...zP(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function BP(e,t,r){const n=$P(e)?.header,o=HP("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=BC(o.background??FC.WHITE,wE),o.activeBackground=BC(o.background??FC.WHITE,CE),o}const WP=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in vP)(e)&&Object.assign(t,vP[e])),t};function VP(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&&VC(i);a&&(n[r[t]]=a),o=i?WP(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=$C(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var UP={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:YP(e),value:YP(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},GP=UP;function YP(e){try{return decodeURIComponent(e)}catch{return e}}function KP(e){if(!(this instanceof KP))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:()=>GP.fromSearchString(t.search)}})}function XP(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")}KP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},KP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XP(t.key),t.value?r+=`=${XP(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JP=KP;var ZP,QP=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}},eI=class{decode(e){let t="";const r=new QP(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},tI=e=>e>=0&&e<=1114111,rI=e=>e.match(/[\s]/),nI=class extends eI{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&&!rI(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return tI(a)?String.fromCharCode(a):"�"}},oI=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}},iI=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 oI.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return oI.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||oI.newInstanceIfNeeded(e,t,this._value)}},aI=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 iI);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},sI=(()=>{const e=[],t=[],r=new aI;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})(),lI=class extends eI{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,sI.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=sI.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)&&tI(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)&&tI(n)?String.fromCharCode(n):null}},uI=class extends eI{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),tI(i))?String.fromCharCode(i):(e.reset(),null)}},cI=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,dI=5e6,pI=5e5,fI=(e,t)=>{const{maxByteSizeSvg:r=pI,maxByteSizeImage:n=dI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=cI.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&&(ZP=document.createElement("div"));var hI=Array.prototype.indexOf,mI=[",",".","_"," "],gI=[",",".","-","_"," "],bI={width:["%"],height:["%"]},vI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},yI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":vI.image,"background-color":vI.color,"border-color":vI.color,"border-image":vI.image,color:vI.color,icon:vI.image,"list-style-image":vI.image,"outline-color":vI.color},xI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function SI(e,t,r){let n;if(t){if(hI)return hI.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 wI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return ZP.appendChild(r),t=ZP.innerHTML,ZP.removeChild(r),t}function CI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=RI(e).toLowerCase(),t=RI(t),i=0;i<xI.attr_name.length;i++)if(e.match(xI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<xI.attr_val.length;i++)if(t.toLowerCase().match(xI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=bI[e],n||(n=gI),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]/)&&SI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function EI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=RI(e).toLowerCase(),t=RI(t),SI(e,xI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<xI.css_val.length;n++)if(t.toLowerCase().indexOf(xI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=yI[e],o||(o=vI.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]/)&&SI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function RI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new lI,new uI,new nI];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 AI=[];for(let e=0;e<255;e++)AI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var MI={html:e=>wI(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]=EI(t,r[t],!0),i+=EI(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]=CI(e,t[e],!0),o+=CI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function PI(e,t){throw new Error(t)}var II={canonicalize:RI,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&&PI(this,"Invalid parameter type"),MI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&PI(this,"Invalid parameter type"),MI.attr(e)):void PI(this,"Invalid parameter type")},encodeForAttr:CI,encodeForAttr2:function(e){return CI("nonsens",e,!0)},encodeForCSS:EI,encodeForHref:function(e){RI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new JP(e),r=JP.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+JP.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=mI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),SI(o,t)>=0||null==AI[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:wI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=RI(t).toLowerCase():PI(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:fI,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 kI=(e,t)=>t.qAttrExps?.qValues?.[e],DI=(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"}}},TI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!II.isSafeDataURL(t))?{type:JA.Text,url:void 0,text:e,labelStructure:o}:{type:JA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:DI(n,a),labelStructure:o,imageBox:i},OI=(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}},LI=(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},qI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:JA.Link,url:II.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:JA.Text,url:void 0,text:t,labelStructure:e}}},NI=({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=QA(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=kI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),TI({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 TI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kI(r.imageLabel??-1,e)?.qText??n;return TI({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=LI(r.url??-1,e,t);return qI({labelStructure:n,text:o||i||"",url:i})}if(i===ZA.Dimension){const i=LI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),qI({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")?OI(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 jI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),_I=new WeakMap,zI=()=>{};function FI(e,t=zI){return((e,t,r)=>{const n=jI(()=>new WeakMap,_I,t);return jI(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=lR(0),i=lR([]);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=lR(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),lR(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const $I=lR(e=>{const t=e(JR),r=e(LR);return e(qR),{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}}),HI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),BI=({cId:e})=>e??WA(),WI=1e4;function VI(e,t){return[...t].reverse().find(t=>t*e<=WI)||Math.floor(WI/e)}function UI(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 GI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function YI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return tP(r?.qNum)}function KI(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 XI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",JI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?BC(s,wE):void 0,u=s?BC(s,CE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:$C(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const ZI=(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===EE.Cyclic,g=l===s[0];let b,v,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:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:M,qAttrExprInfo:P,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:SE.Auto},selectionColIdx:S,isActivelySorted:g,id:BI(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:P.map(e=>e.id),qAttrExprInfoIndex:HI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:GI(e,f,u,d??-1),...!f&&{isTotalNumeric:YI(e,d??-1)},...KI(M,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?JI(L,r):void 0}}(e,o,t,r,n))},QI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",ek=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,tk={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},rk=lR(e=>{const t=e(nk),r=e(IR),n=e($I),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>WI?{...t,rowsPerPage:VI(l,t.rowsPerPageOptions),page:0}:t}),nk=lR(tk),ok=lR(e=>{const t=e(IR),r=e(JR),n=e($I);return GR(t,r)?{page:n.page||tk.page,rowsPerPage:n.rowsPerPage||tk.rowsPerPage,rowsPerPageOptions:tk.rowsPerPageOptions}:e(rk)},(e,t,r)=>{t(nk,e=>({...e,...r}))}),ik=!0,ak=lR(async e=>{const t=e(IR),r=e(JR),n=e(KR),{page:o,rowsPerPage:i}=e(ok),a=e($I),s=e(rA),l=e(AR),u=e(DR),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,b=UI(t,r),v=ZI(t,ik,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 v.forEach((i,a)=>{const s=e[a],u=QI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?nP(u):rP(s);o[a]={id:WA(),...s,align:XI(d,i.bodyTextAlign,n,ik),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)&&ek(s,i.isDim),representation:NI({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:b,columns:v,rows:x}}),sk=FI(ak,e=>e),lk=25e4,uk=lR(e=>{const t=e(IR),r=e(JR),n=e($R),o=e(KR),i=e(MR),a=ZI(t,false,o,i),s=UI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(lk,l),c=l>lk&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),ck={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},dk=lR(),pk=lR(e=>{const t=e(QR),r=e(dk);return r||(t?e(sk)??ck:e(uk))}),fk=lR(e=>e(pk).totalsPosition),hk=lR(e=>e(pk).columns),mk=lR(e=>e(hk).length),gk=lR(e=>e(pk).rows),bk=lR(e=>e(pk).totalRowCount),vk=lR(e=>e(pk).totalColumnCount),yk=lR(e=>e(pk).paginationNeeded),xk=lR(e=>{const t=e(lA),r=e(dA),n=e(IR),o=e(fk),i=e(gk),a=o.atTop,s=function(e,t,r,n){const o=$P(e)?.content,i=HP("content",t,o);i.background=t.background.color;const a=FP(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=jP(l)||!!c,p=jP(s)||!!u,f=d||p;let h;h=jP(s)?_P(FC.HOVER,t,s):u||(d?"":FC.HOVER);const m=f?_P($C(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=BP(n,r,!a),u=function(e,t,r){const n=$P(e)?.content,o=HP("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BP(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),Sk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},wk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Sk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Ck=(e,t,r,n=FC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=wk(e,t,r);return XC(i,o,a,n)??n},Ek=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return hP}},Rk=e=>e?.some(e=>"italic"===e)?"italic":"normal",Ak=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?mP:"normal",Mk=e=>!1===e?1:3,Pk=e=>parseInt(e??bP.fontSize,10)*fP,Ik=e=>e?.some(e=>"underline"===e)?"underline":"none",kk=lR(e=>{const t=e(JR),r=e(QR),n=e(dA),o=e(IR),i=e(xk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=$P(o)??{},f=r?FC.WHITE:FC.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??gP,fontSize:Ek(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:Rk(a?.fontStyle),fontWeight:Ak(a?.fontStyle,mP),textDecoration:Ik(a?.fontStyle),color:Sk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??FC.TEXT,background:h},headerMenuHoverBackground:BC(h,wE),headerMenuActiveBackground:BC(h,CE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??gP,fontSize:Ek(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:Rk(s?.fontStyle),fontWeight:Ak(s?.fontStyle,"normal"),textDecoration:Ik(s?.fontStyle),color:Sk(n,s?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??FC.TEXT,background:wk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??FC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??gP,fontSize:Ek(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:Rk(l?.fontStyle),fontWeight:Ak(l?.fontStyle,"normal"),textDecoration:Ik(l?.fontStyle),color:Sk(n,l?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??FC.TEXT,background:wk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??FC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??gP,fontSize:Ek(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:Rk(u?.fontStyle),fontWeight:Ak(u?.fontStyle,mP),textDecoration:Ik(u?.fontStyle),color:Sk(n,u?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??FC.TEXT,background:Ck(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:Rk(c?.fontStyle),fontWeight:Ak(c?.fontStyle,"normal"),textDecoration:Ik(c?.fontStyle),color:Sk(n,c?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??FC.TEXT,background:Sk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??FC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??Mk(o.multiline?.wrapTextInCells),headerLineClamp:Mk(o.multiline?.wrapTextInHeaders),border:Sk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?FC.DARK_MODE_BORDER:FC.BORDER_MEDIUM),divider:Sk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??FC.BORDER_HEAVY,hoverColors:{color:Sk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:Sk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:Sk(n,d?.zebraStripes?.color?.odd),background:Sk(n,d?.zebraStripes?.background?.odd)},even:{color:Sk(n,d?.zebraStripes?.color?.even),background:Sk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===Sk(n,c?.background),overrideNullValueColor:void 0===Sk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:HC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:b,totalRowLineHeight:v,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(Pk(e.header.fontSize)+8,32),r=Pk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(Pk(e.dimension.values.fontSize),Pk(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=b,g.totalRowLineHeight=v,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),Dk=(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(xE.PixelsMax,Math.max(xE.PixelsMin,f)),i-=n[a]};switch(s){case SE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?xE.PixelsDefault:+e)(l),h();break;case SE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?xE.PercentageDefault:+e)(u)/100*t,h();break;case SE.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 SE.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(xE.AutoMinTable,e)})}return n},Tk=lR(e=>{const t=e(kk),r=e(pk).totalsPosition,n=e(NR),{measureText:o}=e(WM({...t.header,fontWeight:mP})),{measureText:i}=e(WM({...t.totalRow,fontWeight:mP})),{estimateWidth:a}=e(WM(t.dimension.values)),{estimateWidth:s}=e(WM(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+=AP),t+=AP,t+=AP,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),Ok=lR(null),Lk=lR(e=>{const t=e(pk),r=e(sA).width,n=e(qP),o=e(Tk);return Dk(t.columns,r-n,o)}),qk=lR(e=>e(Ok)??e(Lk),(e,t,r)=>{t(Ok,r)}),Nk=UM(e=>{const t=e(KM);!1===e(OP)&&t.emit("done-adjusting-column-width")}),jk=UM((e,t)=>{e(IR),t(Ok,null)}),_k=({children:e})=>(xR(jk),xR(Nk),e);function zk(e){const t=_C();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Vu({...t,direction:e})}const Fk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},$k={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Hk=Pc("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":{...Fk},"&::-moz-range-track":{...Fk},"&::-ms-track":{...Fk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...$k},"&::-moz-range-thumb":{...$k},"&::-ms-thumb":{...$k},"&: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"}})),Bk=({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=dE({translator:c.translator}),f=P({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};uE(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,xE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:SE.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=>{GC(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=>{GC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===vE.Left||e.key===vE.Right){GC(e);const t=5,r=e.key===vE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===vE.Space||e.key===vE.Enter?(GC(e),s(e),l?.(!1),x()):e.key===vE.Esc&&(GC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return ur.jsx(Hk,{style:b,hoverColor:o,isLastColumn:r,className:yE,"data-testid":yE,onMouseDown:e=>{GC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:SE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(GC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":xE.PixelsMin,"aria-valuemax":xE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Wk=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Vk=({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},Uk=Pc(vp,{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"})),Gk=Pc(Wk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Yk=Pc(eh)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Kk=Pc(Xp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Xk=Pc(ih)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Jk=Pc(ih,{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=Pc("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"})),Qk=Pc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),eD=Pc(Ld)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),tD=Pc(Mf,{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})),rD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),nD=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?nD(t):t:e.parentElement?.children?.[0]},oD=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?oD(t):t},iD=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===vE.Down||t===vE.Up){const r=e=>t===vE.Down?nD(e):oD(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},aD=(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 sD={};const lD=({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]=M(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return ur.jsxs(ur.Fragment,{children:[ur.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),sD={}),a?.length&&(p(!0),sD[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:iD,children:[l?ur.jsx(Zk,{direction:u,isPagination:c}):null,ur.jsxs(Qk,{children:[ur.jsx(tD,{direction:u,isPagination:c,children:ur.jsx(o,{})}),ur.jsx(eD,{variant:"body2",children:n})]}),a?.length?ur.jsx(rD,{}):null]},t),a?.length?ur.jsx(pD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:aD(a,sD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},uD=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&ur.jsx(Xk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>ur.jsx(lD,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),cD=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[uD({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?ur.jsx(Kk,{"data-testid":"group-divider",variant:"middle"}):void 0]),dD={appear:0,enter:0,exit:0},pD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?ur.jsx(Yk,{className:mE,open:t,anchorEl:e,onClose:r,transitionDuration:dD,MenuListProps:{id:gE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:cD({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,fD=({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]),hD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),mD=(e,t)=>e.some(e=>t[e]>0),gD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=M(null),[a,s]=M(gD);return uE(()=>{e||(s(gD),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=hD(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:mD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:mD(["qSelected"],e),canSelectPossible:mD(["qOption"],e),canSelectAlternative:mD(["qAlternative"],e),canSelectExcluded:mD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},vD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),yD=q((e,t)=>ur.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:ur.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"})})),xD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),SD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),wD=q((e,t)=>ur.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:ur.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)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),ED=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),RD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),AD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),PD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),ID=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),kD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),DD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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 TD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const OD="/qListObjectDef",LD=({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[TD.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:vD,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:SD,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:RD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:wD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[TD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:AD,enabled:!0}]}]),!e.isLocked&&r[TD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:DD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(OD))},icon:MD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(OD))},icon:kD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(OD))},icon:PD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(OD))},icon:ID,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(OD))},icon:yD,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:ED,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[TD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:xD,enabled:!0}]}]),f},qD=({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:b=pE})=>{const v=P(null),y=dE({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=bD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=Vk({model:f,headerData:n}),M=fD({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?ur.jsxs(Uk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:hE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?ur.jsx(Gk,{height:b,className:fE,"data-testid":fE,isInteractionsActive:i.active??!1,children:ur.jsx(Wk,{})}):null,ur.jsx(pD,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:LD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:M,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ND=e=>e.isDark?{background:e.color,borderColor:FC.DARK_MODE_BORDER,color:FC.DARK_MODE_TEXT,disabledColor:FC.DARK_MODE_DISABLED,iconColor:FC.DARK_MODE_TEXT}:{background:e.color,borderColor:FC.BORDER_MEDIUM,color:FC.TEXT,disabledColor:FC.DISABLED},jD=Pc(vp,{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}`})),_D=Pc(zh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),zD=Pc(Pp,{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)})),FD=Pc(Ld)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),$D=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>ND(n.background),[n]);if(!r.active)return null;const a=o?ur.jsx(jD,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},HD=I({}),BD=()=>L(HD),WD=({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 b=(e=>!e.enabled||e.active)(c)?0:-1,v=A(()=>ND(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=dE({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:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return ur.jsx(HD.Provider,{value:S,children:e})};let VD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),UD=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 GD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),KD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),XD={FirstPage:YD,PreviousPage:GD,NextPage:rD,LastPage:KD,FirstPageRTL:KD,PreviousPageRTL:rD,NextPageRTL:GD,LastPageRTL:YD},JD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=BD(),u=r.concat("rtl"===n?"RTL":""),c=XD[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}=BD(),o=0===e.page,{IconComponent:i,styledProps:a}=JD({type:VD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||UD.FirstPage)?null:ur.jsx(zD,{...a,disabled:!r.active,children:ur.jsx(i,{height:pE})})},QD=(e,t,r=!1)=>{r&&e.key===vE.Tab&&!e.shiftKey&&(GC(e),UC(e.target,t,!1))},eT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=BD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=JD({type:VD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{QD(e,t,n)}:void 0;return o<=(a?.lastPage||UD.LastPage)?null:ur.jsx(zD,{...u,onKeyDown:c,disabled:!i.active,children:ur.jsx(l,{height:pE})})},tT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=BD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=JD({type:VD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>UD.FirstPage&&o>UD.LastPage)&&t.enabled?e=>{QD(e,t,n)}:void 0;return ur.jsx(zD,{...l,onKeyDown:u,disabled:!i.active,children:ur.jsx(s,{height:pE})})},rT=()=>{const{pageInfo:e,interactions:t}=BD(),r=0===e.page,{IconComponent:n,styledProps:o}=JD({type:VD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return ur.jsx(zD,{...o,disabled:!t.active,children:ur.jsx(n,{height:pE})})},nT=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=BD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||UD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return ur.jsx(FD,{variant:"caption",dir:"ltr",children:s})},oT=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=BD(),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 ur.jsxs(ur.Fragment,{children:[ur.jsxs(FD,{variant:"caption",id:p,children:[c,":"]}),ur.jsx(_D,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},iT=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=BD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||UD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=ur.jsx(ur.Fragment,{children:e.rowsPerPageOptions.map(e=>ur.jsx("option",{value:e,children:e},e))});return ur.jsx(oT,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},aT=1e3,sT="…",lT=({totalPages:e,page:t})=>{const r=Math.min(e,aT),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-aT):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return ur.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(ur.jsx("option",{value:sT,disabled:!0,children:sT},"startMoreOptions")),o<e-1&&a.push(ur.jsx("option",{value:sT,disabled:!0,children:sT},"endMoreOptions")),ur.jsx(ur.Fragment,{children:a})},uT=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=BD(),{page:i}=e;if(t<=(o?.selectPage||UD.SelectPage))return null;const a=ur.jsx(lT,{totalPages:r,page:i});return ur.jsx(oT,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var cT=N(e=>ur.jsxs(WD,{...e,children:[ur.jsx(iT,{}),ur.jsx(uT,{}),ur.jsx(nT,{}),ur.jsx(ZD,{}),ur.jsx(rT,{}),ur.jsx(tT,{}),ur.jsx(eT,{})]}));const dT=e=>ur.jsx($D,{...e,children:ur.jsx(cT,{...e})}),pT=(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"]})},fT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},hT=e=>e.ctrlKey||e.metaKey,mT=e=>e.shiftKey&&hT(e),gT=e=>[vE.Left,vE.Right,vE.Up,vE.Down].includes(e),bT=e=>e.shiftKey&&gT(e.key),vT=e=>(e=>gT(e)||[vE.Home,vE.End,vE.PageUp,vE.PageDown].includes(e))(e.key)&&!mT(e),yT=(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),pT(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})},xT=(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&&bT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&bT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===vE.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 pT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},ST=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}},wT=(e,t)=>{switch(t.type){case JM.Select:return yT(e,t.payload);case JM.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 JM.SelectMouseUp:return((e,t)=>ST(e.isSelectMultiValues||e.firstCell!==t.cell?e:yT(e,t)))(e,t.payload);case JM.SelectMultiAdd:return xT(e,t.payload);case JM.SelectMultiEnd:return ST(e);case JM.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case JM.Clear:return e.rows.size?{...e,rows:new Map}:e;case JM.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},CT=lR(e=>{const t=e(zR);return function(e,t){return lR(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(pk).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},wT)}),ET=lR(e=>e(e(CT)),(e,t,r)=>{t(e(CT),r)}),RT=BM(e=>lR(t=>{const{colIdx:r,rows:n,api:o}=t(ET);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?XM.Disabled:n.has(e.qElemNumber)?XM.Selected:XM.Possible:XM.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),AT=lR(e=>{const t=e(qk),r=e(sA).width,n=e(qP);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var MT=Symbol.for("preact-signals");function PT(){if(OT>1)OT--;else{var e,t=!1;for(!function(){var e=jT;for(jT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==TT;){var r=TT;for(TT=void 0,LT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&HT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(LT=0,OT--,t)throw e}}function IT(e){if(OT>0)return e();NT=++qT,OT++;try{return e()}finally{PT()}}var kT=void 0;function DT(e){var t=kT;kT=void 0;try{return e()}finally{kT=t}}var TT=void 0,OT=0,LT=0,qT=0,NT=0,jT=void 0,_T=0;function zT(e){if(void 0!==kT){var t=e.n;if(void 0===t||t.t!==kT)return t={i:0,S:e,p:kT.s,n:void 0,t:kT,e:void 0,x:void 0,r:t},void 0!==kT.s&&(kT.s.n=t),kT.s=t,e.n=t,32&kT.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=kT.s,t.n=void 0,kT.s.n=t,kT.s=t),t}}function FT(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 $T(e,t){return new FT(e,t)}function HT(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 BT(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 WT(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 VT(e,t){FT.call(this,void 0),this.x=e,this.s=void 0,this.g=_T-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 UT(e,t){return new VT(e,t)}function GT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){OT++;var r=kT;kT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,YT(e),t}finally{kT=r,PT()}}}function YT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,GT(e)}function KT(e){if(kT!==this)throw new Error("Out-of-order effect");WT(this),kT=e,this.f&=-2,8&this.f&&YT(this),PT()}function XT(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 XT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}FT.prototype.brand=MT,FT.prototype.h=function(){return!0},FT.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:DT(function(){var e;null==(e=t.W)||e.call(t)}))},FT.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&&DT(function(){var e;null==(e=t.Z)||e.call(t)}))}},FT.prototype.subscribe=function(e){var t=this;return JT(function(){var r=t.value,n=kT;kT=void 0;try{e(r)}finally{kT=n}},{name:"sub"})},FT.prototype.valueOf=function(){return this.value},FT.prototype.toString=function(){return this.value+""},FT.prototype.toJSON=function(){return this.value},FT.prototype.peek=function(){var e=kT;kT=void 0;try{return this.value}finally{kT=e}},Object.defineProperty(FT.prototype,"value",{get:function(){var e=zT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(LT>100)throw new Error("Cycle detected");!function(e){0!==OT&&0===LT&&e.l!==NT&&(e.l=NT,jT={S:e,v:e.v,i:e.i,o:jT})}(this),this.v=e,this.i++,_T++,OT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{PT()}}}}),VT.prototype=new FT,VT.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===_T)return!0;if(this.g=_T,this.f|=1,this.i>0&&!HT(this))return this.f&=-2,!0;var e=kT;try{BT(this),kT=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 kT=e,WT(this),this.f&=-2,!0},VT.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)}FT.prototype.S.call(this,e)},VT.prototype.U=function(e){if(void 0!==this.t&&(FT.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)}},VT.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(VT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=zT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),XT.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()}},XT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,GT(this),BT(this),OT++;var e=kT;return kT=this,KT.bind(this,e)},XT.prototype.N=function(){2&this.f||(this.f|=2,this.u=TT,TT=this)},XT.prototype.d=function(){this.f|=8,1&this.f||YT(this)},XT.prototype.dispose=function(){this.d()};var ZT,QT,eO,tO,rO,nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO=Object.create,yO=Object.defineProperty,xO=Object.defineProperties,SO=Object.getOwnPropertyDescriptor,wO=Object.getOwnPropertyDescriptors,CO=Object.getOwnPropertySymbols,EO=Object.prototype.hasOwnProperty,RO=Object.prototype.propertyIsEnumerable,AO=e=>{throw TypeError(e)},MO=(e,t,r)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PO=(e,t)=>yO(e,"name",{value:t,configurable:!0}),IO=["class","method","getter","setter","accessor","field","value","get","set"],kO=e=>void 0!==e&&"function"!=typeof e?AO("Function expected"):e,DO=(e,t,r,n,o)=>({kind:IO[e],name:t,metadata:n,addInitializer:e=>r._?AO("Already initialized"):o.push(kO(e||null))}),TO=(e,t)=>{return MO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},OO=(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},LO=(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=IO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&SO(d<4?o:{get[r](){return jO(this,i)},set[r](e){return zO(this,i,e)}},r));d?f&&d<4&&PO(i,(d>2?"set ":d>1?"get ":"")+r):PO(o,r);for(var y=n.length-1;y>=0;y--)u=DO(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jO:FO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>zO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?kO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?AO("Object expected"):(kO(a=s.get)&&(v.get=a),kO(a=s.set)&&(v.set=a),kO(a=s.init)&&g.unshift(a));return d||TO(e,o),v&&yO(o,r,v),f?4^d?i:v:o},qO=(e,t,r)=>t.has(e)||AO("Cannot "+r),NO=(e,t)=>Object(t)!==t?AO('Cannot use the "in" operator on this value'):e.has(t),jO=(e,t,r)=>(qO(e,t,"read from private field"),r?r.call(e):t.get(e)),_O=(e,t,r)=>t.has(e)?AO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zO=(e,t,r,n)=>(qO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),FO=(e,t,r)=>(qO(e,t,"access private method"),r);function $O(e,t){if(t){let r;return UT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return UT(e)}function HO(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)=>!HO(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=>!HO(e[r],t[r]));return!o}return!1}function BO({get:e},t){return{init:e=>$T(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function WO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=$O(e.bind(this)),r.set(this,t)),t.value}}function VO(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)=>xO(e,wO(t)))(((e,t)=>{for(var r in t||(t={}))EO.call(t,r)&&MO(e,r,t[r]);if(CO)for(var r of CO(t))RO.call(t,r)&&MO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function UO(...e){const t=e.map(e=>JT(e));return()=>t.forEach(e=>e())}nO=[BO],rO=[BO],tO=[BO],eO=[VO()],QT=[VO()],ZT=[VO()];var GO,YO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,OO(oO,5,this),_O(this,uO),_O(this,iO,OO(oO,8,this)),OO(oO,11,this),_O(this,cO,OO(oO,12,this)),OO(oO,15,this),_O(this,hO,OO(oO,16,this)),OO(oO,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return jO(this,uO,gO)}get initial(){return jO(this,uO,sO)}get previous(){return jO(this,uO,pO)}set current(e){const t=DT(()=>jO(this,uO,gO));e&&t&&this.equals(t,e)||IT(()=>{jO(this,uO,sO)||zO(this,uO,e,lO),zO(this,uO,t,fO),zO(this,uO,e,bO)})}reset(e=this.defaultValue){IT(()=>{zO(this,uO,void 0,fO),zO(this,uO,e,lO),zO(this,uO,e,bO)})}};function KO(e){return DT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}oO=[,,,vO(null)],iO=new WeakMap,uO=new WeakSet,cO=new WeakMap,hO=new WeakMap,aO=LO(oO,20,"#initial",nO,uO,iO),sO=aO.get,lO=aO.set,dO=LO(oO,20,"#previous",rO,uO,cO),pO=dO.get,fO=dO.set,mO=LO(oO,20,"#current",tO,uO,hO),gO=mO.get,bO=mO.set,LO(oO,2,"current",eO,YO),LO(oO,2,"initial",QT,YO),LO(oO,2,"previous",ZT,YO),TO(oO,YO);GO=new WeakMap;var XO,JO,ZO,QO,eL,tL=Object.create,rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,oL=Object.getOwnPropertySymbols,iL=Object.prototype.hasOwnProperty,aL=Object.prototype.propertyIsEnumerable,sL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),lL=e=>{throw TypeError(e)},uL=Math.pow,cL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dL=["class","method","getter","setter","accessor","field","value","get","set"],pL=e=>void 0!==e&&"function"!=typeof e?lL("Function expected"):e,fL=(e,t,r,n,o)=>({kind:dL[e],name:t,metadata:n,addInitializer:e=>r._?lL("Already initialized"):o.push(pL(e||null))}),hL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=dL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,nL(o,r)),h=n.length-1;h>=0;h--)(l=fL(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,pL(a)&&(f[d]=a);return f&&rL(o,r,f),o},mL=(e,t,r)=>t.has(e)||lL("Cannot "+r),gL=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)}},bL=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={}))iL.call(t,r)&&cL(e,r,t[r]);if(oL)for(var r of oL(t))aL.call(t,r)&&cL(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 gL((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 gL.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 vL,yL=class extends(ZO=YO,JO=[WO],XO=[WO],ZO){constructor(e){var t,r,n;super(gL.from(e),(e,t)=>gL.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)})(eL,5,this),t=this,n=0,(r=QO).has(t)?lL("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 gL.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=gL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(mL(a=this,s=QO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);IT(()=>{((e,t,r)=>{mL(e,t,"write to private field"),t.set(e,r)})(this,QO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(gL.from(e)),this.velocity={x:0,y:0}}};function xL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(uL(n,2)+uL(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}eL=(e=>{var t;return[,,,tL(null!=(t=null==e?void 0:e[sL("metadata")])?t:null)]})(ZO),QO=new WeakMap,hL(eL,2,"delta",JO,yL),hL(eL,2,"direction",XO,yL),vL=eL,cL(yL,sL("metadata"),vL[3]);var SL,wL,CL,EL,RL=(e=>(e.Horizontal="x",e.Vertical="y",e))(RL||{}),AL=Object.values(RL),ML=Object.create,PL=Object.defineProperty,IL=Object.defineProperties,kL=Object.getOwnPropertyDescriptor,DL=Object.getOwnPropertyDescriptors,TL=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty,LL=Object.prototype.propertyIsEnumerable,qL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),NL=e=>{throw TypeError(e)},jL=(e,t,r)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_L=(e,t)=>{for(var r in t||(t={}))OL.call(t,r)&&jL(e,r,t[r]);if(TL)for(var r of TL(t))LL.call(t,r)&&jL(e,r,t[r]);return e},zL=(e,t)=>IL(e,DL(t)),FL=(e,t)=>PL(e,"name",{value:t,configurable:!0}),$L=(e,t)=>{var r={};for(var n in e)OL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&TL)for(var n of TL(e))t.indexOf(n)<0&&LL.call(e,n)&&(r[n]=e[n]);return r},HL=e=>{var t;return[,,,ML(null!=(t=null==e?void 0:e[qL("metadata")])?t:null)]},BL=["class","method","getter","setter","accessor","field","value","get","set"],WL=e=>void 0!==e&&"function"!=typeof e?NL("Function expected"):e,VL=(e,t,r,n,o)=>({kind:BL[e],name:t,metadata:n,addInitializer:e=>r._?NL("Already initialized"):o.push(WL(e||null))}),UL=(e,t)=>jL(t,qL("metadata"),e[3]),GL=(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},YL=(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=BL[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&kL(d<4?o:{get[r](){return JL(this,i)},set[r](e){return QL(this,i,e)}},r));d?f&&d<4&&FL(i,(d>2?"set ":d>1?"get ":"")+r):FL(o,r);for(var y=n.length-1;y>=0;y--)u=VL(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>XL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?JL:eq)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>QL(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?WL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?NL("Object expected"):(WL(a=s.get)&&(v.get=a),WL(a=s.set)&&(v.set=a),WL(a=s.init)&&g.unshift(a));return d||UL(e,o),v&&PL(o,r,v),f?4^d?i:v:o},KL=(e,t,r)=>t.has(e)||NL("Cannot "+r),XL=(e,t)=>Object(t)!==t?NL('Cannot use the "in" operator on this value'):e.has(t),JL=(e,t,r)=>(KL(e,t,"read from private field"),r?r.call(e):t.get(e)),ZL=(e,t,r)=>t.has(e)?NL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),QL=(e,t,r,n)=>(KL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),eq=(e,t,r)=>(KL(e,t,"access private method"),r);function tq(e,t){return{plugin:e,options:t}}function rq(e){return t=>tq(e,t)}function nq(e){return"function"==typeof e?{plugin:e,options:void 0}:e}SL=[BO];var oq=class{constructor(e,t){this.manager=e,this.options=t,ZL(this,CL,GL(wL,8,this,!1)),GL(wL,11,this),ZL(this,EL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return DT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=JT(e.bind(this));return JL(this,EL).add(t),t}destroy(){JL(this,EL).forEach(e=>e())}static configure(e){return tq(this,e)}};wL=HL(null),CL=new WeakMap,EL=new WeakMap,YL(wL,4,"disabled",SL,oq,CL),UL(wL,oq);var iq,aq=class extends oq{},sq=class{constructor(e){this.manager=e,this.instances=new Map,ZL(this,iq,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(nq).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,iq))if(!r.includes(e)){if(e.prototype instanceof aq)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);QL(this,iq,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 lq(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}iq=new WeakMap;var uq,cq,dq=[],pq=class extends oq{constructor(e){super(e),ZL(this,uq),ZL(this,cq),this.computeCollisions=this.computeCollisions.bind(this),QL(this,cq,$T(dq)),this.destroy=UO(()=>{const e=this.computeCollisions(),t=DT(()=>this.manager.dragOperation.position.current);if(e!==dq){const e=JL(this,uq);if(QL(this,uq,t),e&&t.x==e.x&&t.y==e.y)return}else QL(this,uq,void 0);JL(this,cq).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){DT(()=>{e?JL(this,cq).value=this.computeCollisions():QL(this,uq,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return dq;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=DT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?dq:(s.sort(lq),s)}get collisions(){return JL(this,cq).value}};uq=new WeakMap,cq=new WeakMap;var fq=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)}},hq=class extends fq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function mq(e,t=!0){let r=!1;return zL(_L({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var gq,bq,vq,yq,xq,Sq,wq,Cq,Eq,Rq=class extends aq{constructor(e){super(e);let t=[];this.destroy=UO(()=>{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=mq({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;DT(()=>{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()}))})})}},Aq=(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))(Aq||{}),Mq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Mq||{});wq=[BO],Sq=[WO],xq=[WO],yq=[WO],vq=[WO],bq=[WO],gq=[WO];var Pq=class{constructor(){GL(Cq,5,this),ZL(this,Eq,GL(Cq,8,this,"idle")),GL(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=HL(null),Eq=new WeakMap,YL(Cq,4,"value",wq,Pq,Eq),YL(Cq,2,"current",Sq,Pq),YL(Cq,2,"idle",xq,Pq),YL(Cq,2,"initializing",yq,Pq),YL(Cq,2,"initialized",vq,Pq),YL(Cq,2,"dragging",bq,Pq),YL(Cq,2,"dropped",gq,Pq),UL(Cq,Pq);var Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q=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 DT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=mq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return DT(()=>{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;IT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=mq({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 DT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=mq({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 DT(()=>{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=DT(()=>{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()})}};Tq=[BO],Dq=[BO],kq=[BO],Iq=[BO];var zq=class{constructor(e,t){ZL(this,Lq,GL(Oq,8,this)),GL(Oq,11,this),ZL(this,qq,GL(Oq,12,this)),GL(Oq,15,this),ZL(this,Nq,GL(Oq,16,this)),GL(Oq,19,this),ZL(this,jq,GL(Oq,20,this)),GL(Oq,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)}};Oq=HL(null),Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakMap,YL(Oq,4,"manager",Tq,zq,Lq),YL(Oq,4,"id",Dq,zq,qq),YL(Oq,4,"data",kq,zq,Nq),YL(Oq,4,"disabled",Iq,zq,jq),UL(Oq,zq);var Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN,iN,aN,sN,lN,uN,cN=class{constructor(){this.map=$T(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=UO(...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}},dN=class extends(Uq=zq,Vq=[BO],Wq=[BO],Bq=[BO],Hq=[WO],$q=[WO],Fq=[WO],Uq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=$L(r,["modifiers","type","sensors"]);super(a,t),GL(Gq,5,this),ZL(this,Yq,GL(Gq,8,this)),GL(Gq,11,this),ZL(this,Kq,GL(Gq,12,this)),GL(Gq,15,this),ZL(this,Xq,GL(Gq,16,this,this.isDragSource?"dragging":"idle")),GL(Gq,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}};Gq=HL(Uq),Yq=new WeakMap,Kq=new WeakMap,Xq=new WeakMap,YL(Gq,4,"type",Vq,dN,Yq),YL(Gq,4,"modifiers",Wq,dN,Kq),YL(Gq,4,"status",Bq,dN,Xq),YL(Gq,2,"isDropping",Hq,dN),YL(Gq,2,"isDragging",$q,dN),YL(Gq,2,"isDragSource",Fq,dN),UL(Gq,dN);var pN=class extends(nN=zq,rN=[BO],tN=[BO],eN=[BO],Qq=[BO],Zq=[BO],Jq=[WO],nN){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super($L(r,["accept","collisionDetector","collisionPriority","type"]),t),GL(oN,5,this),ZL(this,iN,GL(oN,8,this)),GL(oN,11,this),ZL(this,aN,GL(oN,12,this)),GL(oN,15,this),ZL(this,sN,GL(oN,16,this)),GL(oN,19,this),ZL(this,lN,GL(oN,20,this)),GL(oN,23,this),ZL(this,uN,GL(oN,24,this)),GL(oN,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}};oN=HL(nN),iN=new WeakMap,aN=new WeakMap,sN=new WeakMap,lN=new WeakMap,uN=new WeakMap,YL(oN,4,"accept",rN,pN,iN),YL(oN,4,"type",tN,pN,aN),YL(oN,4,"collisionDetector",eN,pN,sN),YL(oN,4,"collisionPriority",Qq,pN,lN),YL(oN,4,"shape",Zq,pN,uN),YL(oN,2,"isDropTarget",Jq,pN),UL(oN,pN);var fN,hN=class extends oq{constructor(e,t){super(e,t),this.manager=e,this.options=t}},mN=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)}},gN=class{constructor(e){this.options=e,ZL(this,fN)}set controller(e){QL(this,fN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=JL(this,fN))||t.activate(e)}};fN=new WeakMap;var bN,vN,yN,xN,SN,wN,CN,EN,RN,AN,MN,PN,IN,kN,DN,TN,ON,LN,qN,NN=class extends oq{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},jN=class{constructor(e){this.draggables=new cN,this.droppables=new cN,this.plugins=new sq(e),this.sensors=new sq(e),this.modifiers=new sq(e)}register(e,t){if(e instanceof dN)return this.draggables.register(e.id,e);if(e instanceof pN)return this.droppables.register(e.id,e);if(e.prototype instanceof NN)return this.modifiers.register(e,t);if(e.prototype instanceof hN)return this.sensors.register(e,t);if(e.prototype instanceof oq)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof zq)return e instanceof dN?this.draggables.unregister(e.id,e):e instanceof pN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof NN)return this.modifiers.unregister(e);if(e.prototype instanceof hN)return this.sensors.unregister(e);if(e.prototype instanceof oq)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()}};RN=[WO],EN=[BO],CN=[BO],wN=[BO],SN=[BO],xN=[BO],yN=[WO],vN=[WO],bN=[WO];var _N=class{constructor(e){GL(IN,5,this),ZL(this,AN),ZL(this,MN),ZL(this,PN,new YO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new Pq,ZL(this,kN,GL(IN,8,this,!1)),GL(IN,11,this),ZL(this,DN,GL(IN,12,this,null)),GL(IN,15,this),ZL(this,TN,GL(IN,16,this,null)),GL(IN,19,this),ZL(this,ON,GL(IN,20,this,null)),GL(IN,23,this),ZL(this,LN,GL(IN,24,this,[])),GL(IN,27,this),this.position=new yL({x:0,y:0}),ZL(this,qN,{x:0,y:0}),QL(this,AN,e)}get shape(){const{current:e,initial:t,previous:r}=JL(this,PN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?JL(this,PN).current=e:JL(this,PN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=JL(this,AN).registry.draggables.get(t);return r&&QL(this,MN,r),null!=(e=null!=r?r:JL(this,MN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=JL(this,AN).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(zL(_L({},this.snapshot()),{transform:r}));return QL(this,qN,r),r}snapshot(){return DT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:JL(this,qN),shape:this.shape?KO(this.shape):null,position:KO(this.position),status:KO(this.status),canceled:this.canceled}))}reset(){IT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,JL(this,PN).reset(),this.position.reset({x:0,y:0}),QL(this,qN,{x:0,y:0}),this.modifiers=[]})}};IN=HL(null),AN=new WeakMap,MN=new WeakMap,PN=new WeakMap,kN=new WeakMap,DN=new WeakMap,TN=new WeakMap,ON=new WeakMap,LN=new WeakMap,qN=new WeakMap,YL(IN,2,"shape",RN,_N),YL(IN,4,"canceled",EN,_N,kN),YL(IN,4,"activatorEvent",CN,_N,DN),YL(IN,4,"sourceIdentifier",wN,_N,TN),YL(IN,4,"targetIdentifier",SN,_N,ON),YL(IN,4,"modifiers",xN,_N,LN),YL(IN,2,"source",yN,_N),YL(IN,2,"target",vN,_N),YL(IN,2,"transform",bN,_N),UL(IN,_N);var zN={get rendering(){return Promise.resolve()}};function FN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var $N=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=FN(r.plugins,[]),o=FN(r.sensors,[]),i=FN(r.modifiers,[]),a=null!=(t=r.renderer)?t:zN,s=new hq(this),l=new jN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new _q(this),this.dragOperation=new _N(this),this.collisionObserver=new pq(this),this.plugins=[Rq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=UO(()=>{var e,t,r;const n=DT(()=>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}=nq(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}},HN=e=>{throw TypeError(e)},BN=(e,t,r)=>t.has(e)||HN("Cannot "+r),WN=(e,t,r)=>(BN(e,t,"read from private field"),t.get(e)),VN=(e,t,r)=>t.has(e)?HN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UN=(e,t,r,n)=>(BN(e,t,"write to private field"),t.set(e,r),r),GN=(e,t,r)=>(BN(e,t,"access private method"),r);function YN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function KN(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=(YN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function XN(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 QN(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 ej(e){const{Document:t}=QN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function tj(e){return!(!e||JN(e))&&(e instanceof QN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function rj(e){return e instanceof QN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function nj(e){return e?JN(e)?e.document:ZN(e)?ej(e)?e:tj(e)||rj(e)?e.ownerDocument:document:document:document}function oj(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 ij(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(!oj(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,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),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 aj(e){return{x:e.clientX,y:e.clientY}}var sj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function lj(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(...lj(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(...lj(o.document,t))}}catch(e){}return r}function uj(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function cj(){var e,t;const r=uj()?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 dj(e){return!(!e||!ZN(e))&&e instanceof QN(e).ShadowRoot}function pj(e){if(e&&ZN(e)){let t=e.getRootNode();if(dj(t))return t;if(t instanceof Document)return t}return nj(e)}function fj(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function hj(e){return"value"in e}function mj(e){return"CANVAS"===e.tagName}function gj(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 gj(e,{x:t-o,y:r-i})}}return n}var bj=new WeakMap;var vj=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 yj(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function xj(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 Sj,wj=sj?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Cj=class extends wj{constructor(e){super(t=>{WN(this,Sj)?e(t,this):UN(this,Sj,!0)}),VN(this,Sj,!1)}};Sj=new WeakMap;var Ej,Rj,Aj,Mj,Pj,Ij,kj,Dj,Tj,Oj,Lj,qj=Array.from({length:100},(e,t)=>t/100),Nj=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,VN(this,Tj),this.disconnect=()=>{var e,t,r;UN(this,kj,!0),null==(e=WN(this,Aj))||e.disconnect(),null==(t=WN(this,Mj))||t.disconnect(),WN(this,Pj).disconnect(),null==(r=WN(this,Ij))||r.remove()},VN(this,Ej,!0),VN(this,Rj),VN(this,Aj),VN(this,Mj),VN(this,Pj),VN(this,Ij),VN(this,kj,!1),VN(this,Dj,xj(()=>{var e,t,r;const{element:n}=this;if(null==(e=WN(this,Mj))||e.disconnect(),WN(this,kj)||!WN(this,Ej)||!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=ij(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,UN(this,Mj,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:bL.intersectionRatio(r,ij(n)))&&WN(this,Dj).call(this)},{threshold:qj,rootMargin:m,root:o})),WN(this,Mj).observe(n),GN(this,Tj,Oj).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),UN(this,Ej,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=ij(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)&&(UN(this,Ij,document.createElement("div")),WN(this,Ij).style.background="rgba(0,0,0,0.15)",WN(this,Ij).style.position="fixed",WN(this,Ij).style.pointerEvents="none",o.body.appendChild(WN(this,Ij))),UN(this,Pj,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=WN(this,Ej);UN(this,Ej,a),(s||l)&&(u&&!a?(null==(r=WN(this,Mj))||r.disconnect(),this.callback(null),null==(n=WN(this,Aj))||n.disconnect(),UN(this,Aj,void 0),WN(this,Ij)&&(WN(this,Ij).style.visibility="hidden")):WN(this,Dj).call(this),a&&!WN(this,Aj)&&(UN(this,Aj,new Cj(WN(this,Dj))),WN(this,Aj).observe(e)))},{threshold:qj,root:o})),WN(this,Ej)&&!r.skipInitial&&this.callback(this.boundingClientRect),WN(this,Pj).observe(e)}};Ej=new WeakMap,Rj=new WeakMap,Aj=new WeakMap,Mj=new WeakMap,Pj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,Dj=new WeakMap,Tj=new WeakSet,Oj=function(){WN(this,kj)||(GN(this,Tj,Lj).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,WN(this,Rj))||(this.callback(this.boundingClientRect),UN(this,Rj,this.boundingClientRect)))},Lj=function(){if(WN(this,Ij)){const{top:e,left:t,width:r,height:n}=ij(this.element);WN(this,Ij).style.overflow="hidden",WN(this,Ij).style.visibility="visible",WN(this,Ij).style.top=`${Math.floor(e)}px`,WN(this,Ij).style.left=`${Math.floor(t)}px`,WN(this,Ij).style.width=`${Math.floor(r)}px`,WN(this,Ij).style.height=`${Math.floor(n)}px`}};var jj,_j,zj,Fj,$j=new WeakMap,Hj=new WeakMap;function Bj(e,t){let r=$j.get(e);if(!r){const t=new Nj(e,t=>{const r=$j.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),$j.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&($j.delete(e),r.disconnect())}}var Wj=class{constructor(e,t,r){this.callback=t,VN(this,jj),VN(this,_j,!1),VN(this,zj),VN(this,Fj,xj(e=>{if(!WN(this,_j)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of WN(this,zj))if(e.target.contains(t)){this.callback(WN(this,jj).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=yj(e);for(;r;)t.add(r),r=yj(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Bj(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Hj.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}),Hj.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Hj.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Hj.delete(n))}):()=>{}}(e,WN(this,Fj));UN(this,zj,n),UN(this,jj,new Nj(e,t,r)),this.disconnect=()=>{WN(this,_j)||(UN(this,_j,!0),o(),i(),WN(this,jj).disconnect())}}};function Vj(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Uj(e){try{Vj(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Gj(e){return!(!sj||!e)&&e===nj(e).scrollingElement}function Yj(e){var t,r;const n=QN(e),o=Gj(e)?function(e){var t,r,n,o;const{documentElement:i}=nj(e),a=QN(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):XN(e),i=n.visualViewport,a=Gj(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 Kj(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Yj(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}}jj=new WeakMap,_j=new WeakMap,zj=new WeakMap,Fj=new WeakMap;var Xj=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))}},Jj=new Xj(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),Zj=new Xj(e=>setTimeout(e,50)),Qj=new Map,e_=Qj.clear.bind(Qj);function t_(e,t=!1){if(!t)return r_(e);let r=Qj.get(e);return r||(r=r_(e),Qj.set(e,r),Zj.schedule(e_),r)}function r_(e){return QN(e).getComputedStyle(e)}var n_={excludeElement:!0,escapeShadowDOM:!0};function o_(e,t=n_){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(ej(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&dj(a))return t(a.host);if(!tj(a))return rj(a)?t(a.parentElement):i;if(i.has(a))return i;const s=t_(a,!0);if(n&&a===e||function(e,t=t_(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=t_(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 i_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=yj(e);for(;n;){if(n===t)return r;const e=XN(n),{x:o,y:i}=a_(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=yj(n)}return r}function a_(e,t=XN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(tj(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=t_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function s_(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 l_(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=s_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var u_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(u_||{}),c_={x:.2,y:.2},d_={x:10,y:10};function p_(e,t,r,n=25,o=c_,i=d_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Yj(e),f=i_(e),h=l_(t_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new bL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function f_(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!tj(e))return e.scrollIntoView();var n=function(e){const[t]=o_(e,{limit:1});return null!=t?t:null}(e);if(!tj(n))return;const o=t_(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 h_({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function m_(e,t=t_(e).translate,r=!0){if(r){const t=KN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=s_(e);if(t)return t}}}if(t){const e=s_(t);if(e)return e}return{x:0,y:0,z:0}}var g_=new Xj(e=>setTimeout(e,0)),b_=new Map,v_=b_.clear.bind(b_);function y_(e,t){const r=function(e){const t=e.ownerDocument;let r=b_.get(t);if(r)return r;r=t.getAnimations(),b_.set(t,r),g_.schedule(v_);const n=r.filter(t=>YN(t.effect)&&t.effect.target===e);return b_.set(e,n),r}(e).filter(e=>{var r,n;if(YN(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 x_=class extends bL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=i_(e),ignoreTransforms:s,getBoundingClientRect:l=XN}=t,u=y_(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||uj())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=t_(e),b=l_(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=YN(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=l_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function S_(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 w_=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(S_(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(S_(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(S_(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function C_(e){return!!e&&(e instanceof QN(e).Element||ZN(e)&&e.nodeType===Node.ELEMENT_NODE)}function E_(e){if(!e)return!1;const{KeyboardEvent:t}=QN(e.target);return e instanceof t}var R_={};function A_(e){const t=null==R_[e]?0:R_[e]+1;return R_[e]=t,`${e}-${t}`}var M_=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/gL.distance(t.shape.center,r),type:Mq.PointerIntersection,priority:Aq.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=gL.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:Aq.Normal}}return null})(e)},P_=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?bL.from(n.current.boundingRectangle).corners:void 0,a=bL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+gL.distance(gL.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:Aq.Normal}},I_=Object.create,k_=Object.defineProperty,D_=Object.defineProperties,T_=Object.getOwnPropertyDescriptor,O_=Object.getOwnPropertyDescriptors,L_=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable,j_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),__=e=>{throw TypeError(e)},z_=(e,t,r)=>t in e?k_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F_=(e,t)=>{for(var r in t||(t={}))q_.call(t,r)&&z_(e,r,t[r]);if(L_)for(var r of L_(t))N_.call(t,r)&&z_(e,r,t[r]);return e},$_=(e,t)=>D_(e,O_(t)),H_=(e,t)=>k_(e,"name",{value:t,configurable:!0}),B_=(e,t)=>{var r={};for(var n in e)q_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&L_)for(var n of L_(e))t.indexOf(n)<0&&N_.call(e,n)&&(r[n]=e[n]);return r},W_=e=>{var t;return[,,,I_(null!=(t=null==e?void 0:e[j_("metadata")])?t:null)]},V_=["class","method","getter","setter","accessor","field","value","get","set"],U_=e=>void 0!==e&&"function"!=typeof e?__("Function expected"):e,G_=(e,t,r,n,o)=>({kind:V_[e],name:t,metadata:n,addInitializer:e=>r._?__("Already initialized"):o.push(U_(e||null))}),Y_=(e,t)=>z_(t,j_("metadata"),e[3]),K_=(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},X_=(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=V_[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&T_(d<4?o:{get[r](){return Q_(this,i)},set[r](e){return tz(this,i,e)}},r));d?f&&d<4&&H_(i,(d>2?"set ":d>1?"get ":"")+r):H_(o,r);for(var y=n.length-1;y>=0;y--)u=G_(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Z_(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?Q_:rz)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>tz(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?U_(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?__("Object expected"):(U_(a=s.get)&&(v.get=a),U_(a=s.set)&&(v.set=a),U_(a=s.init)&&g.unshift(a));return d||Y_(e,o),v&&k_(o,r,v),f?4^d?i:v:o},J_=(e,t,r)=>t.has(e)||__("Cannot "+r),Z_=(e,t)=>Object(t)!==t?__('Cannot use the "in" operator on this value'):e.has(t),Q_=(e,t,r)=>(J_(e,t,"read from private field"),r?r.call(e):t.get(e)),ez=(e,t,r)=>t.has(e)?__("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tz=(e,t,r,n)=>(J_(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),rz=(e,t,r)=>(J_(e,t,"access private method"),r),nz="button",oz="draggable",iz="dnd-kit-description",az="dnd-kit-announcement",sz={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."},lz={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 uz(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var cz=["dragover","dragmove"],dz=class extends oq{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=iz,announcement:o=az}={},announcements:i=lz,screenReaderInstructions:a=sz,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:A_(n),u=r?`${o}-${r}`:A_(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Jj.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,cz.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),uz(r)&&!uj()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",nz)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",oz)),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&&Jj.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var pz,fz,hz,mz,gz,bz,vz,yz,xz,Sz,wz,Cz,Ez,Rz=new Map,Az=class extends(gz=aq,mz=[BO],hz=[WO],fz=[WO],pz=[WO],gz){constructor(e){super(e),K_(vz,5,this),ez(this,xz),ez(this,bz,new Set),ez(this,yz,K_(vz,8,this,new Set)),K_(vz,11,this),this.registerEffect(rz(this,xz,Sz))}register(e){return Q_(this,bz).add(e),()=>{Q_(this,bz).delete(e)}}addRoot(e){return DT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{DT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return pj(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return pj(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}};vz=W_(gz),bz=new WeakMap,yz=new WeakMap,xz=new WeakSet,Sz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of Q_(this,bz))t.push(rz(this,xz,wz).call(this,r,e));return()=>{for(const e of t)e()}},wz=function(e,t){let r=Rz.get(e);r||(r=new Map,Rz.set(e,r));let n=r.get(t);if(!n){const o=ej(e)?rz(this,xz,Cz).call(this,e,r,t):rz(this,xz,Ez).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&&Rz.delete(e)}}},Ez=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(dj(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&&Rz.delete(e)}}},X_(vz,4,"additionalRoots",mz,Az,yz),X_(vz,2,"sourceRoot",hz,Az),X_(vz,2,"targetRoot",fz,Az),X_(vz,2,"roots",pz,Az),Y_(vz,Az);var Mz="data-dnd-",Pz=`${Mz}dropping`,Iz="--dnd-",kz=`${Mz}dragging`,Dz=`${Mz}placeholder`,Tz=[kz,Dz,"popover","aria-pressed","aria-grabbing"],Oz=["view-transition-name"],Lz=`\n :is(:root,:host) [${kz}] {\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(${Iz}top, 0px) !important;\n left: var(${Iz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Iz}width, auto);\n max-width: var(${Iz}width, auto);\n height: var(${Iz}height, auto);\n max-height: var(${Iz}height, auto);\n transition: var(${Iz}transition) !important;\n }\n\n :is(:root,:host) [${Dz}] {\n transition: none;\n }\n\n :is(:root,:host) [${Dz}='hidden'] {\n visibility: hidden;\n }\n\n [${kz}] * {\n pointer-events: none !important;\n }\n\n [${kz}]:not([${Pz}]) {\n translate: var(${Iz}translate) !important;\n }\n\n [${kz}][style*='${Iz}scale'] {\n scale: var(${Iz}scale) !important;\n transform-origin: var(${Iz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${kz}][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 [${kz}]::backdrop, [${Mz}overlay]:not([${kz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function qz(e,t="hidden"){return DT(()=>{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}${A_("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(hj(e)&&hj(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),mj(e)&&mj(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),bj.set(a,i),r.push(()=>{bj.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(Dz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Nz(e,t){return e===t||yj(e)===yj(t)}function jz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&C_(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>Uj(t))}function _z(e){return"TR"===e.tagName}var zz,Fz,$z,Hz,Bz,Wz,Vz,Uz=250,Gz="ease";var Yz=class extends(Fz=oq,zz=[BO],Fz){constructor(e,t){super(e,t),ez(this,Bz),ez(this,Hz,K_($z,8,this)),K_($z,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Az),n=null==r?void 0:r.register(Lz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(rz(this,Bz,Wz).bind(this,r)),this.registerEffect(rz(this,Bz,Vz))}};$z=W_(Fz),Hz=new WeakMap,Bz=new WeakSet,Wz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=pj(t);return r?e.addRoot(r):void 0},Vz=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=i_(f),m=i_(c),g=!Nz(c,f),b=new x_(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new w_(f),{transition:R,translate:A,boxSizing:M,paddingBlockStart:P,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=t_(c),N="clone"===d,j="content-box"===M,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(P)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:qz(l,N?"clone":"hidden"),$=DT(()=>E_(o.dragOperation.activatorEvent));if("none"!==A){const e=s_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=DT(()=>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!==v||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(kz,"true");const Z=DT(()=>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=cj();if(E.set({width:x-_,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?`${v} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},Iz),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;Vj(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Uj(f),f.addEventListener("beforetoggle",jz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new x_(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=cj();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},Iz),null==(t=se.getElementMutationObserver())||t.takeRecords(),_z(se.element)&&_z(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 x_(se.feedbackElement)}));var se;const le=new x_(f);DT(()=>a.shape=le);const ue=QN(f),ce=e=>{this.manager.actions.stop({event:e})},de=fj(ue);$&&ue.addEventListener("resize",ce),"idle"===DT(()=>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-")||Tz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(S_(e)&&S_(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(Oz.includes(e)||e.startsWith(Iz))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 Uj(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Uj(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;tj(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Vj(f)&&(f.removeEventListener("beforetoggle",jz),f.removeAttribute("popover")),f.removeAttribute(kz),E.reset(),ie&&_z(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,be=UO(()=>{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=DT(()=>a.modifiers),l=DT(()=>{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`},Iz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=gL.delta(o,i);a.shape=bL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new x_(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=Uz,easing:s=Gz}=null!=i?i:{};Uj(e.feedbackElement);const[,l]=null!=(t=KN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Nz(e.feedbackElement,u)?null:void 0},d=new x_(e.feedbackElement,c),p=null!=(n=s_(t_(e.feedbackElement).translate))?n:e.translate,f=new x_(u,c),h=bL.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=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},Iz),e.feedbackElement.setAttribute(Pz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),h_({element:e.feedbackElement,keyframes:$_(F_(F_({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:fj(QN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(Pz),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(),be()}},X_($z,4,"overlay",zz,Yz,Hz),Y_($z,Yz),Yz.configure=rq(Yz);var Kz,Xz,Jz,Zz,Qz,eF,tF,rF=Yz,nF=!0;Jz=[BO],Zz=u_.Forward,Kz=[BO],Xz=u_.Reverse;var oF=class{constructor(){ez(this,eF,K_(Qz,8,this,nF)),K_(Qz,11,this),ez(this,tF,K_(Qz,12,this,nF)),K_(Qz,15,this)}isLocked(e){return e!==u_.Idle&&(null==e?this[u_.Forward]===nF&&this[u_.Reverse]===nF:this[e]===nF)}unlock(e){e!==u_.Idle&&(this[e]=false)}};Qz=W_(null),eF=new WeakMap,tF=new WeakMap,X_(Qz,4,Zz,Jz,oF,eF),X_(Qz,4,Xz,Kz,oF,tF),Y_(Qz,oF);var iF,aF,sF,lF,uF,cF,dF=[u_.Forward,u_.Reverse],pF=class{constructor(){this.x=new oF,this.y=new oF}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},fF=class extends oq{constructor(e){super(e);const t=$T(new pF);let r=null;this.signal=t,JT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new pF);const{delta:o}=e.dragOperation.position;if(r){const e={x:hF(o.x,r.x),y:hF(o.y,r.y)},n=t.peek();IT(()=>{for(const t of AL)for(const r of dF)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function hF(e,t){return Math.sign(e-t)}var mF=class extends(aF=aq,iF=[BO],aF){constructor(e){super(e),ez(this,lF,K_(sF,8,this,!1)),K_(sF,11,this),ez(this,uF),ez(this,cF,()=>{if(!Q_(this,uF))return;const{element:e,by:t}=Q_(this,uF);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 tz(this,uF,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:gF(n.x),y:gF(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=Kj(e,n);if(r.x||r.y){const{speed:r,direction:s}=p_(e,o,i);if(a)for(const e of AL)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=Q_(this,uF))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return tz(this,uF,{element:e,by:{x:a,y:l}}),Jj.schedule(Q_(this,cF)),!0}}}}}return tz(this,uF,void 0),!1};let t=null,r=null;const n=$O(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=gj(pj(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=$O(()=>{const t=n.value,{documentElement:o}=nj(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=o_(n,{excludeElement:!1});return r=e,e}}if(t){const e=o_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},HO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new fF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&E_(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function gF(e){return e>0?u_.Forward:e<0?u_.Reverse:u_.Idle}sF=W_(aF),lF=new WeakMap,uF=new WeakMap,cF=new WeakMap,X_(sF,4,"autoScrolling",iF,mF,lF),Y_(sF,mF);var bF,vF=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()}),yF=class extends oq{constructor(e,t){super(e);const r=e.registry.plugins.get(mF);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(()=>vF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},xF={capture:!0,passive:!0},SF=class extends aq{constructor(e){super(e),ez(this,bF),this.handleScroll=()=>{null==Q_(this,bF)&&tz(this,bF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),tz(this,bF,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,xF),()=>{o.removeEventListener("scroll",this.handleScroll,xF)}}})}};bF=new WeakMap;function wF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var CF,EF=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}}),RF=class extends hN{constructor(e,t){super(e),this.manager=e,this.options=t,ez(this,CF,[]),this.listeners=new vj,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!C_(e.target))return;if(t.disabled)return;const{keyboardCodes:n=EF.keyboardCodes,preventActivation:o=EF.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=>{E_(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(),f_(n);const{center:o}=new x_(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=nj(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];Q_(this,CF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=EF.keyboardCodes}=null!=r?r:{};if(PF(e,[...n.end,...n.cancel])){e.preventDefault();const t=PF(e,n.cancel);return void this.handleEnd(e,t)}PF(e,n.up)?this.handleMove("up",e):PF(e,n.down)&&this.handleMove("down",e),PF(e,n.left)?this.handleMove("left",e):PF(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:EF.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(yF);!1===(null==e?void 0:e.disabled)&&(e.disable(),Q_(this,CF).push(()=>{e.enable()}))}cleanup(){Q_(this,CF).forEach(e=>e()),tz(this,CF,[])}destroy(){this.cleanup(),this.listeners.clear()}};CF=new WeakMap,RF.configure=rq(RF),RF.defaults=EF;var AF,MF=RF;function PF(e,t){return t.includes(e.code)}var IF,kF;AF=new WeakMap;IF=new WeakMap,kF=new WeakMap;var DF=class{};DF.Delay=class extends gN{constructor(){super(...arguments),ez(this,IF),ez(this,kF)}onEvent(e){switch(e.type){case"pointerdown":tz(this,kF,aj(e)),tz(this,IF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Q_(this,kF))return;const{x:t,y:r}=aj(e);xL({x:t-Q_(this,kF).x,y:r-Q_(this,kF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Q_(this,IF)&&(clearTimeout(Q_(this,IF)),tz(this,kF,void 0),tz(this,IF,void 0))}},DF.Distance=class extends gN{constructor(){super(...arguments),ez(this,AF)}onEvent(e){switch(e.type){case"pointerdown":tz(this,AF,aj(e));break;case"pointermove":if(!Q_(this,AF))return;const{x:t,y:r}=aj(e),n={x:t-Q_(this,AF).x,y:r-Q_(this,AF).y},{tolerance:o}=this.options;if(o&&xL(n,o))return void this.abort();xL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){tz(this,AF,void 0)}};var TF,OF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!C_(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new DF.Delay({value:250,tolerance:5})]:function(e){if(!C_(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 DF.Delay({value:200,tolerance:0})]:[new DF.Delay({value:200,tolerance:10}),new DF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!C_(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 ')))))}}),LF=class extends hN{constructor(e,t){super(e),this.manager=e,this.options=t,ez(this,TF,new Set),this.listeners=new vj,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=OF.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}=QN(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&&(zF(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||!C_(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=OF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=tj(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=i_(t.element),{x:s,y:l}=aj(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 mN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=lj(),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:NF,options:{capture:!0}}]);Q_(this,TF).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=aj(e),n=i_(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,Jj.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=nj(t.target).body;o.setPointerCapture(t.pointerId);const i=C_(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:NF,options:{passive:!1}},{type:"click",listener:NF},{type:"contextmenu",listener:NF},{type:"keydown",listener:this.handleKeyDown}]);Q_(this,TF).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},Q_(this,TF).forEach(e=>e()),Q_(this,TF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};TF=new WeakMap,LF.configure=rq(LF),LF.defaults=OF;var qF=LF;function NF(e){e.preventDefault()}function jF(){}var _F=new WeakSet;function zF(e){e&&!_F.has(e)&&(e.addEventListener("touchmove",jF,{capture:!1,passive:!1}),_F.add(e))}var FF,$F,HF,BF,WF,VF,UF,GF,YF,KF,XF,JF,ZF,QF,e$,t$,r$,n$,o$={modifiers:[],plugins:[dz,yF,class extends oq{constructor(e,t){super(e,t),this.manager=e;const r=$O(()=>{var e;return nj(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()}})}},rF,class extends oq{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),wF(),document.addEventListener("selectionchange",wF,{capture:!0}),()=>{document.removeEventListener("selectionchange",wF,{capture:!0}),e.remove()}}})}}],sensors:[qF,MF]},i$=class extends $N{constructor(e={}){const t=FN(e.plugins,o$.plugins),r=FN(e.sensors,o$.sensors),n=FN(e.modifiers,o$.modifiers);super($_(F_({},e),{plugins:[SF,mF,Az,...t],sensors:r,modifiers:n}))}},a$=class extends(BF=dN,HF=[BO],$F=[BO],FF=[BO],BF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=B_(r,["element","effects","handle","feedback"]);super(F_({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(nq))?t:[...r.sensors]).map(e=>{const t=e instanceof hN?e:r.registry.register(e.plugin),n=e instanceof hN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),ez(this,VF,K_(WF,8,this)),K_(WF,11,this),ez(this,UF,K_(WF,12,this)),K_(WF,15,this),ez(this,GF,K_(WF,16,this)),K_(WF,19,this),this.element=n,this.handle=i,this.feedback=a}};WF=W_(BF),VF=new WeakMap,UF=new WeakMap,GF=new WeakMap,X_(WF,4,"handle",HF,a$,VF),X_(WF,4,"element",$F,a$,UF),X_(WF,4,"feedback",FF,a$,GF),Y_(WF,a$);var s$=class extends(XF=pN,KF=[BO],YF=[BO],XF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=B_(r,["element","effects"]);const{collisionDetector:a=M_}=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 x_(r),o=DT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=$T(!1);super($_(F_({},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 Wj(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),ez(this,r$),ez(this,ZF,K_(JF,8,this)),K_(JF,11,this),ez(this,n$,K_(JF,12,this)),K_(JF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){tz(this,r$,e,t$)}get element(){var e;return null!=(e=this.proxy)?e:Q_(this,r$,e$)}};function l$(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=W_(XF),ZF=new WeakMap,r$=new WeakSet,n$=new WeakMap,QF=X_(JF,20,"#element",KF,r$,ZF),e$=QF.get,t$=QF.set,X_(JF,4,"proxy",YF,s$,n$),Y_(JF,s$);var u$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:D;function c$(){const e=M(0)[1];return O(()=>{e(e=>e+1)},[e])}function d$(e,t=[],r=!1){const n=P(e);return n.current=e,function(e,t=!1){const r=P(e.peek()),n=P(!1),o=c$();return u$(()=>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(()=>$O(()=>n.current()),t),r)}function p$(e,t){const r=P(new Map),n=c$();return u$(()=>{if(e)return JT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=DT(()=>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 f$(e,t){e()}function h$(e){const t=P(e);return u$(()=>{t.current=e},[e]),t}function m$(e,t,r=D,n=Object.is){const o=P(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function g$(e,t){const r=P(l$(e));u$(()=>{const n=l$(e);n!==r.current&&(r.current=n,t(n))})}var b$=Object.getOwnPropertySymbols,v$=Object.prototype.hasOwnProperty,y$=Object.prototype.propertyIsEnumerable,x$=I(new i$),S$=N(q(({children:e},t)=>{const[r,n]=M(0),o=P(null),i=P(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 u$(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),w$=[void 0,HO];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)v$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&b$)for(var n of b$(e))t.indexOf(n)<0&&y$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=P(null),{plugins:d,modifiers:p,sensors:f}=u,h=FN(d,o$.plugins),m=FN(f,o$.sensors),g=FN(p,o$.modifiers),b=h$(o),v=h$(i),y=h$(s),x=h$(a),S=h$(l),w=h$(n),C=function(e){const t=P(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new i$(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=b.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),m$(h,()=>C&&(C.plugins=h),...w$),m$(m,()=>C&&(C.sensors=m),...w$),m$(g,()=>C&&(C.modifiers=g),...w$),ur.jsxs(x$.Provider,{value:C,children:[ur.jsx(S$,{ref:c,children:r}),r]})}function E$(){return L(x$)}function R$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=P(null),l=E$(),u=null!=(a=d$(()=>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 rF);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 rF);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?A$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return ur.jsx(x$.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 ur.jsx(M$,{source:u,children:e});return e}())})}function A$(){return()=>{}}function M$({children:e,source:t}){return e(p$(t))}var P$,I$,k$,D$,T$,O$=Object.create,L$=Object.defineProperty,q$=Object.getOwnPropertyDescriptor,N$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),j$=e=>{throw TypeError(e)},_$=["class","method","getter","setter","accessor","field","value","get","set"],z$=e=>void 0!==e&&"function"!=typeof e?j$("Function expected"):e,F$=(e,t,r,n,o)=>({kind:_$[e],name:t,metadata:n,addInitializer:e=>r._?j$("Already initialized"):o.push(z$(e||null))}),$$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=_$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,q$(o,r)),h=n.length-1;h>=0;h--)(l=F$(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,z$(a)&&(f[d]=a);return f&&L$(o,r,f),o},H$=(e,t,r)=>t.has(e)||j$("Cannot "+r),B$=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)}},W$=class extends(k$=YO,I$=[WO],P$=[WO],k$){constructor(e){var t,r,n;super(B$.from(e),(e,t)=>B$.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)})(T$,5,this),t=this,n=0,(r=D$).has(t)?j$("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 B$.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=B$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(H$(a=this,s=D$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);IT(()=>{((e,t,r)=>{H$(e,t,"write to private field"),t.set(e,r)})(this,D$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(B$.from(e)),this.velocity={x:0,y:0}}};T$=(e=>{var t;return[,,,O$(null!=(t=null==e?void 0:e[N$("metadata")])?t:null)]})(k$),D$=new WeakMap,$$(T$,2,"delta",I$,W$),$$(T$,2,"direction",P$,W$),((e,t)=>{((e,t,r)=>{t in e?L$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,N$("metadata"),e[3])})(T$,W$);var V$=(e=>(e.Horizontal="x",e.Vertical="y",e))(V$||{});function U$(e){const t=E$();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(V$);const G$=()=>{const[e,t]=M(!1);return U$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?ur.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Y$=(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}),K$=lR(e=>{const t=e(TR),r=e(nA);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)}}),X$=({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,Q$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],eH=e=>e?.setAttribute("tabIndex","0"),tH=e=>e?.setAttribute("tabIndex","-1"),rH=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(tH)},nH=e=>{e?.focus(),eH(e)},oH=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${yE}`);nH(t)},0)},iH=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{rH(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 vE.Down:u<s&&u++;break;case vE.Up:u>a&&u--;break;case vE.Right:if(i)break;[u,c]="rtl"===n?X$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):J$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case vE.Left:if(i)break;[u,c]="rtl"===n?J$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):X$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case vE.Home:(hT(e)||i)&&(u=a),i||(c=0);break;case vE.End:(hT(e)||i)&&(u=s),i||(c=l);break;case vE.PageDown:u=Math.min(s,u+10);break;case vE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=Q$(t,a);return nH(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}},aH=(e,t,r,n)=>{rH(t),r(e),n.enabled&&!n.active?n.focus?.():nH(Q$(t,e))},sH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${mE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${QM.First}`),r=e.querySelector(`.${QM.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},lH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),uH=Pc(nm,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...bP,...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}})),cH=Pc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:hP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),dH=parseInt(hP,10)/2,pH=Pc("div")({position:"absolute",bottom:-dH,left:`calc(50% - ${dH}px)`}),fH=Pc(ym)({position:"sticky",top:0,zIndex:1}),hH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},mH=Pc(vp)({height:"100%"}),gH=Pc("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?{...hH,whiteSpace:"nowrap",display:r?"block":void 0}:{...hH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),bH=Pc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),vH="cell-text",yH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=xR(kk);return o?ur.jsx(gH,{"data-testid":vH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):ur.jsx(gH,{"data-testid":vH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},xH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=xR(OR),l=xR(K$),u=xR(KR),c=xR($R),d=xR(RR),p=xR(pA),f=xR(CR),h=xR(qk)[t.pageColIdx],m=xR(rA),g=P(null),b=P(null),v=(({column:e,columnWidth:t})=>{const r=xR(kk),{measureText:n}=oE({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:mP});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?ur.jsx(vD,{height:hP,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(SD,{height:hP,"data-testid":"head-cell-sort-descending-icon"}),a=r?ur.jsx(cH,{align:t,dir:o,children:i}):void 0,s=n?ur.jsx(kP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ur.jsx(lH,{height:hP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return ur.jsxs(IP,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:wP(t,i,u),children:[S,ur.jsxs(PP,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,ur.jsx(yH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?ur.jsxs(ur.Fragment,{children:[ur.jsx(qD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[TD.Sorting]:!0,[TD.Searching]:!0,[TD.Selections]:!0,[TD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:oH},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),ur.jsx(MP,{ref:b,direction:u,isPagination:i}),ur.jsx(MP,{ref:g,direction:u})]}):null]})},SH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),wH=(e,t)=>e.isCyclic&&t,CH=({column:e})=>{const t=xR(kk),r=xR(KR),n=xR(rA),o=S.useRef(null),[i,a]=S.useState(!1),s=Vk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return ur.jsxs(ur.Fragment,{children:[ur.jsx(TP,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:ur.jsx(SH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),ur.jsx(pD,{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:wD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},EH=e=>e.isLocked,RH=({column:e})=>{const t=xR(CR),r=xR(OR),n=xR(kk);return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=hD(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:ur.jsx(lH,{height:16,"data-testid":"head-cell-lock-icon"})})},AH=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=xR(kk);return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:ur.jsx(Wk,{height:16})})},MH=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=xR(CR),s=xR(KR),l=xR(RR),u=xR($R),c=xR(rA),d=xR(OR),p=xR(pA),f=xR(K$);return ur.jsx(qD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[TD.Sorting]:!0,[TD.Searching]:!0,[TD.Selections]:!0,[TD.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:oH},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:r})},PH=lR();PH.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const IH=({ref:e,callback:t})=>{const r=xR(PH),n=P(t);n.current=t,j(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},kH=Pc(vp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),DH=({children:e})=>{const t=S.useRef(null),[r,n]=M(()=>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.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 IH({ref:t,callback:i}),ur.jsx(kH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},TH=({children:e})=>e,OH=(e,t)=>!e.isLocked&&e.isDim&&t,LH=({column:e,open:t,setOpen:r})=>{const n=xR(kk),o=xR(OR),i=xR(KR),a=xR(RR);xR(CR);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),u=fD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:ur.jsx(AD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},qH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),NH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),jH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?ur.jsx(NH,{height:hP,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(qH,{height:hP,"data-testid":"head-cell-sort-descending-icon"});return r?ur.jsx(pH,{children:n}):void 0},_H=0,zH=1,FH=2,$H=3,HH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=xR(kk),u=xR(KR),{measureText:c}=oE(l.header),[d,p]=M(!1),f=P(null),h=P(null),m=P(null),g="number"==typeof a&&a>xE.PixelsMin+18;return ur.jsxs(ur.Fragment,{children:[ur.jsxs(DH,{children:[ur.jsx(TH,{prio:FH,minWidth:AP,children:EH(t)?ur.jsx(RH,{column:t}):null},"Lock"),ur.jsx(TH,{prio:zH,minWidth:AP,children:wH(t,s)?ur.jsx(CH,{column:t}):null},"Cyclic"),ur.jsx(TH,{ignore:!0,children:ur.jsx(jH,{column:t})},"Sort"),ur.jsx(TH,{minWidth:c(t.label)+8,children:ur.jsx(DP,{justifyContent:t.headTextAlign,children:ur.jsx(yH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),ur.jsx(TH,{prio:g?void 0:_H,minWidth:AP,children:d||OH(t,s)?ur.jsx(LH,{open:d,setOpen:p,column:t}):null},"Search"),ur.jsx(TH,{prio:$H,minWidth:AP,children:s?ur.jsx(AH,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?ur.jsxs(ur.Fragment,{children:[ur.jsx(MP,{ref:h,direction:u,isPagination:o}),ur.jsx(MP,{ref:f,direction:u}),ur.jsx(MH,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},BH=Pc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),WH=()=>{},VH=({column:e,isPagination:t})=>{const r=xR(kk),n=xR(KR),o=xR(AT),i=xR(fk),a=!1,s=xR(NR)?xH:HH;return ur.jsx(BH,{className:"sn-table-cell",applicableStyle:{...r.header,...Y$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:EP(n,a,o),borderLeftWidth:RP(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:ur.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:WH})})},UH=({isPagination:e})=>{const t=xR(hk),[r,n]=M();U$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?ur.jsx(R$,{children:ur.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:ur.jsx(VH,{column:o,isPagination:e})})}):null},GH=[qF.configure({activationConstraints:[new DF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],YH=o$.plugins.filter(e=>e!==dz),KH=({children:e})=>{const t=xR(nA),r=xR(hk);return ur.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:GH,plugins:YH,children:e})};function XH(e,t){const r=P(!1);D(()=>{r.current?e():r.current=!0},t)}const JH=lR(eP),ZH=BM(e=>lR(t=>{const[r,n]=t(JH);return 0===r&&n===e})),QH=()=>{const e=xR(ER);D(()=>{e.notifyIsDoneRendering()})};var eB={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 tB=lR(e=>{const t=e(pA),r=e(lA);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(eB).forEach(t=>{e.add(eB[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(`.${QM.First}`),s=r.querySelector(`.${QM.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===QM.First?(l=s,n=QM.Second):(l=a,n=QM.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),rB=(e,t)=>{const r=xR(tB),n=xR(lA),o=xR(vk),i=xR(bk),a=xR(gk),s=xR(fk),[l,u]=wR(JH),c=xR(_R),d=xR(tA);XH(()=>{const t=((e,t,r=!1)=>{const n=[Z$(t),e[1]];return r?n:eP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(rH(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=Q$(t,e);r.current?(nH(s),r.current=!1):eH(s),n&&(a({keys:[s?.textContent??""]}),fT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},nB=e=>{const t=xR(KR),r=xR($I);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])},oB=e=>{GC(e),hT(e)&&ME(e.currentTarget)},iB=e=>{vT(e.evt)&&(GC(e.evt),iH(e))},aB=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!vT(t))return;GC(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}=iH({...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:JM.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):fT(o,a,i)})({...e,nextCell:s})},sB=e=>{const{evt:t}=e;mT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{GC(e);const a=Math.ceil(t/r)-1;e.key===vE.Right&&n<a?(o(),i(n+1)):e.key===vE.Left&&n>0&&(o(),i(n-1))})(e):t.key===vE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(GC(e),t.blur?.(!0))})(e):gT(t.key)&&GC(t)},lB=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(XM.Disabled))return void GC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case vE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{GC(e),t.isSelectable&&r&&n({type:JM.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case vE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{GC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case vE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(GC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case vE.C:oB(t);break;case vE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(GC(e),UC(e.currentTarget,t,e.shiftKey))})(n);break;default:aB(n)}},uB=e=>{const t=xR(OP),r=SR(LP),n=SR(qP),o=xR(KM),i=P();IH({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.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])},cB=Pc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),dB=Pc(sm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),pB=Pc(Vh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),fB=()=>ur.jsxs(ur.Fragment,{children:[ur.jsx(cB,{className:QM.First,"data-testid":QM.First,"aria-live":"polite","aria-atomic":"true"}),ur.jsx(cB,{className:QM.Second,"data-testid":QM.Second,"aria-live":"polite","aria-atomic":"true"})]}),hB=e=>{const t=P(new Map),r=P(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])},mB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),gB=()=>hB(mB),bB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=xR(zR),n=xR(tA),o=SR(ET);D(()=>{const i=()=>{o({type:JM.Reset})},a=()=>{o({type:JM.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])},vB=e=>{e.stopPropagation()},yB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:vB,color:FC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),xB=({href:e,text:t,interactions:r,color:n})=>ur.jsx(bf,{...yB({href:e,text:t,interactions:r,color:n}),children:t}),SB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),wB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),CB="qDimensionInfo/0",EB="qMeasureInfo/0",RB="x",AB="y",MB=e=>({key:"bars",type:"box",data:{extract:{field:CB,props:{start:0,end:{field:EB}}}},settings:{major:{scale:RB},minor:{scale:AB},box:{maxWidthPx:8,fill:{fn:e}}}}),PB=e=>({key:"p",type:"point",data:{extract:{field:CB,props:{y:{field:EB}}}},settings:{x:{scale:RB},y:{scale:AB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),IB=({qNum:e})=>void 0===e?0:Math.sign(e),kB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=WC(e,t?.negative,r),a=WC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:CB,props:{start:0,end:{field:EB,value:IB}}}},settings:{major:{scale:RB},minor:{scale:AB},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}}}}},DB=(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=WC(e,t?.main,o),l=WC(e,t?.max,s),u=WC(e,t?.min,s),c=WC(e,t?.first,s),d=WC(e,t?.last,s);return e=>{const t=AB in e.datum?AB:"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[MB(a)];case"dots":return[PB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:CB,props:{v:{field:EB}}}},settings:{coordinates:{major:{scale:RB},minor:{scale:AB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(WC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,PB(a)]:[t]}case"posNeg":return[kB(e,n)];default:return[]}},TB=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"}),OB=(e,t,r,n)=>({y:{data:{field:EB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:CB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),LB=U();LB.use(V),LB.renderer.prio(["canvas"]);const qB={resolve:()=>{},promise:{}},NB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=P(e.isDownloadedAsPDForImage?Nt():qB);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 LB.chart({element:e,data:{type:"q",key:"qHyperCube",data:TB(s)},settings:{scales:OB(a,l,u,i),components:DB(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&&wB(r.current),r.current=null,l()},[r,l])}},jB=e=>{const t=P(null),r=P(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(wB(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])},_B=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=P(null),l=P(null),u=P(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=NB({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=jB(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},zB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=_B({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return ur.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},FB=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}`},$B=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},HB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=xR(KR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=ur.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:$B(s),objectPosition:FB(l),overflow:"hidden"}});return n?ur.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?yP(o,e):void 0},children:c}):c},BB=q((e,t)=>ur.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:ur.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),WB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),VB=q((e,t)=>ur.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:[ur.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"}),ur.jsx("use",{fillRule:"evenodd"})]})),UB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),GB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),YB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),KB=q((e,t)=>ur.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:ur.jsx("path",{d:"M2 7.5h12v1H2z"})})),XB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),JB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),ZB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),QB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),eW={m:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":ZB,R:NH,S:qH,T:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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:JB,Q:YB,"è":q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),"¢":UB,"©":VB,"23F4":GB,2013:QB,"&":XB,add:BB,"minus-2":KB,dot:WB},tW=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&eW[t];return o&&ur.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:ur.jsx(o,{style:{height:e}})})},rW=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=xR(kk),o=xR(KR),i=xR(dA),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=dP(e,t,o,i),d=(e=>parseInt(e||hP,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?ur.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&&tW({size:d,iconKey:f,color:p}),ur.jsx(yH,{isNumeric:!0,children:a}),"right"===h&&tW({size:d,iconKey:f,color:p})]}):tW({size:d,iconKey:f,color:p})},nW=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,oW=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=xR(kk),u=xR(ER),c=xR(IR),d=xR(dA),p=xR(KR),f=xR($R),h=xR(_R);if(t.representation.type===JA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===JA.Image)return ur.jsx(HB,{representation:t.representation,textStyle:r,maxImageHeight:nW(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==JA.Link||h||(m=ur.jsx(xB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==JA.Indicator||Number.isNaN(g)?t.representation.type===JA.MiniChart&&t.representation.miniChart&&!t.isNull?ur.jsx(zB,{height:nW(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):ur.jsx(yH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):ur.jsx(rW,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},iW=()=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:ur.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),aW=Pc("div")({"& path":{stroke:"none !important"}}),sW=({children:e,cellSelectionState:t})=>t===XM.Selected?ur.jsxs(bH,{children:[e,ur.jsx(aW,{children:ur.jsx(iW,{})})]}):e,lW=e=>{const t=function(){const e=E$(),t=d$(()=>null==e?void 0:e.dragOperation.source,[e]),r=d$(()=>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},uW=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:JM.SelectMultiEnd})};r({type:JM.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:JM.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:JM.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),cW=e=>{const t=xR(yk),r=xR(fk),n=xR(tB),o=xR(lA),i=xR(KR),a=SR(JH),s=SR(ET),l=xR(tA),u=xR(WR),c=xR(zR),d=d=>{lB({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===vE.Shift&&t({type:JM.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;aH([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}=uW(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},dW=e=>{D(()=>()=>{RT.remove(e)},[e])},pW=(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},fW=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},hW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return fW(t,e,n?"even":"odd")}return e},mW=(e,t)=>{const r=xR(kk),n=xR(RT(e));dW(e);let o=t.isDim?r.dimension.values:r.measure.values;o=hW(o,r,e),o=pW(o,r,e);const i=VP(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===XM.Selected?{...e,...r}:t===XM.Disabled?{...e,background:`${pP}, ${e.background}`}:e}(A(()=>e.isNull?o:VP(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}},gW=Pc(Zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),bW=Pc(ym,{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}}})),vW=Pc(nm,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...bP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),yW=Pc(nm,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...bP,...e,fontWeight:mP,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})),xW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=xR(KR),a=xR($R),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=cW(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=mW(e,t),m=lW(t.id);return ur.jsx(vW,{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} ${bE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:ur.jsx(sW,{cellSelectionState:h,children:ur.jsx(oW,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:CP(i,e.align)})})})},SW=lR(0),wW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=xR(kk),i=xR(BR),a=xR(SW),s=lW(e.id);return ur.jsx(yW,{totalsStyle:{...o.totalRow,...Y$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${bE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:ur.jsx(yH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},CW=()=>{const e=xR(fk),t=xR(hk),r=xR(gk),n=xR(lA),o=xR(HR),i=xR(KR),a=SR(JH),s=xR(_R),l=xR(tA);return ur.jsx(ym,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return ur.jsx(wW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case vE.C:oB(r);break;case vE.Space:r.preventDefault();break;default:iB(e)}else GC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{aH(c,n,a,l)}},t.id)})})};var EW=N(CW);const RW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=xR(gk),n=xR(fk),o=xR(hk),i=xR(kk),a=xR(IR),s=!!$P(a)?.content?.hoverEffect;bB({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 hB(t)})(t),u=gB();return ur.jsxs(gW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?ur.jsx(EW,{}):void 0,r.map((e,t)=>ur.jsx(bW,{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 ur.jsx(xW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?ur.jsx(EW,{}):void 0]})};var AW=N(RW);const MW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,PW=lR(e=>{const t=e(IR),r=e(rA);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)}}),IW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=xR(PW),s=xR(KR),l=xR(HR),u=xR(pA),[c,d]=wR(qk);if(!l)return null;return ur.jsx(Bk,{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=>{tH(e);const t=e.closest(".sn-table-cell");nH(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},kW=e=>e.target?.getAttribute("class")?.includes(yE),DW=({isInteractionEnabled:e,column:t})=>{const[r,n]=M(!1),o=xR(K$),i=xR(OP);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||kW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!kW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var TW=Object.defineProperty,OW=Object.defineProperties,LW=Object.getOwnPropertyDescriptors,qW=Object.getOwnPropertySymbols,NW=Object.prototype.hasOwnProperty,jW=Object.prototype.propertyIsEnumerable,_W=(e,t,r)=>t in e?TW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zW=(e,t)=>{for(var r in t||(t={}))NW.call(t,r)&&_W(e,r,t[r]);if(qW)for(var r of qW(t))jW.call(t,r)&&_W(e,r,t[r]);return e},FW=(e,t)=>OW(e,LW(t)),$W=class extends NN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return FW(zW({},e),{[t]:r})}};$W.configure=rq($W);var HW=$W;HW.configure({axis:"x",value:0}),HW.configure({axis:"y",value:0});var BW=class extends NN{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 FW(zW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};BW.configure=rq(BW);var WW=class extends NN{constructor(e,t){super(e,t),this.boundingRectangle=$T(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=XN(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=zW({},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 bL(l,u,s,a),r,n);return c}};WW.configure=rq(WW);var VW=WW,UW=Object.create,GW=Object.defineProperty,YW=Object.defineProperties,KW=Object.getOwnPropertyDescriptor,XW=Object.getOwnPropertyDescriptors,JW=Object.getOwnPropertySymbols,ZW=Object.prototype.hasOwnProperty,QW=Object.prototype.propertyIsEnumerable,eV=e=>{throw TypeError(e)},tV=(e,t,r)=>t in e?GW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rV=(e,t)=>{for(var r in t||(t={}))ZW.call(t,r)&&tV(e,r,t[r]);if(JW)for(var r of JW(t))QW.call(t,r)&&tV(e,r,t[r]);return e},nV=(e,t)=>YW(e,XW(t)),oV=["class","method","getter","setter","accessor","field","value","get","set"],iV=e=>void 0!==e&&"function"!=typeof e?eV("Function expected"):e,aV=(e,t,r,n,o)=>({kind:oV[e],name:t,metadata:n,addInitializer:e=>r._?eV("Already initialized"):o.push(iV(e||null))}),sV=(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},lV=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=oV[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,KW({get[r](){return cV(this,i)},set[r](e){return pV(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=aV(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?iV(s)&&(g[f]=s):"object"!=typeof s||null===s?eV("Object expected"):(iV(a=s.get)&&(g.get=a),iV(a=s.set)&&(g.set=a),iV(a=s.init)&&h.unshift(a));return g&&GW(o,r,g),o},uV=(e,t,r)=>t.has(e)||eV("Cannot "+r),cV=(e,t,r)=>(uV(e,t,"read from private field"),t.get(e)),dV=(e,t,r)=>t.has(e)?eV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),pV=(e,t,r,n)=>(uV(e,t,"write to private field"),t.set(e,r),r);function fV(e){return e instanceof BV||e instanceof HV}var hV=Object.defineProperty,mV=Object.defineProperties,gV=Object.getOwnPropertyDescriptors,bV=Object.getOwnPropertySymbols,vV=Object.prototype.hasOwnProperty,yV=Object.prototype.propertyIsEnumerable,xV=(e,t,r)=>t in e?hV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SV=(e,t)=>{for(var r in t||(t={}))vV.call(t,r)&&xV(e,r,t[r]);if(bV)for(var r of bV(t))yV.call(t,r)&&xV(e,r,t[r]);return e},wV=(e,t)=>mV(e,gV(t));function CV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function EV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function RV(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(EV(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&&EV(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 wV(SV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return wV(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&&EV(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 wV(SV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return wV(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 wV(SV({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return wV(SV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,CV)}var AV="__default__";function MV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function PV(e,t){return e.index-t.index}function IV(e){return Array.from(e).sort(PV)}var kV,DV,TV,OV,LV,qV,NV,jV,_V=[class extends oq{constructor(e){super(e);const t=JT(()=>{const{dragOperation:t}=e;if(E_(t.activatorEvent)&&fV(t.source)&&t.status.initialized){const t=e.registry.plugins.get(mF);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(!E_(e.nativeEvent))return;if(!fV(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=[];IT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&fV(e)||!e.element)continue;let r=e.shape;const n=new x_(e.element,{getBoundingClientRect:e=>ij(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,P_);IT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!fV(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;f_(c);const d=new x_(c);if(!d)return;const p=bL.delta(d,bL.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 oq{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof BV){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(IV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!fV(o)||!fV(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=IV(l),g=s?m:IV(u),b=null!=(c=o.sortable.group)?c:AV,v=null!=(d=i.sortable.group)?d:AV,y={[b]:m,[v]:g},x=RV(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),MV(f,S,h,w),IT(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;fV(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=IV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(MV(r,i.index,a,o.index),IT(()=>{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()}}}],zV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FV=new class{constructor(){_O(this,GO,new WeakMap)}get(e,t){var r;return e?null==(r=jO(this,GO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return jO(this,GO).has(e)||jO(this,GO).set(e,new Map),null==(n=jO(this,GO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=jO(this,GO).get(e))?void 0:t.clear():void 0}};DV=[BO],kV=[BO];var $V=class{constructor(e,t){dV(this,OV,sV(TV,8,this)),sV(TV,11,this),dV(this,LV),dV(this,qV),dV(this,NV,sV(TV,12,this)),sV(TV,15,this),dV(this,jV),this.register=()=>(IT(()=>{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=()=>{IT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{IT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zV,plugins:u=_V}=r,c=((e,t)=>{var r={};for(var n in e)ZW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&JW)for(var n of JW(e))t.indexOf(n)<0&&QW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new BV(c,t,this),this.draggable=new HV(nV(rV({},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)&&FV.clear(this.manager),(null==n?void 0:n.dragging)&&FV.set(this.manager,this.id,DT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=cV(this,qV),o=cV(this,LV);e===n&&t===o||(pV(this,qV,e),pV(this,LV,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),pV(this,jV,c.element),this.manager=t,this.index=i,pV(this,qV,i),this.group=o,pV(this,LV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){DT(()=>{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}=t_(n),l=m_(n,s,!1),u=m_(n,s);if(i||a){const r=fj(QN(n))?nV(rV({},t),{duration:0}):t;h_({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){IT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){IT(()=>{const t=cV(this,jV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),pV(this,jV,e)})}get element(){var e,t;const r=cV(this,jV);if(r)return null!=(t=null!=(e=bj.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){IT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){IT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){IT(()=>{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:M_}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){IT(()=>{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)}};TV=[,,,UW(null)],OV=new WeakMap,LV=new WeakMap,qV=new WeakMap,NV=new WeakMap,jV=new WeakMap,lV(TV,4,"index",DV,$V,OV),lV(TV,4,"group",kV,$V,NV),((e,t)=>{return tV(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TV,$V);var HV=class extends a${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}},BV=class extends s${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},WV=Object.defineProperty,VV=Object.defineProperties,UV=Object.getOwnPropertyDescriptors,GV=Object.getOwnPropertySymbols,YV=Object.prototype.hasOwnProperty,KV=Object.prototype.propertyIsEnumerable,XV=(e,t,r)=>t in e?WV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JV=(e,t)=>{for(var r in t||(t={}))YV.call(t,r)&&XV(e,r,t[r]);if(GV)for(var r of GV(t))KV.call(t,r)&&XV(e,r,t[r]);return e};function ZV(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=JV(JV({},zV),e.transition),b=function(e){var t;const r=null!=(t=E$())?t:void 0,[n]=M(()=>e(r));return n.manager!==r&&(n.manager=r),u$(n.register,[r,n]),n}(t=>new $V(((e,t)=>VV(e,UV(t)))(JV({},e),{transition:g,register:!1,handle:l$(s),element:l$(a),target:l$(h),feedback:d}),t)),v=p$(b,QV);return m$(o,()=>b.id=o),u$(()=>{IT(()=>{b.group=u,b.index=l})},[b,u,l]),m$(m,()=>b.type=m),m$(t,()=>b.accept=t,void 0,HO),m$(i,()=>i&&(b.data=i)),m$(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},f$),g$(s,e=>b.handle=e),g$(a,e=>b.element=e),g$(h,e=>b.target=e),m$(c,()=>b.disabled=!0===c),m$(f,()=>b.sensors=f),m$(r,()=>b.collisionDetector=r),m$(n,()=>b.collisionPriority=n),m$(d,()=>b.feedback=null!=d?d:"default"),m$(g,()=>b.transition=g,void 0,HO),m$(p,()=>b.modifiers=p,void 0,HO),m$(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function QV(e,t,r){return!("isDragSource"!==e||r||!t)}const eU=({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/gL.distance(r.shape.center,s),type:Mq.Collision,priority:Aq.Normal}:null},tU=[VW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rU=(e,t)=>{const r=xR(KR),n=xR(MR),o=!xR(UR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:tU,data:e,feedback:"clone",collisionDetector:eU({invert:"rtl"===r})})},nU=({column:e,columnIndex:t,columnsLength:r})=>{const n=xR(kk),o=xR(lA),i=xR(KR),a=xR($R),s=xR(hk),l=xR(fk),u=xR(qk)[t],c=SR(JH),d=xR(ZH(t)),p=xR(UR),f=xR(tA),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=DW({isInteractionEnabled:p,column:e}),v=SR(OP),{ref:y,isDragging:x}=rU(e,t),S=lW(e.id),w=xR(NR),C=w?xH:HH,E=e.isActivelySorted?ZM[e.sortDirection]:void 0,R=h?gE:void 0,A=h?"true":void 0,M=t===r-1,P=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return ur.jsxs(uH,{"data-dragging":x,ref:y,headerStyle:{...n.header,...Y$(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 ${bE}`,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 vE.C:oB(r);break;case vE.Enter:case vE.Space:n?.(r);break;default:iB(e)}else GC(r)})({evt:e,rootElement:o,cellCoord:P,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&&aH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[ur.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),ur.jsx(IW,{column:e,isLastColumn:M,setIsAdjustingWidth:v})]},e.id)},oU=()=>{const e=xR(hk),t=xR(kk),r=xR(IR),n=xR(JR),o=SR(SW),i=xR(qk),a=P(null),s=MW(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),ur.jsx(fm,{style:{visibility:s?"collapse":void 0},children:ur.jsx(fH,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>ur.jsx(nU,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var iU=N(oU);const aU=()=>{const e=xR(tB),[t,r]=wR(ok),{page:n,rowsPerPage:o}=t,i=xR(XR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=xR(pk),p=xR(kk),f=xR($I),h=xR(IR),m=xR(dA),g=xR(sA),b=xR(lA),v=xR(JR),y=xR(KR),x=xR($R),S=xR(pA),w=xR(AT),C=SR(ET),E=xR(_R),R=xR(tA),A=P(!1),M=P(null),I=P(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=GR(h,v),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return nB(M),((e,t)=>{const r=xR(tA);D(()=>{const n=e.current;if(!n)return;const o=e=>{sH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(I,A),(()=>{const e=xR(lA),t=xR(tA),r=xR(JH);uE(()=>{const n=Q$(e,r);t.active?nH(n):(n?.blur(),rH(e))},[t.active,e])})(),rB(A,n),D(()=>{const e=M.current;e&&(e.scrollLeft=L,e.scrollTop=q)},[t,s,L,q]),XH(()=>{C({type:JM.UpdatePageRows,payload:{pageRows:c}})},[c]),QH(),uB(M),ur.jsxs(KH,{children:[ur.jsxs(mH,{ref:I,dir:y,onKeyDown:e=>{sB({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[ur.jsx(fB,{}),ur.jsxs(dB,{ref:M,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[ur.jsxs(pB,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[ur.jsx(iU,{}),ur.jsx(AW,{updateShouldRefocus:N,tableWrapperRef:I})]}),ur.jsx(G$,{})]}),ur.jsx(dT,{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:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),ur.jsx(UH,{isPagination:!0})]})};var sU=N(aU);const lU=lR(0),uU=lR(e=>{const t=e(kR);return Math.min(lk,t)}),cU=lR(e=>{const t=e(kR);return t===lk?0:Math.floor(t/lk)}),dU=lR(e=>{const t=e(lU),r=e(cU);return Math.min(t,r)}),pU=lR(e=>({page:e(dU),rowsPerPage:e(uU),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(cU);t(lU,Math.max(0,Math.min(r,n)))});var fU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hU(e,t){return e===t||!(!fU(e)||!fU(t))}function mU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!hU(e[r],t[r]))return!1;return!0}function gU(e,t){var r;void 0===t&&(t=mU);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 bU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vU(e){cancelAnimationFrame(e.id)}function yU(e,t){var r=bU();var n={id:requestAnimationFrame(function o(){bU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var xU=-1;function SU(e){if(void 0===e&&(e=!1),-1===xU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),xU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xU}var wU=null;function CU(e){if(void 0===e&&(e=!1),null===wU||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?wU="positive-descending":(t.scrollLeft=1,wU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),wU}return wU}var EU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function RU(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,Yc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Yc(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=gU(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=gU(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=gU(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(CU()){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&&vU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=yU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return AU(e,t),g(e),null};var b=t.prototype;return b.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)},b.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,b=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 v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b: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})},b.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()},b.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(CU()){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()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vU(this._resetIsScrollingTimeoutId)},b.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?EU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],M=R[1],P=[];if(n>0&&g)for(var I=A;I<=M;I++)for(var k=C;k<=E;k++)P.push(w(t,{columnIndex:k,data:d,isScrolling:v?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:Gr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(u||c||"div",{children:P,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._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]},b._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 AU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},MU=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},PU=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},IU=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]},kU=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?DU(e,t,r,i,0,n):TU(e,t,r,Math.max(0,i),n)},DU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IU(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},TU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IU(e,t,n,r).offset<o;)n+=a,a*=2;return DU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},OU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IU(e,t,r,i),u="column"===e?PU(t,i):MU(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}},LU=RU({getColumnOffset:function(e,t,r){return IU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return kU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:MU,getEstimatedTotalWidth:PU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return OU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return OU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return kU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IU("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}}),qU=function(e,t){return e};function NU(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,Yc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Yc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=gU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=gU(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=gU(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(CU()){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&&vU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=yU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return jU(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(CU()){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&&vU(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?qU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=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 M=E;M<=R;M++)A.push(w(t,{data:c,key:p(M,c),index:M,isScrolling:b?y:void 0,style:this._getItemStyle(M)}));var P=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Gr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"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 jU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},_U=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]},zU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=_U(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},FU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&_U(e,r,t).offset<n;)r+=i,i*=2;return zU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},$U=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},HU=NU({getItemOffset:function(e,t,r){return _U(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:$U,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=_U(e,t,o),p=$U(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?zU(e,t,o,0,r):FU(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=_U(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=_U(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 BU(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 WU=["style"],VU=["style"];function UU(e,t){var r=e.style,n=Yr(e,WU),o=t.style,i=Yr(t,VU);return!BU(r,o)&&!BU(n,i)}const GU=lR(0),YU=lR(0),KU=lR(0),XU=lR(e=>e(GU)+e(YU)),JU=lR(e=>{const t=e(sA),r=e(yk),n=t.height-(r?41:0);return{width:t.width,height:n}}),ZU=lR(e=>{const t=e(JU),r=e(LP),n=e(qP);return{width:t.width-n,height:t.height-r}}),QU=lR(e=>{const t=e(ZU),r=e(XU),n=e(KU);return Math.min(t.height-r,n)}),eG=lR(e=>{const t=e(pU),r=e(kR);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),tG=lR(-1),rG=BM(e=>lR(t=>t(tG)===e)),nG=({style:e})=>ur.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var oG=S.memo(nG,UU);const iG=()=>{},aG=e=>{e.preventDefault()};const sG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=xR(rG(t)),d=SR(tG),p=xR(kk),f=xR(KR),h=xR(BR),m=xR(AT),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=xR(WR),n=SR(ET),o=xR(RT(e));if(dW(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=uW(aG,e,n,iG);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=P(null),i=r&&!r.isNumeric,a=O(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t)},[t,n,e,i]);return IH({ref:o,callback:a}),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=lW(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=hW(o,i,e);a=pW(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?VP(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===XM.Selected?{...s,...i.selectedColors}:n===XM.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${pP}, ${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 ur.jsx("div",{className:`sn-table-cell ${x} ${bE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:EP(f,g.isLastColumn,m),borderLeftWidth:RP(f,g.isLastColumn,m),justifyContent:xP(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:ur.jsx(sW,{cellSelectionState:x,children:ur.jsx(oW,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return ur.jsx(oG,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var lG=N(sG,UU);const uG=FI(lR(async e=>{const t=e(IR),r=e(rA),n=e(pU).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(lk,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),cG=e=>{const t=P(e);return t.current=e,t},dG=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,pG=(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},fG=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},hG=(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:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=QI(h,e,a),C=!h&&e.qIsNull,E=C?nP(w):rP(e);f[r]={id:WA(),...e,align:XI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&ek(e,h),representation:NI({cell:e,representationProperties:y,attrExprInfoIndex:v,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})})},mG=({visibleRowCount:e,visibleColumnCount:t,gridState:r,setEstimatedCellHeight:n})=>{const o=xR(IR),i=xR(dA),a=xR(rA),s=xR(AR),l=xR(KR),u=xR(pU),c=xR(uG),d=xR(hk),p=xR(eG),f=P([]),h=O((e,t)=>{const r=Array.isArray(t)?t.slice(0,p):(e=>Array(e).fill(void 0))(p);return hG(e,u,r,d,o,s,n,l),f.current=r,r},[p,u,d,o,s,n,l]),[m,g]=M(()=>h(c??[]));uE(()=>{g(h(c??[]))},[c,l]);const b=((e,t)=>{const r=P(new Set),n=P(new Set),o=P(new Set),i=cG(e),a=cG(t),s=A(()=>({enqueue:e=>{const t=dG(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(dG(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=>a&&"getHyperCubeData"in a?a.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(fG(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[f,b]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-u.page*u.rowsPerPage);if(pG(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[f,b,u]);return D(()=>{const{qcx:n,qcy:i}=o.qHyperCube.qSize,a=r.current.overscanRowStartIndex,s=r.current.overscanColumnStartIndex,l=a+u.page*u.rowsPerPage,c=n-s,d=u.rowsPerPage-a,p=Math.min(100,c,n,t+5),f=Math.min(100,d,i,e+25);return y(s,l,p,f),()=>{b.clear()}},[o,e,t,u,b,y,r,i]),{rowsInPage:m,loadRows:y,loadColumns:v}},gG=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},bG=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,vG=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=xR(kk),i=xR(qk),{estimateLineCount:a}=oE(o.dimension.values),s=Pk(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])},yG=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=xR($I);j(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},xG=({isSnapshot:e,gridRef:t})=>{const r=xR(kk),n=xR(eG),[o,i]=M({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0}),a=r.contentLineHeight,s=r.contentMinRowHeight,l=!!r.contentStaticLineCount,u=Math.max(8e6/n,s)-9,c=u+9,d=Math.max(1,Math.min(r.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=xR(IR),n=xR(pU),o=xR(qk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;uE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),uE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,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(!bG(u.get(a),l))return e;const c={...e},d=e.rowHeights.get(i);u.set(a,l);const p=void 0===d||l>=d?l:gG(u);return c.rowHeights.set(i,p),c.sumHeight=e.sumHeight-(d??0)+p,n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:t}),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:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=vG({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return yG({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},SG=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);IH({ref:e,callback:r})};let wG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const CG=({loadRows:e,loadColumns:t,gridState:r})=>{const n=xR($I),o=xR(IR),i=xR(pU),a=xR(eG);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=wG.None,i=wG.None;return o=n>t?wG.Down:n<t?wG.Up:wG.None,i=r>e?wG.Right:r<e?wG.Left:wG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,u);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=u,r.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===wG.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===wG.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===wG.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===wG.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])},EG=()=>{},RG={current:null};const AG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},MG={overflow:"hidden",willChange:"auto"},PG=q((e,t)=>{const r=xR(hk),n=xR(ZU),o=SR(KU),i=xR(QU),a=xR(kk),s=xR($I),l=xR(IR),u=xR(KR),c=xR(qk),d=xR(eG),p=P(null),f=P(null),h=P({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),m=P(0),g=!!$P(l)?.content?.hoverEffect,{visibleRowCount:b,visibleColumnCount:v}=(e=>{const t=xR(qk),r=xR(ZU),n=xR(eG),o=Math.min(n,Math.ceil(r.height/e)),i=A(()=>t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}),[r,t]).count;return{visibleRowCount:o,visibleColumnCount:i}})(a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=xG({isSnapshot:!!l.snapshotData,gridRef:p}),{rowsInPage:C,loadRows:E,loadColumns:R}=mG({visibleRowCount:b,visibleColumnCount:v,gridState:h,setEstimatedCellHeight:x}),M=CG({loadRows:E,loadColumns:R,gridState:h}),I=gB(),k=A(()=>({rowsInPage:C,columns:r,isHoverEnabled:g,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I}),[C,r,g,w,y,I]);return j(()=>{1===m.current&&p.current?.scrollToItem({rowIndex:d-1,align:"start"})}),function(e){const t=SR(ET);D(()=>{t({type:JM.UpdatePageRows,payload:{pageRows:e}})},[t,e]),bB({updateShouldRefocus:EG,tableWrapperRef:RG})}(C),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(f.current?.clientHeight??i)-i,n=Math.round(r*e);m.current=e,1===m.current?(p.current?.scrollToItem({rowIndex:d-1,align:"start"}),p.current?.scrollTo({scrollLeft:t})):p.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[f,i,d]),SG(f,o),ur.jsx(LU,{"data-key":"body",ref:p,innerRef:f,style:MG,columnCount:r.length,columnWidth:e=>c[e],height:i,rowCount:d,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:n.width,itemData:k,onItemsRendered:M,itemKey:AG,className:"sn-table-body",direction:u,children:lG})});var IG=N(PG);const kG=({children:e})=>{const{width:t,height:r}=(()=>{const e=xR(ZU),t=xR(kk),r=xR(qk),n=xR(XU),o=xR(KU)+n;let i=xR(eG)*t.contentMinRowHeight+n;return o<2*e.height&&(i=o),{width:r.reduce((e,t)=>e+t,0),height:i}})();return ur.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},DG=(e,t)=>{const r=P(null),n=xR(qk);j(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return IH({ref:r,callback:o}),r},TG=Pc("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}})),OG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=xR(kk),s=xR(KR),l=xR($R),u=xR(AT),c=SR(OP),d=xR(fk),p=xR(UR),f=xR(qk)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:b,toggleSortOrder:v}=DW({isInteractionEnabled:p,column:h}),y=xR(NR),x=DG(e,i),S=n.length-1===e,w=y?xH:HH,{ref:C,isDragging:E}=rU(h,e),R=lW(h.id);return ur.jsxs(TG,{"data-dragging":E,ref:C,className:`sn-table-cell ${bE}`,title:l.passive?h.label:void 0,onClick:y?b:v,applicableStyle:{...a.header,...Y$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:EP(s,S,u),borderLeftWidth:RP(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:[ur.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),ur.jsx(IW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},LG=e=>{const[t,r]=M(new Map);uE(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>bG(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>gG(t),[t]),setMeasuredCellHeight:n}},qG=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},NG=e=>{const t=xR(dA),r=xR(IR),n=xR(pU),o=xR(qk);uE(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},jG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},_G=q((e,t)=>{const{columResizeHandler:r}=e,n=xR(hk),o=xR(ZU),i=SR(GU),a=S.useRef(null),s=P(null),l=xR(kk),u=xR(IR),c=xR(JR),d=xR(KR),p=xR(qk),{rowHeight:f,setMeasuredCellHeight:h}=LG(n),m=MW(c,u);return qG(t,a),NG(a),SG(s,i),ur.jsx(HU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...jG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h},direction:d,children:OG})});var zG=N(_G);const FG=q((e,t)=>{const{children:r,onScroll:n}=e,o=xR(KR),i=xR(VR),{width:a,height:s}=xR(JU);return ur.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),$G=({children:e})=>{const t=xR(KR),r=xR(ZU);return ur.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},HG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=xR(kk),s=xR(IR),l=xR(KR),u=xR(BR),c=xR(AT),d=DG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=lW(n[e].id);return ur.jsx("div",{className:`sn-table-cell ${bE}`,title:u?p:void 0,style:{...t,...a.totalRow,...Y$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:EP(l,m,c),borderLeftWidth:RP(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:ur.jsx(yH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},BG=q((e,t)=>{const{totals:r}=e,n=xR(hk),o=xR(ZU),i=SR(YU),a=P(null),s=P(null),l=xR(kk),u=xR(KR),c=xR(IR),d=xR(qk),{rowHeight:p,setMeasuredCellHeight:f}=LG(n);return qG(t,a),NG(a),SG(s,i),ur.jsx(HU,{ref:a,outerRef:s,layout:"horizontal",style:jG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f},direction:u,children:HG})});var WG=N(BG);const VG=(e,t,r)=>{const n=xR(KR),o=xR($I);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])};var UG=N(()=>{const e=xR(fk),t=P(null),r=P(null),n=P(null),o=P(null),i=VG(r,n,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);QH(),(e=>{const t=xR(mk),r=xR(pU),n=xR(dA),o=xR(eG);D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),uB(t);const s=ur.jsx(WG,{ref:n,totals:e},"totals");return ur.jsxs(KH,{children:[ur.jsx(FG,{ref:t,onScroll:i,children:ur.jsxs(kG,{children:[ur.jsxs($G,{children:[ur.jsx(zG,{ref:r,columResizeHandler:a}),e.atTop?s:null,ur.jsx(IG,{ref:o}),e.atBottom?s:null]}),ur.jsx(G$,{})]})}),ur.jsx(UH,{isPagination:!1})]})});var GG=N(()=>{const e=xR(IR),t=xR(sA),r=xR($R),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=xR(pk),s=xR(dA),l=xR(pA),u=xR(tA),[c,d]=wR(pU);return ur.jsxs(mH,{"data-testid":"sn-table",children:[ur.jsx(UG,{}),ur.jsx(dT,{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 YG=e=>{const t=e.get(rA),r=e.get(QR),n=e.get(PR),i=e.get(KR);o(()=>{n&&t&&(r?function(e){const t=e.get(KR),r=e.get(cA),n=zk(t);r.render(ur.jsx(Li,{stylisPlugins:"rtl"===t?[HM]:void 0,children:ur.jsx(kc,{theme:n,children:ur.jsx(hR,{store:e,children:ur.jsx(_k,{children:ur.jsx(sU,{})})})})}))}(e):function(e){const t=e.get(KR),r=e.get(cA),n=zk(t);r.render(ur.jsx(S.StrictMode,{children:ur.jsx(kc,{theme:n,children:ur.jsx(hR,{store:e,children:ur.jsx(_k,{children:ur.jsx(GG,{})})})})}))}(e))},[n,r,e,t,i])};function KG(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 XG=(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]}},JG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ZG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||tk.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},QG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=UI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=KG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ZG(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=XG(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,b=(JG(h,m,g)?d:d+1)+c;let v=p+c;const y=XG(p,o),x=y?.getBoundingClientRect();return y&&x&&(JG(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:ZG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},eY={version:JSON.stringify("6.23.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 tY=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),rY=e=>e.getStyle("object","straightTableV2","backgroundColor");function nY(r){return{qae:{properties:{initial:eY},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>DA({...e}),exportProperties:RA,exploration:TA},ext:_M(r),component(){const n=c(),i=e(()=>dR(),[!1!==n.usePagination]);i.set(AR,r);const s=d();i.set(lA,s),i.set(IR,n),i.set(CR,p()),i.set(rA,f()),i.set($R,h()),i.set(pA,m()),i.set(zR,g()),i.set(YR,t()),i.set(tA,b()),i.set(sA,v()),i.set(RR,y());const x=QC(n,s,tY,rY);i.set(dA,x),i.set(PR,lE(x,n,r)),i.set(ER,zt()),(e=>{const t=e.get(cA);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${bE}`);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(IR),r=e.get(rA),n=e.get(lA),o=e.get(aA),i=e.get(JR),a=e.get(QR);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get($I),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=QG(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:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),u(()=>({getViewState:()=>QG(t,e.get($I),n,i,a)}),[t,e,n,a])})({store:i}),YG(i)}}}export{nY 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+")*?",b="(?![a-zA-Z])",v="(?!("+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+v+"[^;}]+;?)","gi"),M=new RegExp("("+u+"[^\\}]*?})","gi"),P=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"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"),j=new RegExp(l+"(rtl)"+x,"gi"),_=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(M,"`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(j,"$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(P,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$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)}(zM,zM.exports);var FM=Zt(zM.exports);function $M(e,t,r){switch(e.type){case tn:case en:case Zr:return e.return=e.return||e.value;case Qr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===Zr&&(e.children=e.value)})}var n=Un(Array.prototype.concat(e.children),$M);return fn(n)?e.return=e.value+"{"+n+"}":""}function HM(e,t,r,n){if(e.type===rn||"@supports"===e.type||e.type===Qr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Qr)){var o=FM.transform($M(e));e.children=o?Fn(o)[0].children:[],e.return=""}}function BM(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(HM,"name",{value:"stylisRTLPlugin"});const WM=BM(({options:e,...t})=>lR(nE(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 VM(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function UM(e){const t=lR(()=>[]),r=lR(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(!kE(t)){if(!PE(o))throw new Error("no atom init");S(e,o,o.init)}return DE(t)}const i=b(e,o);try{return DE(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(!PE(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),v(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(VM())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=iR(e),d=c[1],p=c[3],f=NE(c[6]),h=c[11],m=c[12],g=c[13],b=c[14],v=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=GM.get(e);r||(r=new Set,GM.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)})},VM()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const GM=new WeakMap;class YM{#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 KM=lR(()=>new YM);let XM=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),JM=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}({}),ZM=function(e){return e.A="ascending",e.D="descending",e}({}),QM=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const eP=[0,0],tP=e=>"number"==typeof e&&!Number.isNaN(+e),rP=e=>tP(e.qNum),nP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),oP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),iP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},aP=(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 ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},sP=(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:oP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:iP(n,t,r)}))),n},lP=(e,t,r,n)=>{const o=sP(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=aP(e,a,t);break}n=i}return r})(o,t);return a},uP=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!tP(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||!tP(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)},cP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=uP(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||!tP(t))return 0;let a=r&&tP(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}},dP=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=cP(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 iP(o,r.limitPaletteColorIndex,n);const a=oP(r.limitRange,t);return lP(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}},pP=(_C().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)"),fP=4/3,hP="12px",mP="600",gP="Source Sans Pro, sans-serif",bP={height:"auto",fontSize:hP,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"}},vP={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:mP},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},yP=(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,xP=(e,t)=>e.representation.type===JA.Image&&"fitHeight"===e.representation.imageSize?yP(t,e.representation):e.align,SP=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",wP=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},CP=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,EP=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",RP=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",AP=24,MP=Pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),PP=Pc(vp,{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?SP(e,n):void 0})),IP=Pc(vp,{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},[`& .${hE}`]:{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"},[`& .${hE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),kP=Pc(vp,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),DP=Pc(vp,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),TP=Pc(Pd,{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})),OP=lR(),LP=lR(0),qP=lR(0),NP=4/3,jP=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function _P(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const zP=(e,t)=>e?{borderBottomColor:FC.DARK_MODE_BORDER,borderRightColor:FC.DARK_MODE_BORDER,borderLeftColor:FC.DARK_MODE_BORDER,borderTopColor:FC.DARK_MODE_BORDER}:{borderLeftColor:FC.BORDER_MEDIUM,borderRightColor:FC.BORDER_MEDIUM,borderTopColor:FC.BORDER_HEAVY,borderBottomColor:t?FC.BORDER_HEAVY:FC.BORDER_LIGHT},FP=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*NP+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$P=e=>e.components?.find(e=>"theme"===e.key),HP=(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:jP(r?.fontColor)?_P(FC.TEXT,t,r?.fontColor):i||FC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...zP(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function BP(e,t,r){const n=$P(e)?.header,o=HP("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=BC(o.background??FC.WHITE,wE),o.activeBackground=BC(o.background??FC.WHITE,CE),o}const WP=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in vP)(e)&&Object.assign(t,vP[e])),t};function VP(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&&VC(i);a&&(n[r[t]]=a),o=i?WP(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=$C(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var UP={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:YP(e),value:YP(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},GP=UP;function YP(e){try{return decodeURIComponent(e)}catch{return e}}function KP(e){if(!(this instanceof KP))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:()=>GP.fromSearchString(t.search)}})}function XP(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")}KP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},KP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XP(t.key),t.value?r+=`=${XP(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JP=KP;var ZP,QP=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}},eI=class{decode(e){let t="";const r=new QP(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},tI=e=>e>=0&&e<=1114111,rI=e=>e.match(/[\s]/),nI=class extends eI{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&&!rI(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return tI(a)?String.fromCharCode(a):"�"}},oI=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}},iI=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 oI.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return oI.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||oI.newInstanceIfNeeded(e,t,this._value)}},aI=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 iI);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},sI=(()=>{const e=[],t=[],r=new aI;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})(),lI=class extends eI{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,sI.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=sI.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)&&tI(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)&&tI(n)?String.fromCharCode(n):null}},uI=class extends eI{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),tI(i))?String.fromCharCode(i):(e.reset(),null)}},cI=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,dI=5e6,pI=5e5,fI=(e,t)=>{const{maxByteSizeSvg:r=pI,maxByteSizeImage:n=dI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=cI.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&&(ZP=document.createElement("div"));var hI=Array.prototype.indexOf,mI=[",",".","_"," "],gI=[",",".","-","_"," "],bI={width:["%"],height:["%"]},vI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},yI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":vI.image,"background-color":vI.color,"border-color":vI.color,"border-image":vI.image,color:vI.color,icon:vI.image,"list-style-image":vI.image,"outline-color":vI.color},xI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function SI(e,t,r){let n;if(t){if(hI)return hI.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 wI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return ZP.appendChild(r),t=ZP.innerHTML,ZP.removeChild(r),t}function CI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=RI(e).toLowerCase(),t=RI(t),i=0;i<xI.attr_name.length;i++)if(e.match(xI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<xI.attr_val.length;i++)if(t.toLowerCase().match(xI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=bI[e],n||(n=gI),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]/)&&SI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function EI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=RI(e).toLowerCase(),t=RI(t),SI(e,xI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<xI.css_val.length;n++)if(t.toLowerCase().indexOf(xI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=yI[e],o||(o=vI.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]/)&&SI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function RI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new lI,new uI,new nI];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 AI=[];for(let e=0;e<255;e++)AI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var MI={html:e=>wI(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]=EI(t,r[t],!0),i+=EI(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]=CI(e,t[e],!0),o+=CI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function PI(e,t){throw new Error(t)}var II={canonicalize:RI,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&&PI(this,"Invalid parameter type"),MI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&PI(this,"Invalid parameter type"),MI.attr(e)):void PI(this,"Invalid parameter type")},encodeForAttr:CI,encodeForAttr2:function(e){return CI("nonsens",e,!0)},encodeForCSS:EI,encodeForHref:function(e){RI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new JP(e),r=JP.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+JP.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=mI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),SI(o,t)>=0||null==AI[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:wI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=RI(t).toLowerCase():PI(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:fI,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 kI=(e,t)=>t.qAttrExps?.qValues?.[e],DI=(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"}}},TI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!II.isSafeDataURL(t))?{type:JA.Text,url:void 0,text:e,labelStructure:o}:{type:JA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:DI(n,a),labelStructure:o,imageBox:i},OI=(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}},LI=(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},qI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:JA.Link,url:II.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:JA.Text,url:void 0,text:t,labelStructure:e}}},NI=({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=QA(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=kI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),TI({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 TI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kI(r.imageLabel??-1,e)?.qText??n;return TI({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=LI(r.url??-1,e,t);return qI({labelStructure:n,text:o||i||"",url:i})}if(i===ZA.Dimension){const i=LI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),qI({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")?OI(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 jI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),_I=new WeakMap,zI=()=>{};function FI(e,t=zI){return((e,t,r)=>{const n=jI(()=>new WeakMap,_I,t);return jI(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=lR(0),i=lR([]);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=lR(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),lR(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const $I=lR(e=>{const t=e(JR),r=e(LR);return e(qR),{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}}),HI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),BI=({cId:e})=>e??WA(),WI=1e4;function VI(e,t){return[...t].reverse().find(t=>t*e<=WI)||Math.floor(WI/e)}function UI(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 GI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function YI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return tP(r?.qNum)}function KI(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 XI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",JI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?BC(s,wE):void 0,u=s?BC(s,CE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:$C(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const ZI=(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===EE.Cyclic,g=l===s[0];let b,v,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:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:M,qAttrExprInfo:P,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:SE.Auto},selectionColIdx:S,isActivelySorted:g,id:BI(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:P.map(e=>e.id),qAttrExprInfoIndex:HI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:GI(e,f,u,d??-1),...!f&&{isTotalNumeric:YI(e,d??-1)},...KI(M,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?JI(L,r):void 0}}(e,o,t,r,n))},QI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",ek=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,tk={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},rk=lR(e=>{const t=e(nk),r=e(IR),n=e($I),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>WI?{...t,rowsPerPage:VI(l,t.rowsPerPageOptions),page:0}:t}),nk=lR(tk),ok=lR(e=>{const t=e(IR),r=e(JR),n=e($I);return GR(t,r)?{page:n.page||tk.page,rowsPerPage:n.rowsPerPage||tk.rowsPerPage,rowsPerPageOptions:tk.rowsPerPageOptions}:e(rk)},(e,t,r)=>{t(nk,e=>({...e,...r}))}),ik=!0,ak=lR(async e=>{const t=e(IR),r=e(JR),n=e(KR),{page:o,rowsPerPage:i}=e(ok),a=e($I),s=e(rA),l=e(AR),u=e(DR),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,b=UI(t,r),v=ZI(t,ik,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 v.forEach((i,a)=>{const s=e[a],u=QI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?nP(u):rP(s);o[a]={id:WA(),...s,align:XI(d,i.bodyTextAlign,n,ik),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)&&ek(s,i.isDim),representation:NI({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:b,columns:v,rows:x}}),sk=FI(ak,e=>e),lk=25e4,uk=lR(e=>{const t=e(IR),r=e(JR),n=e($R),o=e(KR),i=e(MR),a=ZI(t,false,o,i),s=UI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(lk,l),c=l>lk&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),ck={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},dk=lR(),pk=lR(e=>{const t=e(QR),r=e(dk);return r||(t?e(sk)??ck:e(uk))}),fk=lR(e=>e(pk).totalsPosition),hk=lR(e=>e(pk).columns),mk=lR(e=>e(hk).length),gk=lR(e=>e(pk).rows),bk=lR(e=>e(pk).totalRowCount),vk=lR(e=>e(pk).totalColumnCount),yk=lR(e=>e(pk).paginationNeeded),xk=lR(e=>{const t=e(lA),r=e(dA),n=e(IR),o=e(fk),i=e(gk),a=o.atTop,s=function(e,t,r,n){const o=$P(e)?.content,i=HP("content",t,o);i.background=t.background.color;const a=FP(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=jP(l)||!!c,p=jP(s)||!!u,f=d||p;let h;h=jP(s)?_P(FC.HOVER,t,s):u||(d?"":FC.HOVER);const m=f?_P($C(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=BP(n,r,!a),u=function(e,t,r){const n=$P(e)?.content,o=HP("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BP(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),Sk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},wk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Sk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Ck=(e,t,r,n=FC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=wk(e,t,r);return XC(i,o,a,n)??n},Ek=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return hP}},Rk=e=>e?.some(e=>"italic"===e)?"italic":"normal",Ak=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?mP:"normal",Mk=e=>!1===e?1:3,Pk=e=>parseInt(e??bP.fontSize,10)*fP,Ik=e=>e?.some(e=>"underline"===e)?"underline":"none",kk=lR(e=>{const t=e(JR),r=e(QR),n=e(dA),o=e(IR),i=e(xk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=$P(o)??{},f=r?FC.WHITE:FC.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??gP,fontSize:Ek(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:Rk(a?.fontStyle),fontWeight:Ak(a?.fontStyle,mP),textDecoration:Ik(a?.fontStyle),color:Sk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??FC.TEXT,background:h},headerMenuHoverBackground:BC(h,wE),headerMenuActiveBackground:BC(h,CE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??gP,fontSize:Ek(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:Rk(s?.fontStyle),fontWeight:Ak(s?.fontStyle,"normal"),textDecoration:Ik(s?.fontStyle),color:Sk(n,s?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??FC.TEXT,background:wk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??FC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??gP,fontSize:Ek(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:Rk(l?.fontStyle),fontWeight:Ak(l?.fontStyle,"normal"),textDecoration:Ik(l?.fontStyle),color:Sk(n,l?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??FC.TEXT,background:wk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??FC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??gP,fontSize:Ek(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:Rk(u?.fontStyle),fontWeight:Ak(u?.fontStyle,mP),textDecoration:Ik(u?.fontStyle),color:Sk(n,u?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??FC.TEXT,background:Ck(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:Rk(c?.fontStyle),fontWeight:Ak(c?.fontStyle,"normal"),textDecoration:Ik(c?.fontStyle),color:Sk(n,c?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??FC.TEXT,background:Sk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??FC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??Mk(o.multiline?.wrapTextInCells),headerLineClamp:Mk(o.multiline?.wrapTextInHeaders),border:Sk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?FC.DARK_MODE_BORDER:FC.BORDER_MEDIUM),divider:Sk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??FC.BORDER_HEAVY,hoverColors:{color:Sk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:Sk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:Sk(n,d?.zebraStripes?.color?.odd),background:Sk(n,d?.zebraStripes?.background?.odd)},even:{color:Sk(n,d?.zebraStripes?.color?.even),background:Sk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===Sk(n,c?.background),overrideNullValueColor:void 0===Sk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:HC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:b,totalRowLineHeight:v,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(Pk(e.header.fontSize)+8,32),r=Pk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(Pk(e.dimension.values.fontSize),Pk(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=b,g.totalRowLineHeight=v,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),Dk=(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(xE.PixelsMax,Math.max(xE.PixelsMin,f)),i-=n[a]};switch(s){case SE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?xE.PixelsDefault:+e)(l),h();break;case SE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?xE.PercentageDefault:+e)(u)/100*t,h();break;case SE.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 SE.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(xE.AutoMinTable,e)})}return n},Tk=lR(e=>{const t=e(kk),r=e(pk).totalsPosition,n=e(NR),{measureText:o}=e(WM({...t.header,fontWeight:mP})),{measureText:i}=e(WM({...t.totalRow,fontWeight:mP})),{estimateWidth:a}=e(WM(t.dimension.values)),{estimateWidth:s}=e(WM(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+=AP),t+=AP,t+=AP,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),Ok=lR(null),Lk=lR(e=>{const t=e(pk),r=e(sA).width,n=e(qP),o=e(Tk);return Dk(t.columns,r-n,o)}),qk=lR(e=>e(Ok)??e(Lk),(e,t,r)=>{t(Ok,r)}),Nk=UM(e=>{const t=e(KM);!1===e(OP)&&t.emit("done-adjusting-column-width")}),jk=UM((e,t)=>{e(IR),t(Ok,null)}),_k=({children:e})=>(xR(jk),xR(Nk),e);function zk(e){const t=_C();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Vu({...t,direction:e})}const Fk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},$k={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Hk=Pc("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":{...Fk},"&::-moz-range-track":{...Fk},"&::-ms-track":{...Fk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...$k},"&::-moz-range-thumb":{...$k},"&::-ms-thumb":{...$k},"&: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"}})),Bk=({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=dE({translator:c.translator}),f=P({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};uE(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,xE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:SE.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=>{GC(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=>{GC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===vE.Left||e.key===vE.Right){GC(e);const t=5,r=e.key===vE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===vE.Space||e.key===vE.Enter?(GC(e),s(e),l?.(!1),x()):e.key===vE.Esc&&(GC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return ur.jsx(Hk,{style:b,hoverColor:o,isLastColumn:r,className:yE,"data-testid":yE,onMouseDown:e=>{GC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:SE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(GC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":xE.PixelsMin,"aria-valuemax":xE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Wk=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Vk=({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},Uk=Pc(vp,{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"})),Gk=Pc(Wk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Yk=Pc(eh)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Kk=Pc(Xp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Xk=Pc(ih)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Jk=Pc(ih,{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=Pc("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"})),Qk=Pc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),eD=Pc(Ld)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),tD=Pc(Mf,{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})),rD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),nD=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?nD(t):t:e.parentElement?.children?.[0]},oD=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?oD(t):t},iD=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===vE.Down||t===vE.Up){const r=e=>t===vE.Down?nD(e):oD(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},aD=(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 sD={};const lD=({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]=M(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return ur.jsxs(ur.Fragment,{children:[ur.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),sD={}),a?.length&&(p(!0),sD[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:iD,children:[l?ur.jsx(Zk,{direction:u,isPagination:c}):null,ur.jsxs(Qk,{children:[ur.jsx(tD,{direction:u,isPagination:c,children:ur.jsx(o,{})}),ur.jsx(eD,{variant:"body2",children:n})]}),a?.length?ur.jsx(rD,{}):null]},t),a?.length?ur.jsx(pD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:aD(a,sD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},uD=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&ur.jsx(Xk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>ur.jsx(lD,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),cD=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[uD({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?ur.jsx(Kk,{"data-testid":"group-divider",variant:"middle"}):void 0]),dD={appear:0,enter:0,exit:0},pD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?ur.jsx(Yk,{className:mE,open:t,anchorEl:e,onClose:r,transitionDuration:dD,MenuListProps:{id:gE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:cD({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,fD=({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]),hD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),mD=(e,t)=>e.some(e=>t[e]>0),gD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=M(null),[a,s]=M(gD);return uE(()=>{e||(s(gD),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=hD(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:mD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:mD(["qSelected"],e),canSelectPossible:mD(["qOption"],e),canSelectAlternative:mD(["qAlternative"],e),canSelectExcluded:mD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},vD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),yD=q((e,t)=>ur.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:ur.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"})})),xD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),SD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),wD=q((e,t)=>ur.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:ur.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)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),ED=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),RD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),AD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),PD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),ID=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),kD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),DD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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 TD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const OD="/qListObjectDef",LD=({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[TD.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:vD,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:SD,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:RD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:wD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[TD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:AD,enabled:!0}]}]),!e.isLocked&&r[TD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:DD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(OD))},icon:MD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(OD))},icon:kD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(OD))},icon:PD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(OD))},icon:ID,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(OD))},icon:yD,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:ED,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[TD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:xD,enabled:!0}]}]),f},qD=({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:b=pE})=>{const v=P(null),y=dE({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=bD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=Vk({model:f,headerData:n}),M=fD({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?ur.jsxs(Uk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:hE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?ur.jsx(Gk,{height:b,className:fE,"data-testid":fE,isInteractionsActive:i.active??!1,children:ur.jsx(Wk,{})}):null,ur.jsx(pD,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:LD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:M,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ND=e=>e.isDark?{background:e.color,borderColor:FC.DARK_MODE_BORDER,color:FC.DARK_MODE_TEXT,disabledColor:FC.DARK_MODE_DISABLED,iconColor:FC.DARK_MODE_TEXT}:{background:e.color,borderColor:FC.BORDER_MEDIUM,color:FC.TEXT,disabledColor:FC.DISABLED},jD=Pc(vp,{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}`})),_D=Pc(zh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),zD=Pc(Pp,{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)})),FD=Pc(Ld)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),$D=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>ND(n.background),[n]);if(!r.active)return null;const a=o?ur.jsx(jD,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},HD=I({}),BD=()=>L(HD),WD=({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 b=(e=>!e.enabled||e.active)(c)?0:-1,v=A(()=>ND(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=dE({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:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return ur.jsx(HD.Provider,{value:S,children:e})};let VD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),UD=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 GD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),KD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),XD={FirstPage:YD,PreviousPage:GD,NextPage:rD,LastPage:KD,FirstPageRTL:KD,PreviousPageRTL:rD,NextPageRTL:GD,LastPageRTL:YD},JD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=BD(),u=r.concat("rtl"===n?"RTL":""),c=XD[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}=BD(),o=0===e.page,{IconComponent:i,styledProps:a}=JD({type:VD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||UD.FirstPage)?null:ur.jsx(zD,{...a,disabled:!r.active,children:ur.jsx(i,{height:pE})})},QD=(e,t,r=!1)=>{r&&e.key===vE.Tab&&!e.shiftKey&&(GC(e),UC(e.target,t,!1))},eT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=BD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=JD({type:VD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{QD(e,t,n)}:void 0;return o<=(a?.lastPage||UD.LastPage)?null:ur.jsx(zD,{...u,onKeyDown:c,disabled:!i.active,children:ur.jsx(l,{height:pE})})},tT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=BD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=JD({type:VD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>UD.FirstPage&&o>UD.LastPage)&&t.enabled?e=>{QD(e,t,n)}:void 0;return ur.jsx(zD,{...l,onKeyDown:u,disabled:!i.active,children:ur.jsx(s,{height:pE})})},rT=()=>{const{pageInfo:e,interactions:t}=BD(),r=0===e.page,{IconComponent:n,styledProps:o}=JD({type:VD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return ur.jsx(zD,{...o,disabled:!t.active,children:ur.jsx(n,{height:pE})})},nT=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=BD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||UD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return ur.jsx(FD,{variant:"caption",dir:"ltr",children:s})},oT=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=BD(),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 ur.jsxs(ur.Fragment,{children:[ur.jsxs(FD,{variant:"caption",id:p,children:[c,":"]}),ur.jsx(_D,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},iT=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=BD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||UD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=ur.jsx(ur.Fragment,{children:e.rowsPerPageOptions.map(e=>ur.jsx("option",{value:e,children:e},e))});return ur.jsx(oT,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},aT=1e3,sT="…",lT=({totalPages:e,page:t})=>{const r=Math.min(e,aT),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-aT):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return ur.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(ur.jsx("option",{value:sT,disabled:!0,children:sT},"startMoreOptions")),o<e-1&&a.push(ur.jsx("option",{value:sT,disabled:!0,children:sT},"endMoreOptions")),ur.jsx(ur.Fragment,{children:a})},uT=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=BD(),{page:i}=e;if(t<=(o?.selectPage||UD.SelectPage))return null;const a=ur.jsx(lT,{totalPages:r,page:i});return ur.jsx(oT,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var cT=N(e=>ur.jsxs(WD,{...e,children:[ur.jsx(iT,{}),ur.jsx(uT,{}),ur.jsx(nT,{}),ur.jsx(ZD,{}),ur.jsx(rT,{}),ur.jsx(tT,{}),ur.jsx(eT,{})]}));const dT=e=>ur.jsx($D,{...e,children:ur.jsx(cT,{...e})}),pT=(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"]})},fT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},hT=e=>e.ctrlKey||e.metaKey,mT=e=>e.shiftKey&&hT(e),gT=e=>[vE.Left,vE.Right,vE.Up,vE.Down].includes(e),bT=e=>e.shiftKey&&gT(e.key),vT=e=>(e=>gT(e)||[vE.Home,vE.End,vE.PageUp,vE.PageDown].includes(e))(e.key)&&!mT(e),yT=(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),pT(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})},xT=(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&&bT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&bT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===vE.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 pT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},ST=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}},wT=(e,t)=>{switch(t.type){case JM.Select:return yT(e,t.payload);case JM.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 JM.SelectMouseUp:return((e,t)=>ST(e.isSelectMultiValues||e.firstCell!==t.cell?e:yT(e,t)))(e,t.payload);case JM.SelectMultiAdd:return xT(e,t.payload);case JM.SelectMultiEnd:return ST(e);case JM.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case JM.Clear:return e.rows.size?{...e,rows:new Map}:e;case JM.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},CT=lR(e=>{const t=e(zR);return function(e,t){return lR(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(pk).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},wT)}),ET=lR(e=>e(e(CT)),(e,t,r)=>{t(e(CT),r)}),RT=BM(e=>lR(t=>{const{colIdx:r,rows:n,api:o}=t(ET);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?XM.Disabled:n.has(e.qElemNumber)?XM.Selected:XM.Possible:XM.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),AT=lR(e=>{const t=e(qk),r=e(sA).width,n=e(qP);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var MT=Symbol.for("preact-signals");function PT(){if(OT>1)OT--;else{var e,t=!1;for(!function(){var e=jT;for(jT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==TT;){var r=TT;for(TT=void 0,LT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&HT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(LT=0,OT--,t)throw e}}function IT(e){if(OT>0)return e();NT=++qT,OT++;try{return e()}finally{PT()}}var kT=void 0;function DT(e){var t=kT;kT=void 0;try{return e()}finally{kT=t}}var TT=void 0,OT=0,LT=0,qT=0,NT=0,jT=void 0,_T=0;function zT(e){if(void 0!==kT){var t=e.n;if(void 0===t||t.t!==kT)return t={i:0,S:e,p:kT.s,n:void 0,t:kT,e:void 0,x:void 0,r:t},void 0!==kT.s&&(kT.s.n=t),kT.s=t,e.n=t,32&kT.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=kT.s,t.n=void 0,kT.s.n=t,kT.s=t),t}}function FT(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 $T(e,t){return new FT(e,t)}function HT(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 BT(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 WT(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 VT(e,t){FT.call(this,void 0),this.x=e,this.s=void 0,this.g=_T-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 UT(e,t){return new VT(e,t)}function GT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){OT++;var r=kT;kT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,YT(e),t}finally{kT=r,PT()}}}function YT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,GT(e)}function KT(e){if(kT!==this)throw new Error("Out-of-order effect");WT(this),kT=e,this.f&=-2,8&this.f&&YT(this),PT()}function XT(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 XT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}FT.prototype.brand=MT,FT.prototype.h=function(){return!0},FT.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:DT(function(){var e;null==(e=t.W)||e.call(t)}))},FT.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&&DT(function(){var e;null==(e=t.Z)||e.call(t)}))}},FT.prototype.subscribe=function(e){var t=this;return JT(function(){var r=t.value,n=kT;kT=void 0;try{e(r)}finally{kT=n}},{name:"sub"})},FT.prototype.valueOf=function(){return this.value},FT.prototype.toString=function(){return this.value+""},FT.prototype.toJSON=function(){return this.value},FT.prototype.peek=function(){var e=kT;kT=void 0;try{return this.value}finally{kT=e}},Object.defineProperty(FT.prototype,"value",{get:function(){var e=zT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(LT>100)throw new Error("Cycle detected");!function(e){0!==OT&&0===LT&&e.l!==NT&&(e.l=NT,jT={S:e,v:e.v,i:e.i,o:jT})}(this),this.v=e,this.i++,_T++,OT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{PT()}}}}),VT.prototype=new FT,VT.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===_T)return!0;if(this.g=_T,this.f|=1,this.i>0&&!HT(this))return this.f&=-2,!0;var e=kT;try{BT(this),kT=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 kT=e,WT(this),this.f&=-2,!0},VT.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)}FT.prototype.S.call(this,e)},VT.prototype.U=function(e){if(void 0!==this.t&&(FT.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)}},VT.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(VT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=zT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),XT.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()}},XT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,GT(this),BT(this),OT++;var e=kT;return kT=this,KT.bind(this,e)},XT.prototype.N=function(){2&this.f||(this.f|=2,this.u=TT,TT=this)},XT.prototype.d=function(){this.f|=8,1&this.f||YT(this)},XT.prototype.dispose=function(){this.d()};var ZT,QT,eO,tO,rO,nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO=Object.create,yO=Object.defineProperty,xO=Object.defineProperties,SO=Object.getOwnPropertyDescriptor,wO=Object.getOwnPropertyDescriptors,CO=Object.getOwnPropertySymbols,EO=Object.prototype.hasOwnProperty,RO=Object.prototype.propertyIsEnumerable,AO=e=>{throw TypeError(e)},MO=(e,t,r)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PO=(e,t)=>yO(e,"name",{value:t,configurable:!0}),IO=["class","method","getter","setter","accessor","field","value","get","set"],kO=e=>void 0!==e&&"function"!=typeof e?AO("Function expected"):e,DO=(e,t,r,n,o)=>({kind:IO[e],name:t,metadata:n,addInitializer:e=>r._?AO("Already initialized"):o.push(kO(e||null))}),TO=(e,t)=>{return MO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},OO=(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},LO=(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=IO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&SO(d<4?o:{get[r](){return jO(this,i)},set[r](e){return zO(this,i,e)}},r));d?f&&d<4&&PO(i,(d>2?"set ":d>1?"get ":"")+r):PO(o,r);for(var y=n.length-1;y>=0;y--)u=DO(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jO:FO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>zO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?kO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?AO("Object expected"):(kO(a=s.get)&&(v.get=a),kO(a=s.set)&&(v.set=a),kO(a=s.init)&&g.unshift(a));return d||TO(e,o),v&&yO(o,r,v),f?4^d?i:v:o},qO=(e,t,r)=>t.has(e)||AO("Cannot "+r),NO=(e,t)=>Object(t)!==t?AO('Cannot use the "in" operator on this value'):e.has(t),jO=(e,t,r)=>(qO(e,t,"read from private field"),r?r.call(e):t.get(e)),_O=(e,t,r)=>t.has(e)?AO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zO=(e,t,r,n)=>(qO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),FO=(e,t,r)=>(qO(e,t,"access private method"),r);function $O(e,t){if(t){let r;return UT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return UT(e)}function HO(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)=>!HO(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=>!HO(e[r],t[r]));return!o}return!1}function BO({get:e},t){return{init:e=>$T(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function WO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=$O(e.bind(this)),r.set(this,t)),t.value}}function VO(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)=>xO(e,wO(t)))(((e,t)=>{for(var r in t||(t={}))EO.call(t,r)&&MO(e,r,t[r]);if(CO)for(var r of CO(t))RO.call(t,r)&&MO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function UO(...e){const t=e.map(e=>JT(e));return()=>t.forEach(e=>e())}nO=[BO],rO=[BO],tO=[BO],eO=[VO()],QT=[VO()],ZT=[VO()];var GO,YO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,OO(oO,5,this),_O(this,uO),_O(this,iO,OO(oO,8,this)),OO(oO,11,this),_O(this,cO,OO(oO,12,this)),OO(oO,15,this),_O(this,hO,OO(oO,16,this)),OO(oO,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return jO(this,uO,gO)}get initial(){return jO(this,uO,sO)}get previous(){return jO(this,uO,pO)}set current(e){const t=DT(()=>jO(this,uO,gO));e&&t&&this.equals(t,e)||IT(()=>{jO(this,uO,sO)||zO(this,uO,e,lO),zO(this,uO,t,fO),zO(this,uO,e,bO)})}reset(e=this.defaultValue){IT(()=>{zO(this,uO,void 0,fO),zO(this,uO,e,lO),zO(this,uO,e,bO)})}};function KO(e){return DT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}oO=[,,,vO(null)],iO=new WeakMap,uO=new WeakSet,cO=new WeakMap,hO=new WeakMap,aO=LO(oO,20,"#initial",nO,uO,iO),sO=aO.get,lO=aO.set,dO=LO(oO,20,"#previous",rO,uO,cO),pO=dO.get,fO=dO.set,mO=LO(oO,20,"#current",tO,uO,hO),gO=mO.get,bO=mO.set,LO(oO,2,"current",eO,YO),LO(oO,2,"initial",QT,YO),LO(oO,2,"previous",ZT,YO),TO(oO,YO);GO=new WeakMap;var XO,JO,ZO,QO,eL,tL=Object.create,rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,oL=Object.getOwnPropertySymbols,iL=Object.prototype.hasOwnProperty,aL=Object.prototype.propertyIsEnumerable,sL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),lL=e=>{throw TypeError(e)},uL=Math.pow,cL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dL=["class","method","getter","setter","accessor","field","value","get","set"],pL=e=>void 0!==e&&"function"!=typeof e?lL("Function expected"):e,fL=(e,t,r,n,o)=>({kind:dL[e],name:t,metadata:n,addInitializer:e=>r._?lL("Already initialized"):o.push(pL(e||null))}),hL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=dL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,nL(o,r)),h=n.length-1;h>=0;h--)(l=fL(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,pL(a)&&(f[d]=a);return f&&rL(o,r,f),o},mL=(e,t,r)=>t.has(e)||lL("Cannot "+r),gL=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)}},bL=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={}))iL.call(t,r)&&cL(e,r,t[r]);if(oL)for(var r of oL(t))aL.call(t,r)&&cL(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 gL((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 gL.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 vL,yL=class extends(ZO=YO,JO=[WO],XO=[WO],ZO){constructor(e){var t,r,n;super(gL.from(e),(e,t)=>gL.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)})(eL,5,this),t=this,n=0,(r=QO).has(t)?lL("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 gL.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=gL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(mL(a=this,s=QO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);IT(()=>{((e,t,r)=>{mL(e,t,"write to private field"),t.set(e,r)})(this,QO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(gL.from(e)),this.velocity={x:0,y:0}}};function xL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(uL(n,2)+uL(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}eL=(e=>{var t;return[,,,tL(null!=(t=null==e?void 0:e[sL("metadata")])?t:null)]})(ZO),QO=new WeakMap,hL(eL,2,"delta",JO,yL),hL(eL,2,"direction",XO,yL),vL=eL,cL(yL,sL("metadata"),vL[3]);var SL,wL,CL,EL,RL=(e=>(e.Horizontal="x",e.Vertical="y",e))(RL||{}),AL=Object.values(RL),ML=Object.create,PL=Object.defineProperty,IL=Object.defineProperties,kL=Object.getOwnPropertyDescriptor,DL=Object.getOwnPropertyDescriptors,TL=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty,LL=Object.prototype.propertyIsEnumerable,qL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),NL=e=>{throw TypeError(e)},jL=(e,t,r)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_L=(e,t)=>{for(var r in t||(t={}))OL.call(t,r)&&jL(e,r,t[r]);if(TL)for(var r of TL(t))LL.call(t,r)&&jL(e,r,t[r]);return e},zL=(e,t)=>IL(e,DL(t)),FL=(e,t)=>PL(e,"name",{value:t,configurable:!0}),$L=(e,t)=>{var r={};for(var n in e)OL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&TL)for(var n of TL(e))t.indexOf(n)<0&&LL.call(e,n)&&(r[n]=e[n]);return r},HL=e=>{var t;return[,,,ML(null!=(t=null==e?void 0:e[qL("metadata")])?t:null)]},BL=["class","method","getter","setter","accessor","field","value","get","set"],WL=e=>void 0!==e&&"function"!=typeof e?NL("Function expected"):e,VL=(e,t,r,n,o)=>({kind:BL[e],name:t,metadata:n,addInitializer:e=>r._?NL("Already initialized"):o.push(WL(e||null))}),UL=(e,t)=>jL(t,qL("metadata"),e[3]),GL=(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},YL=(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=BL[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&kL(d<4?o:{get[r](){return JL(this,i)},set[r](e){return QL(this,i,e)}},r));d?f&&d<4&&FL(i,(d>2?"set ":d>1?"get ":"")+r):FL(o,r);for(var y=n.length-1;y>=0;y--)u=VL(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>XL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?JL:eq)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>QL(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?WL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?NL("Object expected"):(WL(a=s.get)&&(v.get=a),WL(a=s.set)&&(v.set=a),WL(a=s.init)&&g.unshift(a));return d||UL(e,o),v&&PL(o,r,v),f?4^d?i:v:o},KL=(e,t,r)=>t.has(e)||NL("Cannot "+r),XL=(e,t)=>Object(t)!==t?NL('Cannot use the "in" operator on this value'):e.has(t),JL=(e,t,r)=>(KL(e,t,"read from private field"),r?r.call(e):t.get(e)),ZL=(e,t,r)=>t.has(e)?NL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),QL=(e,t,r,n)=>(KL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),eq=(e,t,r)=>(KL(e,t,"access private method"),r);function tq(e,t){return{plugin:e,options:t}}function rq(e){return t=>tq(e,t)}function nq(e){return"function"==typeof e?{plugin:e,options:void 0}:e}SL=[BO];var oq=class{constructor(e,t){this.manager=e,this.options=t,ZL(this,CL,GL(wL,8,this,!1)),GL(wL,11,this),ZL(this,EL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return DT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=JT(e.bind(this));return JL(this,EL).add(t),t}destroy(){JL(this,EL).forEach(e=>e())}static configure(e){return tq(this,e)}};wL=HL(null),CL=new WeakMap,EL=new WeakMap,YL(wL,4,"disabled",SL,oq,CL),UL(wL,oq);var iq,aq=class extends oq{},sq=class{constructor(e){this.manager=e,this.instances=new Map,ZL(this,iq,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(nq).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,iq))if(!r.includes(e)){if(e.prototype instanceof aq)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);QL(this,iq,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 lq(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}iq=new WeakMap;var uq,cq,dq=[],pq=class extends oq{constructor(e){super(e),ZL(this,uq),ZL(this,cq),this.computeCollisions=this.computeCollisions.bind(this),QL(this,cq,$T(dq)),this.destroy=UO(()=>{const e=this.computeCollisions(),t=DT(()=>this.manager.dragOperation.position.current);if(e!==dq){const e=JL(this,uq);if(QL(this,uq,t),e&&t.x==e.x&&t.y==e.y)return}else QL(this,uq,void 0);JL(this,cq).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){DT(()=>{e?JL(this,cq).value=this.computeCollisions():QL(this,uq,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return dq;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=DT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?dq:(s.sort(lq),s)}get collisions(){return JL(this,cq).value}};uq=new WeakMap,cq=new WeakMap;var fq=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)}},hq=class extends fq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function mq(e,t=!0){let r=!1;return zL(_L({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var gq,bq,vq,yq,xq,Sq,wq,Cq,Eq,Rq=class extends aq{constructor(e){super(e);let t=[];this.destroy=UO(()=>{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=mq({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;DT(()=>{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()}))})})}},Aq=(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))(Aq||{}),Mq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Mq||{});wq=[BO],Sq=[WO],xq=[WO],yq=[WO],vq=[WO],bq=[WO],gq=[WO];var Pq=class{constructor(){GL(Cq,5,this),ZL(this,Eq,GL(Cq,8,this,"idle")),GL(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=HL(null),Eq=new WeakMap,YL(Cq,4,"value",wq,Pq,Eq),YL(Cq,2,"current",Sq,Pq),YL(Cq,2,"idle",xq,Pq),YL(Cq,2,"initializing",yq,Pq),YL(Cq,2,"initialized",vq,Pq),YL(Cq,2,"dragging",bq,Pq),YL(Cq,2,"dropped",gq,Pq),UL(Cq,Pq);var Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q=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 DT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=mq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return DT(()=>{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;IT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=mq({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 DT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=mq({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 DT(()=>{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=DT(()=>{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()})}};Tq=[BO],Dq=[BO],kq=[BO],Iq=[BO];var zq=class{constructor(e,t){ZL(this,Lq,GL(Oq,8,this)),GL(Oq,11,this),ZL(this,qq,GL(Oq,12,this)),GL(Oq,15,this),ZL(this,Nq,GL(Oq,16,this)),GL(Oq,19,this),ZL(this,jq,GL(Oq,20,this)),GL(Oq,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)}};Oq=HL(null),Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakMap,YL(Oq,4,"manager",Tq,zq,Lq),YL(Oq,4,"id",Dq,zq,qq),YL(Oq,4,"data",kq,zq,Nq),YL(Oq,4,"disabled",Iq,zq,jq),UL(Oq,zq);var Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN,iN,aN,sN,lN,uN,cN=class{constructor(){this.map=$T(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=UO(...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}},dN=class extends(Uq=zq,Vq=[BO],Wq=[BO],Bq=[BO],Hq=[WO],$q=[WO],Fq=[WO],Uq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=$L(r,["modifiers","type","sensors"]);super(a,t),GL(Gq,5,this),ZL(this,Yq,GL(Gq,8,this)),GL(Gq,11,this),ZL(this,Kq,GL(Gq,12,this)),GL(Gq,15,this),ZL(this,Xq,GL(Gq,16,this,this.isDragSource?"dragging":"idle")),GL(Gq,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}};Gq=HL(Uq),Yq=new WeakMap,Kq=new WeakMap,Xq=new WeakMap,YL(Gq,4,"type",Vq,dN,Yq),YL(Gq,4,"modifiers",Wq,dN,Kq),YL(Gq,4,"status",Bq,dN,Xq),YL(Gq,2,"isDropping",Hq,dN),YL(Gq,2,"isDragging",$q,dN),YL(Gq,2,"isDragSource",Fq,dN),UL(Gq,dN);var pN=class extends(nN=zq,rN=[BO],tN=[BO],eN=[BO],Qq=[BO],Zq=[BO],Jq=[WO],nN){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super($L(r,["accept","collisionDetector","collisionPriority","type"]),t),GL(oN,5,this),ZL(this,iN,GL(oN,8,this)),GL(oN,11,this),ZL(this,aN,GL(oN,12,this)),GL(oN,15,this),ZL(this,sN,GL(oN,16,this)),GL(oN,19,this),ZL(this,lN,GL(oN,20,this)),GL(oN,23,this),ZL(this,uN,GL(oN,24,this)),GL(oN,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}};oN=HL(nN),iN=new WeakMap,aN=new WeakMap,sN=new WeakMap,lN=new WeakMap,uN=new WeakMap,YL(oN,4,"accept",rN,pN,iN),YL(oN,4,"type",tN,pN,aN),YL(oN,4,"collisionDetector",eN,pN,sN),YL(oN,4,"collisionPriority",Qq,pN,lN),YL(oN,4,"shape",Zq,pN,uN),YL(oN,2,"isDropTarget",Jq,pN),UL(oN,pN);var fN,hN=class extends oq{constructor(e,t){super(e,t),this.manager=e,this.options=t}},mN=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)}},gN=class{constructor(e){this.options=e,ZL(this,fN)}set controller(e){QL(this,fN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=JL(this,fN))||t.activate(e)}};fN=new WeakMap;var bN,vN,yN,xN,SN,wN,CN,EN,RN,AN,MN,PN,IN,kN,DN,TN,ON,LN,qN,NN=class extends oq{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},jN=class{constructor(e){this.draggables=new cN,this.droppables=new cN,this.plugins=new sq(e),this.sensors=new sq(e),this.modifiers=new sq(e)}register(e,t){if(e instanceof dN)return this.draggables.register(e.id,e);if(e instanceof pN)return this.droppables.register(e.id,e);if(e.prototype instanceof NN)return this.modifiers.register(e,t);if(e.prototype instanceof hN)return this.sensors.register(e,t);if(e.prototype instanceof oq)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof zq)return e instanceof dN?this.draggables.unregister(e.id,e):e instanceof pN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof NN)return this.modifiers.unregister(e);if(e.prototype instanceof hN)return this.sensors.unregister(e);if(e.prototype instanceof oq)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()}};RN=[WO],EN=[BO],CN=[BO],wN=[BO],SN=[BO],xN=[BO],yN=[WO],vN=[WO],bN=[WO];var _N=class{constructor(e){GL(IN,5,this),ZL(this,AN),ZL(this,MN),ZL(this,PN,new YO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new Pq,ZL(this,kN,GL(IN,8,this,!1)),GL(IN,11,this),ZL(this,DN,GL(IN,12,this,null)),GL(IN,15,this),ZL(this,TN,GL(IN,16,this,null)),GL(IN,19,this),ZL(this,ON,GL(IN,20,this,null)),GL(IN,23,this),ZL(this,LN,GL(IN,24,this,[])),GL(IN,27,this),this.position=new yL({x:0,y:0}),ZL(this,qN,{x:0,y:0}),QL(this,AN,e)}get shape(){const{current:e,initial:t,previous:r}=JL(this,PN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?JL(this,PN).current=e:JL(this,PN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=JL(this,AN).registry.draggables.get(t);return r&&QL(this,MN,r),null!=(e=null!=r?r:JL(this,MN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=JL(this,AN).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(zL(_L({},this.snapshot()),{transform:r}));return QL(this,qN,r),r}snapshot(){return DT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:JL(this,qN),shape:this.shape?KO(this.shape):null,position:KO(this.position),status:KO(this.status),canceled:this.canceled}))}reset(){IT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,JL(this,PN).reset(),this.position.reset({x:0,y:0}),QL(this,qN,{x:0,y:0}),this.modifiers=[]})}};IN=HL(null),AN=new WeakMap,MN=new WeakMap,PN=new WeakMap,kN=new WeakMap,DN=new WeakMap,TN=new WeakMap,ON=new WeakMap,LN=new WeakMap,qN=new WeakMap,YL(IN,2,"shape",RN,_N),YL(IN,4,"canceled",EN,_N,kN),YL(IN,4,"activatorEvent",CN,_N,DN),YL(IN,4,"sourceIdentifier",wN,_N,TN),YL(IN,4,"targetIdentifier",SN,_N,ON),YL(IN,4,"modifiers",xN,_N,LN),YL(IN,2,"source",yN,_N),YL(IN,2,"target",vN,_N),YL(IN,2,"transform",bN,_N),UL(IN,_N);var zN={get rendering(){return Promise.resolve()}};function FN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var $N=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=FN(r.plugins,[]),o=FN(r.sensors,[]),i=FN(r.modifiers,[]),a=null!=(t=r.renderer)?t:zN,s=new hq(this),l=new jN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new _q(this),this.dragOperation=new _N(this),this.collisionObserver=new pq(this),this.plugins=[Rq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=UO(()=>{var e,t,r;const n=DT(()=>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}=nq(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}},HN=e=>{throw TypeError(e)},BN=(e,t,r)=>t.has(e)||HN("Cannot "+r),WN=(e,t,r)=>(BN(e,t,"read from private field"),t.get(e)),VN=(e,t,r)=>t.has(e)?HN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UN=(e,t,r,n)=>(BN(e,t,"write to private field"),t.set(e,r),r),GN=(e,t,r)=>(BN(e,t,"access private method"),r);function YN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function KN(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=(YN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function XN(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 QN(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 ej(e){const{Document:t}=QN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function tj(e){return!(!e||JN(e))&&(e instanceof QN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function rj(e){return e instanceof QN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function nj(e){return e?JN(e)?e.document:ZN(e)?ej(e)?e:tj(e)||rj(e)?e.ownerDocument:document:document:document}function oj(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 ij(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(!oj(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,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),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 aj(e){return{x:e.clientX,y:e.clientY}}var sj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function lj(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(...lj(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(...lj(o.document,t))}}catch(e){}return r}function uj(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function cj(){var e,t;const r=uj()?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 dj(e){return!(!e||!ZN(e))&&e instanceof QN(e).ShadowRoot}function pj(e){if(e&&ZN(e)){let t=e.getRootNode();if(dj(t))return t;if(t instanceof Document)return t}return nj(e)}function fj(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function hj(e){return"value"in e}function mj(e){return"CANVAS"===e.tagName}function gj(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 gj(e,{x:t-o,y:r-i})}}return n}var bj=new WeakMap;var vj=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 yj(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function xj(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 Sj,wj=sj?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Cj=class extends wj{constructor(e){super(t=>{WN(this,Sj)?e(t,this):UN(this,Sj,!0)}),VN(this,Sj,!1)}};Sj=new WeakMap;var Ej,Rj,Aj,Mj,Pj,Ij,kj,Dj,Tj,Oj,Lj,qj=Array.from({length:100},(e,t)=>t/100),Nj=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,VN(this,Tj),this.disconnect=()=>{var e,t,r;UN(this,kj,!0),null==(e=WN(this,Aj))||e.disconnect(),null==(t=WN(this,Mj))||t.disconnect(),WN(this,Pj).disconnect(),null==(r=WN(this,Ij))||r.remove()},VN(this,Ej,!0),VN(this,Rj),VN(this,Aj),VN(this,Mj),VN(this,Pj),VN(this,Ij),VN(this,kj,!1),VN(this,Dj,xj(()=>{var e,t,r;const{element:n}=this;if(null==(e=WN(this,Mj))||e.disconnect(),WN(this,kj)||!WN(this,Ej)||!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=ij(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,UN(this,Mj,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:bL.intersectionRatio(r,ij(n)))&&WN(this,Dj).call(this)},{threshold:qj,rootMargin:m,root:o})),WN(this,Mj).observe(n),GN(this,Tj,Oj).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),UN(this,Ej,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=ij(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)&&(UN(this,Ij,document.createElement("div")),WN(this,Ij).style.background="rgba(0,0,0,0.15)",WN(this,Ij).style.position="fixed",WN(this,Ij).style.pointerEvents="none",o.body.appendChild(WN(this,Ij))),UN(this,Pj,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=WN(this,Ej);UN(this,Ej,a),(s||l)&&(u&&!a?(null==(r=WN(this,Mj))||r.disconnect(),this.callback(null),null==(n=WN(this,Aj))||n.disconnect(),UN(this,Aj,void 0),WN(this,Ij)&&(WN(this,Ij).style.visibility="hidden")):WN(this,Dj).call(this),a&&!WN(this,Aj)&&(UN(this,Aj,new Cj(WN(this,Dj))),WN(this,Aj).observe(e)))},{threshold:qj,root:o})),WN(this,Ej)&&!r.skipInitial&&this.callback(this.boundingClientRect),WN(this,Pj).observe(e)}};Ej=new WeakMap,Rj=new WeakMap,Aj=new WeakMap,Mj=new WeakMap,Pj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,Dj=new WeakMap,Tj=new WeakSet,Oj=function(){WN(this,kj)||(GN(this,Tj,Lj).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,WN(this,Rj))||(this.callback(this.boundingClientRect),UN(this,Rj,this.boundingClientRect)))},Lj=function(){if(WN(this,Ij)){const{top:e,left:t,width:r,height:n}=ij(this.element);WN(this,Ij).style.overflow="hidden",WN(this,Ij).style.visibility="visible",WN(this,Ij).style.top=`${Math.floor(e)}px`,WN(this,Ij).style.left=`${Math.floor(t)}px`,WN(this,Ij).style.width=`${Math.floor(r)}px`,WN(this,Ij).style.height=`${Math.floor(n)}px`}};var jj,_j,zj,Fj,$j=new WeakMap,Hj=new WeakMap;function Bj(e,t){let r=$j.get(e);if(!r){const t=new Nj(e,t=>{const r=$j.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),$j.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&($j.delete(e),r.disconnect())}}var Wj=class{constructor(e,t,r){this.callback=t,VN(this,jj),VN(this,_j,!1),VN(this,zj),VN(this,Fj,xj(e=>{if(!WN(this,_j)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of WN(this,zj))if(e.target.contains(t)){this.callback(WN(this,jj).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=yj(e);for(;r;)t.add(r),r=yj(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Bj(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Hj.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}),Hj.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Hj.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Hj.delete(n))}):()=>{}}(e,WN(this,Fj));UN(this,zj,n),UN(this,jj,new Nj(e,t,r)),this.disconnect=()=>{WN(this,_j)||(UN(this,_j,!0),o(),i(),WN(this,jj).disconnect())}}};function Vj(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Uj(e){try{Vj(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Gj(e){return!(!sj||!e)&&e===nj(e).scrollingElement}function Yj(e){var t,r;const n=QN(e),o=Gj(e)?function(e){var t,r,n,o;const{documentElement:i}=nj(e),a=QN(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):XN(e),i=n.visualViewport,a=Gj(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 Kj(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Yj(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}}jj=new WeakMap,_j=new WeakMap,zj=new WeakMap,Fj=new WeakMap;var Xj=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))}},Jj=new Xj(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),Zj=new Xj(e=>setTimeout(e,50)),Qj=new Map,e_=Qj.clear.bind(Qj);function t_(e,t=!1){if(!t)return r_(e);let r=Qj.get(e);return r||(r=r_(e),Qj.set(e,r),Zj.schedule(e_),r)}function r_(e){return QN(e).getComputedStyle(e)}var n_={excludeElement:!0,escapeShadowDOM:!0};function o_(e,t=n_){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(ej(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&dj(a))return t(a.host);if(!tj(a))return rj(a)?t(a.parentElement):i;if(i.has(a))return i;const s=t_(a,!0);if(n&&a===e||function(e,t=t_(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=t_(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 i_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=yj(e);for(;n;){if(n===t)return r;const e=XN(n),{x:o,y:i}=a_(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=yj(n)}return r}function a_(e,t=XN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(tj(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=t_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function s_(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 l_(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=s_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var u_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(u_||{}),c_={x:.2,y:.2},d_={x:10,y:10};function p_(e,t,r,n=25,o=c_,i=d_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Yj(e),f=i_(e),h=l_(t_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new bL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function f_(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!tj(e))return e.scrollIntoView();var n=function(e){const[t]=o_(e,{limit:1});return null!=t?t:null}(e);if(!tj(n))return;const o=t_(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 h_({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function m_(e,t=t_(e).translate,r=!0){if(r){const t=KN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=s_(e);if(t)return t}}}if(t){const e=s_(t);if(e)return e}return{x:0,y:0,z:0}}var g_=new Xj(e=>setTimeout(e,0)),b_=new Map,v_=b_.clear.bind(b_);function y_(e,t){const r=function(e){const t=e.ownerDocument;let r=b_.get(t);if(r)return r;r=t.getAnimations(),b_.set(t,r),g_.schedule(v_);const n=r.filter(t=>YN(t.effect)&&t.effect.target===e);return b_.set(e,n),r}(e).filter(e=>{var r,n;if(YN(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 x_=class extends bL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=i_(e),ignoreTransforms:s,getBoundingClientRect:l=XN}=t,u=y_(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||uj())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=t_(e),b=l_(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=YN(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=l_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function S_(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 w_=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(S_(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(S_(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(S_(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function C_(e){return!!e&&(e instanceof QN(e).Element||ZN(e)&&e.nodeType===Node.ELEMENT_NODE)}function E_(e){if(!e)return!1;const{KeyboardEvent:t}=QN(e.target);return e instanceof t}var R_={};function A_(e){const t=null==R_[e]?0:R_[e]+1;return R_[e]=t,`${e}-${t}`}var M_=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/gL.distance(t.shape.center,r),type:Mq.PointerIntersection,priority:Aq.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=gL.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:Aq.Normal}}return null})(e)},P_=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?bL.from(n.current.boundingRectangle).corners:void 0,a=bL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+gL.distance(gL.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:Aq.Normal}},I_=Object.create,k_=Object.defineProperty,D_=Object.defineProperties,T_=Object.getOwnPropertyDescriptor,O_=Object.getOwnPropertyDescriptors,L_=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable,j_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),__=e=>{throw TypeError(e)},z_=(e,t,r)=>t in e?k_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F_=(e,t)=>{for(var r in t||(t={}))q_.call(t,r)&&z_(e,r,t[r]);if(L_)for(var r of L_(t))N_.call(t,r)&&z_(e,r,t[r]);return e},$_=(e,t)=>D_(e,O_(t)),H_=(e,t)=>k_(e,"name",{value:t,configurable:!0}),B_=(e,t)=>{var r={};for(var n in e)q_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&L_)for(var n of L_(e))t.indexOf(n)<0&&N_.call(e,n)&&(r[n]=e[n]);return r},W_=e=>{var t;return[,,,I_(null!=(t=null==e?void 0:e[j_("metadata")])?t:null)]},V_=["class","method","getter","setter","accessor","field","value","get","set"],U_=e=>void 0!==e&&"function"!=typeof e?__("Function expected"):e,G_=(e,t,r,n,o)=>({kind:V_[e],name:t,metadata:n,addInitializer:e=>r._?__("Already initialized"):o.push(U_(e||null))}),Y_=(e,t)=>z_(t,j_("metadata"),e[3]),K_=(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},X_=(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=V_[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&T_(d<4?o:{get[r](){return Q_(this,i)},set[r](e){return tz(this,i,e)}},r));d?f&&d<4&&H_(i,(d>2?"set ":d>1?"get ":"")+r):H_(o,r);for(var y=n.length-1;y>=0;y--)u=G_(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Z_(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?Q_:rz)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>tz(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?U_(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?__("Object expected"):(U_(a=s.get)&&(v.get=a),U_(a=s.set)&&(v.set=a),U_(a=s.init)&&g.unshift(a));return d||Y_(e,o),v&&k_(o,r,v),f?4^d?i:v:o},J_=(e,t,r)=>t.has(e)||__("Cannot "+r),Z_=(e,t)=>Object(t)!==t?__('Cannot use the "in" operator on this value'):e.has(t),Q_=(e,t,r)=>(J_(e,t,"read from private field"),r?r.call(e):t.get(e)),ez=(e,t,r)=>t.has(e)?__("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tz=(e,t,r,n)=>(J_(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),rz=(e,t,r)=>(J_(e,t,"access private method"),r),nz="button",oz="draggable",iz="dnd-kit-description",az="dnd-kit-announcement",sz={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."},lz={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 uz(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var cz=["dragover","dragmove"],dz=class extends oq{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=iz,announcement:o=az}={},announcements:i=lz,screenReaderInstructions:a=sz,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:A_(n),u=r?`${o}-${r}`:A_(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Jj.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,cz.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),uz(r)&&!uj()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",nz)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",oz)),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&&Jj.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var pz,fz,hz,mz,gz,bz,vz,yz,xz,Sz,wz,Cz,Ez,Rz=new Map,Az=class extends(gz=aq,mz=[BO],hz=[WO],fz=[WO],pz=[WO],gz){constructor(e){super(e),K_(vz,5,this),ez(this,xz),ez(this,bz,new Set),ez(this,yz,K_(vz,8,this,new Set)),K_(vz,11,this),this.registerEffect(rz(this,xz,Sz))}register(e){return Q_(this,bz).add(e),()=>{Q_(this,bz).delete(e)}}addRoot(e){return DT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{DT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return pj(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return pj(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}};vz=W_(gz),bz=new WeakMap,yz=new WeakMap,xz=new WeakSet,Sz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of Q_(this,bz))t.push(rz(this,xz,wz).call(this,r,e));return()=>{for(const e of t)e()}},wz=function(e,t){let r=Rz.get(e);r||(r=new Map,Rz.set(e,r));let n=r.get(t);if(!n){const o=ej(e)?rz(this,xz,Cz).call(this,e,r,t):rz(this,xz,Ez).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&&Rz.delete(e)}}},Ez=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(dj(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&&Rz.delete(e)}}},X_(vz,4,"additionalRoots",mz,Az,yz),X_(vz,2,"sourceRoot",hz,Az),X_(vz,2,"targetRoot",fz,Az),X_(vz,2,"roots",pz,Az),Y_(vz,Az);var Mz="data-dnd-",Pz=`${Mz}dropping`,Iz="--dnd-",kz=`${Mz}dragging`,Dz=`${Mz}placeholder`,Tz=[kz,Dz,"popover","aria-pressed","aria-grabbing"],Oz=["view-transition-name"],Lz=`\n :is(:root,:host) [${kz}] {\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(${Iz}top, 0px) !important;\n left: var(${Iz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Iz}width, auto);\n max-width: var(${Iz}width, auto);\n height: var(${Iz}height, auto);\n max-height: var(${Iz}height, auto);\n transition: var(${Iz}transition) !important;\n }\n\n :is(:root,:host) [${Dz}] {\n transition: none;\n }\n\n :is(:root,:host) [${Dz}='hidden'] {\n visibility: hidden;\n }\n\n [${kz}] * {\n pointer-events: none !important;\n }\n\n [${kz}]:not([${Pz}]) {\n translate: var(${Iz}translate) !important;\n }\n\n [${kz}][style*='${Iz}scale'] {\n scale: var(${Iz}scale) !important;\n transform-origin: var(${Iz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${kz}][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 [${kz}]::backdrop, [${Mz}overlay]:not([${kz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function qz(e,t="hidden"){return DT(()=>{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}${A_("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(hj(e)&&hj(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),mj(e)&&mj(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),bj.set(a,i),r.push(()=>{bj.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(Dz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Nz(e,t){return e===t||yj(e)===yj(t)}function jz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&C_(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>Uj(t))}function _z(e){return"TR"===e.tagName}var zz,Fz,$z,Hz,Bz,Wz,Vz,Uz=250,Gz="ease";var Yz=class extends(Fz=oq,zz=[BO],Fz){constructor(e,t){super(e,t),ez(this,Bz),ez(this,Hz,K_($z,8,this)),K_($z,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Az),n=null==r?void 0:r.register(Lz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(rz(this,Bz,Wz).bind(this,r)),this.registerEffect(rz(this,Bz,Vz))}};$z=W_(Fz),Hz=new WeakMap,Bz=new WeakSet,Wz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=pj(t);return r?e.addRoot(r):void 0},Vz=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=i_(f),m=i_(c),g=!Nz(c,f),b=new x_(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new w_(f),{transition:R,translate:A,boxSizing:M,paddingBlockStart:P,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=t_(c),N="clone"===d,j="content-box"===M,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(P)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:qz(l,N?"clone":"hidden"),$=DT(()=>E_(o.dragOperation.activatorEvent));if("none"!==A){const e=s_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=DT(()=>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!==v||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(kz,"true");const Z=DT(()=>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=cj();if(E.set({width:x-_,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?`${v} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},Iz),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;Vj(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Uj(f),f.addEventListener("beforetoggle",jz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new x_(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=cj();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},Iz),null==(t=se.getElementMutationObserver())||t.takeRecords(),_z(se.element)&&_z(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 x_(se.feedbackElement)}));var se;const le=new x_(f);DT(()=>a.shape=le);const ue=QN(f),ce=e=>{this.manager.actions.stop({event:e})},de=fj(ue);$&&ue.addEventListener("resize",ce),"idle"===DT(()=>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-")||Tz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(S_(e)&&S_(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(Oz.includes(e)||e.startsWith(Iz))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 Uj(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Uj(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;tj(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Vj(f)&&(f.removeEventListener("beforetoggle",jz),f.removeAttribute("popover")),f.removeAttribute(kz),E.reset(),ie&&_z(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,be=UO(()=>{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=DT(()=>a.modifiers),l=DT(()=>{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`},Iz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=gL.delta(o,i);a.shape=bL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new x_(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=Uz,easing:s=Gz}=null!=i?i:{};Uj(e.feedbackElement);const[,l]=null!=(t=KN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Nz(e.feedbackElement,u)?null:void 0},d=new x_(e.feedbackElement,c),p=null!=(n=s_(t_(e.feedbackElement).translate))?n:e.translate,f=new x_(u,c),h=bL.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=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},Iz),e.feedbackElement.setAttribute(Pz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),h_({element:e.feedbackElement,keyframes:$_(F_(F_({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:fj(QN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(Pz),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(),be()}},X_($z,4,"overlay",zz,Yz,Hz),Y_($z,Yz),Yz.configure=rq(Yz);var Kz,Xz,Jz,Zz,Qz,eF,tF,rF=Yz,nF=!0;Jz=[BO],Zz=u_.Forward,Kz=[BO],Xz=u_.Reverse;var oF=class{constructor(){ez(this,eF,K_(Qz,8,this,nF)),K_(Qz,11,this),ez(this,tF,K_(Qz,12,this,nF)),K_(Qz,15,this)}isLocked(e){return e!==u_.Idle&&(null==e?this[u_.Forward]===nF&&this[u_.Reverse]===nF:this[e]===nF)}unlock(e){e!==u_.Idle&&(this[e]=false)}};Qz=W_(null),eF=new WeakMap,tF=new WeakMap,X_(Qz,4,Zz,Jz,oF,eF),X_(Qz,4,Xz,Kz,oF,tF),Y_(Qz,oF);var iF,aF,sF,lF,uF,cF,dF=[u_.Forward,u_.Reverse],pF=class{constructor(){this.x=new oF,this.y=new oF}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},fF=class extends oq{constructor(e){super(e);const t=$T(new pF);let r=null;this.signal=t,JT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new pF);const{delta:o}=e.dragOperation.position;if(r){const e={x:hF(o.x,r.x),y:hF(o.y,r.y)},n=t.peek();IT(()=>{for(const t of AL)for(const r of dF)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function hF(e,t){return Math.sign(e-t)}var mF=class extends(aF=aq,iF=[BO],aF){constructor(e){super(e),ez(this,lF,K_(sF,8,this,!1)),K_(sF,11,this),ez(this,uF),ez(this,cF,()=>{if(!Q_(this,uF))return;const{element:e,by:t}=Q_(this,uF);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 tz(this,uF,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:gF(n.x),y:gF(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=Kj(e,n);if(r.x||r.y){const{speed:r,direction:s}=p_(e,o,i);if(a)for(const e of AL)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=Q_(this,uF))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return tz(this,uF,{element:e,by:{x:a,y:l}}),Jj.schedule(Q_(this,cF)),!0}}}}}return tz(this,uF,void 0),!1};let t=null,r=null;const n=$O(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=gj(pj(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=$O(()=>{const t=n.value,{documentElement:o}=nj(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=o_(n,{excludeElement:!1});return r=e,e}}if(t){const e=o_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},HO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new fF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&E_(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function gF(e){return e>0?u_.Forward:e<0?u_.Reverse:u_.Idle}sF=W_(aF),lF=new WeakMap,uF=new WeakMap,cF=new WeakMap,X_(sF,4,"autoScrolling",iF,mF,lF),Y_(sF,mF);var bF,vF=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()}),yF=class extends oq{constructor(e,t){super(e);const r=e.registry.plugins.get(mF);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(()=>vF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},xF={capture:!0,passive:!0},SF=class extends aq{constructor(e){super(e),ez(this,bF),this.handleScroll=()=>{null==Q_(this,bF)&&tz(this,bF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),tz(this,bF,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,xF),()=>{o.removeEventListener("scroll",this.handleScroll,xF)}}})}};bF=new WeakMap;function wF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var CF,EF=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}}),RF=class extends hN{constructor(e,t){super(e),this.manager=e,this.options=t,ez(this,CF,[]),this.listeners=new vj,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!C_(e.target))return;if(t.disabled)return;const{keyboardCodes:n=EF.keyboardCodes,preventActivation:o=EF.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=>{E_(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(),f_(n);const{center:o}=new x_(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=nj(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];Q_(this,CF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=EF.keyboardCodes}=null!=r?r:{};if(PF(e,[...n.end,...n.cancel])){e.preventDefault();const t=PF(e,n.cancel);return void this.handleEnd(e,t)}PF(e,n.up)?this.handleMove("up",e):PF(e,n.down)&&this.handleMove("down",e),PF(e,n.left)?this.handleMove("left",e):PF(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:EF.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(yF);!1===(null==e?void 0:e.disabled)&&(e.disable(),Q_(this,CF).push(()=>{e.enable()}))}cleanup(){Q_(this,CF).forEach(e=>e()),tz(this,CF,[])}destroy(){this.cleanup(),this.listeners.clear()}};CF=new WeakMap,RF.configure=rq(RF),RF.defaults=EF;var AF,MF=RF;function PF(e,t){return t.includes(e.code)}var IF,kF;AF=new WeakMap;IF=new WeakMap,kF=new WeakMap;var DF=class{};DF.Delay=class extends gN{constructor(){super(...arguments),ez(this,IF),ez(this,kF)}onEvent(e){switch(e.type){case"pointerdown":tz(this,kF,aj(e)),tz(this,IF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Q_(this,kF))return;const{x:t,y:r}=aj(e);xL({x:t-Q_(this,kF).x,y:r-Q_(this,kF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Q_(this,IF)&&(clearTimeout(Q_(this,IF)),tz(this,kF,void 0),tz(this,IF,void 0))}},DF.Distance=class extends gN{constructor(){super(...arguments),ez(this,AF)}onEvent(e){switch(e.type){case"pointerdown":tz(this,AF,aj(e));break;case"pointermove":if(!Q_(this,AF))return;const{x:t,y:r}=aj(e),n={x:t-Q_(this,AF).x,y:r-Q_(this,AF).y},{tolerance:o}=this.options;if(o&&xL(n,o))return void this.abort();xL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){tz(this,AF,void 0)}};var TF,OF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!C_(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new DF.Delay({value:250,tolerance:5})]:function(e){if(!C_(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 DF.Delay({value:200,tolerance:0})]:[new DF.Delay({value:200,tolerance:10}),new DF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!C_(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 ')))))}}),LF=class extends hN{constructor(e,t){super(e),this.manager=e,this.options=t,ez(this,TF,new Set),this.listeners=new vj,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=OF.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}=QN(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&&(zF(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||!C_(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=OF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=tj(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=i_(t.element),{x:s,y:l}=aj(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 mN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=lj(),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:NF,options:{capture:!0}}]);Q_(this,TF).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=aj(e),n=i_(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,Jj.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=nj(t.target).body;o.setPointerCapture(t.pointerId);const i=C_(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:NF,options:{passive:!1}},{type:"click",listener:NF},{type:"contextmenu",listener:NF},{type:"keydown",listener:this.handleKeyDown}]);Q_(this,TF).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},Q_(this,TF).forEach(e=>e()),Q_(this,TF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};TF=new WeakMap,LF.configure=rq(LF),LF.defaults=OF;var qF=LF;function NF(e){e.preventDefault()}function jF(){}var _F=new WeakSet;function zF(e){e&&!_F.has(e)&&(e.addEventListener("touchmove",jF,{capture:!1,passive:!1}),_F.add(e))}var FF,$F,HF,BF,WF,VF,UF,GF,YF,KF,XF,JF,ZF,QF,e$,t$,r$,n$,o$={modifiers:[],plugins:[dz,yF,class extends oq{constructor(e,t){super(e,t),this.manager=e;const r=$O(()=>{var e;return nj(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()}})}},rF,class extends oq{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),wF(),document.addEventListener("selectionchange",wF,{capture:!0}),()=>{document.removeEventListener("selectionchange",wF,{capture:!0}),e.remove()}}})}}],sensors:[qF,MF]},i$=class extends $N{constructor(e={}){const t=FN(e.plugins,o$.plugins),r=FN(e.sensors,o$.sensors),n=FN(e.modifiers,o$.modifiers);super($_(F_({},e),{plugins:[SF,mF,Az,...t],sensors:r,modifiers:n}))}},a$=class extends(BF=dN,HF=[BO],$F=[BO],FF=[BO],BF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=B_(r,["element","effects","handle","feedback"]);super(F_({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(nq))?t:[...r.sensors]).map(e=>{const t=e instanceof hN?e:r.registry.register(e.plugin),n=e instanceof hN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),ez(this,VF,K_(WF,8,this)),K_(WF,11,this),ez(this,UF,K_(WF,12,this)),K_(WF,15,this),ez(this,GF,K_(WF,16,this)),K_(WF,19,this),this.element=n,this.handle=i,this.feedback=a}};WF=W_(BF),VF=new WeakMap,UF=new WeakMap,GF=new WeakMap,X_(WF,4,"handle",HF,a$,VF),X_(WF,4,"element",$F,a$,UF),X_(WF,4,"feedback",FF,a$,GF),Y_(WF,a$);var s$=class extends(XF=pN,KF=[BO],YF=[BO],XF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=B_(r,["element","effects"]);const{collisionDetector:a=M_}=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 x_(r),o=DT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=$T(!1);super($_(F_({},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 Wj(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),ez(this,r$),ez(this,ZF,K_(JF,8,this)),K_(JF,11,this),ez(this,n$,K_(JF,12,this)),K_(JF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){tz(this,r$,e,t$)}get element(){var e;return null!=(e=this.proxy)?e:Q_(this,r$,e$)}};function l$(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=W_(XF),ZF=new WeakMap,r$=new WeakSet,n$=new WeakMap,QF=X_(JF,20,"#element",KF,r$,ZF),e$=QF.get,t$=QF.set,X_(JF,4,"proxy",YF,s$,n$),Y_(JF,s$);var u$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:D;function c$(){const e=M(0)[1];return O(()=>{e(e=>e+1)},[e])}function d$(e,t=[],r=!1){const n=P(e);return n.current=e,function(e,t=!1){const r=P(e.peek()),n=P(!1),o=c$();return u$(()=>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(()=>$O(()=>n.current()),t),r)}function p$(e,t){const r=P(new Map),n=c$();return u$(()=>{if(e)return JT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=DT(()=>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 f$(e,t){e()}function h$(e){const t=P(e);return u$(()=>{t.current=e},[e]),t}function m$(e,t,r=D,n=Object.is){const o=P(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function g$(e,t){const r=P(l$(e));u$(()=>{const n=l$(e);n!==r.current&&(r.current=n,t(n))})}var b$=Object.getOwnPropertySymbols,v$=Object.prototype.hasOwnProperty,y$=Object.prototype.propertyIsEnumerable,x$=I(new i$),S$=N(q(({children:e},t)=>{const[r,n]=M(0),o=P(null),i=P(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 u$(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),w$=[void 0,HO];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)v$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&b$)for(var n of b$(e))t.indexOf(n)<0&&y$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=P(null),{plugins:d,modifiers:p,sensors:f}=u,h=FN(d,o$.plugins),m=FN(f,o$.sensors),g=FN(p,o$.modifiers),b=h$(o),v=h$(i),y=h$(s),x=h$(a),S=h$(l),w=h$(n),C=function(e){const t=P(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new i$(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=b.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),m$(h,()=>C&&(C.plugins=h),...w$),m$(m,()=>C&&(C.sensors=m),...w$),m$(g,()=>C&&(C.modifiers=g),...w$),ur.jsxs(x$.Provider,{value:C,children:[ur.jsx(S$,{ref:c,children:r}),r]})}function E$(){return L(x$)}function R$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=P(null),l=E$(),u=null!=(a=d$(()=>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 rF);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 rF);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?A$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return ur.jsx(x$.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 ur.jsx(M$,{source:u,children:e});return e}())})}function A$(){return()=>{}}function M$({children:e,source:t}){return e(p$(t))}var P$,I$,k$,D$,T$,O$=Object.create,L$=Object.defineProperty,q$=Object.getOwnPropertyDescriptor,N$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),j$=e=>{throw TypeError(e)},_$=["class","method","getter","setter","accessor","field","value","get","set"],z$=e=>void 0!==e&&"function"!=typeof e?j$("Function expected"):e,F$=(e,t,r,n,o)=>({kind:_$[e],name:t,metadata:n,addInitializer:e=>r._?j$("Already initialized"):o.push(z$(e||null))}),$$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=_$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,q$(o,r)),h=n.length-1;h>=0;h--)(l=F$(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,z$(a)&&(f[d]=a);return f&&L$(o,r,f),o},H$=(e,t,r)=>t.has(e)||j$("Cannot "+r),B$=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)}},W$=class extends(k$=YO,I$=[WO],P$=[WO],k$){constructor(e){var t,r,n;super(B$.from(e),(e,t)=>B$.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)})(T$,5,this),t=this,n=0,(r=D$).has(t)?j$("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 B$.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=B$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(H$(a=this,s=D$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);IT(()=>{((e,t,r)=>{H$(e,t,"write to private field"),t.set(e,r)})(this,D$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(B$.from(e)),this.velocity={x:0,y:0}}};T$=(e=>{var t;return[,,,O$(null!=(t=null==e?void 0:e[N$("metadata")])?t:null)]})(k$),D$=new WeakMap,$$(T$,2,"delta",I$,W$),$$(T$,2,"direction",P$,W$),((e,t)=>{((e,t,r)=>{t in e?L$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,N$("metadata"),e[3])})(T$,W$);var V$=(e=>(e.Horizontal="x",e.Vertical="y",e))(V$||{});function U$(e){const t=E$();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(V$);const G$=()=>{const[e,t]=M(!1);return U$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?ur.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Y$=(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}),K$=lR(e=>{const t=e(TR),r=e(nA);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)}}),X$=({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,Q$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],eH=e=>e?.setAttribute("tabIndex","0"),tH=e=>e?.setAttribute("tabIndex","-1"),rH=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(tH)},nH=e=>{e?.focus(),eH(e)},oH=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${yE}`);nH(t)},0)},iH=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{rH(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 vE.Down:u<s&&u++;break;case vE.Up:u>a&&u--;break;case vE.Right:if(i)break;[u,c]="rtl"===n?X$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):J$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case vE.Left:if(i)break;[u,c]="rtl"===n?J$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):X$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case vE.Home:(hT(e)||i)&&(u=a),i||(c=0);break;case vE.End:(hT(e)||i)&&(u=s),i||(c=l);break;case vE.PageDown:u=Math.min(s,u+10);break;case vE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=Q$(t,a);return nH(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}},aH=(e,t,r,n)=>{rH(t),r(e),n.enabled&&!n.active?n.focus?.():nH(Q$(t,e))},sH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${mE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${QM.First}`),r=e.querySelector(`.${QM.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},lH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),uH=Pc(nm,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...bP,...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}})),cH=Pc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:hP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),dH=parseInt(hP,10)/2,pH=Pc("div")({position:"absolute",bottom:-dH,left:`calc(50% - ${dH}px)`}),fH=Pc(ym)({position:"sticky",top:0,zIndex:1}),hH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},mH=Pc(vp)({height:"100%"}),gH=Pc("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?{...hH,whiteSpace:"nowrap",display:r?"block":void 0}:{...hH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),bH=Pc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),vH="cell-text",yH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=xR(kk);return o?ur.jsx(gH,{"data-testid":vH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):ur.jsx(gH,{"data-testid":vH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},xH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=xR(OR),l=xR(K$),u=xR(KR),c=xR($R),d=xR(RR),p=xR(pA),f=xR(CR),h=xR(qk)[t.pageColIdx],m=xR(rA),g=P(null),b=P(null),v=(({column:e,columnWidth:t})=>{const r=xR(kk),{measureText:n}=oE({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:mP});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?ur.jsx(vD,{height:hP,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(SD,{height:hP,"data-testid":"head-cell-sort-descending-icon"}),a=r?ur.jsx(cH,{align:t,dir:o,children:i}):void 0,s=n?ur.jsx(kP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ur.jsx(lH,{height:hP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return ur.jsxs(IP,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:wP(t,i,u),children:[S,ur.jsxs(PP,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,ur.jsx(yH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?ur.jsxs(ur.Fragment,{children:[ur.jsx(qD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[TD.Sorting]:!0,[TD.Searching]:!0,[TD.Selections]:!0,[TD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:oH},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),ur.jsx(MP,{ref:b,direction:u,isPagination:i}),ur.jsx(MP,{ref:g,direction:u})]}):null]})},SH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),wH=(e,t)=>e.isCyclic&&t,CH=({column:e})=>{const t=xR(kk),r=xR(KR),n=xR(rA),o=S.useRef(null),[i,a]=S.useState(!1),s=Vk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return ur.jsxs(ur.Fragment,{children:[ur.jsx(TP,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:ur.jsx(SH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),ur.jsx(pD,{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:wD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},EH=e=>e.isLocked,RH=({column:e})=>{const t=xR(CR),r=xR(OR),n=xR(kk);return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=hD(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:ur.jsx(lH,{height:16,"data-testid":"head-cell-lock-icon"})})},AH=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=xR(kk);return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:ur.jsx(Wk,{height:16})})},MH=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=xR(CR),s=xR(KR),l=xR(RR),u=xR($R),c=xR(rA),d=xR(OR),p=xR(pA),f=xR(K$);return ur.jsx(qD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[TD.Sorting]:!0,[TD.Searching]:!0,[TD.Selections]:!0,[TD.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:oH},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:r})},PH=lR();PH.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const IH=({ref:e,callback:t})=>{const r=xR(PH),n=P(t);n.current=t,j(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},kH=Pc(vp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),DH=({children:e})=>{const t=S.useRef(null),[r,n]=M(()=>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.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 IH({ref:t,callback:i}),ur.jsx(kH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},TH=({children:e})=>e,OH=(e,t)=>!e.isLocked&&e.isDim&&t,LH=({column:e,open:t,setOpen:r})=>{const n=xR(kk),o=xR(OR),i=xR(KR),a=xR(RR);xR(CR);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),u=fD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:ur.jsx(AD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},qH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),NH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),jH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?ur.jsx(NH,{height:hP,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(qH,{height:hP,"data-testid":"head-cell-sort-descending-icon"});return r?ur.jsx(pH,{children:n}):void 0},_H=0,zH=1,FH=2,$H=3,HH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=xR(kk),u=xR(KR),{measureText:c}=oE(l.header),[d,p]=M(!1),f=P(null),h=P(null),m=P(null),g="number"==typeof a&&a>xE.PixelsMin+18;return ur.jsxs(ur.Fragment,{children:[ur.jsxs(DH,{children:[ur.jsx(TH,{prio:FH,minWidth:AP,children:EH(t)?ur.jsx(RH,{column:t}):null},"Lock"),ur.jsx(TH,{prio:zH,minWidth:AP,children:wH(t,s)?ur.jsx(CH,{column:t}):null},"Cyclic"),ur.jsx(TH,{ignore:!0,children:ur.jsx(jH,{column:t})},"Sort"),ur.jsx(TH,{minWidth:c(t.label)+8,children:ur.jsx(DP,{justifyContent:t.headTextAlign,children:ur.jsx(yH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),ur.jsx(TH,{prio:g?void 0:_H,minWidth:AP,children:d||OH(t,s)?ur.jsx(LH,{open:d,setOpen:p,column:t}):null},"Search"),ur.jsx(TH,{prio:$H,minWidth:AP,children:s?ur.jsx(AH,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?ur.jsxs(ur.Fragment,{children:[ur.jsx(MP,{ref:h,direction:u,isPagination:o}),ur.jsx(MP,{ref:f,direction:u}),ur.jsx(MH,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},BH=Pc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),WH=()=>{},VH=({column:e,isPagination:t})=>{const r=xR(kk),n=xR(KR),o=xR(AT),i=xR(fk),a=!1,s=xR(NR)?xH:HH;return ur.jsx(BH,{className:"sn-table-cell",applicableStyle:{...r.header,...Y$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:EP(n,a,o),borderLeftWidth:RP(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:ur.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:WH})})},UH=({isPagination:e})=>{const t=xR(hk),[r,n]=M();U$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?ur.jsx(R$,{children:ur.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:ur.jsx(VH,{column:o,isPagination:e})})}):null},GH=[qF.configure({activationConstraints:[new DF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],YH=o$.plugins.filter(e=>e!==dz),KH=({children:e})=>{const t=xR(nA),r=xR(hk);return ur.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:GH,plugins:YH,children:e})};function XH(e,t){const r=P(!1);D(()=>{r.current?e():r.current=!0},t)}const JH=lR(eP),ZH=BM(e=>lR(t=>{const[r,n]=t(JH);return 0===r&&n===e})),QH=()=>{const e=xR(ER);D(()=>{e.notifyIsDoneRendering()})};var eB={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 tB=lR(e=>{const t=e(pA),r=e(lA);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(eB).forEach(t=>{e.add(eB[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(`.${QM.First}`),s=r.querySelector(`.${QM.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===QM.First?(l=s,n=QM.Second):(l=a,n=QM.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),rB=(e,t)=>{const r=xR(tB),n=xR(lA),o=xR(vk),i=xR(bk),a=xR(gk),s=xR(fk),[l,u]=wR(JH),c=xR(_R),d=xR(tA);XH(()=>{const t=((e,t,r=!1)=>{const n=[Z$(t),e[1]];return r?n:eP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(rH(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=Q$(t,e);r.current?(nH(s),r.current=!1):eH(s),n&&(a({keys:[s?.textContent??""]}),fT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},nB=e=>{const t=xR(KR),r=xR($I);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])},oB=e=>{GC(e),hT(e)&&ME(e.currentTarget)},iB=e=>{vT(e.evt)&&(GC(e.evt),iH(e))},aB=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!vT(t))return;GC(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}=iH({...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:JM.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):fT(o,a,i)})({...e,nextCell:s})},sB=e=>{const{evt:t}=e;mT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{GC(e);const a=Math.ceil(t/r)-1;e.key===vE.Right&&n<a?(o(),i(n+1)):e.key===vE.Left&&n>0&&(o(),i(n-1))})(e):t.key===vE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(GC(e),t.blur?.(!0))})(e):gT(t.key)&&GC(t)},lB=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(XM.Disabled))return void GC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case vE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{GC(e),t.isSelectable&&r&&n({type:JM.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case vE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{GC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case vE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(GC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case vE.C:oB(t);break;case vE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(GC(e),UC(e.currentTarget,t,e.shiftKey))})(n);break;default:aB(n)}},uB=e=>{const t=xR(OP),r=SR(LP),n=SR(qP),o=xR(KM),i=P();IH({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.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])},cB=Pc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),dB=Pc(sm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),pB=Pc(Vh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),fB=()=>ur.jsxs(ur.Fragment,{children:[ur.jsx(cB,{className:QM.First,"data-testid":QM.First,"aria-live":"polite","aria-atomic":"true"}),ur.jsx(cB,{className:QM.Second,"data-testid":QM.Second,"aria-live":"polite","aria-atomic":"true"})]}),hB=e=>{const t=P(new Map),r=P(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])},mB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),gB=()=>hB(mB),bB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=xR(zR),n=xR(tA),o=SR(ET);D(()=>{const i=()=>{o({type:JM.Reset})},a=()=>{o({type:JM.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])},vB=e=>{e.stopPropagation()},yB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:vB,color:FC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),xB=({href:e,text:t,interactions:r,color:n})=>ur.jsx(bf,{...yB({href:e,text:t,interactions:r,color:n}),children:t}),SB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),wB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),CB="qDimensionInfo/0",EB="qMeasureInfo/0",RB="x",AB="y",MB=e=>({key:"bars",type:"box",data:{extract:{field:CB,props:{start:0,end:{field:EB}}}},settings:{major:{scale:RB},minor:{scale:AB},box:{maxWidthPx:8,fill:{fn:e}}}}),PB=e=>({key:"p",type:"point",data:{extract:{field:CB,props:{y:{field:EB}}}},settings:{x:{scale:RB},y:{scale:AB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),IB=({qNum:e})=>void 0===e?0:Math.sign(e),kB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=WC(e,t?.negative,r),a=WC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:CB,props:{start:0,end:{field:EB,value:IB}}}},settings:{major:{scale:RB},minor:{scale:AB},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}}}}},DB=(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=WC(e,t?.main,o),l=WC(e,t?.max,s),u=WC(e,t?.min,s),c=WC(e,t?.first,s),d=WC(e,t?.last,s);return e=>{const t=AB in e.datum?AB:"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[MB(a)];case"dots":return[PB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:CB,props:{v:{field:EB}}}},settings:{coordinates:{major:{scale:RB},minor:{scale:AB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(WC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,PB(a)]:[t]}case"posNeg":return[kB(e,n)];default:return[]}},TB=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"}),OB=(e,t,r,n)=>({y:{data:{field:EB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:CB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),LB=U();LB.use(V),LB.renderer.prio(["canvas"]);const qB={resolve:()=>{},promise:{}},NB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=P(e.isDownloadedAsPDForImage?Nt():qB);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 LB.chart({element:e,data:{type:"q",key:"qHyperCube",data:TB(s)},settings:{scales:OB(a,l,u,i),components:DB(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&&wB(r.current),r.current=null,l()},[r,l])}},jB=e=>{const t=P(null),r=P(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(wB(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])},_B=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=P(null),l=P(null),u=P(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=NB({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=jB(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},zB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=_B({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return ur.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},FB=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}`},$B=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},HB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=xR(KR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=ur.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:$B(s),objectPosition:FB(l),overflow:"hidden"}});return n?ur.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?yP(o,e):void 0},children:c}):c},BB=q((e,t)=>ur.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:ur.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),WB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),VB=q((e,t)=>ur.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:[ur.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"}),ur.jsx("use",{fillRule:"evenodd"})]})),UB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),GB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),YB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),KB=q((e,t)=>ur.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:ur.jsx("path",{d:"M2 7.5h12v1H2z"})})),XB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),JB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),ZB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),QB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),eW={m:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":ZB,R:NH,S:qH,T:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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:JB,Q:YB,"è":q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.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"})})),"¢":UB,"©":VB,"23F4":GB,2013:QB,"&":XB,add:BB,"minus-2":KB,dot:WB},tW=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&eW[t];return o&&ur.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:ur.jsx(o,{style:{height:e}})})},rW=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=xR(kk),o=xR(KR),i=xR(dA),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=dP(e,t,o,i),d=(e=>parseInt(e||hP,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?ur.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&&tW({size:d,iconKey:f,color:p}),ur.jsx(yH,{isNumeric:!0,children:a}),"right"===h&&tW({size:d,iconKey:f,color:p})]}):tW({size:d,iconKey:f,color:p})},nW=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,oW=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=xR(kk),u=xR(ER),c=xR(IR),d=xR(dA),p=xR(KR),f=xR($R),h=xR(_R);if(t.representation.type===JA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===JA.Image)return ur.jsx(HB,{representation:t.representation,textStyle:r,maxImageHeight:nW(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==JA.Link||h||(m=ur.jsx(xB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==JA.Indicator||Number.isNaN(g)?t.representation.type===JA.MiniChart&&t.representation.miniChart&&!t.isNull?ur.jsx(zB,{height:nW(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):ur.jsx(yH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):ur.jsx(rW,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},iW=()=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:ur.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),aW=Pc("div")({"& path":{stroke:"none !important"}}),sW=({children:e,cellSelectionState:t})=>t===XM.Selected?ur.jsxs(bH,{children:[e,ur.jsx(aW,{children:ur.jsx(iW,{})})]}):e,lW=e=>{const t=function(){const e=E$(),t=d$(()=>null==e?void 0:e.dragOperation.source,[e]),r=d$(()=>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},uW=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:JM.SelectMultiEnd})};r({type:JM.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:JM.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:JM.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),cW=e=>{const t=xR(yk),r=xR(fk),n=xR(tB),o=xR(lA),i=xR(KR),a=SR(JH),s=SR(ET),l=xR(tA),u=xR(WR),c=xR(zR),d=d=>{lB({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===vE.Shift&&t({type:JM.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;aH([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}=uW(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},dW=e=>{D(()=>()=>{RT.remove(e)},[e])},pW=(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},fW=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},hW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return fW(t,e,n?"even":"odd")}return e},mW=(e,t)=>{const r=xR(kk),n=xR(RT(e));dW(e);let o=t.isDim?r.dimension.values:r.measure.values;o=hW(o,r,e),o=pW(o,r,e);const i=VP(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===XM.Selected?{...e,...r}:t===XM.Disabled?{...e,background:`${pP}, ${e.background}`}:e}(A(()=>e.isNull?o:VP(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}},gW=Pc(Zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),bW=Pc(ym,{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}}})),vW=Pc(nm,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...bP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),yW=Pc(nm,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...bP,...e,fontWeight:mP,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})),xW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=xR(KR),a=xR($R),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=cW(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=mW(e,t),m=lW(t.id);return ur.jsx(vW,{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} ${bE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:ur.jsx(sW,{cellSelectionState:h,children:ur.jsx(oW,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:CP(i,e.align)})})})},SW=lR(0),wW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=xR(kk),i=xR(BR),a=xR(SW),s=lW(e.id);return ur.jsx(yW,{totalsStyle:{...o.totalRow,...Y$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${bE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:ur.jsx(yH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},CW=()=>{const e=xR(fk),t=xR(hk),r=xR(gk),n=xR(lA),o=xR(HR),i=xR(KR),a=SR(JH),s=xR(_R),l=xR(tA);return ur.jsx(ym,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return ur.jsx(wW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case vE.C:oB(r);break;case vE.Space:r.preventDefault();break;default:iB(e)}else GC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{aH(c,n,a,l)}},t.id)})})};var EW=N(CW);const RW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=xR(gk),n=xR(fk),o=xR(hk),i=xR(kk),a=xR(IR),s=!!$P(a)?.content?.hoverEffect;bB({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 hB(t)})(t),u=gB();return ur.jsxs(gW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?ur.jsx(EW,{}):void 0,r.map((e,t)=>ur.jsx(bW,{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 ur.jsx(xW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?ur.jsx(EW,{}):void 0]})};var AW=N(RW);const MW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,PW=lR(e=>{const t=e(IR),r=e(rA);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)}}),IW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=xR(PW),s=xR(KR),l=xR(HR),u=xR(pA),[c,d]=wR(qk);if(!l)return null;return ur.jsx(Bk,{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=>{tH(e);const t=e.closest(".sn-table-cell");nH(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},kW=e=>e.target?.getAttribute("class")?.includes(yE),DW=({isInteractionEnabled:e,column:t})=>{const[r,n]=M(!1),o=xR(K$),i=xR(OP);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||kW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!kW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var TW=Object.defineProperty,OW=Object.defineProperties,LW=Object.getOwnPropertyDescriptors,qW=Object.getOwnPropertySymbols,NW=Object.prototype.hasOwnProperty,jW=Object.prototype.propertyIsEnumerable,_W=(e,t,r)=>t in e?TW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zW=(e,t)=>{for(var r in t||(t={}))NW.call(t,r)&&_W(e,r,t[r]);if(qW)for(var r of qW(t))jW.call(t,r)&&_W(e,r,t[r]);return e},FW=(e,t)=>OW(e,LW(t)),$W=class extends NN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return FW(zW({},e),{[t]:r})}};$W.configure=rq($W);var HW=$W;HW.configure({axis:"x",value:0}),HW.configure({axis:"y",value:0});var BW=class extends NN{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 FW(zW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};BW.configure=rq(BW);var WW=class extends NN{constructor(e,t){super(e,t),this.boundingRectangle=$T(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=XN(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=zW({},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 bL(l,u,s,a),r,n);return c}};WW.configure=rq(WW);var VW=WW,UW=Object.create,GW=Object.defineProperty,YW=Object.defineProperties,KW=Object.getOwnPropertyDescriptor,XW=Object.getOwnPropertyDescriptors,JW=Object.getOwnPropertySymbols,ZW=Object.prototype.hasOwnProperty,QW=Object.prototype.propertyIsEnumerable,eV=e=>{throw TypeError(e)},tV=(e,t,r)=>t in e?GW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rV=(e,t)=>{for(var r in t||(t={}))ZW.call(t,r)&&tV(e,r,t[r]);if(JW)for(var r of JW(t))QW.call(t,r)&&tV(e,r,t[r]);return e},nV=(e,t)=>YW(e,XW(t)),oV=["class","method","getter","setter","accessor","field","value","get","set"],iV=e=>void 0!==e&&"function"!=typeof e?eV("Function expected"):e,aV=(e,t,r,n,o)=>({kind:oV[e],name:t,metadata:n,addInitializer:e=>r._?eV("Already initialized"):o.push(iV(e||null))}),sV=(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},lV=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=oV[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,KW({get[r](){return cV(this,i)},set[r](e){return pV(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=aV(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?iV(s)&&(g[f]=s):"object"!=typeof s||null===s?eV("Object expected"):(iV(a=s.get)&&(g.get=a),iV(a=s.set)&&(g.set=a),iV(a=s.init)&&h.unshift(a));return g&&GW(o,r,g),o},uV=(e,t,r)=>t.has(e)||eV("Cannot "+r),cV=(e,t,r)=>(uV(e,t,"read from private field"),t.get(e)),dV=(e,t,r)=>t.has(e)?eV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),pV=(e,t,r,n)=>(uV(e,t,"write to private field"),t.set(e,r),r);function fV(e){return e instanceof BV||e instanceof HV}var hV=Object.defineProperty,mV=Object.defineProperties,gV=Object.getOwnPropertyDescriptors,bV=Object.getOwnPropertySymbols,vV=Object.prototype.hasOwnProperty,yV=Object.prototype.propertyIsEnumerable,xV=(e,t,r)=>t in e?hV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SV=(e,t)=>{for(var r in t||(t={}))vV.call(t,r)&&xV(e,r,t[r]);if(bV)for(var r of bV(t))yV.call(t,r)&&xV(e,r,t[r]);return e},wV=(e,t)=>mV(e,gV(t));function CV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function EV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function RV(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(EV(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&&EV(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 wV(SV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return wV(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&&EV(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 wV(SV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return wV(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 wV(SV({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return wV(SV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,CV)}var AV="__default__";function MV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function PV(e,t){return e.index-t.index}function IV(e){return Array.from(e).sort(PV)}var kV,DV,TV,OV,LV,qV,NV,jV,_V=[class extends oq{constructor(e){super(e);const t=JT(()=>{const{dragOperation:t}=e;if(E_(t.activatorEvent)&&fV(t.source)&&t.status.initialized){const t=e.registry.plugins.get(mF);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(!E_(e.nativeEvent))return;if(!fV(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=[];IT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&fV(e)||!e.element)continue;let r=e.shape;const n=new x_(e.element,{getBoundingClientRect:e=>ij(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,P_);IT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!fV(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;f_(c);const d=new x_(c);if(!d)return;const p=bL.delta(d,bL.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 oq{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof BV){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(IV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!fV(o)||!fV(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=IV(l),g=s?m:IV(u),b=null!=(c=o.sortable.group)?c:AV,v=null!=(d=i.sortable.group)?d:AV,y={[b]:m,[v]:g},x=RV(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),MV(f,S,h,w),IT(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;fV(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=IV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(MV(r,i.index,a,o.index),IT(()=>{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()}}}],zV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FV=new class{constructor(){_O(this,GO,new WeakMap)}get(e,t){var r;return e?null==(r=jO(this,GO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return jO(this,GO).has(e)||jO(this,GO).set(e,new Map),null==(n=jO(this,GO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=jO(this,GO).get(e))?void 0:t.clear():void 0}};DV=[BO],kV=[BO];var $V=class{constructor(e,t){dV(this,OV,sV(TV,8,this)),sV(TV,11,this),dV(this,LV),dV(this,qV),dV(this,NV,sV(TV,12,this)),sV(TV,15,this),dV(this,jV),this.register=()=>(IT(()=>{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=()=>{IT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{IT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zV,plugins:u=_V}=r,c=((e,t)=>{var r={};for(var n in e)ZW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&JW)for(var n of JW(e))t.indexOf(n)<0&&QW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new BV(c,t,this),this.draggable=new HV(nV(rV({},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)&&FV.clear(this.manager),(null==n?void 0:n.dragging)&&FV.set(this.manager,this.id,DT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=cV(this,qV),o=cV(this,LV);e===n&&t===o||(pV(this,qV,e),pV(this,LV,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),pV(this,jV,c.element),this.manager=t,this.index=i,pV(this,qV,i),this.group=o,pV(this,LV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){DT(()=>{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}=t_(n),l=m_(n,s,!1),u=m_(n,s);if(i||a){const r=fj(QN(n))?nV(rV({},t),{duration:0}):t;h_({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){IT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){IT(()=>{const t=cV(this,jV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),pV(this,jV,e)})}get element(){var e,t;const r=cV(this,jV);if(r)return null!=(t=null!=(e=bj.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){IT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){IT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){IT(()=>{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:M_}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){IT(()=>{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)}};TV=[,,,UW(null)],OV=new WeakMap,LV=new WeakMap,qV=new WeakMap,NV=new WeakMap,jV=new WeakMap,lV(TV,4,"index",DV,$V,OV),lV(TV,4,"group",kV,$V,NV),((e,t)=>{return tV(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TV,$V);var HV=class extends a${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}},BV=class extends s${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},WV=Object.defineProperty,VV=Object.defineProperties,UV=Object.getOwnPropertyDescriptors,GV=Object.getOwnPropertySymbols,YV=Object.prototype.hasOwnProperty,KV=Object.prototype.propertyIsEnumerable,XV=(e,t,r)=>t in e?WV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JV=(e,t)=>{for(var r in t||(t={}))YV.call(t,r)&&XV(e,r,t[r]);if(GV)for(var r of GV(t))KV.call(t,r)&&XV(e,r,t[r]);return e};function ZV(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=JV(JV({},zV),e.transition),b=function(e){var t;const r=null!=(t=E$())?t:void 0,[n]=M(()=>e(r));return n.manager!==r&&(n.manager=r),u$(n.register,[r,n]),n}(t=>new $V(((e,t)=>VV(e,UV(t)))(JV({},e),{transition:g,register:!1,handle:l$(s),element:l$(a),target:l$(h),feedback:d}),t)),v=p$(b,QV);return m$(o,()=>b.id=o),u$(()=>{IT(()=>{b.group=u,b.index=l})},[b,u,l]),m$(m,()=>b.type=m),m$(t,()=>b.accept=t,void 0,HO),m$(i,()=>i&&(b.data=i)),m$(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},f$),g$(s,e=>b.handle=e),g$(a,e=>b.element=e),g$(h,e=>b.target=e),m$(c,()=>b.disabled=!0===c),m$(f,()=>b.sensors=f),m$(r,()=>b.collisionDetector=r),m$(n,()=>b.collisionPriority=n),m$(d,()=>b.feedback=null!=d?d:"default"),m$(g,()=>b.transition=g,void 0,HO),m$(p,()=>b.modifiers=p,void 0,HO),m$(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function QV(e,t,r){return!("isDragSource"!==e||r||!t)}const eU=({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/gL.distance(r.shape.center,s),type:Mq.Collision,priority:Aq.Normal}:null},tU=[VW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rU=(e,t)=>{const r=xR(KR),n=xR(MR),o=!xR(UR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:tU,data:e,feedback:"clone",collisionDetector:eU({invert:"rtl"===r})})},nU=({column:e,columnIndex:t,columnsLength:r})=>{const n=xR(kk),o=xR(lA),i=xR(KR),a=xR($R),s=xR(hk),l=xR(fk),u=xR(qk)[t],c=SR(JH),d=xR(ZH(t)),p=xR(UR),f=xR(tA),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=DW({isInteractionEnabled:p,column:e}),v=SR(OP),{ref:y,isDragging:x}=rU(e,t),S=lW(e.id),w=xR(NR),C=w?xH:HH,E=e.isActivelySorted?ZM[e.sortDirection]:void 0,R=h?gE:void 0,A=h?"true":void 0,M=t===r-1,P=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return ur.jsxs(uH,{"data-dragging":x,ref:y,headerStyle:{...n.header,...Y$(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 ${bE}`,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 vE.C:oB(r);break;case vE.Enter:case vE.Space:n?.(r);break;default:iB(e)}else GC(r)})({evt:e,rootElement:o,cellCoord:P,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&&aH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[ur.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),ur.jsx(IW,{column:e,isLastColumn:M,setIsAdjustingWidth:v})]},e.id)},oU=()=>{const e=xR(hk),t=xR(kk),r=xR(IR),n=xR(JR),o=SR(SW),i=xR(qk),a=P(null),s=MW(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),ur.jsx(fm,{style:{visibility:s?"collapse":void 0},children:ur.jsx(fH,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>ur.jsx(nU,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var iU=N(oU);const aU=()=>{const e=xR(tB),[t,r]=wR(ok),{page:n,rowsPerPage:o}=t,i=xR(XR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=xR(pk),p=xR(kk),f=xR($I),h=xR(IR),m=xR(dA),g=xR(sA),b=xR(lA),v=xR(JR),y=xR(KR),x=xR($R),S=xR(pA),w=xR(AT),C=SR(ET),E=xR(_R),R=xR(tA),A=P(!1),M=P(null),I=P(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=GR(h,v),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return nB(M),((e,t)=>{const r=xR(tA);D(()=>{const n=e.current;if(!n)return;const o=e=>{sH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(I,A),(()=>{const e=xR(lA),t=xR(tA),r=xR(JH);uE(()=>{const n=Q$(e,r);t.active?nH(n):(n?.blur(),rH(e))},[t.active,e])})(),rB(A,n),D(()=>{const e=M.current;e&&(e.scrollLeft=L,e.scrollTop=q)},[t,s,L,q]),XH(()=>{C({type:JM.UpdatePageRows,payload:{pageRows:c}})},[c]),QH(),uB(M),ur.jsxs(KH,{children:[ur.jsxs(mH,{ref:I,dir:y,onKeyDown:e=>{sB({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[ur.jsx(fB,{}),ur.jsxs(dB,{ref:M,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[ur.jsxs(pB,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[ur.jsx(iU,{}),ur.jsx(AW,{updateShouldRefocus:N,tableWrapperRef:I})]}),ur.jsx(G$,{})]}),ur.jsx(dT,{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:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),ur.jsx(UH,{isPagination:!0})]})};var sU=N(aU);const lU=lR(0),uU=lR(e=>{const t=e(kR);return Math.min(lk,t)}),cU=lR(e=>{const t=e(kR);return t===lk?0:Math.floor(t/lk)}),dU=lR(e=>{const t=e(lU),r=e(cU);return Math.min(t,r)}),pU=lR(e=>({page:e(dU),rowsPerPage:e(uU),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(cU);t(lU,Math.max(0,Math.min(r,n)))});var fU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hU(e,t){return e===t||!(!fU(e)||!fU(t))}function mU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!hU(e[r],t[r]))return!1;return!0}function gU(e,t){var r;void 0===t&&(t=mU);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 bU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vU(e){cancelAnimationFrame(e.id)}function yU(e,t){var r=bU();var n={id:requestAnimationFrame(function o(){bU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var xU=-1;function SU(e){if(void 0===e&&(e=!1),-1===xU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),xU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xU}var wU=null;function CU(e){if(void 0===e&&(e=!1),null===wU||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?wU="positive-descending":(t.scrollLeft=1,wU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),wU}return wU}var EU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function RU(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,Yc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Yc(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=gU(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=gU(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=gU(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(CU()){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&&vU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=yU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return AU(e,t),g(e),null};var b=t.prototype;return b.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)},b.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,b=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 v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b: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})},b.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()},b.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(CU()){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()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vU(this._resetIsScrollingTimeoutId)},b.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?EU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],M=R[1],P=[];if(n>0&&g)for(var I=A;I<=M;I++)for(var k=C;k<=E;k++)P.push(w(t,{columnIndex:k,data:d,isScrolling:v?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:Gr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(u||c||"div",{children:P,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._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]},b._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 AU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},MU=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},PU=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},IU=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]},kU=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?DU(e,t,r,i,0,n):TU(e,t,r,Math.max(0,i),n)},DU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IU(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},TU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IU(e,t,n,r).offset<o;)n+=a,a*=2;return DU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},OU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IU(e,t,r,i),u="column"===e?PU(t,i):MU(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}},LU=RU({getColumnOffset:function(e,t,r){return IU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return kU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:MU,getEstimatedTotalWidth:PU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return OU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return OU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return kU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IU("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}}),qU=function(e,t){return e};function NU(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,Yc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Yc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=gU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=gU(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=gU(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(CU()){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&&vU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=yU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return jU(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(CU()){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&&vU(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?qU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=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 M=E;M<=R;M++)A.push(w(t,{data:c,key:p(M,c),index:M,isScrolling:b?y:void 0,style:this._getItemStyle(M)}));var P=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Gr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"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 jU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},_U=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]},zU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=_U(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},FU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&_U(e,r,t).offset<n;)r+=i,i*=2;return zU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},$U=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},HU=NU({getItemOffset:function(e,t,r){return _U(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:$U,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=_U(e,t,o),p=$U(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?zU(e,t,o,0,r):FU(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=_U(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=_U(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 BU(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 WU=["style"],VU=["style"];function UU(e,t){var r=e.style,n=Yr(e,WU),o=t.style,i=Yr(t,VU);return!BU(r,o)&&!BU(n,i)}const GU=lR(0),YU=lR(0),KU=lR(0),XU=lR(e=>e(GU)+e(YU)),JU=lR(e=>{const t=e(sA),r=e(yk),n=t.height-(r?41:0);return{width:t.width,height:n}}),ZU=lR(e=>{const t=e(JU),r=e(LP),n=e(qP);return{width:t.width-n,height:t.height-r}}),QU=lR(e=>{const t=e(ZU),r=e(XU),n=e(KU);return Math.min(t.height-r,n)}),eG=lR(e=>{const t=e(pU),r=e(kR);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),tG=lR(-1),rG=BM(e=>lR(t=>t(tG)===e)),nG=({style:e})=>ur.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var oG=S.memo(nG,UU);const iG=()=>{},aG=e=>{e.preventDefault()};const sG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=xR(rG(t)),d=SR(tG),p=xR(kk),f=xR(KR),h=xR(BR),m=xR(AT),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=xR(WR),n=SR(ET),o=xR(RT(e));if(dW(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=uW(aG,e,n,iG);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=P(null),i=r&&!r.isNumeric,a=O(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t)},[t,n,e,i]);return IH({ref:o,callback:a}),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=lW(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=hW(o,i,e);a=pW(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?VP(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===XM.Selected?{...s,...i.selectedColors}:n===XM.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${pP}, ${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 ur.jsx("div",{className:`sn-table-cell ${x} ${bE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:EP(f,g.isLastColumn,m),borderLeftWidth:RP(f,g.isLastColumn,m),justifyContent:xP(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:ur.jsx(sW,{cellSelectionState:x,children:ur.jsx(oW,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return ur.jsx(oG,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var lG=N(sG,UU);const uG=FI(lR(async e=>{const t=e(IR),r=e(rA),n=e(pU).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(lk,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),cG=e=>{const t=P(e);return t.current=e,t},dG=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,pG=(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},fG=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},hG=(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:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=QI(h,e,a),C=!h&&e.qIsNull,E=C?nP(w):rP(e);f[r]={id:WA(),...e,align:XI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&ek(e,h),representation:NI({cell:e,representationProperties:y,attrExprInfoIndex:v,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})})},mG=({visibleRowCount:e,visibleColumnCount:t,gridState:r,setEstimatedCellHeight:n})=>{const o=xR(IR),i=xR(dA),a=xR(rA),s=xR(AR),l=xR(KR),u=xR(pU),c=xR(uG),d=xR(hk),p=xR(eG),f=P([]),h=O((e,t)=>{const r=Array.isArray(t)?t.slice(0,p):(e=>Array(e).fill(void 0))(p);return hG(e,u,r,d,o,s,n,l),f.current=r,r},[p,u,d,o,s,n,l]),[m,g]=M(()=>h(c??[]));uE(()=>{g(h(c??[]))},[c,l]);const b=((e,t)=>{const r=P(new Set),n=P(new Set),o=P(new Set),i=cG(e),a=cG(t),s=A(()=>({enqueue:e=>{const t=dG(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(dG(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=>a&&"getHyperCubeData"in a?a.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(fG(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[f,b]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-u.page*u.rowsPerPage);if(pG(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[f,b,u]);return D(()=>{const{qcx:n,qcy:i}=o.qHyperCube.qSize,a=r.current.overscanRowStartIndex,s=r.current.overscanColumnStartIndex,l=a+u.page*u.rowsPerPage,c=n-s,d=u.rowsPerPage-a,p=Math.min(100,c,n,t+5),f=Math.min(100,d,i,e+25);return y(s,l,p,f),()=>{b.clear()}},[o,e,t,u,b,y,r,i]),{rowsInPage:m,loadRows:y,loadColumns:v}},gG=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},bG=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,vG=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=xR(kk),i=xR(qk),{estimateLineCount:a}=oE(o.dimension.values),s=Pk(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])},yG=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=xR($I);j(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},xG=({isSnapshot:e,gridRef:t})=>{const r=xR(kk),n=xR(eG),[o,i]=M({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0}),a=r.contentLineHeight,s=r.contentMinRowHeight,l=!!r.contentStaticLineCount,u=Math.max(8e6/n,s)-9,c=u+9,d=Math.max(1,Math.min(r.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=xR(IR),n=xR(pU),o=xR(qk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;uE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),uE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,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(!bG(u.get(a),l))return e;const c={...e},d=e.rowHeights.get(i);u.set(a,l);const p=void 0===d||l>=d?l:gG(u);return c.rowHeights.set(i,p),c.sumHeight=e.sumHeight-(d??0)+p,n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:t}),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:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=vG({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return yG({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},SG=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);IH({ref:e,callback:r})};let wG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const CG=({loadRows:e,loadColumns:t,gridState:r})=>{const n=xR($I),o=xR(IR),i=xR(pU),a=xR(eG);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=wG.None,i=wG.None;return o=n>t?wG.Down:n<t?wG.Up:wG.None,i=r>e?wG.Right:r<e?wG.Left:wG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,u);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=u,r.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===wG.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===wG.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===wG.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===wG.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])},EG=()=>{},RG={current:null};const AG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},MG={overflow:"hidden",willChange:"auto"},PG=q((e,t)=>{const r=xR(hk),n=xR(ZU),o=SR(KU),i=xR(QU),a=xR(kk),s=xR($I),l=xR(IR),u=xR(KR),c=xR(qk),d=xR(eG),p=P(null),f=P(null),h=P({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),m=P(0),g=!!$P(l)?.content?.hoverEffect,{visibleRowCount:b,visibleColumnCount:v}=(e=>{const t=xR(qk),r=xR(ZU),n=xR(eG),o=Math.min(n,Math.ceil(r.height/e)),i=A(()=>t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}),[r,t]).count;return{visibleRowCount:o,visibleColumnCount:i}})(a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=xG({isSnapshot:!!l.snapshotData,gridRef:p}),{rowsInPage:C,loadRows:E,loadColumns:R}=mG({visibleRowCount:b,visibleColumnCount:v,gridState:h,setEstimatedCellHeight:x}),M=CG({loadRows:E,loadColumns:R,gridState:h}),I=gB(),k=A(()=>({rowsInPage:C,columns:r,isHoverEnabled:g,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I}),[C,r,g,w,y,I]);return j(()=>{1===m.current&&p.current?.scrollToItem({rowIndex:d-1,align:"start"})}),function(e){const t=SR(ET);D(()=>{t({type:JM.UpdatePageRows,payload:{pageRows:e}})},[t,e]),bB({updateShouldRefocus:EG,tableWrapperRef:RG})}(C),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(f.current?.clientHeight??i)-i,n=Math.round(r*e);m.current=e,1===m.current?(p.current?.scrollToItem({rowIndex:d-1,align:"start"}),p.current?.scrollTo({scrollLeft:t})):p.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[f,i,d]),SG(f,o),ur.jsx(LU,{"data-key":"body",ref:p,innerRef:f,style:MG,columnCount:r.length,columnWidth:e=>c[e],height:i,rowCount:d,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:n.width,itemData:k,onItemsRendered:M,itemKey:AG,className:"sn-table-body",direction:u,children:lG})});var IG=N(PG);const kG=({children:e})=>{const{width:t,height:r}=(()=>{const e=xR(ZU),t=xR(kk),r=xR(qk),n=xR(XU),o=xR(KU)+n;let i=xR(eG)*t.contentMinRowHeight+n;return o<2*e.height&&(i=o),{width:r.reduce((e,t)=>e+t,0),height:i}})();return ur.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},DG=(e,t)=>{const r=P(null),n=xR(qk);j(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return IH({ref:r,callback:o}),r},TG=Pc("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}})),OG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=xR(kk),s=xR(KR),l=xR($R),u=xR(AT),c=SR(OP),d=xR(fk),p=xR(UR),f=xR(qk)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:b,toggleSortOrder:v}=DW({isInteractionEnabled:p,column:h}),y=xR(NR),x=DG(e,i),S=n.length-1===e,w=y?xH:HH,{ref:C,isDragging:E}=rU(h,e),R=lW(h.id);return ur.jsxs(TG,{"data-dragging":E,ref:C,className:`sn-table-cell ${bE}`,title:l.passive?h.label:void 0,onClick:y?b:v,applicableStyle:{...a.header,...Y$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:EP(s,S,u),borderLeftWidth:RP(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:[ur.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),ur.jsx(IW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},LG=e=>{const[t,r]=M(new Map);uE(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>bG(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>gG(t),[t]),setMeasuredCellHeight:n}},qG=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},NG=e=>{const t=xR(dA),r=xR(IR),n=xR(pU),o=xR(qk);uE(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},jG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},_G=q((e,t)=>{const{columResizeHandler:r}=e,n=xR(hk),o=xR(ZU),i=SR(GU),a=S.useRef(null),s=P(null),l=xR(kk),u=xR(IR),c=xR(JR),d=xR(KR),p=xR(qk),{rowHeight:f,setMeasuredCellHeight:h}=LG(n),m=MW(c,u);return qG(t,a),NG(a),SG(s,i),ur.jsx(HU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...jG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h},direction:d,children:OG})});var zG=N(_G);const FG=q((e,t)=>{const{children:r,onScroll:n}=e,o=xR(KR),i=xR(VR),{width:a,height:s}=xR(JU);return ur.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),$G=({children:e})=>{const t=xR(KR),r=xR(ZU);return ur.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},HG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=xR(kk),s=xR(IR),l=xR(KR),u=xR(BR),c=xR(AT),d=DG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=lW(n[e].id);return ur.jsx("div",{className:`sn-table-cell ${bE}`,title:u?p:void 0,style:{...t,...a.totalRow,...Y$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:EP(l,m,c),borderLeftWidth:RP(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:ur.jsx(yH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},BG=q((e,t)=>{const{totals:r}=e,n=xR(hk),o=xR(ZU),i=SR(YU),a=P(null),s=P(null),l=xR(kk),u=xR(KR),c=xR(IR),d=xR(qk),{rowHeight:p,setMeasuredCellHeight:f}=LG(n);return qG(t,a),NG(a),SG(s,i),ur.jsx(HU,{ref:a,outerRef:s,layout:"horizontal",style:jG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f},direction:u,children:HG})});var WG=N(BG);const VG=(e,t,r)=>{const n=xR(KR),o=xR($I);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])};var UG=N(()=>{const e=xR(fk),t=P(null),r=P(null),n=P(null),o=P(null),i=VG(r,n,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);QH(),(e=>{const t=xR(mk),r=xR(pU),n=xR(dA),o=xR(eG);D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),uB(t);const s=ur.jsx(WG,{ref:n,totals:e},"totals");return ur.jsxs(KH,{children:[ur.jsx(FG,{ref:t,onScroll:i,children:ur.jsxs(kG,{children:[ur.jsxs($G,{children:[ur.jsx(zG,{ref:r,columResizeHandler:a}),e.atTop?s:null,ur.jsx(IG,{ref:o}),e.atBottom?s:null]}),ur.jsx(G$,{})]})}),ur.jsx(UH,{isPagination:!1})]})});var GG=N(()=>{const e=xR(IR),t=xR(sA),r=xR($R),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=xR(pk),s=xR(dA),l=xR(pA),u=xR(tA),[c,d]=wR(pU);return ur.jsxs(mH,{"data-testid":"sn-table",children:[ur.jsx(UG,{}),ur.jsx(dT,{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 YG=e=>{const t=e.get(rA),r=e.get(QR),n=e.get(PR),i=e.get(KR);o(()=>{n&&t&&(r?function(e){const t=e.get(KR),r=e.get(cA),n=zk(t);r.render(ur.jsx(Li,{stylisPlugins:"rtl"===t?[HM]:void 0,children:ur.jsx(kc,{theme:n,children:ur.jsx(hR,{store:e,children:ur.jsx(_k,{children:ur.jsx(sU,{})})})})}))}(e):function(e){const t=e.get(KR),r=e.get(cA),n=zk(t);r.render(ur.jsx(S.StrictMode,{children:ur.jsx(kc,{theme:n,children:ur.jsx(hR,{store:e,children:ur.jsx(_k,{children:ur.jsx(GG,{})})})})}))}(e))},[n,r,e,t,i])};function KG(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 XG=(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]}},JG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ZG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||tk.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},QG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=UI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=KG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ZG(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=XG(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,b=(JG(h,m,g)?d:d+1)+c;let v=p+c;const y=XG(p,o),x=y?.getBoundingClientRect();return y&&x&&(JG(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:ZG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},eY={version:JSON.stringify("6.24.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 tY=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),rY=e=>e.getStyle("object","straightTableV2","backgroundColor");function nY(r){return{qae:{properties:{initial:eY},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>DA({...e}),exportProperties:RA,exploration:TA},ext:_M(r),component(){const n=c(),i=e(()=>dR(),[!1!==n.usePagination]);i.set(AR,r);const s=d();i.set(lA,s),i.set(IR,n),i.set(CR,p()),i.set(rA,f()),i.set($R,h()),i.set(pA,m()),i.set(zR,g()),i.set(YR,t()),i.set(tA,b()),i.set(sA,v()),i.set(RR,y());const x=QC(n,s,tY,rY);i.set(dA,x),i.set(PR,lE(x,n,r)),i.set(ER,zt()),(e=>{const t=e.get(cA);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${bE}`);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(IR),r=e.get(rA),n=e.get(lA),o=e.get(aA),i=e.get(JR),a=e.get(QR);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get($I),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=QG(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:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),u(()=>({getViewState:()=>QG(t,e.get($I),n,i,a)}),[t,e,n,a])})({store:i}),YG(i)}}}export{nY as default};