@hpcc-js/dgrid2 0.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +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,d,u,f,p,_={},h=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,o){for(var t in o)e[t]=o[t];return e}function m(e){var o=e.parentNode;o&&o.removeChild(e)}function w(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 b(e,i,n,r,null)}function b(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 y(e){return e.children}function x(e,o){this.props=e,this.context=o}function C(e,o){if(null==o)return e.__?C(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?C(e):null}function k(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 k(e)}}function R(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!I.__r++||f!==s.debounceRendering)&&((f=s.debounceRendering)||u)(I)}function I(){for(var e;I.__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=v({},r)).__v=r.__v+1,D(i,r,n,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,t,null==l?C(r):l,r.__h),N(t,r),r.__e!=l&&k(r)))}))}function S(e,o,t,n,r,l,i,c,s,a){var d,u,f,p,g,v,m,w=n&&n.__k||h,x=w.length;for(t.__k=[],d=0;d<o.length;d++)if(null!=(p=t.__k[d]=null==(p=o[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?b(null,p,null,null,p):Array.isArray(p)?b(y,{children:p},null,null,null):p.__b>0?b(p.type,p.props,p.key,null,p.__v):p)){if(p.__=t,p.__b=t.__b+1,null===(f=w[d])||f&&p.key==f.key&&p.type===f.type)w[d]=void 0;else for(u=0;u<x;u++){if((f=w[u])&&p.key==f.key&&p.type===f.type){w[u]=void 0;break}f=null}D(e,p,f=f||_,r,l,i,c,s,a),g=p.__e,(u=p.ref)&&f.ref!=u&&(m||(m=[]),f.ref&&m.push(f.ref,null,p),m.push(u,p.__c||g,p)),null!=g?(null==v&&(v=g),"function"==typeof p.type&&p.__k===f.__k?p.__d=s=E(p,s,e):s=F(e,p,f,w,g,s),"function"==typeof t.type&&(t.__d=s)):s&&f.__e==s&&s.parentNode!=e&&(s=C(f))}for(t.__e=v,d=x;d--;)null!=w[d]&&("function"==typeof t.type&&null!=w[d].__e&&w[d].__e==t.__d&&(t.__d=C(n,d+1)),G(w[d],w[d]));if(m)for(d=0;d<m.length;d++)M(m[d],m[++d],m[++d])}function E(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?E(n,o,t):F(t,n,n,r,n.__e,o));return o}function z(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){z(e,o)})):o.push(e)),o}function F(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 O(e,o,t){"-"===o[0]?e.setProperty(o,t):e[o]=null==t?"":"number"!=typeof t||g.test(o)?t:t+"px"}function A(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||O(e.style,o,"");if(t)for(o in t)n&&t[o]===n[o]||O(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?T:P,l):e.removeEventListener(o,l?T:P,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 P(e){this.l[e.type+!1](s.event?s.event(e):e)}function T(e){this.l[e.type+!0](s.event?s.event(e):e)}function D(e,o,t,n,r,l,i,c,a){var d,u,f,p,_,h,g,m,w,b,C,k=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 k){if(m=o.props,w=(d=k.contextType)&&n[d.__c],b=d?w?w.props.value:d.__:n,t.__c?g=(u=o.__c=t.__c).__=u.__E:("prototype"in k&&k.prototype.render?o.__c=u=new k(m,b):(o.__c=u=new x(m,b),u.constructor=k,u.render=W),w&&w.sub(u),u.props=m,u.state||(u.state={}),u.context=b,u.__n=n,f=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=v({},u.__s)),v(u.__s,k.getDerivedStateFromProps(m,u.__s))),p=u.props,_=u.state,f)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&m!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(m,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(m,u.__s,b)||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,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,_,h)}))}u.context=b,u.props=m,u.state=u.__s,(d=s.__r)&&d(o),u.__d=!1,u.__v=o,u.__P=e,d=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(n=v(v({},n),u.getChildContext())),f||null==u.getSnapshotBeforeUpdate||(h=u.getSnapshotBeforeUpdate(p,_)),C=null!=d&&d.type===y&&null==d.key?d.props.children:d,S(e,Array.isArray(C)?C:[C],o,t,n,r,l,i,c,a),u.base=o.__e,o.__h=null,u.__h.length&&i.push(u),g&&(u.__E=u.__=null),u.__e=!1}else null==l&&o.__v===t.__v?(o.__k=t.__k,o.__e=t.__e):o.__e=H(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 N(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 H(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||A(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]||A(e,l,o[l],t[l],n)}(e,p,f,r,s),u)o.__k=[];else if(g=o.props.children,S(e,Array.isArray(g)?g:[g],o,t,n,r&&"foreignObject"!==h,l,i,l?l[0]:t.__k&&C(t,0),s),null!=l)for(g=l.length;g--;)null!=l[g]&&m(l[g]);s||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===h&&!g||"option"===h&&g!==f.value)&&A(e,"value",g,f.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&A(e,"checked",g,f.checked,!1))}return e}function M(e,o,t){try{"function"==typeof e?e(o):e.current=o}catch(e){s.__e(e,t)}}function G(e,o,t){var n,r;if(s.unmount&&s.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||M(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]&&G(n[r],o,"function"!=typeof e.type);t||null==e.__e||m(e.__e),e.__e=e.__d=void 0}function W(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=[],D(o,e=(!n&&t||o).__k=w(y,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),N(l,e)}function K(e,o){var t={__c:o="__cC"+p++,__: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(R)},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=h.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,x.prototype.setState=function(e,o){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},t),this.props)),e&&v(t,e),null!=e&&this.__v&&(o&&this.__h.push(o),R(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},x.prototype.render=y,d=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I.__r=0,p=0;var j,U,B,$=0,q=[],V=s.__b,X=s.__r,Y=s.diffed,J=s.__c,Z=s.unmount;function Q(e,o){s.__h&&s.__h(U,e,$||o),$=0;var t=U.__H||(U.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function ee(e){return $=1,function(e,o,t){var n=Q(j++,2);return n.t=e,n.__c||(n.__=[t?t(o):fe(void 0,o),function(e){var o=n.t(n.__[0],e);n.__[0]!==o&&(n.__=[o,n.__[1]],n.__c.setState({}))}],n.__c=U),n.__}(fe,e)}function oe(e,o){var t=Q(j++,3);!s.__s&&ue(t.__H,o)&&(t.__=e,t.__H=o,U.__H.__h.push(t))}function te(e,o){var t=Q(j++,4);!s.__s&&ue(t.__H,o)&&(t.__=e,t.__H=o,U.__h.push(t))}function ne(e){return $=5,re((function(){return{current:e}}),[])}function re(e,o){var t=Q(j++,7);return ue(t.__H,o)&&(t.__=e(),t.__H=o,t.__h=e),t.__}function le(e,o){return $=8,re((function(){return e}),o)}function ie(e){var o=U.context[e.__c],t=Q(j++,9);return t.c=e,o?(null==t.__&&(t.__=!0,o.sub(U)),o.props.value):e.__}function ce(){for(var e;e=q.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(de),e.__H.__h=[]}catch(o){e.__H.__h=[],s.__e(o,e.__v)}}s.__b=function(e){U=null,V&&V(e)},s.__r=function(e){X&&X(e),j=0;var o=(U=e.__c).__H;o&&(o.__h.forEach(ae),o.__h.forEach(de),o.__h=[])},s.diffed=function(e){Y&&Y(e);var o=e.__c;o&&o.__H&&o.__H.__h.length&&(1!==q.push(o)&&B===s.requestAnimationFrame||((B=s.requestAnimationFrame)||function(e){var o,t=function(){clearTimeout(n),se&&cancelAnimationFrame(o),setTimeout(e)},n=setTimeout(t,100);se&&(o=requestAnimationFrame(t))})(ce)),U=null},s.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ae),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)}})),J&&J(e,o)},s.unmount=function(e){Z&&Z(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{ae(e)}catch(e){o=e}})),o&&s.__e(o,t.__v))};var se="function"==typeof requestAnimationFrame;function ae(e){var o=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=o}function de(e){var o=U;e.__c=e.__(),U=o}function ue(e,o){return!e||e.length!==o.length||o.some((function(o,t){return o!==e[t]}))}function fe(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 _e(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 he(e){this.props=e}function ge(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:_e(this.props,e)}function n(o){return this.shouldComponentUpdate=t,w(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(he.prototype=new x).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,o){return _e(this.props,e)||_e(this.state,o)};var ve=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var me="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function o(o){var t=pe({},o);return delete t.ref,e(t,o.ref||null)}return o.$$typeof=me,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var be=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);be(e,o,t,n)};var ye=s.unmount;function xe(){this.__u=0,this.t=null,this.__b=null}function Ce(e){var o=e.__.__c;return o&&o.__e&&o.__e(e)}function ke(){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),ye&&ye(e)},(xe.prototype=new x).__c=function(e,o){var t=o.__c,n=this;null==n.t&&(n.t=[]),n.t.push(t);var r=Ce(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.__e){var e=n.state.__e;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({__e:n.__b=null});o=n.t.pop();)o.forceUpdate()}},s=!0===o.__h;n.__u++||s||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(i,i)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.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.__e&&w(y,null,e.fallback);return r&&(r.__h=null),[w(y,null,o.__e?null:e.children),r]};var Re=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]}};(ke.prototype=new x).__e=function(e){var o=this,t=Ce(o.__v),n=o.o.get(e);return n[0]++,function(r){var l=function(){o.props.revealOrder?(n.push(r),Re(o,e,n)):r()};t?t(l):l()}},ke.prototype.render=function(e){this.u=null,this.o=new Map;var o=z(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},ke.prototype.componentDidUpdate=ke.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,t){Re(e,t,o)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Se=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ee="undefined"!=typeof document,ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Fe=s.event;function Oe(){}function Ae(){return this.cancelBubble}function Pe(){return this.defaultPrevented}s.event=function(e){return Fe&&(e=Fe(e)),e.persist=Oe,e.isPropagationStopped=Ae,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Te={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];Ee&&"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)&&!ze(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&&Se.test(l)?l=l.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),n[l]=i)}"select"==o&&n.multiple&&Array.isArray(n.value)&&(n.value=z(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==o&&null!=n.defaultValue&&(n.value=z(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&&(Te.enumerable="className"in t,null!=t.className&&(n.class=t.className),Object.defineProperty(n,"className",Te))}e.$$typeof=Ie,De&&De(e)};var Ne=s.__r;function He(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=He(e[o]))&&(n&&(n+=" "),n+=t);else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Me(){for(var e,o,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(o=He(e))&&(n&&(n+=" "),n+=o);return n}s.__r=function(e){Ne&&Ne(e)};var Ge=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:--Ge,__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 Le(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))}}Le(".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"});Le('.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"});Le('.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 Ke="rdg-row r1otpg64700-beta12",je="rdg-row-selected";Le('.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 Ue=we((function({onChange:e,...o},t){return We("label",{className:Me("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?oe:te;function $e(e){const o=ne(null);return Be((()=>{var t;e&&(null==(t=o.current)||t.focus({preventScroll:!0}))}),[e]),{ref:o,tabIndex:e?0:-1}}const qe=K(void 0),Ve=qe.Provider;function Xe(){return ie(qe)}function Ye({value:e,isCellSelected:o,disabled:t,onChange:n,"aria-label":r,"aria-labelledby":l}){const{ref:i,tabIndex:c}=$e(o);return We(Xe().checkboxFormatter,{"aria-label":r,"aria-labelledby":l,ref:i,tabIndex:c,disabled:t,checked:e,onChange:n})}function Je(e){try{return We(y,{children:e.row[e.column.key]})}catch{return null}}Le(".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 Ze({groupKey:e,isExpanded:o,isCellSelected:t,toggleGroup:n}){const{ref:r,tabIndex:l}=$e(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 Qe=K(void 0),eo=Qe.Provider,oo=K(void 0),to=oo.Provider;function no(){const e=ie(Qe),o=ie(oo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}const ro="select-row";const lo={key:ro,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>We(Ye,{"aria-label":"Select All",isCellSelected:e.isCellSelected,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,t]=no();return We(Ye,{"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]=no();return We(Ye,{"aria-label":"Select Group",isCellSelected:e.isCellSelected,value:o,onChange:o=>{t({row:e.row,checked:o,isShiftClick:!1})}})}};function io(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 co=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 so(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function ao({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 uo({selectedPosition:e,columns:o,rows:t,isGroupRow:n}){const r=o[e.idx],l=t[e.rowIdx];return!n(l)&&fo(r,l)}function fo(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 io(r,n,{type:"HEADER"});if(t>=0&&t<e.length){const o=e[t];return l(o)?void 0:io(r,n,{type:"ROW",row:o})}return o?io(r,n,{type:"SUMMARY",row:o[t-e.length]}):void 0}function _o(e,o){return void 0!==o?{"--rdg-grid-row-start":e,"--rdg-row-height":`${o}px`}:{"--rdg-grid-row-start":e}}function ho(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 go(e,...o){return Me("rdg-cell c1wupbe700-beta12",...o,e.frozen&&"rdg-cell-frozen c1730fa4700-beta12",e.isLastFrozenColumn&&"rdg-cell-frozen-last c9dpaye700-beta12")}const{min:vo,max:mo,round:wo,floor:bo,sign:yo,abs:xo,ceil:Co}=Math;function ko(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Ro(e,{minWidth:o,maxWidth:t}){return e=mo(e,o),"number"==typeof t&&t>o?vo(e,t):e}function Io({key:e,width:o},t,n){return t.has(e)?t.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?bo(n*parseInt(o,10)/100):void 0}function So(e){return e-(1===devicePixelRatio?0:Co(devicePixelRatio))}function Eo(e){const o=ne(e);return oe((()=>{o.current=e})),le(((...e)=>{o.current(...e)}),[])}function zo(e){const[o,t]=ee(!1);o&&!e&&t(!1);const n=le((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 Fo({rawRows:e,rowHeight:o,clientHeight:t,scrollTop:n,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[s,a]=re((()=>{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]=re((()=>{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:p,childGroups:_,startRowIndex:h}=e[c],g={id:u,parentId:r,groupKey:c,isExpanded:f,childRows:p,level:l,posInSet:s,startRowIndex:h,setSize:a.length};t.push(g),o.add(g),f&&n(_,u,l+1)}))};return n(s,void 0,0),[t,r];function r(e){return o.has(e)}}),[i,s,e]),{totalRowHeight:f,gridTemplateRows:p,getRowTop:_,getRowHeight:h,findRowIdx:g}=re((()=>{if("number"==typeof o)return{totalRowHeight:o*d.length,gridTemplateRows:` repeat(${d.length}, ${o}px)`,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>bo(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=>mo(0,vo(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+bo((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=mo(0,o-e),m=vo(d.length-1,r+e)}return{rowOverscanStartIdx:v,rowOverscanEndIdx:m,rows:d,rowsCount:a,totalRowHeight:f,gridTemplateRows:p,isGroupRow:u,getRowTop:_,getRowHeight:h,findRowIdx:g}}Le(".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 Oo({column:e,sortDirection:o,priority:t,onSort:n,isCellSelected:r}){return e.sortable?We(Ao,{onSort:n,sortDirection:o,priority:t,isCellSelected:r,children:e.name}):We(y,{children:e.name})}function Ao({onSort:e,sortDirection:o,priority:t,children:n,isCellSelected:r}){const l=Xe().sortIcon,{ref:i,tabIndex:c}=$e(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]})]})}Le('.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 Po({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 p="rtl"===d,{ref:_,tabIndex:h,onFocus:g}=zo(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=go(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-beta12"),C=null!=(u=e.headerRenderer)?u:Oo;return We("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":t,"aria-sort":y,"aria-colspan":o,ref:_,tabIndex:a?0:h,className:x,style:{...ho(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();(p?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=p?o.clientX-i:l-o.clientX;function s(o){const{right:r,left:l}=t.getBoundingClientRect(),i=p?r+c-o.clientX:o.clientX+c-l;i>0&&n(e,Ro(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})})}Le(".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 To({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 p=e[f],_=io(p,i,{type:"HEADER"});void 0!==_&&(f+=_-1),u.push(We(Po,{column:p,colSpan:_,isCellSelected:c===p.idx,onColumnResize:n,allRowsSelected:o,onAllRowsSelectionChange:t,onSortColumnsChange:l,sortColumns:r,selectCell:s,shouldFocusGrid:a&&0===f,direction:d},p.key))}return We("div",{role:"row","aria-rowindex":1,className:Me("rdg-header-row h197vzie700-beta12",-1===c&&je),style:_o(1),children:u})}const Do=ge(To);Le(".c1bmg16t700-beta12,.ccpfvsn700-beta12{background-color:#ccf}.c1bmg16t700-beta12.ccpfvsn700-beta12{background-color:#99f}",{insertAt:"top"});function No({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:p,onFocus:_}=zo(t),{cellClass:h}=e,g=go(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 We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":t,"aria-colspan":o,"aria-readonly":!fo(e,l)||void 0,ref:f,tabIndex:p,className:g,style:ho(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:_,...u,children:!e.rowGroup&&We(y,{children:[We(e.formatter,{column:e,row:l,isCellSelected:t,onRowChange:a}),i]})})}const Ho=ge(No);function Mo({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:p,onRowDoubleClick:_,rowClass:h,setDraggedOverRowIdx:g,onMouseEnter:v,onRowChange:m,selectCell:w,...b},y){const x=Eo((e=>{m(o,e)}));e=Me(Ke,"rdg-row-"+(o%2==0?"even":"odd"),null==h?void 0:h(a),e,-1===r&&je);const C=[];for(let e=0;e<d.length;e++){const o=d[e],{idx:t}=o,n=io(o,s,{type:"ROW",row:a});void 0!==n&&(e+=n-1);const l=r===t;l&&u?C.push(u):C.push(We(Ho,{column:o,colSpan:n,row:a,isCopied:i===t,isDraggedOver:c===t,isCellSelected:l,dragHandle:l?f:void 0,onRowClick:p,onRowDoubleClick:_,onRowChange:x,selectCell:w},o.key))}return We(eo,{value:l,children:We("div",{role:"row",ref:y,className:e,onMouseEnter:function(e){null==g||g(o),null==v||v(e)},style:_o(t,n),...b,children:C})})}const Go=ge(we(Mo));function Wo({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}=zo(r);function f(){s(e)}const p=l.rowGroup&&c===l.idx;return We("div",{role:"gridcell","aria-colindex":l.idx+1,"aria-selected":r,ref:a,tabIndex:d,className:go(l),style:{...ho(l),cursor:p?"pointer":"default"},onClick:p?f:void 0,onFocus:u,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 Lo=ge(Wo);Le(".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 Ko({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===ro?s+1:s;return We(eo,{value:u,children:We("div",{role:"row","aria-level":s,"aria-expanded":a,className:Me(Ke,"rdg-group-row gyxx7e9700-beta12","rdg-row-"+(r%2==0?"even":"odd"),-1===d&&je),onClick:function(){f(r)},style:_o(i,c),..._,children:t.map((t=>We(Lo,{id:e,groupKey:o,childRows:n,isExpanded:a,isCellSelected:d===t.idx,column:t,row:l,groupColumnIndex:h,toggleGroup:p},t.key)))})})}const jo=ge(Ko);Le(".s1n3hxke700-beta12{inset-block-end:var(--rdg-summary-row-bottom);inset-block-start:var(--rdg-summary-row-top)}",{insertAt:"top"});function Uo({column:e,colSpan:o,row:t,isCellSelected:n,selectCell:r}){const{ref:l,tabIndex:i,onFocus:c}=zo(n),{summaryFormatter:s,summaryCellClass:a}=e,d=go(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:d,style:ho(e,o),onClick:function(){r(t,e)},onFocus:c,children:s&&We(s,{column:e,row:t,isCellSelected:n})})}const Bo=ge(Uo);Le(".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 $o({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=io(o,i,{type:"SUMMARY",row:t});void 0!==r&&(e+=r-1);const l=c===o.idx;d.push(We(Bo,{column:o,colSpan:r,row:t,isCellSelected:l,selectCell:s},o.key))}return We("div",{role:"row","aria-rowindex":a,className:Me(Ke,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz700-beta12",0===e&&"s1jijrjz700-beta12",-1===c&&je),style:{..._o(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 qo=ge($o);Le(".c1tngyp1700-beta12.rdg-cell{padding:0}",{insertAt:"top"});function Vo({column:e,colSpan:o,row:t,onRowChange:n,closeEditor:r,scrollToCell:l}){var i,c,s;const a=ne(),d=!1!==(null==(i=e.editorOptions)?void 0:i.commitOnOutsideClick),u=Eo((()=>{p(!0)}));function f(){cancelAnimationFrame(a.current)}function p(e){e?n(t,!0):r()}oe((()=>{if(d)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),f()};function e(){a.current=requestAnimationFrame(u)}}),[d,u]);const{cellClass:_}=e,h=go(e,"rdg-editor-container","function"==typeof _?_(t):_,!(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:ho(e,o),onKeyDown:function(o){if("Escape"===o.key)o.stopPropagation(),p();else if("Enter"===o.key)o.stopPropagation(),p(!0),l();else{var t,n;(null!=(t=null==(n=e.editorOptions)?void 0:n.onNavigation)?t:ao)(o)||o.stopPropagation()}},onMouseDownCapture:d?f:void 0,children:null!=e.editor&&We(y,{children:[We(e.editor,{column:e,row:t,onRowChange:n,onClose:p}),(null==(s=e.editorOptions)?void 0:s.renderFormatter)&&We(e.formatter,{column:e,row:t,isCellSelected:!0,onRowChange:n})]})})}Le(".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 Xo({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],p=[];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,p.push(o))}p.length>0&&(null==l||l(f,{indexes:p,column:d}))}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)}})}Le(".a888944700-beta12{fill:currentColor}.a888944700-beta12>path{transition:d .1s}",{insertAt:"top"});function Yo({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 Jo={idx:-1,rowIdx:-2,mode:"SELECT"};function Zo({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:p,rowGrouper:_,expandedGroupIds:h,onExpandedGroupIdsChange:g,onRowClick:v,onRowDoubleClick:m,onScroll:w,onColumnResize:b,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":P,"aria-describedby":T,"data-testid":D},N){var H,M,G,W,L,K,j,U;const B=Xe();null!=l||(l=35);const q=null!=i?i:"number"==typeof l?l:35,V=null!=c?c:"number"==typeof l?l:35,X=null!=(H=null!=(M=null==S?void 0:S.rowRenderer)?M:null==B?void 0:B.rowRenderer)?H:Go,Y=null!=(G=null!=(W=null==S?void 0:S.sortIcon)?W:null==B?void 0:B.sortIcon)?G:Yo,J=null!=(L=null!=(K=null==S?void 0:S.checkboxFormatter)?K:null==B?void 0:B.checkboxFormatter)?L:Ue,Z=null!=(j=null==S?void 0:S.noRowsFallback)?j:null==B?void 0:B.noRowsFallback,Q=null!=R?R:"NONE";null!=I||(I=!0),null!=O||(O="ltr");const[oe,ie]=ee(0),[ce,se]=ee(0),[ae,de]=ee((()=>new Map)),[ue,fe]=ee(Jo),[pe,_e]=ee(null),[he,ge]=ee(!1),[ve,me]=ee(void 0),[we,be]=ee(null),ye=ne(ue),xe=ne(ve),Ce=ne(-1),ke=ne(null),[Re,Ie,Se]=function(){const e=ne(null),[o,t]=ee(1),[n,r]=ee(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(),d=a-c+l;t(So(s-i+n)),r(d);const u=new o((e=>{const o=e[0].contentBoxSize[0];t(So(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-q-Ee*V,Fe=null!=s&&null!=a,Oe=-1===ue.rowIdx,Ae="rtl"===O,Pe=Ae?"ArrowRight":"ArrowLeft",Te=Ae?"ArrowLeft":"ArrowRight",De=re((()=>({sortIcon:Y,checkboxFormatter:J})),[Y,J]),Ne=re((()=>{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:Ge,colOverscanStartIdx:Le,colOverscanEndIdx:Ke,layoutCssVars:je,columnMetrics:$e,lastFrozenColumnIndex:qe,totalFrozenColumnWidth:Ye,groupBy:Qe}=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,p=null==r?void 0:r.maxWidth,_=null!=(s=null==r?void 0:r.formatter)?s:Je,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}=re((()=>{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:p,sortable:null!=(c=e.sortable)?c:h,resizable:null!=(s=e.resizable)?s:g,formatter:null!=(a=e.formatter)?a:_};return d&&(null!=m.groupFormatter||(m.groupFormatter=Ze)),v&&t++,m}));n.sort((({key:e,frozen:o},{key:t,frozen:n})=>e===ro?-1:t===ro?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}=re((()=>{const e=new Map;let n=0,r=0,l="",i=0,c=0;for(const n of v){let r=Io(n,o,t);void 0===r?c++:(r=Ro(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=Ro(wo((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]=re((()=>{if(!i)return[0,v.length-1];const e=n+x,o=n+t,r=v.length-1,l=vo(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[mo(l,c-1),vo(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:no,rowsCount:lo,totalRowHeight:ao,gridTemplateRows:fo,isGroupRow:_o,getRowTop:ho,getRowHeight:go,findRowIdx:bo}=Fo({rawRows:o,groupBy:Qe,rowGrouper:_,rowHeight:l,clientHeight:ze,scrollTop:oe,expandedGroupIds:h,enableVirtualization:I}),Co=function({columns:e,colSpanColumns:o,rows:t,summaryRows:n,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:s,isGroupRow:a}){const d=re((()=>{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,io(r,i,{type:"HEADER"})))break;for(let e=c;e<=s;e++){const n=t[e];if(!a(n)&&l(o,io(r,i,{type:"ROW",row:n})))break}if(null!=n)for(const e of n)if(l(o,io(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,s,t,n,r,i,o,a]);return re((()=>{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:Ge,colOverscanStartIdx:Le,colOverscanEndIdx:Ke,lastFrozenColumnIndex:qe,rowOverscanStartIdx:eo,rowOverscanEndIdx:oo,rows:no,summaryRows:t,isGroupRow:_o}),zo=Qe.length>0&&"function"==typeof _,Oo=zo?-1:0,Ao=He.length-1,Po=-1,To=1+no.length+Ee-2,No=dt(ue),Ho=ut(ue),Mo=Eo(tt),Wo=Eo((function(e){if(!a)return;ko(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=Eo(it),Ko=Eo(((e,o,t)=>{pt({rowIdx:no.indexOf(e),idx:o.idx},t)})),Uo=Eo((e=>{pt({rowIdx:e,idx:-1})})),Bo=Eo((e=>{pt({rowIdx:-1,idx:e})})),$o=Eo(((e,o)=>{pt({rowIdx:t.indexOf(e)+1+no.length-1,idx:o.idx})})),Zo=Eo(nt);Be((()=>{No&&!Qo(ue,ye.current)?(ye.current=ue,_t(ue),-1===ue.idx&&ke.current.focus({preventScroll:!0})):ye.current=ue})),Be((()=>{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==b||b(we.idx,o)}),[we,Re,b]),function(e,o,t){$=6,te((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))}(N,(()=>({element:Re.current,scrollToColumn(e){_t({idx:e})},scrollToRow(e){const{current:o}=Re;o&&o.scrollTo({top:ho(e),behavior:"smooth"})},selectCell:pt})));const et=le(((e,o)=>{"auto"!==o?(de((t=>{const n=new Map(t);return n.set(e.key,o),n})),null==b||b(e.idx,o)):be(e)}),[b]),ot=le((e=>{me(e),xe.current=e}),[]);function tt({row:e,checked:o,isShiftClick:t}){if(!a)return;ko(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=no.indexOf(e);if(Ce.current=i,t&&-1!==o&&o!==i){const e=yo(i-o);for(let t=o+e;t!==i;t+=e){const e=no[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=zo&&e.target===ke.current;if(!l&&!i)return;const{key:c,keyCode:a}=e,{rowIdx:d}=ue;if(Ho&&(null!=k||null!=C)&&so(e)&&!_o(no[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;_e({row:n,columnKey:r}),null==C||C({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!k||!r||null===pe||!ft(ue))return;const{idx:e,rowIdx:t}=ue,n=o[lt(t)],l=k({sourceRow:pe.row,sourceColumnKey:pe.columnKey,targetRow:n,targetColumnKey:He[e].key});it(t,l)}()}if(at(d)){const o=no[d];if(_o(o)&&-1===ue.idx&&(c===Pe&&o.isExpanded||c===Te&&!o.isExpanded))return e.preventDefault(),void nt(o.id)}switch(e.key){case"Escape":return void _e(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:Po,maxRowIdx:To,selectedPosition:ue}))return void ct();r="NONE"===Q?"CHANGE_ROW":Q}e.preventDefault();const l=so(e),i=function(e,o,t){const{idx:n,rowIdx:r}=ue,l=no[r],i=No&&-1===n;if(e===Pe&&i&&_o(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=ue.rowIdx-1;o>=0;o--){const t=no[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 Pe: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?Po:r};case"End":return i?{idx:n,rowIdx:no.length-1}:{idx:Ao,rowIdx:o?To:r};case"PageUp":{if(ue.rowIdx===Po)return ue;const e=ho(r)+go(r)-ze;return{idx:n,rowIdx:e>0?bo(e):0}}case"PageDown":{if(ue.rowIdx>=no.length)return ue;const e=ho(r)+ze;return{idx:n,rowIdx:e<ao?bo(e):no.length-1}}default:return ue}}(o,l,n);if(Qo(ue,i))return;pt(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:p}=s;const _=e=>{if(p>=0&&p<n.length){const e=n[p];if(u(e))return}for(const o of t){const t=o.idx;if(t>f)break;const l=po({rows:n,summaryRows:r,rowIdx:p,lastFrozenColumnIndex:a,column:o,isGroupRow:u});if(l&&f>t&&f<l+t){f=t+(e?l:0);break}}};if(d(s)&&_(f-c>0),"NONE"!==e){const t=o.length,n=-1===f;f===t?"CHANGE_ROW"===e?p===i||(f=0,p+=1):f=0:n&&("CHANGE_ROW"===e?p===l||(p-=1,f=t-1):f=t-1,_(!1))}return{idx:f,rowIdx:p}}({columns:He,colSpanColumns:Ge,rows:no,summaryRows:t,minRowIdx:Po,maxRowIdx:To,lastFrozenColumnIndex:qe,cellNavigationMode:r,currentPosition:ue,nextPosition:i,isCellWithinBounds:dt,isGroupRow:_o}))}(e);break;default:!function(e){var o;if(!Ho)return;const t=no[ue.rowIdx];if(_o(t))return;const{key:r,shiftKey:l}=e;if(Fe&&l&&" "===r){ko(n);const o=n(t);return tt({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!co.has(e.key)}(e)&&fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"EDIT",row:t,originalRow:t})))}(e)}}function lt(e){return zo?o.indexOf(no[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>=Oo&&e<=Ao}function at(e){return e>=0&&e<no.length}function dt({idx:e,rowIdx:o}){return o>=Po&&o<=To&&st(e)}function ut({idx:e,rowIdx:o}){return at(o)&&st(e)}function ft(e){return ut(e)&&uo({columns:He,rows:no,selectedPosition:e,isGroupRow:_o})}function pt(e,o){if(dt(e))if(ct(),o&&ft(e)){const o=no[e.rowIdx];fe({...e,mode:"EDIT",row:o,originalRow:o})}else Qo(ue,e)?_t(e):fe({...e,mode:"SELECT"})}function _t({idx:e,rowIdx:o}){const{current:n}=Re;if(n){if("number"==typeof e&&e>qe){if(null!=o||(o=ue.rowIdx),!dt({rowIdx:o,idx:e}))return;const{clientWidth:r}=n,l=He[e],{left:i,width:c}=$e.get(l);let s=i+c;const a=po({rows:no,summaryRows:t,rowIdx:o,lastFrozenColumnIndex:qe,column:l,isGroupRow:_o});if(void 0!==a){const{left:e,width:o}=$e.get(He[l.idx+a-1]);s=e+o}const d=s>r+ce,u=Ae?-1:1;i<ce+Ye?n.scrollLeft=(i-Ye)*u:d&&(n.scrollLeft=(s-r)*u)}if("number"==typeof o&&at(o)){const e=ho(o),t=go(o);e<oe?n.scrollTop=e:e+t>oe+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&&!zo&&null!=x)return We(Xo,{rows:o,columns:He,selectedPosition:ue,isCellEditable:ft,latestDraggedOverRowIdx:xe,onRowsChange:r,onFill:x,setDragging:ge,setDraggedOverRowIdx:ot})}function vt(e){if(ue.rowIdx!==e||"SELECT"===ue.mode)return;const{idx:o,row:t}=ue,n=He[o],r=io(n,qe,{type:"ROW",row:t}),l=()=>{fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))};return no[ue.rowIdx]!==ue.originalRow&&l(),We(Vo,{column:n,colSpan:r,row:t,onRowChange:(e,o)=>{o?(it(ue.rowIdx,e),l()):fe((o=>({...o,row:e})))},closeEditor:l,scrollToCell:()=>{_t(ue)}},n.key)}function mt(e){const o=He[ue.idx];return void 0===o||ue.rowIdx!==e||Co.includes(o)?Co:ue.idx>Ke?[...Co,o]:[...Co.slice(0,qe+1),o,...Co.slice(qe+1)]}(ue.idx>Ao||ue.rowIdx>To)&&(fe(Jo),ot(void 0));let wt=`${q}px`;no.length>0&&(wt+=fo),Ee>0&&(wt+=` repeat(${Ee}, ${V}px)`);const bt=-1===ue.idx&&-2!==ue.rowIdx;return We("div",{role:zo?"treegrid":"grid","aria-label":A,"aria-labelledby":P,"aria-describedby":T,"aria-multiselectable":!!Fe||void 0,"aria-colcount":He.length,"aria-rowcount":1+lo+Ee,className:Me("rdg r104f42s700-beta12",E,he&&"rdg-viewport-dragging v7ly7s700-beta12",null!==we&&"cd0kgiy700-beta12"),style:{...z,gridTemplateRows:wt,"--rdg-header-row-height":`${q}px`,"--rdg-summary-row-height":`${V}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;ie(o),se(xo(t)),null==w||w(e)},onKeyDown:rt,"data-testid":D,children:[zo&&We("div",{ref:ke,tabIndex:bt?0:-1,className:Me("fc4f4zb700-beta12",bt&&["rel5gk2700-beta12",-1!==qe&&"r1qymf1z700-beta12"]),style:{gridRowStart:ue.rowIdx+2},onKeyDown:rt}),We(Ve,{value:De,children:[We(Do,{columns:mt(-1),onColumnResize:et,allRowsSelected:Ne,onAllRowsSelectionChange:Wo,sortColumns:d,onSortColumnsChange:u,lastFrozenColumnIndex:qe,selectedCellIdx:Oe?ue.idx:void 0,selectCell:Bo,shouldFocusGrid:!No,direction:O}),0===no.length&&Z?Z:We(y,{children:[We(to,{value:Mo,children:function(){const e=[];let o=0;const{idx:t,rowIdx:r}=ue,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 d=Co;const u=He[t];void 0!==u&&(d=l?[u]:mt(a));const f=no[a],p=1+a+1;if(_o(f)){({startRowIndex:o}=f);const l=Fe&&f.childRows.every((e=>s.has(n(e))));e.push(We(jo,{"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:p,height:go(a),level:f.level,isExpanded:f.isExpanded,selectedCellIdx:r===a?t:void 0,isRowSelected:l,selectGroup:Uo,toggleGroup:Zo},f.id));continue}let _;o++;let h=!1;var i;if("function"==typeof n)_=n(f),h=null!=(i=null==s?void 0:s.has(_))&&i;else _=zo?o:a;e.push(We(X,{"aria-rowindex":1+(zo?o:a)+1,"aria-selected":Fe?h:void 0,rowIdx:a,row:f,viewportColumns:d,isRowSelected:h,onRowClick:v,onRowDoubleClick:m,rowClass:F,gridRowStart:p,height:go(a),copiedCellIdx:null!==pe&&pe.row===f?He.findIndex((e=>e.key===pe.columnKey)):void 0,selectedCellIdx:r===a?t:void 0,draggedOverCellIdx:ht(a),setDraggedOverRowIdx:he?ot:void 0,lastFrozenColumnIndex:qe,onRowChange:Lo,selectCell:Ko,selectedCellDragHandle:gt(a),selectedCellEditor:vt(a)},_))}return e}()}),null==t?void 0:t.map(((e,o)=>{const n=1+no.length+o+1,r=1+no.length+o-1,l=ue.rowIdx===r,i=ze>ao?Se-V*(t.length-o):void 0,c=void 0===i?V*(t.length-1-o):void 0;return We(qo,{"aria-rowindex":1+lo+o+1,rowIdx:o,gridRowStart:n,row:e,top:i,bottom:c,viewportColumns:mt(r),lastFrozenColumnIndex:qe,selectedCellIdx:l?ue.idx:void 0,selectCell:$o},o)}))]})]})]})}function Qo(e,o){return e.idx===o.idx&&e.rowIdx===o.rowIdx}const et=we(Zo);function ot(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}))}Le(".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 tt=function(e){return w("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,w("span",null,"--- * --- * ---"))},nt=function(e){var t,n=e.table,r=e.sort,l=[re((function(){return t.columns()}),[t=n,t.dataChecksum()]),re((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(),p=ee([]),_=p[0],h=p[1],g=ee(),v=g[0],m=g[1],b=ee([]),y=b[0],x=b[1],C=ee(new Set),k=C[0],R=C[1];oe((function(){h(i(i([],a?[lo]:[],!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 w("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=le((function(e){var o=e.slice(-1)[0],t=void 0!==o,n="DESC"===(null==o?void 0:o.direction);m(o),x(ot(y,t?o.columnKey:"key",!!t&&n))}),[y]),S=le((function(e){return e.key}),[]),E=le((function(e){R(e)}),[]),z=le((function(e,o){n.onRowClickCallback(e,o.key)}),[n]);return oe((function(){var e=s.map((function(e,o){var t={key:o};return _.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=ot(e,r.attribute,r.descending)),x(e)}),[_,s,r]),w(et,{columns:_,headerRowHeight:24,rows:y,rowKeyGetter:S,rowHeight:20,components:{noRowsFallback:w(tt,{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 rt=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}(w(nt,{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);rt.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.103.2",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.2.0",e.Table=rt,Object.defineProperty(e,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=index.min.js.map