@hpcc-js/dgrid2 2.3.1 → 2.3.3

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/dist/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])},t(e,o)};var n=function(){return n=Object.assign||function(e){for(var o,t=1,n=arguments.length;t<n;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},n.apply(this,arguments)};function r(e,o,t,n){var r,l=arguments.length,i=l<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,t,i):r(o,t))||i);return l>3&&i&&Object.defineProperty(o,t,i),i}function l(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function i(e,o,t){if(t||2===arguments.length)for(var n,r=0,l=o.length;r<l;r++)!n&&r in o||(n||(n=Array.prototype.slice.call(o,0,r)),n[r]=o[r]);return e.concat(n||Array.prototype.slice.call(o))}var c,s,a,u,d,f,_={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(e,o){for(var t in o)e[t]=o[t];return e}function v(e){var o=e.parentNode;o&&o.removeChild(e)}function m(e,o,t){var n,r,l,i={};for(l in o)"key"==l?n=o[l]:"ref"==l?r=o[l]:i[l]=o[l];if(arguments.length>2&&(i.children=arguments.length>3?c.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===i[l]&&(i[l]=e.defaultProps[l]);return w(e,i,n,r,null)}function w(e,o,t,n,r){var l={type:e,props:o,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++a:r};return null==r&&null!=s.vnode&&s.vnode(l),l}function b(e){return e.children}function y(e,o){this.props=e,this.context=o}function x(e,o){if(null==o)return e.__?x(e.__,e.__.__k.indexOf(e)+1):null;for(var t;o<e.__k.length;o++)if(null!=(t=e.__k[o])&&null!=t.__e)return t.__e;return"function"==typeof e.type?x(e):null}function C(e){var o,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(t=e.__k[o])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return C(e)}}function k(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!R.__r++||d!==s.debounceRendering)&&((d=s.debounceRendering)||setTimeout)(R)}function R(){for(var e;R.__r=u.length;)e=u.sort((function(e,o){return e.__v.__b-o.__v.__b})),u=[],e.some((function(e){var o,t,n,r,l,i;e.__d&&(l=(r=(o=e).__v).__e,(i=o.__P)&&(t=[],(n=g({},r)).__v=r.__v+1,T(i,r,n,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,t,null==l?x(r):l,r.__h),P(t,r),r.__e!=l&&C(r)))}))}function I(e,o,t,n,r,l,i,c,s,a){var u,d,f,h,g,v,m,y=n&&n.__k||p,C=y.length;for(t.__k=[],u=0;u<o.length;u++)if(null!=(h=t.__k[u]=null==(h=o[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?w(null,h,null,null,h):Array.isArray(h)?w(b,{children:h},null,null,null):h.__b>0?w(h.type,h.props,h.key,null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(f=y[u])||f&&h.key==f.key&&h.type===f.type)y[u]=void 0;else for(d=0;d<C;d++){if((f=y[d])&&h.key==f.key&&h.type===f.type){y[d]=void 0;break}f=null}T(e,h,f=f||_,r,l,i,c,s,a),g=h.__e,(d=h.ref)&&f.ref!=d&&(m||(m=[]),f.ref&&m.push(f.ref,null,h),m.push(d,h.__c||g,h)),null!=g?(null==v&&(v=g),"function"==typeof h.type&&h.__k===f.__k?h.__d=s=S(h,s,e):s=z(e,h,f,y,g,s),"function"==typeof t.type&&(t.__d=s)):s&&f.__e==s&&s.parentNode!=e&&(s=x(f))}for(t.__e=v,u=C;u--;)null!=y[u]&&("function"==typeof t.type&&null!=y[u].__e&&y[u].__e==t.__d&&(t.__d=x(n,u+1)),M(y[u],y[u]));if(m)for(u=0;u<m.length;u++)H(m[u],m[++u],m[++u])}function S(e,o,t){for(var n,r=e.__k,l=0;r&&l<r.length;l++)(n=r[l])&&(n.__=e,o="function"==typeof n.type?S(n,o,t):z(t,n,n,r,n.__e,o));return o}function E(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,o)})):o.push(e)),o}function z(e,o,t,n,r,l){var i,c,s;if(void 0!==o.__d)i=o.__d,o.__d=void 0;else if(null==t||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(c=l,s=0;(c=c.nextSibling)&&s<n.length;s+=2)if(c==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function F(e,o,t){"-"===o[0]?e.setProperty(o,t):e[o]=null==t?"":"number"!=typeof t||h.test(o)?t:t+"px"}function O(e,o,t,n,r){var l;e:if("style"===o)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(o in n)t&&o in t||F(e.style,o,"");if(t)for(o in t)n&&t[o]===n[o]||F(e.style,o,t[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/Capture$/,"")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=t,t?n||e.addEventListener(o,l?N:A,l):e.removeEventListener(o,l?N:A,l);else if("dangerouslySetInnerHTML"!==o){if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&o in e)try{e[o]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===o[0]&&"r"===o[1])?e.setAttribute(o,t):e.removeAttribute(o))}}function A(e){this.l[e.type+!1](s.event?s.event(e):e)}function N(e){this.l[e.type+!0](s.event?s.event(e):e)}function T(e,o,t,n,r,l,i,c,a){var u,d,f,_,p,h,v,m,w,x,C,k,R,S=o.type;if(void 0!==o.constructor)return null;null!=t.__h&&(a=t.__h,c=o.__e=t.__e,o.__h=null,l=[c]),(u=s.__b)&&u(o);try{e:if("function"==typeof S){if(m=o.props,w=(u=S.contextType)&&n[u.__c],x=u?w?w.props.value:u.__:n,t.__c?v=(d=o.__c=t.__c).__=d.__E:("prototype"in S&&S.prototype.render?o.__c=d=new S(m,x):(o.__c=d=new y(m,x),d.constructor=S,d.render=G),w&&w.sub(d),d.props=m,d.state||(d.state={}),d.context=x,d.__n=n,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=g({},d.__s)),g(d.__s,S.getDerivedStateFromProps(m,d.__s))),_=d.props,p=d.state,f)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,x)||o.__v===t.__v){d.props=m,d.state=d.__s,o.__v!==t.__v&&(d.__d=!1),d.__v=o,o.__e=t.__e,o.__k=t.__k,o.__k.forEach((function(e){e&&(e.__=o)})),d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,x),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(_,p,h)}))}if(d.context=x,d.props=m,d.__v=o,d.__P=e,C=s.__r,k=0,"prototype"in S&&S.prototype.render)d.state=d.__s,d.__d=!1,C&&C(o),u=d.render(d.props,d.state,d.context);else do{d.__d=!1,C&&C(o),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(n=g(g({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(_,p)),R=null!=u&&u.type===b&&null==u.key?u.props.children:u,I(e,Array.isArray(R)?R:[R],o,t,n,r,l,i,c,a),d.base=o.__e,o.__h=null,d.__h.length&&i.push(d),v&&(d.__E=d.__=null),d.__e=!1}else null==l&&o.__v===t.__v?(o.__k=t.__k,o.__e=t.__e):o.__e=D(t.__e,o,t,n,r,l,i,a);(u=s.diffed)&&u(o)}catch(e){o.__v=null,(a||null!=l)&&(o.__e=c,o.__h=!!a,l[l.indexOf(c)]=null),s.__e(e,o,t)}}function P(e,o){s.__c&&s.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){s.__e(e,o.__v)}}))}function D(e,o,t,n,r,l,i,s){var a,u,d,f=t.props,p=o.props,h=o.type,g=0;if("svg"===h&&(r=!0),null!=l)for(;g<l.length;g++)if((a=l[g])&&"setAttribute"in a==!!h&&(h?a.localName===h:3===a.nodeType)){e=a,l[g]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),l=null,s=!1}if(null===h)f===p||s&&e.data===p||(e.data=p);else{if(l=l&&c.call(e.childNodes),u=(f=t.props||_).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!s){if(null!=l)for(f={},g=0;g<e.attributes.length;g++)f[e.attributes[g].name]=e.attributes[g].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,o,t,n,r){var l;for(l in t)"children"===l||"key"===l||l in o||O(e,l,null,t[l],n);for(l in o)r&&"function"!=typeof o[l]||"children"===l||"key"===l||"value"===l||"checked"===l||t[l]===o[l]||O(e,l,o[l],t[l],n)}(e,p,f,r,s),d)o.__k=[];else if(g=o.props.children,I(e,Array.isArray(g)?g:[g],o,t,n,r&&"foreignObject"!==h,l,i,l?l[0]:t.__k&&x(t,0),s),null!=l)for(g=l.length;g--;)null!=l[g]&&v(l[g]);s||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===h&&!g||"option"===h&&g!==f.value)&&O(e,"value",g,f.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&O(e,"checked",g,f.checked,!1))}return e}function H(e,o,t){try{"function"==typeof e?e(o):e.current=o}catch(e){s.__e(e,t)}}function M(e,o,t){var n,r;if(s.unmount&&s.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||H(n,null,o)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){s.__e(e,o)}n.base=n.__P=null}if(n=e.__k)for(r=0;r<n.length;r++)n[r]&&M(n[r],o,"function"!=typeof e.type);t||null==e.__e||v(e.__e),e.__e=e.__d=void 0}function G(e,o,t){return this.constructor(e,t)}function L(e,o,t){var n,r,l;s.__&&s.__(e,o),r=(n="function"==typeof t)?null:t&&t.__k||o.__k,l=[],T(o,e=(!n&&t||o).__k=m(b,null,[e]),r||_,_,void 0!==o.ownerSVGElement,!n&&t?[t]:r?null:o.firstChild?c.call(o.childNodes):null,l,!n&&t?t:r?r.__e:o.firstChild,n),P(l,e)}function W(e,o){var t={__c:o="__cC"+f++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[o]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(k)},this.sub=function(e){t.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),o&&o.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}c=p.slice,s={__e:function(e,o,t,n){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,n||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},a=0,y.prototype.setState=function(e,o){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},t),this.props)),e&&g(t,e),null!=e&&this.__v&&(o&&this.__h.push(o),k(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},y.prototype.render=b,u=[],R.__r=0,f=0;var K,j,U,$,B=0,V=[],q=[],X=s.__b,Y=s.__r,J=s.diffed,Z=s.__c,Q=s.unmount;function ee(e,o){s.__h&&s.__h(j,e,B||o),B=0;var t=j.__H||(j.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:q}),t.__[e]}function oe(e){return B=1,function(e,o,t){var n=ee(K++,2);if(n.t=e,!n.__c&&(n.__=[t?t(o):_e(void 0,o),function(e){var o=n.__N?n.__N[0]:n.__[0],t=n.t(o,e);o!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=j,!j.u)){j.u=!0;var r=j.shouldComponentUpdate;j.shouldComponentUpdate=function(e,o,t){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter((function(e){return e.__c}));return(l.every((function(e){return!e.__N}))||!l.every((function(e){if(!e.__N)return!0;var o=e.__[0];return e.__=e.__N,e.__N=void 0,o===e.__[0]})))&&(!r||r.call(this,e,o,t))}}return n.__N||n.__}(_e,e)}function te(e,o){var t=ee(K++,3);!s.__s&&fe(t.__H,o)&&(t.__=e,t.i=o,j.__H.__h.push(t))}function ne(e,o){var t=ee(K++,4);!s.__s&&fe(t.__H,o)&&(t.__=e,t.i=o,j.__h.push(t))}function re(e){return B=5,le((function(){return{current:e}}),[])}function le(e,o){var t=ee(K++,7);return fe(t.__H,o)?(t.__V=e(),t.i=o,t.__h=e,t.__V):t.__}function ie(e,o){return B=8,le((function(){return e}),o)}function ce(e){var o=j.context[e.__c],t=ee(K++,9);return t.c=e,o?(null==t.__&&(t.__=!0,o.sub(j)),o.props.value):e.__}function se(){for(var e;e=V.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(de),e.__H.__h=[]}catch(o){e.__H.__h=[],s.__e(o,e.__v)}}s.__b=function(e){j=null,X&&X(e)},s.__r=function(e){Y&&Y(e),K=0;var o=(j=e.__c).__H;o&&(U===j?(o.__h=[],j.__h=[],o.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=q,e.__N=e.i=void 0}))):(o.__h.forEach(ue),o.__h.forEach(de),o.__h=[])),U=j},s.diffed=function(e){J&&J(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(1!==V.push(o)&&$===s.requestAnimationFrame||(($=s.requestAnimationFrame)||function(e){var o,t=function(){clearTimeout(n),ae&&cancelAnimationFrame(o),setTimeout(e)},n=setTimeout(t,100);ae&&(o=requestAnimationFrame(t))})(se)),o.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==q&&(e.__=e.__V),e.i=void 0,e.__V=q}))),U=j=null},s.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ue),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(t){o.some((function(e){e.__h&&(e.__h=[])})),o=[],s.__e(t,e.__v)}})),Z&&Z(e,o)},s.unmount=function(e){Q&&Q(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{ue(e)}catch(e){o=e}})),o&&s.__e(o,t.__v))};var ae="function"==typeof requestAnimationFrame;function ue(e){var o=j,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),j=o}function de(e){var o=j;e.__c=e.__(),j=o}function fe(e,o){return!e||e.length!==o.length||o.some((function(o,t){return o!==e[t]}))}function _e(e,o){return"function"==typeof o?o(e):o}function pe(e,o){for(var t in o)e[t]=o[t];return e}function he(e,o){for(var t in e)if("__source"!==t&&!(t in o))return!0;for(var n in o)if("__source"!==n&&e[n]!==o[n])return!0;return!1}function ge(e){this.props=e}function ve(e,o){function t(e){var t=this.props.ref,n=t==e.ref;return!n&&t&&(t.call?t(null):t.current=null),o?!o(this.props,e)||!n:he(this.props,e)}function n(o){return this.shouldComponentUpdate=t,m(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ge.prototype=new y).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,o){return he(this.props,e)||he(this.state,o)};var me=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var we="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function be(e){function o(o){var t=pe({},o);return delete t.ref,e(t,o.ref||null)}return o.$$typeof=we,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var ye=s.__e;s.__e=function(e,o,t,n){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=t.__e,o.__k=t.__k),r.__c(e,o);ye(e,o,t,n)};var xe=s.unmount;function Ce(){this.__u=0,this.t=null,this.__b=null}function ke(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function Re(){this.u=null,this.o=null}s.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&!0===e.__h&&(e.type=null),xe&&xe(e)},(Ce.prototype=new y).__c=function(e,o){var t=o.__c,n=this;null==n.t&&(n.t=[]),n.t.push(t);var r=ke(n.__v),l=!1,i=function(){l||(l=!0,t.__R=null,r?r(c):c())};t.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=function e(o,t,n){return o&&(o.__v=null,o.__k=o.__k&&o.__k.map((function(o){return e(o,t,n)})),o.__c&&o.__c.__P===t&&(o.__e&&n.insertBefore(o.__e,o.__d),o.__c.__e=!0,o.__c.__P=n)),o}(e,e.__c.__P,e.__c.__O)}var o;for(n.setState({__a:n.__b=null});o=n.t.pop();)o.forceUpdate()}},s=!0===o.__h;n.__u++||s||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function e(o,t,n){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),o.__c.__H=null),null!=(o=pe({},o)).__c&&(o.__c.__P===n&&(o.__c.__P=t),o.__c=null),o.__k=o.__k&&o.__k.map((function(o){return e(o,t,n)}))),o}(this.__b,t,n.__O=n.__P)}this.__b=null}var r=o.__a&&m(b,null,e.fallback);return r&&(r.__h=null),[m(b,null,o.__a?null:e.children),r]};var Ie=function(e,o,t){if(++t[1]===t[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(Re.prototype=new y).__a=function(e){var o=this,t=ke(o.__v),n=o.o.get(e);return n[0]++,function(r){var l=function(){o.props.revealOrder?(n.push(r),Ie(o,e,n)):r()};t?t(l):l()}},Re.prototype.render=function(e){this.u=null,this.o=new Map;var o=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var t=o.length;t--;)this.o.set(o[t],this.u=[1,0,this.u]);return e.children},Re.prototype.componentDidUpdate=Re.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,t){Ie(e,t,o)}))};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ee=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ze="undefined"!=typeof document,Fe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Oe=s.event;function Ae(){}function Ne(){return this.cancelBubble}function Te(){return this.defaultPrevented}s.event=function(e){return Oe&&(e=Oe(e)),e.persist=Ae,e.isPropagationStopped=Ne,e.isDefaultPrevented=Te,e.nativeEvent=e};var Pe={configurable:!0,get:function(){return this.class}},De=s.vnode;s.vnode=function(e){var o=e.type,t=e.props,n=t;if("string"==typeof o){var r=-1===o.indexOf("-");for(var l in n={},t){var i=t[l];ze&&"children"===l&&"noscript"===o||"value"===l&&"defaultValue"in t&&null==i||("defaultValue"===l&&"value"in t&&null==t.value?l="value":"download"===l&&!0===i?i="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+o)&&!Fe(t.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&Ee.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===i&&(i=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),n[l]&&(l="oninputCapture")),n[l]=i)}"select"==o&&n.multiple&&Array.isArray(n.value)&&(n.value=E(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==o&&null!=n.defaultValue&&(n.value=E(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),e.props=n,t.class!=t.className&&(Pe.enumerable="className"in t,null!=t.className&&(n.class=t.className),Object.defineProperty(n,"className",Pe))}e.$$typeof=Se,De&&De(e)};var He=s.__r;function Me(e){var o,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(n&&(n+=" "),n+=t);else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Ge(){for(var e,o,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(o=Me(e))&&(n&&(n+=" "),n+=o);return n}s.__r=function(e){He&&He(e),e.__c};var Le=0;function We(e,o,t,n,r){var l,i,c={};for(i in o)"ref"==i?l=o[i]:c[i]=o[i];var a={type:e,props:c,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Le,__source:r,__self:n};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===c[i]&&(c[i]=l[i]);return s.vnode&&s.vnode(a),a}function Ke(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}Ke(".c1wupbe700-beta12{background-color:inherit;border-block-end:1px solid var(--rdg-border-color);border-inline-end:1px solid var(--rdg-border-color);contain:strict;contain:size layout style paint;grid-row-start:var(--rdg-grid-row-start);outline:none;overflow:hidden;overflow:clip;padding-block:0;padding-inline:8px;text-overflow:ellipsis;white-space:nowrap}.c1wupbe700-beta12[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}.cd0kgiy700-beta12 .c1wupbe700-beta12{contain:content}.c1730fa4700-beta12{position:sticky;z-index:1}.c9dpaye700-beta12{box-shadow:calc(2px*var(--rdg-sign)) 0 5px -2px hsla(0,0%,53%,.3)}",{insertAt:"top"});Ke('.r104f42s700-beta12{--rdg-color:#000;--rdg-border-color:#ddd;--rdg-summary-border-color:#aaa;--rdg-background-color:#fff;--rdg-header-background-color:#f9f9f9;--rdg-row-hover-background-color:#f5f5f5;--rdg-row-selected-background-color:#dbecfa;--row-selected-hover-background-color:#c9e3f8;--rdg-checkbox-color:#005194;--rdg-checkbox-focus-color:#61b8ff;--rdg-checkbox-disabled-border-color:#ccc;--rdg-checkbox-disabled-background-color:#ddd;--rdg-selection-color:#66afe9;--rdg-font-size:14px;content-visibility:auto;background-color:var(--rdg-background-color);block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;color:var(--rdg-color);color-scheme:var(--rdg-color-scheme,light dark);contain:strict;contain:size layout style paint;display:grid;font-size:var(--rdg-font-size);overflow:auto;user-select:none}@supports not (contain:strict){.r104f42s700-beta12{position:relative;z-index:0}}.r104f42s700-beta12 *,.r104f42s700-beta12 :after,.r104f42s700-beta12 :before{box-sizing:inherit}.r104f42s700-beta12:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s700-beta12.rdg-dark{--rdg-color-scheme:dark;--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}.r104f42s700-beta12.rdg-light{--rdg-color-scheme:light}@media (prefers-color-scheme:dark){.r104f42s700-beta12:not(.rdg-light){--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}}.v7ly7s700-beta12.r1otpg64700-beta12{cursor:move}.fc4f4zb700-beta12{grid-column:1/-1;pointer-events:none;z-index:4}',{insertAt:"top"});Ke('.r1otpg64700-beta12{background-color:var(--rdg-background-color);display:contents;line-height:var(--rdg-row-height)}.r1otpg64700-beta12:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg64700-beta12[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg64700-beta12[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.rel5gk2700-beta12{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}.r1qymf1z700-beta12:before{border-inline-start:2px solid var(--rdg-selection-color);content:"";display:inline-block;height:100%;inset-inline-start:0;position:sticky}',{insertAt:"top"});const je="rdg-row r1otpg64700-beta12",Ue="rdg-row-selected";Ke('.cd9l4jz700-beta12{align-items:center;cursor:pointer;display:flex;inset:0;justify-content:center;margin-inline-end:1px;position:absolute}.c1noyk41700-beta12{all:unset}.cdwjxv8700-beta12{background-color:var(--rdg-background-color);block-size:20px;border:2px solid var(--rdg-border-color);content:"";inline-size:20px}.c1noyk41700-beta12:checked+.cdwjxv8700-beta12{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.c1noyk41700-beta12:focus+.cdwjxv8700-beta12{border-color:var(--rdg-checkbox-focus-color)}.cca4mwn700-beta12{cursor:default}.cca4mwn700-beta12 .cdwjxv8700-beta12{background-color:var(--rdg-checkbox-disabled-background-color);border-color:var(--rdg-checkbox-disabled-border-color)}',{insertAt:"top"});const $e=be((function({onChange:e,...o},t){return We("label",{className:Ge("rdg-checkbox-label cd9l4jz700-beta12",o.disabled&&"rdg-checkbox-label-disabled cca4mwn700-beta12"),children:[We("input",{type:"checkbox",ref:t,...o,className:"rdg-checkbox-input c1noyk41700-beta12",onChange:function(o){e(o.target.checked,o.nativeEvent.shiftKey)}}),We("div",{className:"rdg-checkbox cdwjxv8700-beta12"})]})})),Be="undefined"==typeof window?te:ne;function Ve(e){const o=re(null);return Be((()=>{var t;e&&(null==(t=o.current)||t.focus({preventScroll:!0}))}),[e]),{ref:o,tabIndex:e?0:-1}}const qe=W(void 0),Xe=qe.Provider;function Ye(){return ce(qe)}function Je({value:e,isCellSelected:o,disabled:t,onChange:n,"aria-label":r,"aria-labelledby":l}){const{ref:i,tabIndex:c}=Ve(o);return We(Ye().checkboxFormatter,{"aria-label":r,"aria-labelledby":l,ref:i,tabIndex:c,disabled:t,checked:e,onChange:n})}function Ze(e){try{return We(b,{children:e.row[e.column.key]})}catch{return null}}Ke(".gch972y700-beta12{outline:none}.cz2qf0d700-beta12{stroke:currentColor;stroke-width:1.5px;fill:transparent;margin-inline-start:4px;vertical-align:middle}.cz2qf0d700-beta12>path{transition:d .1s}",{insertAt:"top"});function Qe({groupKey:e,isExpanded:o,isCellSelected:t,toggleGroup:n}){const{ref:r,tabIndex:l}=Ve(t);return We("span",{ref:r,className:"rdg-group-cell-content gch972y700-beta12",tabIndex:l,onKeyDown:function({key:e}){"Enter"===e&&n()},children:[e,We("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret cz2qf0d700-beta12","aria-hidden":!0,children:We("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}const eo=W(void 0),oo=eo.Provider,to=W(void 0),no=to.Provider;function ro(){const e=ce(eo),o=ce(to);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}const lo="select-row";const io={key:lo,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>We(Je,{"aria-label":"Select All",isCellSelected:e.isCellSelected,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,t]=ro();return We(Je,{"aria-label":"Select",isCellSelected:e.isCellSelected,value:o,onChange:(o,n)=>{t({row:e.row,checked:o,isShiftClick:n})}})},groupFormatter:function(e){const[o,t]=ro();return We(Je,{"aria-label":"Select Group",isCellSelected:e.isCellSelected,value:o,onChange:o=>{t({row:e.row,checked:o,isShiftClick:!1})}})}};function co(e,o,t){const n="function"==typeof e.colSpan?e.colSpan(t):1;if(Number.isInteger(n)&&n>1&&(!e.frozen||e.idx+n-1<=o))return n}const so=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function ao(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function uo({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function fo({selectedPosition:e,columns:o,rows:t,isGroupRow:n}){const r=o[e.idx],l=t[e.rowIdx];return!n(l)&&_o(r,l)}function _o(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}function po({rows:e,summaryRows:o,rowIdx:t,lastFrozenColumnIndex:n,column:r,isGroupRow:l}){if(-1===t)return co(r,n,{type:"HEADER"});if(t>=0&&t<e.length){const o=e[t];return l(o)?void 0:co(r,n,{type:"ROW",row:o})}return o?co(r,n,{type:"SUMMARY",row:o[t-e.length]}):void 0}function ho(e,o){return void 0!==o?{"--rdg-grid-row-start":e,"--rdg-row-height":`${o}px`}:{"--rdg-grid-row-start":e}}function go(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function vo(e,...o){return Ge("rdg-cell c1wupbe700-beta12",...o,e.frozen&&"rdg-cell-frozen c1730fa4700-beta12",e.isLastFrozenColumn&&"rdg-cell-frozen-last c9dpaye700-beta12")}const{min:mo,max:wo,round:bo,floor:yo,sign:xo,abs:Co,ceil:ko}=Math;function Ro(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Io(e,{minWidth:o,maxWidth:t}){return e=wo(e,o),"number"==typeof t&&t>o?mo(e,t):e}function So({key:e,width:o},t,n){return t.has(e)?t.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?yo(n*parseInt(o,10)/100):void 0}function Eo(e){return e-(1===devicePixelRatio?0:ko(devicePixelRatio))}function zo(e){const o=re(e);return te((()=>{o.current=e})),ie(((...e)=>{o.current(...e)}),[])}function Fo(e){const[o,t]=oe(!1);o&&!e&&t(!1);const n=ie((e=>{null===e||e.contains(document.activeElement)||e.focus({preventScroll:!0})}),[]);return{ref:e?n:void 0,tabIndex:e&&!o?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&t(!0)}:void 0}}function Oo({rawRows:e,rowHeight:o,clientHeight:t,scrollTop:n,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[s,a]=le((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[t,...n],r)=>{let i=0;const c={};for(const[s,a]of Object.entries(l(e,t))){const[e,t]=0===n.length?[a,a.length]:o(a,n,r+i+1);c[s]={childRows:a,childGroups:e,startRowIndex:r+i},i+=t+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[u,d]=le((()=>{const o=new Set;if(!s)return[e,r];const t=[],n=(e,r,l)=>{var c;(c=e,Array.isArray(c))?t.push(...e):Object.keys(e).forEach(((c,s,a)=>{var u;const d=void 0!==r?`${r}__${c}`:c,f=null!=(u=null==i?void 0:i.has(d))&&u,{childRows:_,childGroups:p,startRowIndex:h}=e[c],g={id:d,parentId:r,groupKey:c,isExpanded:f,childRows:_,level:l,posInSet:s,startRowIndex:h,setSize:a.length};t.push(g),o.add(g),f&&n(p,d,l+1)}))};return n(s,void 0,0),[t,r];function r(e){return o.has(e)}}),[i,s,e]),{totalRowHeight:f,gridTemplateRows:_,getRowTop:p,getRowHeight:h,findRowIdx:g}=le((()=>{if("number"==typeof o)return{totalRowHeight:o*u.length,gridTemplateRows:` repeat(${u.length}, ${o}px)`,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>yo(e/o)};let e=0,t=" ";const n=u.map((n=>{const r=d(n)?o({type:"GROUP",row:n}):o({type:"ROW",row:n}),l={top:e,height:r};return t+=`${r}px `,e+=r,l})),r=e=>wo(0,mo(u.length-1,e));return{totalRowHeight:e,gridTemplateRows:t,getRowTop:e=>n[r(e)].top,getRowHeight:e=>n[r(e)].height,findRowIdx(e){let o=0,t=n.length-1;for(;o<=t;){const r=o+yo((t-o)/2),l=n[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(t=r-1),o>t)return t}return 0}}}),[d,o,u]);let v=0,m=u.length-1;if(c){const e=4,o=g(n),r=g(n+t);v=wo(0,o-e),m=mo(u.length-1,r+e)}return{rowOverscanStartIdx:v,rowOverscanEndIdx:m,rows:u,rowsCount:a,totalRowHeight:f,gridTemplateRows:_,isGroupRow:d,getRowTop:p,getRowHeight:h,findRowIdx:g}}Ke(".h1tr5c9i700-beta12{cursor:pointer;display:flex}.h1tr5c9i700-beta12:focus{outline:none}.h19r0msv700-beta12{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}",{insertAt:"top"});function Ao({column:e,sortDirection:o,priority:t,onSort:n,isCellSelected:r}){return e.sortable?We(No,{onSort:n,sortDirection:o,priority:t,isCellSelected:r,children:e.name}):We(b,{children:e.name})}function No({onSort:e,sortDirection:o,priority:t,children:n,isCellSelected:r}){const l=Ye().sortIcon,{ref:i,tabIndex:c}=Ve(r);return We("span",{ref:i,tabIndex:c,className:"rdg-header-sort-cell h1tr5c9i700-beta12",onClick:function(o){e(o.ctrlKey||o.metaKey)},onKeyDown:function(o){" "!==o.key&&"Enter"!==o.key||(o.preventDefault(),e(o.ctrlKey||o.metaKey))},children:[We("span",{className:"rdg-header-sort-name h19r0msv700-beta12",children:n}),We("span",{children:[We(l,{sortDirection:o}),t]})]})}Ke('.celq7o9700-beta12{touch-action:none}.celq7o9700-beta12:after{content:"";cursor:col-resize;inline-size:10px;inset-block-end:0;inset-block-start:0;inset-inline-end:0;position:absolute}',{insertAt:"top"});function To({column:e,colSpan:o,isCellSelected:t,onColumnResize:n,allRowsSelected:r,onAllRowsSelectionChange:l,sortColumns:i,onSortColumnsChange:c,selectCell:s,shouldFocusGrid:a,direction:u}){var d,f;const _="rtl"===u,{ref:p,tabIndex:h,onFocus:g}=Fo(t),v=null==i?void 0:i.findIndex((o=>o.columnKey===e.key)),m=void 0!==v&&v>-1?i[v]:void 0,w=null==m?void 0:m.direction,b=void 0!==m&&i.length>1?v+1:void 0,y=w&&!b?"ASC"===w?"ascending":"descending":void 0,x=vo(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-beta12"),C=null!=(d=e.headerRenderer)?d:Ao;return We("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":t,"aria-sort":y,"aria-colspan":o,ref:p,tabIndex:a?0:h,className:x,style:{...go(e,o),minWidth:e.minWidth,maxWidth:null!=(f=e.maxWidth)?f:void 0},onFocus:function(e){null==g||g(e),a&&s(0)},onClick:function(){s(e.idx)},onDoubleClick:e.resizable?function(o){const{right:t,left:r}=o.currentTarget.getBoundingClientRect();(_?o.clientX-r:t-o.clientX)>11||n(e,"auto")}:void 0,onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:t,pointerId:r}=o,{right:l,left:i}=t.getBoundingClientRect(),c=_?o.clientX-i:l-o.clientX;function s(o){const{right:r,left:l}=t.getBoundingClientRect(),i=_?r+c-o.clientX:o.clientX+c-l;i>0&&n(e,Io(i,e))}c>11||(t.setPointerCapture(r),t.addEventListener("pointermove",s),t.addEventListener("lostpointercapture",(function e(){t.removeEventListener("pointermove",s),t.removeEventListener("lostpointercapture",e)})))}:void 0,children:We(C,{column:e,sortDirection:w,priority:b,onSort:function(o){if(null==c)return;const{sortDescendingFirst:t}=e;if(void 0===m){const n={columnKey:e.key,direction:t?"DESC":"ASC"};c(i&&o?[...i,n]:[n])}else{let n;if((t&&"DESC"===w||!t&&"ASC"===w)&&(n={columnKey:e.key,direction:"ASC"===w?"DESC":"ASC"}),o){const e=[...i];n?e[v]=n:e.splice(v,1),c(e)}else c(n?[n]:[])}},allRowsSelected:r,onAllRowsSelectionChange:l,isCellSelected:t})})}Ke(".h197vzie700-beta12{background-color:var(--rdg-header-background-color);display:contents;font-weight:700;line-height:var(--rdg-header-row-height)}.h197vzie700-beta12>.c1wupbe700-beta12{inset-block-start:0;position:sticky;z-index:2}.h197vzie700-beta12>.c1730fa4700-beta12{z-index:3}",{insertAt:"top"});function Po({columns:e,allRowsSelected:o,onAllRowsSelectionChange:t,onColumnResize:n,sortColumns:r,onSortColumnsChange:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:s,shouldFocusGrid:a,direction:u}){const d=[];for(let f=0;f<e.length;f++){const _=e[f],p=co(_,i,{type:"HEADER"});void 0!==p&&(f+=p-1),d.push(We(To,{column:_,colSpan:p,isCellSelected:c===_.idx,onColumnResize:n,allRowsSelected:o,onAllRowsSelectionChange:t,onSortColumnsChange:l,sortColumns:r,selectCell:s,shouldFocusGrid:a&&0===f,direction:u},_.key))}return We("div",{role:"row","aria-rowindex":1,className:Ge("rdg-header-row h197vzie700-beta12",-1===c&&Ue),style:ho(1),children:d})}const Do=ve(Po);Ke(".c1bmg16t700-beta12,.ccpfvsn700-beta12{background-color:#ccf}.c1bmg16t700-beta12.ccpfvsn700-beta12{background-color:#99f}",{insertAt:"top"});function Ho({column:e,colSpan:o,isCellSelected:t,isCopied:n,isDraggedOver:r,row:l,dragHandle:i,onRowClick:c,onRowDoubleClick:s,onRowChange:a,selectCell:u,...d}){const{ref:f,tabIndex:_,onFocus:p}=Fo(t),{cellClass:h}=e,g=vo(e,"function"==typeof h?h(l):h,n&&"rdg-cell-copied ccpfvsn700-beta12",r&&"rdg-cell-dragged-over c1bmg16t700-beta12");function v(o){u(l,e,o)}return We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":t,"aria-colspan":o,"aria-readonly":!_o(e,l)||void 0,ref:f,tabIndex:_,className:g,style:go(e,o),onClick:function(){var o;v(null==(o=e.editorOptions)?void 0:o.editOnClick),null==c||c(l,e)},onDoubleClick:function(){v(!0),null==s||s(l,e)},onContextMenu:function(){v()},onFocus:p,...d,children:!e.rowGroup&&We(b,{children:[We(e.formatter,{column:e,row:l,isCellSelected:t,onRowChange:a}),i]})})}const Mo=ve(Ho);function Go({className:e,rowIdx:o,gridRowStart:t,height:n,selectedCellIdx:r,isRowSelected:l,copiedCellIdx:i,draggedOverCellIdx:c,lastFrozenColumnIndex:s,row:a,viewportColumns:u,selectedCellEditor:d,selectedCellDragHandle:f,onRowClick:_,onRowDoubleClick:p,rowClass:h,setDraggedOverRowIdx:g,onMouseEnter:v,onRowChange:m,selectCell:w,...b},y){const x=zo((e=>{m(o,e)}));e=Ge(je,"rdg-row-"+(o%2==0?"even":"odd"),null==h?void 0:h(a),e,-1===r&&Ue);const C=[];for(let e=0;e<u.length;e++){const o=u[e],{idx:t}=o,n=co(o,s,{type:"ROW",row:a});void 0!==n&&(e+=n-1);const l=r===t;l&&d?C.push(d):C.push(We(Mo,{column:o,colSpan:n,row:a,isCopied:i===t,isDraggedOver:c===t,isCellSelected:l,dragHandle:l?f:void 0,onRowClick:_,onRowDoubleClick:p,onRowChange:x,selectCell:w},o.key))}return We(oo,{value:l,children:We("div",{role:"row",ref:y,className:e,onMouseEnter:function(e){null==g||g(o),null==v||v(e)},style:ho(t,n),...b,children:C})})}const Lo=ve(be(Go));function Wo({id:e,groupKey:o,childRows:t,isExpanded:n,isCellSelected:r,column:l,row:i,groupColumnIndex:c,toggleGroup:s}){const{ref:a,tabIndex:u,onFocus:d}=Fo(r);function f(){s(e)}const _=l.rowGroup&&c===l.idx;return We("div",{role:"gridcell","aria-colindex":l.idx+1,"aria-selected":r,ref:a,tabIndex:u,className:vo(l),style:{...go(l),cursor:_?"pointer":"default"},onClick:_?f:void 0,onFocus:d,children:(!l.rowGroup||c===l.idx)&&l.groupFormatter&&We(l.groupFormatter,{groupKey:o,childRows:t,column:l,row:i,isExpanded:n,isCellSelected:r,toggleGroup:f})},l.key)}const Ko=ve(Wo);Ke(".gyxx7e9700-beta12:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e9700-beta12>.c1wupbe700-beta12:not(:last-child):not(.c9dpaye700-beta12){border-inline-end:none}",{insertAt:"top"});function jo({id:e,groupKey:o,viewportColumns:t,childRows:n,rowIdx:r,row:l,gridRowStart:i,height:c,level:s,isExpanded:a,selectedCellIdx:u,isRowSelected:d,selectGroup:f,toggleGroup:_,...p}){const h=t[0].key===lo?s+1:s;return We(oo,{value:d,children:We("div",{role:"row","aria-level":s,"aria-expanded":a,className:Ge(je,"rdg-group-row gyxx7e9700-beta12","rdg-row-"+(r%2==0?"even":"odd"),-1===u&&Ue),onClick:function(){f(r)},style:ho(i,c),...p,children:t.map((t=>We(Ko,{id:e,groupKey:o,childRows:n,isExpanded:a,isCellSelected:u===t.idx,column:t,row:l,groupColumnIndex:h,toggleGroup:_},t.key)))})})}const Uo=ve(jo);Ke(".s1n3hxke700-beta12{inset-block-end:var(--rdg-summary-row-bottom);inset-block-start:var(--rdg-summary-row-top)}",{insertAt:"top"});function $o({column:e,colSpan:o,row:t,isCellSelected:n,selectCell:r}){const{ref:l,tabIndex:i,onFocus:c}=Fo(n),{summaryFormatter:s,summaryCellClass:a}=e,u=vo(e,"s1n3hxke700-beta12","function"==typeof a?a(t):a);return We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":n,ref:l,tabIndex:i,className:u,style:go(e,o),onClick:function(){r(t,e)},onFocus:c,children:s&&We(s,{column:e,row:t,isCellSelected:n})})}const Bo=ve($o);Ke(".snfqesz700-beta12.r1otpg64700-beta12{line-height:var(--rdg-summary-row-height)}.snfqesz700-beta12.r1otpg64700-beta12>.c1wupbe700-beta12{position:sticky}.s1jijrjz700-beta12>.c1wupbe700-beta12{border-block-start:2px solid var(--rdg-summary-border-color)}",{insertAt:"top"});function Vo({rowIdx:e,gridRowStart:o,row:t,viewportColumns:n,top:r,bottom:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:s,"aria-rowindex":a}){const u=[];for(let e=0;e<n.length;e++){const o=n[e],r=co(o,i,{type:"SUMMARY",row:t});void 0!==r&&(e+=r-1);const l=c===o.idx;u.push(We(Bo,{column:o,colSpan:r,row:t,isCellSelected:l,selectCell:s},o.key))}return We("div",{role:"row","aria-rowindex":a,className:Ge(je,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz700-beta12",0===e&&"s1jijrjz700-beta12",-1===c&&Ue),style:{...ho(o),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:u})}const qo=ve(Vo);Ke(".c1tngyp1700-beta12.rdg-cell{padding:0}",{insertAt:"top"});function Xo({column:e,colSpan:o,row:t,onRowChange:n,closeEditor:r,scrollToCell:l}){var i,c,s;const a=re(),u=!1!==(null==(i=e.editorOptions)?void 0:i.commitOnOutsideClick),d=zo((()=>{_(!0)}));function f(){cancelAnimationFrame(a.current)}function _(e){e?n(t,!0):r()}te((()=>{if(u)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),f()};function e(){a.current=requestAnimationFrame(d)}}),[u,d]);const{cellClass:p}=e,h=vo(e,"rdg-editor-container","function"==typeof p?p(t):p,!(null!=(c=e.editorOptions)&&c.renderFormatter)&&"c1tngyp1700-beta12");return We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":!0,className:h,style:go(e,o),onKeyDown:function(o){if("Escape"===o.key)o.stopPropagation(),_();else if("Enter"===o.key)o.stopPropagation(),_(!0),l();else{var t,n;(null!=(t=null==(n=e.editorOptions)?void 0:n.onNavigation)?t:uo)(o)||o.stopPropagation()}},onMouseDownCapture:u?f:void 0,children:null!=e.editor&&We(b,{children:[We(e.editor,{column:e,row:t,onRowChange:n,onClose:_}),(null==(s=e.editorOptions)?void 0:s.renderFormatter)&&We(e.formatter,{column:e,row:t,isCellSelected:!0,onRowChange:n})]})})}Ke(".cadd3bp700-beta12{background-color:var(--rdg-selection-color);block-size:8px;cursor:move;inline-size:8px;inset-block-end:0;inset-inline-end:0;position:absolute}.cadd3bp700-beta12:hover{background-color:var(--rdg-background-color);block-size:16px;border:2px solid var(--rdg-selection-color);inline-size:16px}",{insertAt:"top"});function Yo({rows:e,columns:o,selectedPosition:t,latestDraggedOverRowIdx:n,isCellEditable:r,onRowsChange:l,onFill:i,setDragging:c,setDraggedOverRowIdx:s}){function a(n,c){const{idx:s,rowIdx:a}=t,u=o[s],d=e[a],f=[...e],_=[];for(let o=n;o<c;o++)if(r({rowIdx:o,idx:s})){const t=i({columnKey:u.key,sourceRow:d,targetRow:e[o]});t!==e[o]&&(f[o]=t,_.push(o))}_.length>0&&(null==l||l(f,{indexes:_,column:u}))}return We("div",{className:"rdg-cell-drag-handle cadd3bp700-beta12",onMouseDown:function(e){function o(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",o),window.removeEventListener("mouseup",r),c(!1),function(){const e=n.current;if(void 0===e)return;const{rowIdx:o}=t;a(o<e?o+1:e,o<e?e+1:o),s(void 0)}()}1===e.buttons&&(c(!0),window.addEventListener("mouseover",o),window.addEventListener("mouseup",r))},onDoubleClick:function(o){o.stopPropagation(),a(t.rowIdx+1,e.length)}})}Ke(".a888944700-beta12{fill:currentColor}.a888944700-beta12>path{transition:d .1s}",{insertAt:"top"});function Jo({sortDirection:e}){return void 0!==e?We("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a888944700-beta12","aria-hidden":!0,children:We("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})}):null}const Zo={idx:-1,rowIdx:-2,mode:"SELECT"};function Qo({columns:e,rows:o,summaryRows:t,rowKeyGetter:n,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:s,onSelectedRowsChange:a,sortColumns:u,onSortColumnsChange:d,defaultColumnOptions:f,groupBy:_,rowGrouper:p,expandedGroupIds:h,onExpandedGroupIdsChange:g,onRowClick:v,onRowDoubleClick:m,onScroll:w,onColumnResize:y,onFill:x,onCopy:C,onPaste:k,cellNavigationMode:R,enableVirtualization:I,components:S,className:E,style:z,rowClass:F,direction:O,"aria-label":A,"aria-labelledby":N,"aria-describedby":T,"data-testid":P},D){var H,M,G,L,W,K,j,U;const $=Ye();null!=l||(l=35);const V=null!=i?i:"number"==typeof l?l:35,q=null!=c?c:"number"==typeof l?l:35,X=null!=(H=null!=(M=null==S?void 0:S.rowRenderer)?M:null==$?void 0:$.rowRenderer)?H:Lo,Y=null!=(G=null!=(L=null==S?void 0:S.sortIcon)?L:null==$?void 0:$.sortIcon)?G:Jo,J=null!=(W=null!=(K=null==S?void 0:S.checkboxFormatter)?K:null==$?void 0:$.checkboxFormatter)?W:$e,Z=null!=(j=null==S?void 0:S.noRowsFallback)?j:null==$?void 0:$.noRowsFallback,Q=null!=R?R:"NONE";null!=I||(I=!0),null!=O||(O="ltr");const[ee,te]=oe(0),[ce,se]=oe(0),[ae,ue]=oe((()=>new Map)),[de,fe]=oe(Zo),[_e,pe]=oe(null),[he,ge]=oe(!1),[ve,me]=oe(void 0),[we,be]=oe(null),ye=re(de),xe=re(ve),Ce=re(-1),ke=re(null),[Re,Ie,Se]=function(){const e=re(null),[o,t]=oe(1),[n,r]=oe(1);return Be((()=>{const{ResizeObserver:o}=window;if(null==o)return;const{clientWidth:n,clientHeight:l,offsetWidth:i,offsetHeight:c}=e.current,{width:s,height:a}=e.current.getBoundingClientRect(),u=a-c+l;t(Eo(s-i+n)),r(u);const d=new o((e=>{const o=e[0].contentBoxSize[0];t(Eo(o.inlineSize)),r(o.blockSize)}));return d.observe(e.current),()=>{d.disconnect()}}),[]),[e,o,n]}(),Ee=null!=(U=null==t?void 0:t.length)?U:0,ze=Se-V-Ee*q,Fe=null!=s&&null!=a,Oe=-1===de.rowIdx,Ae="rtl"===O,Ne=Ae?"ArrowRight":"ArrowLeft",Te=Ae?"ArrowLeft":"ArrowRight",Pe=le((()=>({sortIcon:Y,checkboxFormatter:J})),[Y,J]),De=le((()=>{const{length:e}=o;return 0!==e&&null!=s&&null!=n&&s.size>=e&&o.every((e=>s.has(n(e))))}),[o,s,n]),{columns:He,colSpanColumns:Me,colOverscanStartIdx:Le,colOverscanEndIdx:Ke,layoutCssVars:je,columnMetrics:Ue,lastFrozenColumnIndex:Ve,totalFrozenColumnWidth:qe,groupBy:Je}=function({rawColumns:e,columnWidths:o,viewportWidth:t,scrollLeft:n,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,s,a,u;const d=null==r?void 0:r.width,f=null!=(c=null==r?void 0:r.minWidth)?c:80,_=null==r?void 0:r.maxWidth,p=null!=(s=null==r?void 0:r.formatter)?s:Ze,h=null!=(a=null==r?void 0:r.sortable)&&a,g=null!=(u=null==r?void 0:r.resizable)&&u,{columns:v,colSpanColumns:m,lastFrozenColumnIndex:w,groupBy:b}=le((()=>{const o=[];let t=-1;const n=e.map((e=>{var o,n,r,i,c,s,a;const u=null!=(o=null==l?void 0:l.includes(e.key))&&o,v=u||e.frozen||!1,m={...e,idx:0,frozen:v,isLastFrozenColumn:!1,rowGroup:u,width:null!=(n=e.width)?n:d,minWidth:null!=(r=e.minWidth)?r:f,maxWidth:null!=(i=e.maxWidth)?i:_,sortable:null!=(c=e.sortable)?c:h,resizable:null!=(s=e.resizable)?s:g,formatter:null!=(a=e.formatter)?a:p};return u&&(null!=m.groupFormatter||(m.groupFormatter=Qe)),v&&t++,m}));n.sort((({key:e,frozen:o},{key:t,frozen:n})=>e===lo?-1:t===lo?1:null!=l&&l.includes(e)?l.includes(t)?l.indexOf(e)-l.indexOf(t):-1:null!=l&&l.includes(t)?1:o?n?0:-1:n?1:0));const r=[];return n.forEach(((e,t)=>{e.idx=t,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==t&&(n[t].isLastFrozenColumn=!0),{columns:n,colSpanColumns:r,lastFrozenColumnIndex:t,groupBy:o}}),[e,d,f,_,p,g,h,l]),{layoutCssVars:y,totalFrozenColumnWidth:x,columnMetrics:C}=le((()=>{const e=new Map;let n=0,r=0,l="",i=0,c=0;for(const n of v){let r=So(n,o,t);void 0===r?c++:(r=Io(r,n),i+=r,e.set(n,{width:r,left:0}))}for(const o of v){let r;if(e.has(o)){const t=e.get(o);t.left=n,({width:r}=t)}else r=Io(bo((t-i)/c),o),i+=r,c--,e.set(o,{width:r,left:n});n+=r,l+=`${r}px `}if(-1!==w){const o=e.get(v[w]);r=o.left+o.width}const s={gridTemplateColumns:l};for(let o=0;o<=w;o++){const t=v[o];s[`--rdg-frozen-left-${t.idx}`]=`${e.get(t).left}px`}return{layoutCssVars:s,totalFrozenColumnWidth:r,columnMetrics:e}}),[o,v,t,w]),[k,R]=le((()=>{if(!i)return[0,v.length-1];const e=n+x,o=n+t,r=v.length-1,l=mo(w+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:t}=C.get(v[c]);if(o+t>e)break;c++}let s=c;for(;s<r;){const{left:e,width:t}=C.get(v[s]);if(e+t>=o)break;s++}return[wo(l,c-1),mo(r,s+1)]}),[C,v,w,n,x,t,i]);return{columns:v,colSpanColumns:m,colOverscanStartIdx:k,colOverscanEndIdx:R,layoutCssVars:y,columnMetrics:C,lastFrozenColumnIndex:w,totalFrozenColumnWidth:x,groupBy:b}}({rawColumns:e,columnWidths:ae,scrollLeft:ce,viewportWidth:Ie,defaultColumnOptions:f,rawGroupBy:p?_:void 0,enableVirtualization:I}),{rowOverscanStartIdx:eo,rowOverscanEndIdx:oo,rows:to,rowsCount:ro,totalRowHeight:io,gridTemplateRows:uo,isGroupRow:_o,getRowTop:ho,getRowHeight:go,findRowIdx:vo}=Oo({rawRows:o,groupBy:Je,rowGrouper:p,rowHeight:l,clientHeight:ze,scrollTop:ee,expandedGroupIds:h,enableVirtualization:I}),yo=function({columns:e,colSpanColumns:o,rows:t,summaryRows:n,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:s,isGroupRow:a}){const u=le((()=>{if(0===r)return 0;let e=r;const l=(o,t)=>void 0!==t&&o+t>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,co(r,i,{type:"HEADER"})))break;for(let e=c;e<=s;e++){const n=t[e];if(!a(n)&&l(o,co(r,i,{type:"ROW",row:n})))break}if(null!=n)for(const e of n)if(l(o,co(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,s,t,n,r,i,o,a]);return le((()=>{const o=[];for(let t=0;t<=l;t++){const n=e[t];t<u&&!n.frozen||o.push(n)}return o}),[u,l,e])}({columns:He,colSpanColumns:Me,colOverscanStartIdx:Le,colOverscanEndIdx:Ke,lastFrozenColumnIndex:Ve,rowOverscanStartIdx:eo,rowOverscanEndIdx:oo,rows:to,summaryRows:t,isGroupRow:_o}),ko=Je.length>0&&"function"==typeof p,Fo=ko?-1:0,Ao=He.length-1,No=-1,To=1+to.length+Ee-2,Po=ut(de),Ho=dt(de),Mo=zo(tt),Go=zo((function(e){if(!a)return;Ro(n);const t=new Set(s);for(const r of o){const o=n(r);e?t.add(o):t.delete(o)}a(t)})),Wo=zo(it),Ko=zo(((e,o,t)=>{_t({rowIdx:to.indexOf(e),idx:o.idx},t)})),jo=zo((e=>{_t({rowIdx:e,idx:-1})})),$o=zo((e=>{_t({rowIdx:-1,idx:e})})),Bo=zo(((e,o)=>{_t({rowIdx:t.indexOf(e)+1+to.length-1,idx:o.idx})})),Vo=zo(nt);Be((()=>{Po&&!et(de,ye.current)?(ye.current=de,pt(de),-1===de.idx&&ke.current.focus({preventScroll:!0})):ye.current=de})),Be((()=>{if(null===we)return;const e=Re.current.querySelector(`[aria-colindex="${we.idx+1}"]`),{width:o}=e.getBoundingClientRect();ue((e=>{const t=new Map(e);return t.set(we.key,o),t})),be(null),null==y||y(we.idx,o)}),[we,Re,y]),function(e,o,t){B=6,ne((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))}(D,(()=>({element:Re.current,scrollToColumn(e){pt({idx:e})},scrollToRow(e){const{current:o}=Re;o&&o.scrollTo({top:ho(e),behavior:"smooth"})},selectCell:_t})));const Qo=ie(((e,o)=>{"auto"!==o?(ue((t=>{const n=new Map(t);return n.set(e.key,o),n})),null==y||y(e.idx,o)):be(e)}),[y]),ot=ie((e=>{me(e),xe.current=e}),[]);function tt({row:e,checked:o,isShiftClick:t}){if(!a)return;Ro(n);const r=new Set(s);if(_o(e)){for(const t of e.childRows){const e=n(t);o?r.add(e):r.delete(e)}return void a(r)}const l=n(e);if(o){r.add(l);const o=Ce.current,i=to.indexOf(e);if(Ce.current=i,t&&-1!==o&&o!==i){const e=xo(i-o);for(let t=o+e;t!==i;t+=e){const e=to[t];_o(e)||r.add(n(e))}}}else r.delete(l),Ce.current=-1;a(r)}function nt(e){if(!g)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),g(o)}function rt(e){if(!(e.target instanceof Element))return;const l=null!==e.target.closest(".rdg-cell"),i=ko&&e.target===ke.current;if(!l&&!i)return;const{key:c,keyCode:a}=e,{rowIdx:u}=de;if(Ho&&(null!=k||null!=C)&&ao(e)&&!_o(to[u])&&"SELECT"===de.mode){const e=86;if(a===67)return void function(){const{idx:e,rowIdx:t}=de,n=o[lt(t)],r=He[e].key;pe({row:n,columnKey:r}),null==C||C({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!k||!r||null===_e||!ft(de))return;const{idx:e,rowIdx:t}=de,n=o[lt(t)],l=k({sourceRow:_e.row,sourceColumnKey:_e.columnKey,targetRow:n,targetColumnKey:He[e].key});it(t,l)}()}if(at(u)){const o=to[u];if(_o(o)&&-1===de.idx&&(c===Ne&&o.isExpanded||c===Te&&!o.isExpanded))return e.preventDefault(),void nt(o.id)}switch(e.key){case"Escape":return void pe(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){const{key:o,shiftKey:n}=e;let r=Q;if("Tab"===o){if(function({cellNavigationMode:e,maxColIdx:o,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:l},shiftKey:i}){if("NONE"===e||"CHANGE_ROW"===e){const e=l===o,c=0===l,s=r===n,a=r===t;return i?c&&a:e&&s}return!1}({shiftKey:n,cellNavigationMode:Q,maxColIdx:Ao,minRowIdx:No,maxRowIdx:To,selectedPosition:de}))return void ct();r="NONE"===Q?"CHANGE_ROW":Q}e.preventDefault();const l=ao(e),i=function(e,o,t){const{idx:n,rowIdx:r}=de,l=to[r],i=Po&&-1===n;if(e===Ne&&i&&_o(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=de.rowIdx-1;o>=0;o--){const t=to[o];if(_o(t)&&t.id===l.parentId){e=o;break}}if(-1!==e)return{idx:n,rowIdx:e}}switch(e){case"ArrowUp":return{idx:n,rowIdx:r-1};case"ArrowDown":return{idx:n,rowIdx:r+1};case Ne:return{idx:n-1,rowIdx:r};case Te:return{idx:n+1,rowIdx:r};case"Tab":return{idx:n+(t?-1:1),rowIdx:r};case"Home":return i?{idx:n,rowIdx:0}:{idx:0,rowIdx:o?No:r};case"End":return i?{idx:n,rowIdx:to.length-1}:{idx:Ao,rowIdx:o?To:r};case"PageUp":{if(de.rowIdx===No)return de;const e=ho(r)+go(r)-ze;return{idx:n,rowIdx:e>0?vo(e):0}}case"PageDown":{if(de.rowIdx>=to.length)return de;const e=ho(r)+ze;return{idx:n,rowIdx:e<io?vo(e):to.length-1}}default:return de}}(o,l,n);if(et(de,i))return;_t(function({cellNavigationMode:e,columns:o,colSpanColumns:t,rows:n,summaryRows:r,minRowIdx:l,maxRowIdx:i,currentPosition:{idx:c},nextPosition:s,lastFrozenColumnIndex:a,isCellWithinBounds:u,isGroupRow:d}){let{idx:f,rowIdx:_}=s;const p=e=>{if(_>=0&&_<n.length){const e=n[_];if(d(e))return}for(const o of t){const t=o.idx;if(t>f)break;const l=po({rows:n,summaryRows:r,rowIdx:_,lastFrozenColumnIndex:a,column:o,isGroupRow:d});if(l&&f>t&&f<l+t){f=t+(e?l:0);break}}};if(u(s)&&p(f-c>0),"NONE"!==e){const t=o.length,n=-1===f;f===t?"CHANGE_ROW"===e?_===i||(f=0,_+=1):f=0:n&&("CHANGE_ROW"===e?_===l||(_-=1,f=t-1):f=t-1,p(!1))}return{idx:f,rowIdx:_}}({columns:He,colSpanColumns:Me,rows:to,summaryRows:t,minRowIdx:No,maxRowIdx:To,lastFrozenColumnIndex:Ve,cellNavigationMode:r,currentPosition:de,nextPosition:i,isCellWithinBounds:ut,isGroupRow:_o}))}(e);break;default:!function(e){var o;if(!Ho)return;const t=to[de.rowIdx];if(_o(t))return;const{key:r,shiftKey:l}=e;if(Fe&&l&&" "===r){Ro(n);const o=n(t);return tt({row:t,checked:!s.has(o),isShiftClick:!1}),void e.preventDefault()}const i=He[de.idx];if(null==(o=i.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;ft(de)&&function(e){return!so.has(e.key)}(e)&&fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"EDIT",row:t,originalRow:t})))}(e)}}function lt(e){return ko?o.indexOf(to[e]):e}function it(e,t){if("function"!=typeof r)return;const n=lt(e);if(t===o[n])return;const l=[...o];l[n]=t,r(l,{indexes:[n],column:He[de.idx]})}function ct(){"EDIT"===de.mode&&it(de.rowIdx,de.row)}function st(e){return e>=Fo&&e<=Ao}function at(e){return e>=0&&e<to.length}function ut({idx:e,rowIdx:o}){return o>=No&&o<=To&&st(e)}function dt({idx:e,rowIdx:o}){return at(o)&&st(e)}function ft(e){return dt(e)&&fo({columns:He,rows:to,selectedPosition:e,isGroupRow:_o})}function _t(e,o){if(ut(e))if(ct(),o&&ft(e)){const o=to[e.rowIdx];fe({...e,mode:"EDIT",row:o,originalRow:o})}else et(de,e)?pt(e):fe({...e,mode:"SELECT"})}function pt({idx:e,rowIdx:o}){const{current:n}=Re;if(n){if("number"==typeof e&&e>Ve){if(null!=o||(o=de.rowIdx),!ut({rowIdx:o,idx:e}))return;const{clientWidth:r}=n,l=He[e],{left:i,width:c}=Ue.get(l);let s=i+c;const a=po({rows:to,summaryRows:t,rowIdx:o,lastFrozenColumnIndex:Ve,column:l,isGroupRow:_o});if(void 0!==a){const{left:e,width:o}=Ue.get(He[l.idx+a-1]);s=e+o}const u=s>r+ce,d=Ae?-1:1;i<ce+qe?n.scrollLeft=(i-qe)*d:u&&(n.scrollLeft=(s-r)*d)}if("number"==typeof o&&at(o)){const e=ho(o),t=go(o);e<ee?n.scrollTop=e:e+t>ee+ze&&(n.scrollTop=e+t-ze)}}}function ht(e){if(void 0===ve)return;const{rowIdx:o}=de;return(o<ve?o<e&&e<=ve:o>e&&e>=ve)?de.idx:void 0}function gt(e){if(de.rowIdx===e&&"EDIT"!==de.mode&&!ko&&null!=x)return We(Yo,{rows:o,columns:He,selectedPosition:de,isCellEditable:ft,latestDraggedOverRowIdx:xe,onRowsChange:r,onFill:x,setDragging:ge,setDraggedOverRowIdx:ot})}function vt(e){if(de.rowIdx!==e||"SELECT"===de.mode)return;const{idx:o,row:t}=de,n=He[o],r=co(n,Ve,{type:"ROW",row:t}),l=()=>{fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))};return to[de.rowIdx]!==de.originalRow&&l(),We(Xo,{column:n,colSpan:r,row:t,onRowChange:(e,o)=>{o?(it(de.rowIdx,e),l()):fe((o=>({...o,row:e})))},closeEditor:l,scrollToCell:()=>{pt(de)}},n.key)}function mt(e){const o=He[de.idx];return void 0===o||de.rowIdx!==e||yo.includes(o)?yo:de.idx>Ke?[...yo,o]:[...yo.slice(0,Ve+1),o,...yo.slice(Ve+1)]}(de.idx>Ao||de.rowIdx>To)&&(fe(Zo),ot(void 0));let wt=`${V}px`;to.length>0&&(wt+=uo),Ee>0&&(wt+=` repeat(${Ee}, ${q}px)`);const bt=-1===de.idx&&-2!==de.rowIdx;return We("div",{role:ko?"treegrid":"grid","aria-label":A,"aria-labelledby":N,"aria-describedby":T,"aria-multiselectable":!!Fe||void 0,"aria-colcount":He.length,"aria-rowcount":1+ro+Ee,className:Ge("rdg r104f42s700-beta12",E,he&&"rdg-viewport-dragging v7ly7s700-beta12",null!==we&&"cd0kgiy700-beta12"),style:{...z,gridTemplateRows:wt,"--rdg-header-row-height":`${V}px`,"--rdg-summary-row-height":`${q}px`,"--rdg-sign":Ae?-1:1,...function(){if(null===we)return je;const{gridTemplateColumns:e}=je,o=e.split(" ");return o[we.idx]="max-content",{...je,gridTemplateColumns:o.join(" ")}}()},dir:O,ref:Re,onScroll:function(e){const{scrollTop:o,scrollLeft:t}=e.currentTarget;te(o),se(Co(t)),null==w||w(e)},onKeyDown:rt,"data-testid":P,children:[ko&&We("div",{ref:ke,tabIndex:bt?0:-1,className:Ge("fc4f4zb700-beta12",bt&&["rel5gk2700-beta12",-1!==Ve&&"r1qymf1z700-beta12"]),style:{gridRowStart:de.rowIdx+2},onKeyDown:rt}),We(Xe,{value:Pe,children:[We(Do,{columns:mt(-1),onColumnResize:Qo,allRowsSelected:De,onAllRowsSelectionChange:Go,sortColumns:u,onSortColumnsChange:d,lastFrozenColumnIndex:Ve,selectedCellIdx:Oe?de.idx:void 0,selectCell:$o,shouldFocusGrid:!Po,direction:O}),0===to.length&&Z?Z:We(b,{children:[We(no,{value:Mo,children:function(){const e=[];let o=0;const{idx:t,rowIdx:r}=de,l=Ho&&r>oo?oo+1:oo;for(let c=Ho&&r<eo?eo-1:eo;c<=l;c++){const l=c===eo-1||c===oo+1,a=l?r:c;let u=yo;const d=He[t];void 0!==d&&(u=l?[d]:mt(a));const f=to[a],_=1+a+1;if(_o(f)){({startRowIndex:o}=f);const l=Fe&&f.childRows.every((e=>s.has(n(e))));e.push(We(Uo,{"aria-level":f.level+1,"aria-setsize":f.setSize,"aria-posinset":f.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":Fe?l:void 0,id:f.id,groupKey:f.groupKey,viewportColumns:u,childRows:f.childRows,rowIdx:a,row:f,gridRowStart:_,height:go(a),level:f.level,isExpanded:f.isExpanded,selectedCellIdx:r===a?t:void 0,isRowSelected:l,selectGroup:jo,toggleGroup:Vo},f.id));continue}let p;o++;let h=!1;var i;if("function"==typeof n)p=n(f),h=null!=(i=null==s?void 0:s.has(p))&&i;else p=ko?o:a;e.push(We(X,{"aria-rowindex":1+(ko?o:a)+1,"aria-selected":Fe?h:void 0,rowIdx:a,row:f,viewportColumns:u,isRowSelected:h,onRowClick:v,onRowDoubleClick:m,rowClass:F,gridRowStart:_,height:go(a),copiedCellIdx:null!==_e&&_e.row===f?He.findIndex((e=>e.key===_e.columnKey)):void 0,selectedCellIdx:r===a?t:void 0,draggedOverCellIdx:ht(a),setDraggedOverRowIdx:he?ot:void 0,lastFrozenColumnIndex:Ve,onRowChange:Wo,selectCell:Ko,selectedCellDragHandle:gt(a),selectedCellEditor:vt(a)},p))}return e}()}),null==t?void 0:t.map(((e,o)=>{const n=1+to.length+o+1,r=1+to.length+o-1,l=de.rowIdx===r,i=ze>io?Se-q*(t.length-o):void 0,c=void 0===i?q*(t.length-1-o):void 0;return We(qo,{"aria-rowindex":1+ro+o+1,rowIdx:o,gridRowStart:n,row:e,top:i,bottom:c,viewportColumns:mt(r),lastFrozenColumnIndex:Ve,selectedCellIdx:l?de.idx:void 0,selectCell:Bo},o)}))]})]})]})}function et(e,o){return e.idx===o.idx&&e.rowIdx===o.rowIdx}const ot=be(Qo);function tt(e,o,t){var n=o;return i([],e,!0).sort((function(e,o){return e[n]<o[n]?t?1:-1:e[n]>o[n]?t?-1:1:0}))}Ke(".t16y9g8l700-beta12{appearance:none;background-color:var(--rdg-background-color);block-size:100%;border:2px solid #ccc;box-sizing:border-box;color:var(--rdg-color);font-family:inherit;font-size:var(--rdg-font-size);inline-size:100%;padding-block:0;padding-inline:6px;vertical-align:top}.t16y9g8l700-beta12:focus{border-color:var(--rdg-selection-color);outline:none}.t16y9g8l700-beta12::placeholder{color:#999;opacity:1}",{insertAt:"top"});var nt=function(e){return m("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,m("span",null,"--- * --- * ---"))},rt=function(e){var t,n=e.table,r=e.sort,l=[le((function(){return t.columns()}),[t=n,t.dataChecksum()]),le((function(){return t.data()}),[t,t.dataChecksum()])],c=l[0],s=l[1],a=n.multiSelect(),u=n.columnTypes(),d=n.columnPatterns(),f=n.columnFormats(),_=oe([]),p=_[0],h=_[1],g=oe(),v=g[0],w=g[1],b=oe([]),y=b[0],x=b[1],C=oe(new Set),k=C[0],R=C[1];te((function(){h(i(i([],a?[io]:[],!0),c.map((function(e){var t,n,r,l;switch(null!==(t=u[e])&&void 0!==t?t:"string"){case"time":r=void 0!==d[e]?o.timeParse(d[e]):void 0,l=void 0!==f[e]?o.timeFormat(f[e]):void 0;break;case"number":n=function(e){return m("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:l=void 0!==f[e]?o.format(f[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,formatter:n,__hpcc_pattern:r,__hpcc_format:l}})),!0))}),[f,d,u,c,a]);var I=ie((function(e){var o=e.slice(-1)[0],t=void 0!==o,n="DESC"===(null==o?void 0:o.direction);w(o),x(tt(y,t?o.columnKey:"key",!!t&&n))}),[y]),S=ie((function(e){return e.key}),[]),E=ie((function(e){R(e)}),[]),z=ie((function(e,o){n.onRowClickCallback(e,o.key)}),[n]);return te((function(){var e=s.map((function(e,o){var t={key:o};return p.forEach((function(o,n){var r=e[n];o.__hpcc_pattern&&o.__hpcc_format?r=o.__hpcc_format(o.__hpcc_pattern(r)):o.__hpcc_pattern?r=o.__hpcc_pattern(r).toString():o.__hpcc_format&&(r=o.__hpcc_format(r)),t[o.key]=r})),t}));(null==r?void 0:r.attribute)&&(e=tt(e,r.attribute,r.descending)),x(e)}),[p,s,r]),m(ot,{columns:p,headerRowHeight:24,rows:y,rowKeyGetter:S,rowHeight:20,components:{noRowsFallback:m(nt,{message:n.noDataMessage()})},className:n.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:I,selectedRows:k,onSelectedRowsChange:a?E:void 0,onRowClick:a?void 0:z,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var lt=function(e){function i(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(i,e),i.prototype.columnType=function(e,o){var t;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(n(n({},this.columnTypes()),((t={})[e]=o,t))),this)},i.prototype.columnPattern=function(e,o){var t;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(n(n({},this.columnPatterns()),((t={})[e]=o,t))),this)},i.prototype.columnFormat=function(e,o){var t;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(n(n({},this.columnFormats()),((t={})[e]=o,t))),this)},i.prototype.onRowClickCallback=function(e,o){var t;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(t=this._prevColumn)&&void 0!==t?t:"",!1),e&&this.click(e,o,!0),this._prevRow=e,this._prevColumn=o},i.prototype.enter=function(o,t){e.prototype.enter.call(this,o,t),this._div=t.append("div")},i.prototype.update=function(o,t){e.prototype.update.call(this,o,t),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,t){null==o.__k&&(o.textContent=""),L(e,o),"function"==typeof t&&t(),e&&e.__c}(m(rt,{table:this}),this._div.node())},i.prototype.exit=function(o,t){!function(e){!!e.__k&&L(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,t)},i.prototype.click=function(e,o,t){},r([o.publish("...empty...","string","No Data Message"),l("design:type",Function)],i.prototype,"noDataMessage",void 0),r([o.publish(!1,"boolean","Dark Mode"),l("design:type",Function)],i.prototype,"darkMode",void 0),r([o.publish(!1,"boolean","Multiple Selection"),l("design:type",Function)],i.prototype,"multiSelect",void 0),r([o.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),l("design:type",Function)],i.prototype,"columnTypes",void 0),r([o.publish({},"object","Column Patterns"),l("design:type",Function)],i.prototype,"columnPatterns",void 0),r([o.publish({},"object","Column Formats"),l("design:type",Function)],i.prototype,"columnFormats",void 0),i}(o.HTMLWidget);lt.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.2",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.1",e.Table=lt,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])},t(e,o)};var n=function(){return n=Object.assign||function(e){for(var o,t=1,n=arguments.length;t<n;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},n.apply(this,arguments)};function r(e,o,t,n){var r,l=arguments.length,i=l<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,t,i):r(o,t))||i);return l>3&&i&&Object.defineProperty(o,t,i),i}function l(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function i(e,o,t){if(t||2===arguments.length)for(var n,r=0,l=o.length;r<l;r++)!n&&r in o||(n||(n=Array.prototype.slice.call(o,0,r)),n[r]=o[r]);return e.concat(n||Array.prototype.slice.call(o))}var c,s,a,d,u,f,_={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(e,o){for(var t in o)e[t]=o[t];return e}function v(e){var o=e.parentNode;o&&o.removeChild(e)}function m(e,o,t){var n,r,l,i={};for(l in o)"key"==l?n=o[l]:"ref"==l?r=o[l]:i[l]=o[l];if(arguments.length>2&&(i.children=arguments.length>3?c.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===i[l]&&(i[l]=e.defaultProps[l]);return w(e,i,n,r,null)}function w(e,o,t,n,r){var l={type:e,props:o,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++a:r};return null==r&&null!=s.vnode&&s.vnode(l),l}function b(e){return e.children}function y(e,o){this.props=e,this.context=o}function x(e,o){if(null==o)return e.__?x(e.__,e.__.__k.indexOf(e)+1):null;for(var t;o<e.__k.length;o++)if(null!=(t=e.__k[o])&&null!=t.__e)return t.__e;return"function"==typeof e.type?x(e):null}function C(e){var o,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(t=e.__k[o])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return C(e)}}function k(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!R.__r++||u!==s.debounceRendering)&&((u=s.debounceRendering)||setTimeout)(R)}function R(){for(var e;R.__r=d.length;)e=d.sort((function(e,o){return e.__v.__b-o.__v.__b})),d=[],e.some((function(e){var o,t,n,r,l,i;e.__d&&(l=(r=(o=e).__v).__e,(i=o.__P)&&(t=[],(n=g({},r)).__v=r.__v+1,T(i,r,n,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,t,null==l?x(r):l,r.__h),P(t,r),r.__e!=l&&C(r)))}))}function I(e,o,t,n,r,l,i,c,s,a){var d,u,f,h,g,v,m,y=n&&n.__k||p,C=y.length;for(t.__k=[],d=0;d<o.length;d++)if(null!=(h=t.__k[d]=null==(h=o[d])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?w(null,h,null,null,h):Array.isArray(h)?w(b,{children:h},null,null,null):h.__b>0?w(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(f=y[d])||f&&h.key==f.key&&h.type===f.type)y[d]=void 0;else for(u=0;u<C;u++){if((f=y[u])&&h.key==f.key&&h.type===f.type){y[u]=void 0;break}f=null}T(e,h,f=f||_,r,l,i,c,s,a),g=h.__e,(u=h.ref)&&f.ref!=u&&(m||(m=[]),f.ref&&m.push(f.ref,null,h),m.push(u,h.__c||g,h)),null!=g?(null==v&&(v=g),"function"==typeof h.type&&h.__k===f.__k?h.__d=s=S(h,s,e):s=z(e,h,f,y,g,s),"function"==typeof t.type&&(t.__d=s)):s&&f.__e==s&&s.parentNode!=e&&(s=x(f))}for(t.__e=v,d=C;d--;)null!=y[d]&&("function"==typeof t.type&&null!=y[d].__e&&y[d].__e==t.__d&&(t.__d=x(n,d+1)),M(y[d],y[d]));if(m)for(d=0;d<m.length;d++)H(m[d],m[++d],m[++d])}function S(e,o,t){for(var n,r=e.__k,l=0;r&&l<r.length;l++)(n=r[l])&&(n.__=e,o="function"==typeof n.type?S(n,o,t):z(t,n,n,r,n.__e,o));return o}function E(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,o)})):o.push(e)),o}function z(e,o,t,n,r,l){var i,c,s;if(void 0!==o.__d)i=o.__d,o.__d=void 0;else if(null==t||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(c=l,s=0;(c=c.nextSibling)&&s<n.length;s+=2)if(c==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function F(e,o,t){"-"===o[0]?e.setProperty(o,t):e[o]=null==t?"":"number"!=typeof t||h.test(o)?t:t+"px"}function O(e,o,t,n,r){var l;e:if("style"===o)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(o in n)t&&o in t||F(e.style,o,"");if(t)for(o in t)n&&t[o]===n[o]||F(e.style,o,t[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/Capture$/,"")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=t,t?n||e.addEventListener(o,l?N:A,l):e.removeEventListener(o,l?N:A,l);else if("dangerouslySetInnerHTML"!==o){if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&o in e)try{e[o]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===o[0]&&"r"===o[1])?e.setAttribute(o,t):e.removeAttribute(o))}}function A(e){this.l[e.type+!1](s.event?s.event(e):e)}function N(e){this.l[e.type+!0](s.event?s.event(e):e)}function T(e,o,t,n,r,l,i,c,a){var d,u,f,_,p,h,v,m,w,x,C,k,R,S=o.type;if(void 0!==o.constructor)return null;null!=t.__h&&(a=t.__h,c=o.__e=t.__e,o.__h=null,l=[c]),(d=s.__b)&&d(o);try{e:if("function"==typeof S){if(m=o.props,w=(d=S.contextType)&&n[d.__c],x=d?w?w.props.value:d.__:n,t.__c?v=(u=o.__c=t.__c).__=u.__E:("prototype"in S&&S.prototype.render?o.__c=u=new S(m,x):(o.__c=u=new y(m,x),u.constructor=S,u.render=G),w&&w.sub(u),u.props=m,u.state||(u.state={}),u.context=x,u.__n=n,f=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=S.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=g({},u.__s)),g(u.__s,S.getDerivedStateFromProps(m,u.__s))),_=u.props,p=u.state,f)null==S.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==_&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(m,x),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(m,u.__s,x)||o.__v===t.__v){u.props=m,u.state=u.__s,o.__v!==t.__v&&(u.__d=!1),u.__v=o,o.__e=t.__e,o.__k=t.__k,o.__k.forEach((function(e){e&&(e.__=o)})),u.__h.length&&i.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(m,u.__s,x),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(_,p,h)}))}if(u.context=x,u.props=m,u.__v=o,u.__P=e,C=s.__r,k=0,"prototype"in S&&S.prototype.render)u.state=u.__s,u.__d=!1,C&&C(o),d=u.render(u.props,u.state,u.context);else do{u.__d=!1,C&&C(o),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++k<25);u.state=u.__s,null!=u.getChildContext&&(n=g(g({},n),u.getChildContext())),f||null==u.getSnapshotBeforeUpdate||(h=u.getSnapshotBeforeUpdate(_,p)),R=null!=d&&d.type===b&&null==d.key?d.props.children:d,I(e,Array.isArray(R)?R:[R],o,t,n,r,l,i,c,a),u.base=o.__e,o.__h=null,u.__h.length&&i.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==l&&o.__v===t.__v?(o.__k=t.__k,o.__e=t.__e):o.__e=D(t.__e,o,t,n,r,l,i,a);(d=s.diffed)&&d(o)}catch(e){o.__v=null,(a||null!=l)&&(o.__e=c,o.__h=!!a,l[l.indexOf(c)]=null),s.__e(e,o,t)}}function P(e,o){s.__c&&s.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){s.__e(e,o.__v)}}))}function D(e,o,t,n,r,l,i,s){var a,d,u,f=t.props,p=o.props,h=o.type,g=0;if("svg"===h&&(r=!0),null!=l)for(;g<l.length;g++)if((a=l[g])&&"setAttribute"in a==!!h&&(h?a.localName===h:3===a.nodeType)){e=a,l[g]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),l=null,s=!1}if(null===h)f===p||s&&e.data===p||(e.data=p);else{if(l=l&&c.call(e.childNodes),d=(f=t.props||_).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!s){if(null!=l)for(f={},g=0;g<e.attributes.length;g++)f[e.attributes[g].name]=e.attributes[g].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,o,t,n,r){var l;for(l in t)"children"===l||"key"===l||l in o||O(e,l,null,t[l],n);for(l in o)r&&"function"!=typeof o[l]||"children"===l||"key"===l||"value"===l||"checked"===l||t[l]===o[l]||O(e,l,o[l],t[l],n)}(e,p,f,r,s),u)o.__k=[];else if(g=o.props.children,I(e,Array.isArray(g)?g:[g],o,t,n,r&&"foreignObject"!==h,l,i,l?l[0]:t.__k&&x(t,0),s),null!=l)for(g=l.length;g--;)null!=l[g]&&v(l[g]);s||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===h&&!g||"option"===h&&g!==f.value)&&O(e,"value",g,f.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&O(e,"checked",g,f.checked,!1))}return e}function H(e,o,t){try{"function"==typeof e?e(o):e.current=o}catch(e){s.__e(e,t)}}function M(e,o,t){var n,r;if(s.unmount&&s.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||H(n,null,o)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){s.__e(e,o)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(r=0;r<n.length;r++)n[r]&&M(n[r],o,"function"!=typeof e.type);t||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function G(e,o,t){return this.constructor(e,t)}function L(e,o,t){var n,r,l;s.__&&s.__(e,o),r=(n="function"==typeof t)?null:t&&t.__k||o.__k,l=[],T(o,e=(!n&&t||o).__k=m(b,null,[e]),r||_,_,void 0!==o.ownerSVGElement,!n&&t?[t]:r?null:o.firstChild?c.call(o.childNodes):null,l,!n&&t?t:r?r.__e:o.firstChild,n),P(l,e)}function W(e,o){var t={__c:o="__cC"+f++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[o]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(k)},this.sub=function(e){t.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),o&&o.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}c=p.slice,s={__e:function(e,o,t,n){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,n||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},a=0,y.prototype.setState=function(e,o){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},t),this.props)),e&&g(t,e),null!=e&&this.__v&&(o&&this.__h.push(o),k(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},y.prototype.render=b,d=[],R.__r=0,f=0;var K,j,U,$,B=0,V=[],q=[],X=s.__b,Y=s.__r,J=s.diffed,Z=s.__c,Q=s.unmount;function ee(e,o){s.__h&&s.__h(j,e,B||o),B=0;var t=j.__H||(j.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:q}),t.__[e]}function oe(e){return B=1,function(e,o,t){var n=ee(K++,2);if(n.t=e,!n.__c&&(n.__=[t?t(o):pe(void 0,o),function(e){var o=n.__N?n.__N[0]:n.__[0],t=n.t(o,e);o!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=j,!j.u)){j.u=!0;var r=j.shouldComponentUpdate;j.shouldComponentUpdate=function(e,o,t){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter((function(e){return e.__c}));if(l.every((function(e){return!e.__N})))return!r||r.call(this,e,o,t);var i=!1;return l.forEach((function(e){if(e.__N){var o=e.__[0];e.__=e.__N,e.__N=void 0,o!==e.__[0]&&(i=!0)}})),!!i&&(!r||r.call(this,e,o,t))}}return n.__N||n.__}(pe,e)}function te(e,o){var t=ee(K++,3);!s.__s&&_e(t.__H,o)&&(t.__=e,t.i=o,j.__H.__h.push(t))}function ne(e,o){var t=ee(K++,4);!s.__s&&_e(t.__H,o)&&(t.__=e,t.i=o,j.__h.push(t))}function re(e){return B=5,le((function(){return{current:e}}),[])}function le(e,o){var t=ee(K++,7);return _e(t.__H,o)?(t.__V=e(),t.i=o,t.__h=e,t.__V):t.__}function ie(e,o){return B=8,le((function(){return e}),o)}function ce(e){var o=j.context[e.__c],t=ee(K++,9);return t.c=e,o?(null==t.__&&(t.__=!0,o.sub(j)),o.props.value):e.__}function se(){for(var e;e=V.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(fe),e.__H.__h=[]}catch(o){e.__H.__h=[],s.__e(o,e.__v)}}s.__b=function(e){"function"!=typeof e.type||e.o||e.type===b?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),j=null,X&&X(e)},s.__r=function(e){Y&&Y(e),K=0;var o=(j=e.__c).__H;o&&(U===j?(o.__h=[],j.__h=[],o.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=q,e.__N=e.i=void 0}))):(o.__h.forEach(ue),o.__h.forEach(fe),o.__h=[])),U=j},s.diffed=function(e){J&&J(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(1!==V.push(o)&&$===s.requestAnimationFrame||(($=s.requestAnimationFrame)||de)(se)),o.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==q&&(e.__=e.__V),e.i=void 0,e.__V=q}))),U=j=null},s.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ue),e.__h=e.__h.filter((function(e){return!e.__||fe(e)}))}catch(t){o.some((function(e){e.__h&&(e.__h=[])})),o=[],s.__e(t,e.__v)}})),Z&&Z(e,o)},s.unmount=function(e){Q&&Q(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{ue(e)}catch(e){o=e}})),t.__H=void 0,o&&s.__e(o,t.__v))};var ae="function"==typeof requestAnimationFrame;function de(e){var o,t=function(){clearTimeout(n),ae&&cancelAnimationFrame(o),setTimeout(e)},n=setTimeout(t,100);ae&&(o=requestAnimationFrame(t))}function ue(e){var o=j,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),j=o}function fe(e){var o=j;e.__c=e.__(),j=o}function _e(e,o){return!e||e.length!==o.length||o.some((function(o,t){return o!==e[t]}))}function pe(e,o){return"function"==typeof o?o(e):o}function he(e,o){for(var t in o)e[t]=o[t];return e}function ge(e,o){for(var t in e)if("__source"!==t&&!(t in o))return!0;for(var n in o)if("__source"!==n&&e[n]!==o[n])return!0;return!1}function ve(e){this.props=e}function me(e,o){function t(e){var t=this.props.ref,n=t==e.ref;return!n&&t&&(t.call?t(null):t.current=null),o?!o(this.props,e)||!n:ge(this.props,e)}function n(o){return this.shouldComponentUpdate=t,m(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ve.prototype=new y).isPureReactComponent=!0,ve.prototype.shouldComponentUpdate=function(e,o){return ge(this.props,e)||ge(this.state,o)};var we=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),we&&we(e)};var be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ye(e){function o(o){var t=he({},o);return delete t.ref,e(t,o.ref||null)}return o.$$typeof=be,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var xe=s.__e;s.__e=function(e,o,t,n){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=t.__e,o.__k=t.__k),r.__c(e,o);xe(e,o,t,n)};var Ce=s.unmount;function ke(e,o,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=he({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=o),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ke(e,o,t)}))),e}function Re(e,o,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Re(e,o,t)})),e.__c&&e.__c.__P===o&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function Ie(){this.__u=0,this.t=null,this.__b=null}function Se(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function Ee(){this.u=null,this.o=null}s.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&!0===e.__h&&(e.type=null),Ce&&Ce(e)},(Ie.prototype=new y).__c=function(e,o){var t=o.__c,n=this;null==n.t&&(n.t=[]),n.t.push(t);var r=Se(n.__v),l=!1,i=function(){l||(l=!0,t.__R=null,r?r(c):c())};t.__R=i;var c=function(){if(!--n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=Re(e,e.__c.__P,e.__c.__O)}var o;for(n.setState({__a:n.__b=null});o=n.t.pop();)o.forceUpdate()}},s=!0===o.__h;n.__u++||s||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Ie.prototype.componentWillUnmount=function(){this.t=[]},Ie.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ke(this.__b,t,n.__O=n.__P)}this.__b=null}var r=o.__a&&m(b,null,e.fallback);return r&&(r.__h=null),[m(b,null,o.__a?null:e.children),r]};var ze=function(e,o,t){if(++t[1]===t[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(Ee.prototype=new y).__a=function(e){var o=this,t=Se(o.__v),n=o.o.get(e);return n[0]++,function(r){var l=function(){o.props.revealOrder?(n.push(r),ze(o,e,n)):r()};t?t(l):l()}},Ee.prototype.render=function(e){this.u=null,this.o=new Map;var o=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var t=o.length;t--;)this.o.set(o[t],this.u=[1,0,this.u]);return e.children},Ee.prototype.componentDidUpdate=Ee.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,t){ze(e,t,o)}))};var Fe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ae="undefined"!=typeof document,Ne=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Te=s.event;function Pe(){}function De(){return this.cancelBubble}function He(){return this.defaultPrevented}s.event=function(e){return Te&&(e=Te(e)),e.persist=Pe,e.isPropagationStopped=De,e.isDefaultPrevented=He,e.nativeEvent=e};var Me={configurable:!0,get:function(){return this.class}},Ge=s.vnode;s.vnode=function(e){var o=e.type,t=e.props,n=t;if("string"==typeof o){var r=-1===o.indexOf("-");for(var l in n={},t){var i=t[l];Ae&&"children"===l&&"noscript"===o||"value"===l&&"defaultValue"in t&&null==i||("defaultValue"===l&&"value"in t&&null==t.value?l="value":"download"===l&&!0===i?i="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+o)&&!Ne(t.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&Oe.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===i&&(i=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),n[l]&&(l="oninputCapture")),n[l]=i)}"select"==o&&n.multiple&&Array.isArray(n.value)&&(n.value=E(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==o&&null!=n.defaultValue&&(n.value=E(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),e.props=n,t.class!=t.className&&(Me.enumerable="className"in t,null!=t.className&&(n.class=t.className),Object.defineProperty(n,"className",Me))}e.$$typeof=Fe,Ge&&Ge(e)};var Le=s.__r;function We(e){var o,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(t=We(e[o]))&&(n&&(n+=" "),n+=t);else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Ke(){for(var e,o,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(o=We(e))&&(n&&(n+=" "),n+=o);return n}s.__r=function(e){Le&&Le(e),e.__c};var je=0;function Ue(e,o,t,n,r){var l,i,c={};for(i in o)"ref"==i?l=o[i]:c[i]=o[i];var a={type:e,props:c,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--je,__source:r,__self:n};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===c[i]&&(c[i]=l[i]);return s.vnode&&s.vnode(a),a}function $e(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}$e(".c1wupbe700-beta12{background-color:inherit;border-block-end:1px solid var(--rdg-border-color);border-inline-end:1px solid var(--rdg-border-color);contain:strict;contain:size layout style paint;grid-row-start:var(--rdg-grid-row-start);outline:none;overflow:hidden;overflow:clip;padding-block:0;padding-inline:8px;text-overflow:ellipsis;white-space:nowrap}.c1wupbe700-beta12[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}.cd0kgiy700-beta12 .c1wupbe700-beta12{contain:content}.c1730fa4700-beta12{position:sticky;z-index:1}.c9dpaye700-beta12{box-shadow:calc(2px*var(--rdg-sign)) 0 5px -2px hsla(0,0%,53%,.3)}",{insertAt:"top"});$e('.r104f42s700-beta12{--rdg-color:#000;--rdg-border-color:#ddd;--rdg-summary-border-color:#aaa;--rdg-background-color:#fff;--rdg-header-background-color:#f9f9f9;--rdg-row-hover-background-color:#f5f5f5;--rdg-row-selected-background-color:#dbecfa;--row-selected-hover-background-color:#c9e3f8;--rdg-checkbox-color:#005194;--rdg-checkbox-focus-color:#61b8ff;--rdg-checkbox-disabled-border-color:#ccc;--rdg-checkbox-disabled-background-color:#ddd;--rdg-selection-color:#66afe9;--rdg-font-size:14px;content-visibility:auto;background-color:var(--rdg-background-color);block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;color:var(--rdg-color);color-scheme:var(--rdg-color-scheme,light dark);contain:strict;contain:size layout style paint;display:grid;font-size:var(--rdg-font-size);overflow:auto;user-select:none}@supports not (contain:strict){.r104f42s700-beta12{position:relative;z-index:0}}.r104f42s700-beta12 *,.r104f42s700-beta12 :after,.r104f42s700-beta12 :before{box-sizing:inherit}.r104f42s700-beta12:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s700-beta12.rdg-dark{--rdg-color-scheme:dark;--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}.r104f42s700-beta12.rdg-light{--rdg-color-scheme:light}@media (prefers-color-scheme:dark){.r104f42s700-beta12:not(.rdg-light){--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}}.v7ly7s700-beta12.r1otpg64700-beta12{cursor:move}.fc4f4zb700-beta12{grid-column:1/-1;pointer-events:none;z-index:4}',{insertAt:"top"});$e('.r1otpg64700-beta12{background-color:var(--rdg-background-color);display:contents;line-height:var(--rdg-row-height)}.r1otpg64700-beta12:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg64700-beta12[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg64700-beta12[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.rel5gk2700-beta12{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}.r1qymf1z700-beta12:before{border-inline-start:2px solid var(--rdg-selection-color);content:"";display:inline-block;height:100%;inset-inline-start:0;position:sticky}',{insertAt:"top"});const Be="rdg-row r1otpg64700-beta12",Ve="rdg-row-selected";$e('.cd9l4jz700-beta12{align-items:center;cursor:pointer;display:flex;inset:0;justify-content:center;margin-inline-end:1px;position:absolute}.c1noyk41700-beta12{all:unset}.cdwjxv8700-beta12{background-color:var(--rdg-background-color);block-size:20px;border:2px solid var(--rdg-border-color);content:"";inline-size:20px}.c1noyk41700-beta12:checked+.cdwjxv8700-beta12{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.c1noyk41700-beta12:focus+.cdwjxv8700-beta12{border-color:var(--rdg-checkbox-focus-color)}.cca4mwn700-beta12{cursor:default}.cca4mwn700-beta12 .cdwjxv8700-beta12{background-color:var(--rdg-checkbox-disabled-background-color);border-color:var(--rdg-checkbox-disabled-border-color)}',{insertAt:"top"});const qe=ye((function({onChange:e,...o},t){return Ue("label",{className:Ke("rdg-checkbox-label cd9l4jz700-beta12",o.disabled&&"rdg-checkbox-label-disabled cca4mwn700-beta12"),children:[Ue("input",{type:"checkbox",ref:t,...o,className:"rdg-checkbox-input c1noyk41700-beta12",onChange:function(o){e(o.target.checked,o.nativeEvent.shiftKey)}}),Ue("div",{className:"rdg-checkbox cdwjxv8700-beta12"})]})})),Xe="undefined"==typeof window?te:ne;function Ye(e){const o=re(null);return Xe((()=>{var t;e&&(null==(t=o.current)||t.focus({preventScroll:!0}))}),[e]),{ref:o,tabIndex:e?0:-1}}const Je=W(void 0),Ze=Je.Provider;function Qe(){return ce(Je)}function eo({value:e,isCellSelected:o,disabled:t,onChange:n,"aria-label":r,"aria-labelledby":l}){const{ref:i,tabIndex:c}=Ye(o);return Ue(Qe().checkboxFormatter,{"aria-label":r,"aria-labelledby":l,ref:i,tabIndex:c,disabled:t,checked:e,onChange:n})}function oo(e){try{return Ue(b,{children:e.row[e.column.key]})}catch{return null}}$e(".gch972y700-beta12{outline:none}.cz2qf0d700-beta12{stroke:currentColor;stroke-width:1.5px;fill:transparent;margin-inline-start:4px;vertical-align:middle}.cz2qf0d700-beta12>path{transition:d .1s}",{insertAt:"top"});function to({groupKey:e,isExpanded:o,isCellSelected:t,toggleGroup:n}){const{ref:r,tabIndex:l}=Ye(t);return Ue("span",{ref:r,className:"rdg-group-cell-content gch972y700-beta12",tabIndex:l,onKeyDown:function({key:e}){"Enter"===e&&n()},children:[e,Ue("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret cz2qf0d700-beta12","aria-hidden":!0,children:Ue("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}const no=W(void 0),ro=no.Provider,lo=W(void 0),io=lo.Provider;function co(){const e=ce(no),o=ce(lo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}const so="select-row";const ao={key:so,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>Ue(eo,{"aria-label":"Select All",isCellSelected:e.isCellSelected,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,t]=co();return Ue(eo,{"aria-label":"Select",isCellSelected:e.isCellSelected,value:o,onChange:(o,n)=>{t({row:e.row,checked:o,isShiftClick:n})}})},groupFormatter:function(e){const[o,t]=co();return Ue(eo,{"aria-label":"Select Group",isCellSelected:e.isCellSelected,value:o,onChange:o=>{t({row:e.row,checked:o,isShiftClick:!1})}})}};function uo(e,o,t){const n="function"==typeof e.colSpan?e.colSpan(t):1;if(Number.isInteger(n)&&n>1&&(!e.frozen||e.idx+n-1<=o))return n}const fo=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function _o(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function po({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function ho({selectedPosition:e,columns:o,rows:t,isGroupRow:n}){const r=o[e.idx],l=t[e.rowIdx];return!n(l)&&go(r,l)}function go(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}function vo({rows:e,summaryRows:o,rowIdx:t,lastFrozenColumnIndex:n,column:r,isGroupRow:l}){if(-1===t)return uo(r,n,{type:"HEADER"});if(t>=0&&t<e.length){const o=e[t];return l(o)?void 0:uo(r,n,{type:"ROW",row:o})}return o?uo(r,n,{type:"SUMMARY",row:o[t-e.length]}):void 0}function mo(e,o){return void 0!==o?{"--rdg-grid-row-start":e,"--rdg-row-height":`${o}px`}:{"--rdg-grid-row-start":e}}function wo(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function bo(e,...o){return Ke("rdg-cell c1wupbe700-beta12",...o,e.frozen&&"rdg-cell-frozen c1730fa4700-beta12",e.isLastFrozenColumn&&"rdg-cell-frozen-last c9dpaye700-beta12")}const{min:yo,max:xo,round:Co,floor:ko,sign:Ro,abs:Io,ceil:So}=Math;function Eo(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function zo(e,{minWidth:o,maxWidth:t}){return e=xo(e,o),"number"==typeof t&&t>o?yo(e,t):e}function Fo({key:e,width:o},t,n){return t.has(e)?t.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?ko(n*parseInt(o,10)/100):void 0}function Oo(e){return e-(1===devicePixelRatio?0:So(devicePixelRatio))}function Ao(e){const o=re(e);return te((()=>{o.current=e})),ie(((...e)=>{o.current(...e)}),[])}function No(e){const[o,t]=oe(!1);o&&!e&&t(!1);const n=ie((e=>{null===e||e.contains(document.activeElement)||e.focus({preventScroll:!0})}),[]);return{ref:e?n:void 0,tabIndex:e&&!o?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&t(!0)}:void 0}}function To({rawRows:e,rowHeight:o,clientHeight:t,scrollTop:n,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[s,a]=le((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[t,...n],r)=>{let i=0;const c={};for(const[s,a]of Object.entries(l(e,t))){const[e,t]=0===n.length?[a,a.length]:o(a,n,r+i+1);c[s]={childRows:a,childGroups:e,startRowIndex:r+i},i+=t+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[d,u]=le((()=>{const o=new Set;if(!s)return[e,r];const t=[],n=(e,r,l)=>{var c;(c=e,Array.isArray(c))?t.push(...e):Object.keys(e).forEach(((c,s,a)=>{var d;const u=void 0!==r?`${r}__${c}`:c,f=null!=(d=null==i?void 0:i.has(u))&&d,{childRows:_,childGroups:p,startRowIndex:h}=e[c],g={id:u,parentId:r,groupKey:c,isExpanded:f,childRows:_,level:l,posInSet:s,startRowIndex:h,setSize:a.length};t.push(g),o.add(g),f&&n(p,u,l+1)}))};return n(s,void 0,0),[t,r];function r(e){return o.has(e)}}),[i,s,e]),{totalRowHeight:f,gridTemplateRows:_,getRowTop:p,getRowHeight:h,findRowIdx:g}=le((()=>{if("number"==typeof o)return{totalRowHeight:o*d.length,gridTemplateRows:` repeat(${d.length}, ${o}px)`,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>ko(e/o)};let e=0,t=" ";const n=d.map((n=>{const r=u(n)?o({type:"GROUP",row:n}):o({type:"ROW",row:n}),l={top:e,height:r};return t+=`${r}px `,e+=r,l})),r=e=>xo(0,yo(d.length-1,e));return{totalRowHeight:e,gridTemplateRows:t,getRowTop:e=>n[r(e)].top,getRowHeight:e=>n[r(e)].height,findRowIdx(e){let o=0,t=n.length-1;for(;o<=t;){const r=o+ko((t-o)/2),l=n[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(t=r-1),o>t)return t}return 0}}}),[u,o,d]);let v=0,m=d.length-1;if(c){const e=4,o=g(n),r=g(n+t);v=xo(0,o-e),m=yo(d.length-1,r+e)}return{rowOverscanStartIdx:v,rowOverscanEndIdx:m,rows:d,rowsCount:a,totalRowHeight:f,gridTemplateRows:_,isGroupRow:u,getRowTop:p,getRowHeight:h,findRowIdx:g}}$e(".h1tr5c9i700-beta12{cursor:pointer;display:flex}.h1tr5c9i700-beta12:focus{outline:none}.h19r0msv700-beta12{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}",{insertAt:"top"});function Po({column:e,sortDirection:o,priority:t,onSort:n,isCellSelected:r}){return e.sortable?Ue(Do,{onSort:n,sortDirection:o,priority:t,isCellSelected:r,children:e.name}):Ue(b,{children:e.name})}function Do({onSort:e,sortDirection:o,priority:t,children:n,isCellSelected:r}){const l=Qe().sortIcon,{ref:i,tabIndex:c}=Ye(r);return Ue("span",{ref:i,tabIndex:c,className:"rdg-header-sort-cell h1tr5c9i700-beta12",onClick:function(o){e(o.ctrlKey||o.metaKey)},onKeyDown:function(o){" "!==o.key&&"Enter"!==o.key||(o.preventDefault(),e(o.ctrlKey||o.metaKey))},children:[Ue("span",{className:"rdg-header-sort-name h19r0msv700-beta12",children:n}),Ue("span",{children:[Ue(l,{sortDirection:o}),t]})]})}$e('.celq7o9700-beta12{touch-action:none}.celq7o9700-beta12:after{content:"";cursor:col-resize;inline-size:10px;inset-block-end:0;inset-block-start:0;inset-inline-end:0;position:absolute}',{insertAt:"top"});function Ho({column:e,colSpan:o,isCellSelected:t,onColumnResize:n,allRowsSelected:r,onAllRowsSelectionChange:l,sortColumns:i,onSortColumnsChange:c,selectCell:s,shouldFocusGrid:a,direction:d}){var u,f;const _="rtl"===d,{ref:p,tabIndex:h,onFocus:g}=No(t),v=null==i?void 0:i.findIndex((o=>o.columnKey===e.key)),m=void 0!==v&&v>-1?i[v]:void 0,w=null==m?void 0:m.direction,b=void 0!==m&&i.length>1?v+1:void 0,y=w&&!b?"ASC"===w?"ascending":"descending":void 0,x=bo(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-beta12"),C=null!=(u=e.headerRenderer)?u:Po;return Ue("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":t,"aria-sort":y,"aria-colspan":o,ref:p,tabIndex:a?0:h,className:x,style:{...wo(e,o),minWidth:e.minWidth,maxWidth:null!=(f=e.maxWidth)?f:void 0},onFocus:function(e){null==g||g(e),a&&s(0)},onClick:function(){s(e.idx)},onDoubleClick:e.resizable?function(o){const{right:t,left:r}=o.currentTarget.getBoundingClientRect();(_?o.clientX-r:t-o.clientX)>11||n(e,"auto")}:void 0,onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:t,pointerId:r}=o,{right:l,left:i}=t.getBoundingClientRect(),c=_?o.clientX-i:l-o.clientX;function s(o){const{right:r,left:l}=t.getBoundingClientRect(),i=_?r+c-o.clientX:o.clientX+c-l;i>0&&n(e,zo(i,e))}c>11||(t.setPointerCapture(r),t.addEventListener("pointermove",s),t.addEventListener("lostpointercapture",(function e(){t.removeEventListener("pointermove",s),t.removeEventListener("lostpointercapture",e)})))}:void 0,children:Ue(C,{column:e,sortDirection:w,priority:b,onSort:function(o){if(null==c)return;const{sortDescendingFirst:t}=e;if(void 0===m){const n={columnKey:e.key,direction:t?"DESC":"ASC"};c(i&&o?[...i,n]:[n])}else{let n;if((t&&"DESC"===w||!t&&"ASC"===w)&&(n={columnKey:e.key,direction:"ASC"===w?"DESC":"ASC"}),o){const e=[...i];n?e[v]=n:e.splice(v,1),c(e)}else c(n?[n]:[])}},allRowsSelected:r,onAllRowsSelectionChange:l,isCellSelected:t})})}$e(".h197vzie700-beta12{background-color:var(--rdg-header-background-color);display:contents;font-weight:700;line-height:var(--rdg-header-row-height)}.h197vzie700-beta12>.c1wupbe700-beta12{inset-block-start:0;position:sticky;z-index:2}.h197vzie700-beta12>.c1730fa4700-beta12{z-index:3}",{insertAt:"top"});function Mo({columns:e,allRowsSelected:o,onAllRowsSelectionChange:t,onColumnResize:n,sortColumns:r,onSortColumnsChange:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:s,shouldFocusGrid:a,direction:d}){const u=[];for(let f=0;f<e.length;f++){const _=e[f],p=uo(_,i,{type:"HEADER"});void 0!==p&&(f+=p-1),u.push(Ue(Ho,{column:_,colSpan:p,isCellSelected:c===_.idx,onColumnResize:n,allRowsSelected:o,onAllRowsSelectionChange:t,onSortColumnsChange:l,sortColumns:r,selectCell:s,shouldFocusGrid:a&&0===f,direction:d},_.key))}return Ue("div",{role:"row","aria-rowindex":1,className:Ke("rdg-header-row h197vzie700-beta12",-1===c&&Ve),style:mo(1),children:u})}const Go=me(Mo);$e(".c1bmg16t700-beta12,.ccpfvsn700-beta12{background-color:#ccf}.c1bmg16t700-beta12.ccpfvsn700-beta12{background-color:#99f}",{insertAt:"top"});function Lo({column:e,colSpan:o,isCellSelected:t,isCopied:n,isDraggedOver:r,row:l,dragHandle:i,onRowClick:c,onRowDoubleClick:s,onRowChange:a,selectCell:d,...u}){const{ref:f,tabIndex:_,onFocus:p}=No(t),{cellClass:h}=e,g=bo(e,"function"==typeof h?h(l):h,n&&"rdg-cell-copied ccpfvsn700-beta12",r&&"rdg-cell-dragged-over c1bmg16t700-beta12");function v(o){d(l,e,o)}return Ue("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":t,"aria-colspan":o,"aria-readonly":!go(e,l)||void 0,ref:f,tabIndex:_,className:g,style:wo(e,o),onClick:function(){var o;v(null==(o=e.editorOptions)?void 0:o.editOnClick),null==c||c(l,e)},onDoubleClick:function(){v(!0),null==s||s(l,e)},onContextMenu:function(){v()},onFocus:p,...u,children:!e.rowGroup&&Ue(b,{children:[Ue(e.formatter,{column:e,row:l,isCellSelected:t,onRowChange:a}),i]})})}const Wo=me(Lo);function Ko({className:e,rowIdx:o,gridRowStart:t,height:n,selectedCellIdx:r,isRowSelected:l,copiedCellIdx:i,draggedOverCellIdx:c,lastFrozenColumnIndex:s,row:a,viewportColumns:d,selectedCellEditor:u,selectedCellDragHandle:f,onRowClick:_,onRowDoubleClick:p,rowClass:h,setDraggedOverRowIdx:g,onMouseEnter:v,onRowChange:m,selectCell:w,...b},y){const x=Ao((e=>{m(o,e)}));e=Ke(Be,"rdg-row-"+(o%2==0?"even":"odd"),null==h?void 0:h(a),e,-1===r&&Ve);const C=[];for(let e=0;e<d.length;e++){const o=d[e],{idx:t}=o,n=uo(o,s,{type:"ROW",row:a});void 0!==n&&(e+=n-1);const l=r===t;l&&u?C.push(u):C.push(Ue(Wo,{column:o,colSpan:n,row:a,isCopied:i===t,isDraggedOver:c===t,isCellSelected:l,dragHandle:l?f:void 0,onRowClick:_,onRowDoubleClick:p,onRowChange:x,selectCell:w},o.key))}return Ue(ro,{value:l,children:Ue("div",{role:"row",ref:y,className:e,onMouseEnter:function(e){null==g||g(o),null==v||v(e)},style:mo(t,n),...b,children:C})})}const jo=me(ye(Ko));function Uo({id:e,groupKey:o,childRows:t,isExpanded:n,isCellSelected:r,column:l,row:i,groupColumnIndex:c,toggleGroup:s}){const{ref:a,tabIndex:d,onFocus:u}=No(r);function f(){s(e)}const _=l.rowGroup&&c===l.idx;return Ue("div",{role:"gridcell","aria-colindex":l.idx+1,"aria-selected":r,ref:a,tabIndex:d,className:bo(l),style:{...wo(l),cursor:_?"pointer":"default"},onClick:_?f:void 0,onFocus:u,children:(!l.rowGroup||c===l.idx)&&l.groupFormatter&&Ue(l.groupFormatter,{groupKey:o,childRows:t,column:l,row:i,isExpanded:n,isCellSelected:r,toggleGroup:f})},l.key)}const $o=me(Uo);$e(".gyxx7e9700-beta12:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e9700-beta12>.c1wupbe700-beta12:not(:last-child):not(.c9dpaye700-beta12){border-inline-end:none}",{insertAt:"top"});function Bo({id:e,groupKey:o,viewportColumns:t,childRows:n,rowIdx:r,row:l,gridRowStart:i,height:c,level:s,isExpanded:a,selectedCellIdx:d,isRowSelected:u,selectGroup:f,toggleGroup:_,...p}){const h=t[0].key===so?s+1:s;return Ue(ro,{value:u,children:Ue("div",{role:"row","aria-level":s,"aria-expanded":a,className:Ke(Be,"rdg-group-row gyxx7e9700-beta12","rdg-row-"+(r%2==0?"even":"odd"),-1===d&&Ve),onClick:function(){f(r)},style:mo(i,c),...p,children:t.map((t=>Ue($o,{id:e,groupKey:o,childRows:n,isExpanded:a,isCellSelected:d===t.idx,column:t,row:l,groupColumnIndex:h,toggleGroup:_},t.key)))})})}const Vo=me(Bo);$e(".s1n3hxke700-beta12{inset-block-end:var(--rdg-summary-row-bottom);inset-block-start:var(--rdg-summary-row-top)}",{insertAt:"top"});function qo({column:e,colSpan:o,row:t,isCellSelected:n,selectCell:r}){const{ref:l,tabIndex:i,onFocus:c}=No(n),{summaryFormatter:s,summaryCellClass:a}=e,d=bo(e,"s1n3hxke700-beta12","function"==typeof a?a(t):a);return Ue("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":n,ref:l,tabIndex:i,className:d,style:wo(e,o),onClick:function(){r(t,e)},onFocus:c,children:s&&Ue(s,{column:e,row:t,isCellSelected:n})})}const Xo=me(qo);$e(".snfqesz700-beta12.r1otpg64700-beta12{line-height:var(--rdg-summary-row-height)}.snfqesz700-beta12.r1otpg64700-beta12>.c1wupbe700-beta12{position:sticky}.s1jijrjz700-beta12>.c1wupbe700-beta12{border-block-start:2px solid var(--rdg-summary-border-color)}",{insertAt:"top"});function Yo({rowIdx:e,gridRowStart:o,row:t,viewportColumns:n,top:r,bottom:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:s,"aria-rowindex":a}){const d=[];for(let e=0;e<n.length;e++){const o=n[e],r=uo(o,i,{type:"SUMMARY",row:t});void 0!==r&&(e+=r-1);const l=c===o.idx;d.push(Ue(Xo,{column:o,colSpan:r,row:t,isCellSelected:l,selectCell:s},o.key))}return Ue("div",{role:"row","aria-rowindex":a,className:Ke(Be,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz700-beta12",0===e&&"s1jijrjz700-beta12",-1===c&&Ve),style:{...mo(o),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:d})}const Jo=me(Yo);$e(".c1tngyp1700-beta12.rdg-cell{padding:0}",{insertAt:"top"});function Zo({column:e,colSpan:o,row:t,onRowChange:n,closeEditor:r,scrollToCell:l}){var i,c,s;const a=re(),d=!1!==(null==(i=e.editorOptions)?void 0:i.commitOnOutsideClick),u=Ao((()=>{_(!0)}));function f(){cancelAnimationFrame(a.current)}function _(e){e?n(t,!0):r()}te((()=>{if(d)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),f()};function e(){a.current=requestAnimationFrame(u)}}),[d,u]);const{cellClass:p}=e,h=bo(e,"rdg-editor-container","function"==typeof p?p(t):p,!(null!=(c=e.editorOptions)&&c.renderFormatter)&&"c1tngyp1700-beta12");return Ue("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":!0,className:h,style:wo(e,o),onKeyDown:function(o){if("Escape"===o.key)o.stopPropagation(),_();else if("Enter"===o.key)o.stopPropagation(),_(!0),l();else{var t,n;(null!=(t=null==(n=e.editorOptions)?void 0:n.onNavigation)?t:po)(o)||o.stopPropagation()}},onMouseDownCapture:d?f:void 0,children:null!=e.editor&&Ue(b,{children:[Ue(e.editor,{column:e,row:t,onRowChange:n,onClose:_}),(null==(s=e.editorOptions)?void 0:s.renderFormatter)&&Ue(e.formatter,{column:e,row:t,isCellSelected:!0,onRowChange:n})]})})}$e(".cadd3bp700-beta12{background-color:var(--rdg-selection-color);block-size:8px;cursor:move;inline-size:8px;inset-block-end:0;inset-inline-end:0;position:absolute}.cadd3bp700-beta12:hover{background-color:var(--rdg-background-color);block-size:16px;border:2px solid var(--rdg-selection-color);inline-size:16px}",{insertAt:"top"});function Qo({rows:e,columns:o,selectedPosition:t,latestDraggedOverRowIdx:n,isCellEditable:r,onRowsChange:l,onFill:i,setDragging:c,setDraggedOverRowIdx:s}){function a(n,c){const{idx:s,rowIdx:a}=t,d=o[s],u=e[a],f=[...e],_=[];for(let o=n;o<c;o++)if(r({rowIdx:o,idx:s})){const t=i({columnKey:d.key,sourceRow:u,targetRow:e[o]});t!==e[o]&&(f[o]=t,_.push(o))}_.length>0&&(null==l||l(f,{indexes:_,column:d}))}return Ue("div",{className:"rdg-cell-drag-handle cadd3bp700-beta12",onMouseDown:function(e){function o(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",o),window.removeEventListener("mouseup",r),c(!1),function(){const e=n.current;if(void 0===e)return;const{rowIdx:o}=t;a(o<e?o+1:e,o<e?e+1:o),s(void 0)}()}1===e.buttons&&(c(!0),window.addEventListener("mouseover",o),window.addEventListener("mouseup",r))},onDoubleClick:function(o){o.stopPropagation(),a(t.rowIdx+1,e.length)}})}$e(".a888944700-beta12{fill:currentColor}.a888944700-beta12>path{transition:d .1s}",{insertAt:"top"});function et({sortDirection:e}){return void 0!==e?Ue("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a888944700-beta12","aria-hidden":!0,children:Ue("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})}):null}const ot={idx:-1,rowIdx:-2,mode:"SELECT"};function tt({columns:e,rows:o,summaryRows:t,rowKeyGetter:n,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:s,onSelectedRowsChange:a,sortColumns:d,onSortColumnsChange:u,defaultColumnOptions:f,groupBy:_,rowGrouper:p,expandedGroupIds:h,onExpandedGroupIdsChange:g,onRowClick:v,onRowDoubleClick:m,onScroll:w,onColumnResize:y,onFill:x,onCopy:C,onPaste:k,cellNavigationMode:R,enableVirtualization:I,components:S,className:E,style:z,rowClass:F,direction:O,"aria-label":A,"aria-labelledby":N,"aria-describedby":T,"data-testid":P},D){var H,M,G,L,W,K,j,U;const $=Qe();null!=l||(l=35);const V=null!=i?i:"number"==typeof l?l:35,q=null!=c?c:"number"==typeof l?l:35,X=null!=(H=null!=(M=null==S?void 0:S.rowRenderer)?M:null==$?void 0:$.rowRenderer)?H:jo,Y=null!=(G=null!=(L=null==S?void 0:S.sortIcon)?L:null==$?void 0:$.sortIcon)?G:et,J=null!=(W=null!=(K=null==S?void 0:S.checkboxFormatter)?K:null==$?void 0:$.checkboxFormatter)?W:qe,Z=null!=(j=null==S?void 0:S.noRowsFallback)?j:null==$?void 0:$.noRowsFallback,Q=null!=R?R:"NONE";null!=I||(I=!0),null!=O||(O="ltr");const[ee,te]=oe(0),[ce,se]=oe(0),[ae,de]=oe((()=>new Map)),[ue,fe]=oe(ot),[_e,pe]=oe(null),[he,ge]=oe(!1),[ve,me]=oe(void 0),[we,be]=oe(null),ye=re(ue),xe=re(ve),Ce=re(-1),ke=re(null),[Re,Ie,Se]=function(){const e=re(null),[o,t]=oe(1),[n,r]=oe(1);return Xe((()=>{const{ResizeObserver:o}=window;if(null==o)return;const{clientWidth:n,clientHeight:l,offsetWidth:i,offsetHeight:c}=e.current,{width:s,height:a}=e.current.getBoundingClientRect(),d=a-c+l;t(Oo(s-i+n)),r(d);const u=new o((e=>{const o=e[0].contentBoxSize[0];t(Oo(o.inlineSize)),r(o.blockSize)}));return u.observe(e.current),()=>{u.disconnect()}}),[]),[e,o,n]}(),Ee=null!=(U=null==t?void 0:t.length)?U:0,ze=Se-V-Ee*q,Fe=null!=s&&null!=a,Oe=-1===ue.rowIdx,Ae="rtl"===O,Ne=Ae?"ArrowRight":"ArrowLeft",Te=Ae?"ArrowLeft":"ArrowRight",Pe=le((()=>({sortIcon:Y,checkboxFormatter:J})),[Y,J]),De=le((()=>{const{length:e}=o;return 0!==e&&null!=s&&null!=n&&s.size>=e&&o.every((e=>s.has(n(e))))}),[o,s,n]),{columns:He,colSpanColumns:Me,colOverscanStartIdx:Ge,colOverscanEndIdx:Le,layoutCssVars:We,columnMetrics:je,lastFrozenColumnIndex:$e,totalFrozenColumnWidth:Be,groupBy:Ve}=function({rawColumns:e,columnWidths:o,viewportWidth:t,scrollLeft:n,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,s,a,d;const u=null==r?void 0:r.width,f=null!=(c=null==r?void 0:r.minWidth)?c:80,_=null==r?void 0:r.maxWidth,p=null!=(s=null==r?void 0:r.formatter)?s:oo,h=null!=(a=null==r?void 0:r.sortable)&&a,g=null!=(d=null==r?void 0:r.resizable)&&d,{columns:v,colSpanColumns:m,lastFrozenColumnIndex:w,groupBy:b}=le((()=>{const o=[];let t=-1;const n=e.map((e=>{var o,n,r,i,c,s,a;const d=null!=(o=null==l?void 0:l.includes(e.key))&&o,v=d||e.frozen||!1,m={...e,idx:0,frozen:v,isLastFrozenColumn:!1,rowGroup:d,width:null!=(n=e.width)?n:u,minWidth:null!=(r=e.minWidth)?r:f,maxWidth:null!=(i=e.maxWidth)?i:_,sortable:null!=(c=e.sortable)?c:h,resizable:null!=(s=e.resizable)?s:g,formatter:null!=(a=e.formatter)?a:p};return d&&(null!=m.groupFormatter||(m.groupFormatter=to)),v&&t++,m}));n.sort((({key:e,frozen:o},{key:t,frozen:n})=>e===so?-1:t===so?1:null!=l&&l.includes(e)?l.includes(t)?l.indexOf(e)-l.indexOf(t):-1:null!=l&&l.includes(t)?1:o?n?0:-1:n?1:0));const r=[];return n.forEach(((e,t)=>{e.idx=t,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==t&&(n[t].isLastFrozenColumn=!0),{columns:n,colSpanColumns:r,lastFrozenColumnIndex:t,groupBy:o}}),[e,u,f,_,p,g,h,l]),{layoutCssVars:y,totalFrozenColumnWidth:x,columnMetrics:C}=le((()=>{const e=new Map;let n=0,r=0,l="",i=0,c=0;for(const n of v){let r=Fo(n,o,t);void 0===r?c++:(r=zo(r,n),i+=r,e.set(n,{width:r,left:0}))}for(const o of v){let r;if(e.has(o)){const t=e.get(o);t.left=n,({width:r}=t)}else r=zo(Co((t-i)/c),o),i+=r,c--,e.set(o,{width:r,left:n});n+=r,l+=`${r}px `}if(-1!==w){const o=e.get(v[w]);r=o.left+o.width}const s={gridTemplateColumns:l};for(let o=0;o<=w;o++){const t=v[o];s[`--rdg-frozen-left-${t.idx}`]=`${e.get(t).left}px`}return{layoutCssVars:s,totalFrozenColumnWidth:r,columnMetrics:e}}),[o,v,t,w]),[k,R]=le((()=>{if(!i)return[0,v.length-1];const e=n+x,o=n+t,r=v.length-1,l=yo(w+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:t}=C.get(v[c]);if(o+t>e)break;c++}let s=c;for(;s<r;){const{left:e,width:t}=C.get(v[s]);if(e+t>=o)break;s++}return[xo(l,c-1),yo(r,s+1)]}),[C,v,w,n,x,t,i]);return{columns:v,colSpanColumns:m,colOverscanStartIdx:k,colOverscanEndIdx:R,layoutCssVars:y,columnMetrics:C,lastFrozenColumnIndex:w,totalFrozenColumnWidth:x,groupBy:b}}({rawColumns:e,columnWidths:ae,scrollLeft:ce,viewportWidth:Ie,defaultColumnOptions:f,rawGroupBy:p?_:void 0,enableVirtualization:I}),{rowOverscanStartIdx:Ye,rowOverscanEndIdx:Je,rows:eo,rowsCount:no,totalRowHeight:ro,gridTemplateRows:lo,isGroupRow:co,getRowTop:ao,getRowHeight:po,findRowIdx:go}=To({rawRows:o,groupBy:Ve,rowGrouper:p,rowHeight:l,clientHeight:ze,scrollTop:ee,expandedGroupIds:h,enableVirtualization:I}),mo=function({columns:e,colSpanColumns:o,rows:t,summaryRows:n,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:s,isGroupRow:a}){const d=le((()=>{if(0===r)return 0;let e=r;const l=(o,t)=>void 0!==t&&o+t>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,uo(r,i,{type:"HEADER"})))break;for(let e=c;e<=s;e++){const n=t[e];if(!a(n)&&l(o,uo(r,i,{type:"ROW",row:n})))break}if(null!=n)for(const e of n)if(l(o,uo(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,s,t,n,r,i,o,a]);return le((()=>{const o=[];for(let t=0;t<=l;t++){const n=e[t];t<d&&!n.frozen||o.push(n)}return o}),[d,l,e])}({columns:He,colSpanColumns:Me,colOverscanStartIdx:Ge,colOverscanEndIdx:Le,lastFrozenColumnIndex:$e,rowOverscanStartIdx:Ye,rowOverscanEndIdx:Je,rows:eo,summaryRows:t,isGroupRow:co}),wo=Ve.length>0&&"function"==typeof p,bo=wo?-1:0,ko=He.length-1,So=-1,No=1+eo.length+Ee-2,Po=dt(ue),Do=ut(ue),Ho=Ao(Yo),Mo=Ao((function(e){if(!a)return;Eo(n);const t=new Set(s);for(const r of o){const o=n(r);e?t.add(o):t.delete(o)}a(t)})),Lo=Ao(it),Wo=Ao(((e,o,t)=>{_t({rowIdx:eo.indexOf(e),idx:o.idx},t)})),Ko=Ao((e=>{_t({rowIdx:e,idx:-1})})),Uo=Ao((e=>{_t({rowIdx:-1,idx:e})})),$o=Ao(((e,o)=>{_t({rowIdx:t.indexOf(e)+1+eo.length-1,idx:o.idx})})),Bo=Ao(tt);Xe((()=>{Po&&!nt(ue,ye.current)?(ye.current=ue,pt(ue),-1===ue.idx&&ke.current.focus({preventScroll:!0})):ye.current=ue})),Xe((()=>{if(null===we)return;const e=Re.current.querySelector(`[aria-colindex="${we.idx+1}"]`),{width:o}=e.getBoundingClientRect();de((e=>{const t=new Map(e);return t.set(we.key,o),t})),be(null),null==y||y(we.idx,o)}),[we,Re,y]),function(e,o,t){B=6,ne((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))}(D,(()=>({element:Re.current,scrollToColumn(e){pt({idx:e})},scrollToRow(e){const{current:o}=Re;o&&o.scrollTo({top:ao(e),behavior:"smooth"})},selectCell:_t})));const qo=ie(((e,o)=>{"auto"!==o?(de((t=>{const n=new Map(t);return n.set(e.key,o),n})),null==y||y(e.idx,o)):be(e)}),[y]),Xo=ie((e=>{me(e),xe.current=e}),[]);function Yo({row:e,checked:o,isShiftClick:t}){if(!a)return;Eo(n);const r=new Set(s);if(co(e)){for(const t of e.childRows){const e=n(t);o?r.add(e):r.delete(e)}return void a(r)}const l=n(e);if(o){r.add(l);const o=Ce.current,i=eo.indexOf(e);if(Ce.current=i,t&&-1!==o&&o!==i){const e=Ro(i-o);for(let t=o+e;t!==i;t+=e){const e=eo[t];co(e)||r.add(n(e))}}}else r.delete(l),Ce.current=-1;a(r)}function tt(e){if(!g)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),g(o)}function rt(e){if(!(e.target instanceof Element))return;const l=null!==e.target.closest(".rdg-cell"),i=wo&&e.target===ke.current;if(!l&&!i)return;const{key:c,keyCode:a}=e,{rowIdx:d}=ue;if(Do&&(null!=k||null!=C)&&_o(e)&&!co(eo[d])&&"SELECT"===ue.mode){const e=86;if(a===67)return void function(){const{idx:e,rowIdx:t}=ue,n=o[lt(t)],r=He[e].key;pe({row:n,columnKey:r}),null==C||C({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!k||!r||null===_e||!ft(ue))return;const{idx:e,rowIdx:t}=ue,n=o[lt(t)],l=k({sourceRow:_e.row,sourceColumnKey:_e.columnKey,targetRow:n,targetColumnKey:He[e].key});it(t,l)}()}if(at(d)){const o=eo[d];if(co(o)&&-1===ue.idx&&(c===Ne&&o.isExpanded||c===Te&&!o.isExpanded))return e.preventDefault(),void tt(o.id)}switch(e.key){case"Escape":return void pe(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){const{key:o,shiftKey:n}=e;let r=Q;if("Tab"===o){if(function({cellNavigationMode:e,maxColIdx:o,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:l},shiftKey:i}){if("NONE"===e||"CHANGE_ROW"===e){const e=l===o,c=0===l,s=r===n,a=r===t;return i?c&&a:e&&s}return!1}({shiftKey:n,cellNavigationMode:Q,maxColIdx:ko,minRowIdx:So,maxRowIdx:No,selectedPosition:ue}))return void ct();r="NONE"===Q?"CHANGE_ROW":Q}e.preventDefault();const l=_o(e),i=function(e,o,t){const{idx:n,rowIdx:r}=ue,l=eo[r],i=Po&&-1===n;if(e===Ne&&i&&co(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=ue.rowIdx-1;o>=0;o--){const t=eo[o];if(co(t)&&t.id===l.parentId){e=o;break}}if(-1!==e)return{idx:n,rowIdx:e}}switch(e){case"ArrowUp":return{idx:n,rowIdx:r-1};case"ArrowDown":return{idx:n,rowIdx:r+1};case Ne:return{idx:n-1,rowIdx:r};case Te:return{idx:n+1,rowIdx:r};case"Tab":return{idx:n+(t?-1:1),rowIdx:r};case"Home":return i?{idx:n,rowIdx:0}:{idx:0,rowIdx:o?So:r};case"End":return i?{idx:n,rowIdx:eo.length-1}:{idx:ko,rowIdx:o?No:r};case"PageUp":{if(ue.rowIdx===So)return ue;const e=ao(r)+po(r)-ze;return{idx:n,rowIdx:e>0?go(e):0}}case"PageDown":{if(ue.rowIdx>=eo.length)return ue;const e=ao(r)+ze;return{idx:n,rowIdx:e<ro?go(e):eo.length-1}}default:return ue}}(o,l,n);if(nt(ue,i))return;_t(function({cellNavigationMode:e,columns:o,colSpanColumns:t,rows:n,summaryRows:r,minRowIdx:l,maxRowIdx:i,currentPosition:{idx:c},nextPosition:s,lastFrozenColumnIndex:a,isCellWithinBounds:d,isGroupRow:u}){let{idx:f,rowIdx:_}=s;const p=e=>{if(_>=0&&_<n.length){const e=n[_];if(u(e))return}for(const o of t){const t=o.idx;if(t>f)break;const l=vo({rows:n,summaryRows:r,rowIdx:_,lastFrozenColumnIndex:a,column:o,isGroupRow:u});if(l&&f>t&&f<l+t){f=t+(e?l:0);break}}};if(d(s)&&p(f-c>0),"NONE"!==e){const t=o.length,n=-1===f;f===t?"CHANGE_ROW"===e?_===i||(f=0,_+=1):f=0:n&&("CHANGE_ROW"===e?_===l||(_-=1,f=t-1):f=t-1,p(!1))}return{idx:f,rowIdx:_}}({columns:He,colSpanColumns:Me,rows:eo,summaryRows:t,minRowIdx:So,maxRowIdx:No,lastFrozenColumnIndex:$e,cellNavigationMode:r,currentPosition:ue,nextPosition:i,isCellWithinBounds:dt,isGroupRow:co}))}(e);break;default:!function(e){var o;if(!Do)return;const t=eo[ue.rowIdx];if(co(t))return;const{key:r,shiftKey:l}=e;if(Fe&&l&&" "===r){Eo(n);const o=n(t);return Yo({row:t,checked:!s.has(o),isShiftClick:!1}),void e.preventDefault()}const i=He[ue.idx];if(null==(o=i.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;ft(ue)&&function(e){return!fo.has(e.key)}(e)&&fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"EDIT",row:t,originalRow:t})))}(e)}}function lt(e){return wo?o.indexOf(eo[e]):e}function it(e,t){if("function"!=typeof r)return;const n=lt(e);if(t===o[n])return;const l=[...o];l[n]=t,r(l,{indexes:[n],column:He[ue.idx]})}function ct(){"EDIT"===ue.mode&&it(ue.rowIdx,ue.row)}function st(e){return e>=bo&&e<=ko}function at(e){return e>=0&&e<eo.length}function dt({idx:e,rowIdx:o}){return o>=So&&o<=No&&st(e)}function ut({idx:e,rowIdx:o}){return at(o)&&st(e)}function ft(e){return ut(e)&&ho({columns:He,rows:eo,selectedPosition:e,isGroupRow:co})}function _t(e,o){if(dt(e))if(ct(),o&&ft(e)){const o=eo[e.rowIdx];fe({...e,mode:"EDIT",row:o,originalRow:o})}else nt(ue,e)?pt(e):fe({...e,mode:"SELECT"})}function pt({idx:e,rowIdx:o}){const{current:n}=Re;if(n){if("number"==typeof e&&e>$e){if(null!=o||(o=ue.rowIdx),!dt({rowIdx:o,idx:e}))return;const{clientWidth:r}=n,l=He[e],{left:i,width:c}=je.get(l);let s=i+c;const a=vo({rows:eo,summaryRows:t,rowIdx:o,lastFrozenColumnIndex:$e,column:l,isGroupRow:co});if(void 0!==a){const{left:e,width:o}=je.get(He[l.idx+a-1]);s=e+o}const d=s>r+ce,u=Ae?-1:1;i<ce+Be?n.scrollLeft=(i-Be)*u:d&&(n.scrollLeft=(s-r)*u)}if("number"==typeof o&&at(o)){const e=ao(o),t=po(o);e<ee?n.scrollTop=e:e+t>ee+ze&&(n.scrollTop=e+t-ze)}}}function ht(e){if(void 0===ve)return;const{rowIdx:o}=ue;return(o<ve?o<e&&e<=ve:o>e&&e>=ve)?ue.idx:void 0}function gt(e){if(ue.rowIdx===e&&"EDIT"!==ue.mode&&!wo&&null!=x)return Ue(Qo,{rows:o,columns:He,selectedPosition:ue,isCellEditable:ft,latestDraggedOverRowIdx:xe,onRowsChange:r,onFill:x,setDragging:ge,setDraggedOverRowIdx:Xo})}function vt(e){if(ue.rowIdx!==e||"SELECT"===ue.mode)return;const{idx:o,row:t}=ue,n=He[o],r=uo(n,$e,{type:"ROW",row:t}),l=()=>{fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))};return eo[ue.rowIdx]!==ue.originalRow&&l(),Ue(Zo,{column:n,colSpan:r,row:t,onRowChange:(e,o)=>{o?(it(ue.rowIdx,e),l()):fe((o=>({...o,row:e})))},closeEditor:l,scrollToCell:()=>{pt(ue)}},n.key)}function mt(e){const o=He[ue.idx];return void 0===o||ue.rowIdx!==e||mo.includes(o)?mo:ue.idx>Le?[...mo,o]:[...mo.slice(0,$e+1),o,...mo.slice($e+1)]}(ue.idx>ko||ue.rowIdx>No)&&(fe(ot),Xo(void 0));let wt=`${V}px`;eo.length>0&&(wt+=lo),Ee>0&&(wt+=` repeat(${Ee}, ${q}px)`);const bt=-1===ue.idx&&-2!==ue.rowIdx;return Ue("div",{role:wo?"treegrid":"grid","aria-label":A,"aria-labelledby":N,"aria-describedby":T,"aria-multiselectable":!!Fe||void 0,"aria-colcount":He.length,"aria-rowcount":1+no+Ee,className:Ke("rdg r104f42s700-beta12",E,he&&"rdg-viewport-dragging v7ly7s700-beta12",null!==we&&"cd0kgiy700-beta12"),style:{...z,gridTemplateRows:wt,"--rdg-header-row-height":`${V}px`,"--rdg-summary-row-height":`${q}px`,"--rdg-sign":Ae?-1:1,...function(){if(null===we)return We;const{gridTemplateColumns:e}=We,o=e.split(" ");return o[we.idx]="max-content",{...We,gridTemplateColumns:o.join(" ")}}()},dir:O,ref:Re,onScroll:function(e){const{scrollTop:o,scrollLeft:t}=e.currentTarget;te(o),se(Io(t)),null==w||w(e)},onKeyDown:rt,"data-testid":P,children:[wo&&Ue("div",{ref:ke,tabIndex:bt?0:-1,className:Ke("fc4f4zb700-beta12",bt&&["rel5gk2700-beta12",-1!==$e&&"r1qymf1z700-beta12"]),style:{gridRowStart:ue.rowIdx+2},onKeyDown:rt}),Ue(Ze,{value:Pe,children:[Ue(Go,{columns:mt(-1),onColumnResize:qo,allRowsSelected:De,onAllRowsSelectionChange:Mo,sortColumns:d,onSortColumnsChange:u,lastFrozenColumnIndex:$e,selectedCellIdx:Oe?ue.idx:void 0,selectCell:Uo,shouldFocusGrid:!Po,direction:O}),0===eo.length&&Z?Z:Ue(b,{children:[Ue(io,{value:Ho,children:function(){const e=[];let o=0;const{idx:t,rowIdx:r}=ue,l=Do&&r>Je?Je+1:Je;for(let c=Do&&r<Ye?Ye-1:Ye;c<=l;c++){const l=c===Ye-1||c===Je+1,a=l?r:c;let d=mo;const u=He[t];void 0!==u&&(d=l?[u]:mt(a));const f=eo[a],_=1+a+1;if(co(f)){({startRowIndex:o}=f);const l=Fe&&f.childRows.every((e=>s.has(n(e))));e.push(Ue(Vo,{"aria-level":f.level+1,"aria-setsize":f.setSize,"aria-posinset":f.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":Fe?l:void 0,id:f.id,groupKey:f.groupKey,viewportColumns:d,childRows:f.childRows,rowIdx:a,row:f,gridRowStart:_,height:po(a),level:f.level,isExpanded:f.isExpanded,selectedCellIdx:r===a?t:void 0,isRowSelected:l,selectGroup:Ko,toggleGroup:Bo},f.id));continue}let p;o++;let h=!1;var i;if("function"==typeof n)p=n(f),h=null!=(i=null==s?void 0:s.has(p))&&i;else p=wo?o:a;e.push(Ue(X,{"aria-rowindex":1+(wo?o:a)+1,"aria-selected":Fe?h:void 0,rowIdx:a,row:f,viewportColumns:d,isRowSelected:h,onRowClick:v,onRowDoubleClick:m,rowClass:F,gridRowStart:_,height:po(a),copiedCellIdx:null!==_e&&_e.row===f?He.findIndex((e=>e.key===_e.columnKey)):void 0,selectedCellIdx:r===a?t:void 0,draggedOverCellIdx:ht(a),setDraggedOverRowIdx:he?Xo:void 0,lastFrozenColumnIndex:$e,onRowChange:Lo,selectCell:Wo,selectedCellDragHandle:gt(a),selectedCellEditor:vt(a)},p))}return e}()}),null==t?void 0:t.map(((e,o)=>{const n=1+eo.length+o+1,r=1+eo.length+o-1,l=ue.rowIdx===r,i=ze>ro?Se-q*(t.length-o):void 0,c=void 0===i?q*(t.length-1-o):void 0;return Ue(Jo,{"aria-rowindex":1+no+o+1,rowIdx:o,gridRowStart:n,row:e,top:i,bottom:c,viewportColumns:mt(r),lastFrozenColumnIndex:$e,selectedCellIdx:l?ue.idx:void 0,selectCell:$o},o)}))]})]})]})}function nt(e,o){return e.idx===o.idx&&e.rowIdx===o.rowIdx}const rt=ye(tt);function lt(e,o,t){var n=o;return i([],e,!0).sort((function(e,o){return e[n]<o[n]?t?1:-1:e[n]>o[n]?t?-1:1:0}))}$e(".t16y9g8l700-beta12{appearance:none;background-color:var(--rdg-background-color);block-size:100%;border:2px solid #ccc;box-sizing:border-box;color:var(--rdg-color);font-family:inherit;font-size:var(--rdg-font-size);inline-size:100%;padding-block:0;padding-inline:6px;vertical-align:top}.t16y9g8l700-beta12:focus{border-color:var(--rdg-selection-color);outline:none}.t16y9g8l700-beta12::placeholder{color:#999;opacity:1}",{insertAt:"top"});var it=function(e){return m("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,m("span",null,"--- * --- * ---"))},ct=function(e){var t,n=e.table,r=e.sort,l=[le((function(){return t.columns()}),[t=n,t.dataChecksum()]),le((function(){return t.data()}),[t,t.dataChecksum()])],c=l[0],s=l[1],a=n.multiSelect(),d=n.columnTypes(),u=n.columnPatterns(),f=n.columnFormats(),_=oe([]),p=_[0],h=_[1],g=oe(),v=g[0],w=g[1],b=oe([]),y=b[0],x=b[1],C=oe(new Set),k=C[0],R=C[1];te((function(){h(i(i([],a?[ao]:[],!0),c.map((function(e){var t,n,r,l;switch(null!==(t=d[e])&&void 0!==t?t:"string"){case"time":r=void 0!==u[e]?o.timeParse(u[e]):void 0,l=void 0!==f[e]?o.timeFormat(f[e]):void 0;break;case"number":n=function(e){return m("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:l=void 0!==f[e]?o.format(f[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,formatter:n,__hpcc_pattern:r,__hpcc_format:l}})),!0))}),[f,u,d,c,a]);var I=ie((function(e){var o=e.slice(-1)[0],t=void 0!==o,n="DESC"===(null==o?void 0:o.direction);w(o),x(lt(y,t?o.columnKey:"key",!!t&&n))}),[y]),S=ie((function(e){return e.key}),[]),E=ie((function(e){R(e)}),[]),z=ie((function(e,o){n.onRowClickCallback(e,o.key)}),[n]);return te((function(){var e=s.map((function(e,o){var t={key:o};return p.forEach((function(o,n){var r=e[n];o.__hpcc_pattern&&o.__hpcc_format?r=o.__hpcc_format(o.__hpcc_pattern(r)):o.__hpcc_pattern?r=o.__hpcc_pattern(r).toString():o.__hpcc_format&&(r=o.__hpcc_format(r)),t[o.key]=r})),t}));(null==r?void 0:r.attribute)&&(e=lt(e,r.attribute,r.descending)),x(e)}),[p,s,r]),m(rt,{columns:p,headerRowHeight:24,rows:y,rowKeyGetter:S,rowHeight:20,components:{noRowsFallback:m(it,{message:n.noDataMessage()})},className:n.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:I,selectedRows:k,onSelectedRowsChange:a?E:void 0,onRowClick:a?void 0:z,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var st=function(e){function i(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(i,e),i.prototype.columnType=function(e,o){var t;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(n(n({},this.columnTypes()),((t={})[e]=o,t))),this)},i.prototype.columnPattern=function(e,o){var t;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(n(n({},this.columnPatterns()),((t={})[e]=o,t))),this)},i.prototype.columnFormat=function(e,o){var t;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(n(n({},this.columnFormats()),((t={})[e]=o,t))),this)},i.prototype.onRowClickCallback=function(e,o){var t;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(t=this._prevColumn)&&void 0!==t?t:"",!1),e&&this.click(e,o,!0),this._prevRow=e,this._prevColumn=o},i.prototype.enter=function(o,t){e.prototype.enter.call(this,o,t),this._div=t.append("div")},i.prototype.update=function(o,t){e.prototype.update.call(this,o,t),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,t){null==o.__k&&(o.textContent=""),L(e,o),"function"==typeof t&&t(),e&&e.__c}(m(ct,{table:this}),this._div.node())},i.prototype.exit=function(o,t){!function(e){!!e.__k&&L(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,t)},i.prototype.click=function(e,o,t){},r([o.publish("...empty...","string","No Data Message"),l("design:type",Function)],i.prototype,"noDataMessage",void 0),r([o.publish(!1,"boolean","Dark Mode"),l("design:type",Function)],i.prototype,"darkMode",void 0),r([o.publish(!1,"boolean","Multiple Selection"),l("design:type",Function)],i.prototype,"multiSelect",void 0),r([o.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),l("design:type",Function)],i.prototype,"columnTypes",void 0),r([o.publish({},"object","Column Patterns"),l("design:type",Function)],i.prototype,"columnPatterns",void 0),r([o.publish({},"object","Column Formats"),l("design:type",Function)],i.prototype,"columnFormats",void 0),i}(o.HTMLWidget);st.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.7",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.3",e.Table=st,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.min.js.map