@hpcc-js/dgrid2 2.3.12 → 2.3.13

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,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};var o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function r(e,t,n,o){var r,i=arguments.length,l=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(l=(i<3?r(l):i>3?r(t,n,l):r(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var c,u,a,s,d,_,f,p,h={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function x(e,t,n){var o,r,i,l={};for(i in t)"key"==i?o=t[i]:"ref"==i?r=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?c.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return C(e,l,o,r,null)}function C(e,t,n,o,r){var i={type:e,props:t,key:n,ref:o,__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!=u.vnode&&u.vnode(i),i}function b(e){return e.children}function I(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__d||n.__e;return"function"==typeof e.type?k(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function R(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!E.__r++||d!==u.debounceRendering)&&((d=u.debounceRendering)||_)(E)}function E(){var e,t,n,o,r,i,l,c,u;for(s.sort(f);e=s.shift();)e.__d&&(t=s.length,o=void 0,r=void 0,i=void 0,c=(l=(n=e).__v).__e,(u=n.__P)&&(o=[],r=[],(i=g({},l)).__v=l.__v+1,M(u,l,i,n.__n,void 0!==u.ownerSVGElement,null!=l.__h?[c]:null,o,null==c?k(l):c,l.__h,r),W(o,l,r),l.__e!=c&&S(l)),s.length>t&&s.sort(f));E.__r=0}function D(e,t,n,o,r,i,l,c,u,a,s){var d,_,f,p,v,g,y,x,I,S=0,R=o&&o.__k||m,E=R.length,D=E,P=t.length;for(n.__k=[],d=0;d<P;d++)null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p||"function"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?C(null,p,null,null,p):w(p)?C(b,{children:p},null,null,null):p.__b>0?C(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(x=O(p,R,y=d+S,D))?f=h:(f=R[x]||h,R[x]=void 0,D--),M(e,p,f,r,i,l,c,u,a,s),v=p.__e,(_=p.ref)&&f.ref!=_&&(f.ref&&U(f.ref,null,p),s.push(_,p.__c||v,p)),null!=v&&(null==g&&(g=v),(I=f===h||null===f.__v)?-1==x&&S--:x!==y&&(x===y+1?S++:x>y?D>P-y?S+=x-y:S--:S=x<y&&x==y-1?x-y:0),y=d+S,"function"!=typeof p.type||x===y&&f.__k!==p.__k?"function"==typeof p.type||x===y&&!I?void 0!==p.__d?(u=p.__d,p.__d=void 0):u=v.nextSibling:u=F(e,v,u):u=T(p,u,e),"function"==typeof n.type&&(n.__d=u))):(f=R[d])&&null==f.key&&f.__e&&(f.__e==u&&(f.__=o,u=k(f)),$(f,f,!1),R[d]=null);for(n.__e=g,d=E;d--;)null!=R[d]&&("function"==typeof n.type&&null!=R[d].__e&&R[d].__e==n.__d&&(n.__d=R[d].__e.nextSibling),$(R[d],R[d]))}function T(e,t,n){for(var o,r=e.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=e,t="function"==typeof o.type?T(o,t,n):F(n,o.__e,t));return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(w(e)?e.some((function(e){P(e,t)})):t.push(e)),t}function F(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function O(e,t,n,o){var r=e.key,i=e.type,l=n-1,c=n+1,u=t[n];if(null===u||u&&r==u.key&&i===u.type)return n;if(o>(null!=u?1:0))for(;l>=0||c<t.length;){if(l>=0){if((u=t[l])&&r==u.key&&i===u.type)return l;l--}if(c<t.length){if((u=t[c])&&r==u.key&&i===u.type)return c;c++}}return-1}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function z(e,t,n,o,r){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||N(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||N(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=Date.now(),e.addEventListener(t,i?A:H,i)):e.removeEventListener(t,i?A:H,i);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function H(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(u.event?u.event(e):e)}function A(e){return this.l[e.type+!0](u.event?u.event(e):e)}function M(e,t,n,o,r,i,l,c,a,s){var d,_,f,p,h,m,v,y,x,C,k,S,R,E,T,P=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,c=t.__e=n.__e,t.__h=null,i=[c]),(d=u.__b)&&d(t);e:if("function"==typeof P)try{if(y=t.props,x=(d=P.contextType)&&o[d.__c],C=d?x?x.props.value:d.__:o,n.__c?v=(_=t.__c=n.__c).__=_.__E:("prototype"in P&&P.prototype.render?t.__c=_=new P(y,C):(t.__c=_=new I(y,C),_.constructor=P,_.render=K),x&&x.sub(_),_.props=y,_.state||(_.state={}),_.context=C,_.__n=o,f=_.__d=!0,_.__h=[],_._sb=[]),null==_.__s&&(_.__s=_.state),null!=P.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=g({},_.__s)),g(_.__s,P.getDerivedStateFromProps(y,_.__s))),p=_.props,h=_.state,_.__v=t,f)null==P.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==p&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(y,C),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(y,_.__s,C)||t.__v===n.__v)){for(t.__v!==n.__v&&(_.props=y,_.state=_.__s,_.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),k=0;k<_._sb.length;k++)_.__h.push(_._sb[k]);_._sb=[],_.__h.length&&l.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(y,_.__s,C),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(p,h,m)}))}if(_.context=C,_.props=y,_.__P=e,_.__e=!1,S=u.__r,R=0,"prototype"in P&&P.prototype.render){for(_.state=_.__s,_.__d=!1,S&&S(t),d=_.render(_.props,_.state,_.context),E=0;E<_._sb.length;E++)_.__h.push(_._sb[E]);_._sb=[]}else do{_.__d=!1,S&&S(t),d=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++R<25);_.state=_.__s,null!=_.getChildContext&&(o=g(g({},o),_.getChildContext())),f||null==_.getSnapshotBeforeUpdate||(m=_.getSnapshotBeforeUpdate(p,h)),D(e,w(T=null!=d&&d.type===b&&null==d.key?d.props.children:d)?T:[T],t,n,o,r,i,l,c,a,s),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),v&&(_.__E=_.__=null)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=c,t.__h=!!a,i[i.indexOf(c)]=null),u.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,o,r,i,l,a,s);(d=u.diffed)&&d(t)}function W(e,t,n){for(var o=0;o<n.length;o++)U(n[o],n[++o],n[++o]);u.__c&&u.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){u.__e(e,t.__v)}}))}function L(e,t,n,o,r,i,l,u,a){var s,d,_,f=n.props,p=t.props,m=t.type,v=0;if("svg"===m&&(r=!0),null!=i)for(;v<i.length;v++)if((s=i[v])&&"setAttribute"in s==!!m&&(m?s.localName===m:3===s.nodeType)){e=s,i[v]=null;break}if(null==e){if(null===m)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),i=null,u=!1}if(null===m)f===p||u&&e.data===p||(e.data=p);else{if(i=i&&c.call(e.childNodes),d=(f=n.props||h).dangerouslySetInnerHTML,_=p.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(function(e,t,n,o,r){var i;for(i in n)"children"===i||"key"===i||i in t||z(e,i,null,n[i],o);for(i in t)r&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||z(e,i,t[i],n[i],o)}(e,p,f,r,u),_)t.__k=[];else if(D(e,w(v=t.props.children)?v:[v],t,n,o,r&&"foreignObject"!==m,i,l,i?i[0]:n.__k&&k(n,0),u,a),null!=i)for(v=i.length;v--;)null!=i[v]&&y(i[v]);u||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==f.value)&&z(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&z(e,"checked",v,f.checked,!1))}return e}function U(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){u.__e(e,n)}}function $(e,t,n){var o,r;if(u.unmount&&u.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||U(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){u.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&$(o[r],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function K(e,t,n){return this.constructor(e,n)}function j(e,t,n){var o,r,i,l;u.__&&u.__(e,t),r=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],l=[],M(t,e=(!o&&n||t).__k=x(b,null,[e]),r||h,h,void 0!==t.ownerSVGElement,!o&&n?[n]:r?null:t.firstChild?c.call(t.childNodes):null,i,!o&&n?n:r?r.__e:t.firstChild,o,l),W(i,e,l)}function B(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,R(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}c=m.slice,u={__e:function(e,t,n,o){for(var r,i,l;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),l=r.__d),l)return r.__E=r}catch(t){e=t}throw e}},a=0,I.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),R(this))},I.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},I.prototype.render=b,s=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,p=0;var V,G,q,Y,X=0,J=[],Z=[],Q=u.__b,ee=u.__r,te=u.diffed,ne=u.__c,oe=u.unmount;function re(e,t){u.__h&&u.__h(G,e,X||t),X=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Z}),n.__[e]}function ie(e){return X=1,function(e,t,n){var o=re(V++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):we(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=G,!G.u)){var r=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var l=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(l=!0)}})),!(!l&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};G.u=!0;var i=G.shouldComponentUpdate,l=G.componentWillUpdate;G.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,r(e,t,n),i=o}l&&l.call(this,e,t,n)},G.shouldComponentUpdate=r}return o.__N||o.__}(we,e)}function le(e,t){var n=re(V++,3);!u.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,G.__H.__h.push(n))}function ce(e,t){var n=re(V++,4);!u.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,G.__h.push(n))}function ue(e){return X=5,ae((function(){return{current:e}}),[])}function ae(e,t){var n=re(V++,7);return ve(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function se(e,t){return X=8,ae((function(){return e}),t)}function de(e){var t=G.context[e.__c],n=re(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function _e(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(he),e.__H.__h.forEach(me),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){G=null,Q&&Q(e)},u.__r=function(e){ee&&ee(e),V=0;var t=(G=e.__c).__H;t&&(q===G?(t.__h=[],G.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Z,e.__N=e.i=void 0}))):(t.__h.forEach(he),t.__h.forEach(me),t.__h=[],V=0)),q=G},u.diffed=function(e){te&&te(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&Y===u.requestAnimationFrame||((Y=u.requestAnimationFrame)||pe)(_e)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Z&&(e.__=e.__V),e.i=void 0,e.__V=Z}))),q=G=null},u.__c=function(e,t){t.some((function(e){try{e.__h.forEach(he),e.__h=e.__h.filter((function(e){return!e.__||me(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.__e(n,e.__v)}})),ne&&ne(e,t)},u.unmount=function(e){oe&&oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{he(e)}catch(e){t=e}})),n.__H=void 0,t&&u.__e(t,n.__v))};var fe="function"==typeof requestAnimationFrame;function pe(e){var t,n=function(){clearTimeout(o),fe&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))}function he(e){var t=G,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),G=t}function me(e){var t=G;e.__c=e.__(),G=t}function ve(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function ge(e,t){for(var n in t)e[n]=t[n];return e}function ye(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function xe(e){this.props=e}function Ce(e,t){function n(e){var n=this.props.ref,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:ye(this.props,e)}function o(t){return this.shouldComponentUpdate=n,x(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(xe.prototype=new I).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return ye(this.props,e)||ye(this.state,t)};var be=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),be&&be(e)};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ke(e){function t(t){var n=ge({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ie,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Se=u.__e;u.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Se(e,t,n,o)};var Re=u.unmount;function Ee(e,t,n){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=ge({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ee(e,t,n)}))),e}function De(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return De(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Te(){this.__u=0,this.t=null,this.__b=null}function Pe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fe(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Re&&Re(e)},(Te.prototype=new I).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Pe(o.__v),i=!1,l=function(){i||(i=!0,n.__R=null,r?r(c):c())};n.__R=l;var c=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=De(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}},u=!0===t.__h;o.__u++||u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},Te.prototype.componentWillUnmount=function(){this.t=[]},Te.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Ee(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&x(b,null,e.fallback);return r&&(r.__h=null),[x(b,null,t.__a?null:e.children),r]};var Oe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Fe.prototype=new I).__a=function(e){var t=this,n=Pe(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Oe(t,e,o)):r()};n?n(i):i()}},Fe.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Oe(e,n,t)}))};var Ne="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/,He=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ae=/[A-Z0-9]/g,Me="undefined"!=typeof document,We=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Le=u.event;function Ue(){}function $e(){return this.cancelBubble}function Ke(){return this.defaultPrevented}u.event=function(e){return Le&&(e=Le(e)),e.persist=Ue,e.isPropagationStopped=$e,e.isDefaultPrevented=Ke,e.nativeEvent=e};var je={enumerable:!1,configurable:!0,get:function(){return this.class}},Be=u.vnode;u.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var r in t){var i=t[r];if(!("value"===r&&"defaultValue"in t&&null==i||Me&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var l=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===i?i="":"ondoubleclick"===l?r="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||We(t.type)?"onfocus"===l?r="onfocusin":"onblur"===l?r="onfocusout":He.test(r)?r=l:-1===n.indexOf("-")&&ze.test(r)?r=r.replace(Ae,"-$&").toLowerCase():null===i&&(i=void 0):l=r="oninput","oninput"===l&&o[r=l]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=P(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=P(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",je)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=Ne,Be&&Be(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var Ge=u.diffed;u.diffed=function(e){Ge&&Ge(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var qe=function(e,t){return e(t)};function Ye(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ye(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Xe(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Ye(e))&&(o&&(o+=" "),o+=t);return o}var Je=0;function Ze(e,t,n,o,r,i){var l,c,a={};for(c in t)"ref"==c?l=t[c]:a[c]=t[c];var s={type:e,props:a,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Je,__source:r,__self:i};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===a[c]&&(a[c]=l[c]);return u.vnode&&u.vnode(s),s}function Qe(e,t,n){const o="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(o)&&o>1&&(!e.frozen||e.idx+o-1<=t))return o}function et(e){e.stopPropagation()}function tt(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function nt(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const ot=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 rt(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}const it="mlln6zg7-0-0-beta-40";function lt(e){return e.map((({key:e,idx:t,minWidth:n,maxWidth:o})=>Ze("div",{className:it,style:{gridColumnStart:t+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":e},e)))}function ct({selectedPosition:e,columns:t,rows:n}){return ut(t[e.idx],n[e.rowIdx])}function ut(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function at({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:o,mainHeaderRowIdx:r,lastFrozenColumnIndex:i,column:l}){const c=t?.length??0;if(o===r)return Qe(l,i,{type:"HEADER"});if(t&&o>r&&o<=c+r)return Qe(l,i,{type:"SUMMARY",row:t[o+c]});if(o>=0&&o<e.length){return Qe(l,i,{type:"ROW",row:e[o]})}return n?Qe(l,i,{type:"SUMMARY",row:n[o-e.length]}):void 0}function st({moveUp:e,moveNext:t,cellNavigationMode:n,columns:o,colSpanColumns:r,rows:i,topSummaryRows:l,bottomSummaryRows:c,minRowIdx:u,mainHeaderRowIdx:a,maxRowIdx:s,currentPosition:{idx:d,rowIdx:_},nextPosition:f,lastFrozenColumnIndex:p,isCellWithinBounds:h}){let{idx:m,rowIdx:v}=f;const w=o.length,g=e=>{for(const t of r){const n=t.idx;if(n>m)break;const o=at({rows:i,topSummaryRows:l,bottomSummaryRows:c,rowIdx:v,mainHeaderRowIdx:a,lastFrozenColumnIndex:p,column:t});if(o&&m>n&&m<o+n){m=n+(e?o:0);break}}},y=e=>e.level+a;if(h(f)&&(g(t),v<a&&(()=>{if(t){let e=o[m].parent;for(;void 0!==e;){const t=y(e);if(v===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=o[m].parent,t=!1;for(;void 0!==e;){const n=y(e);if(v>=n){m=e.idx,v=n,t=!0;break}e=e.parent}t||(m=d,v=_)}})()),"CHANGE_ROW"===n){const e=-1===m;if(m===w){v===s||(m=0,v+=1)}else if(e){v===u||(v-=1,m=w-1),g(!1)}}if(v<a){let e=o[m].parent;const t=v;for(v=a;void 0!==e;){const n=y(e);n>=t&&(v=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:v}}const dt="rdg-cell cj343x07-0-0-beta-40",_t="rdg-cell-frozen csofj7r7-0-0-beta-40",ft="rdg-cell-frozen-last ch2wcw87-0-0-beta-40";function pt(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function ht(e,t,n){const o=t+1,r=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:o,paddingBlockStart:r}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:o-n,gridRowEnd:o,paddingBlockStart:r}}function mt(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function vt(e,...t){return Xe(dt,...t,e.frozen&&_t,e.isLastFrozenColumn&&ft)}const{min:wt,max:gt,round:yt,floor:xt,sign:Ct,abs:bt}=Math;function It(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function kt(e,{minWidth:t,maxWidth:n}){return e=gt(e,t),"number"==typeof n&&n>=t?wt(e,n):e}function St(e,t){return void 0===e.parent?t:e.level-e.parent.level}const Rt="rdg-checkbox-label c1bn88vv7-0-0-beta-40",Et="rdg-checkbox-input c1qt073l7-0-0-beta-40",Dt="rdg-checkbox cf71kmq7-0-0-beta-40",Tt="rdg-checkbox-label-disabled c1lwve4p7-0-0-beta-40";function Pt({onChange:e,...t}){return Ze("label",{className:Xe(Rt,t.disabled&&Tt),children:[Ze("input",{type:"checkbox",...t,className:Et,onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),Ze("div",{className:Dt})]})}function Ft(e){try{return e.row[e.column.key]}catch{return null}}const Ot=B(void 0),Nt=Ot.Provider;function zt(){return de(Ot)}function Ht({value:e,tabIndex:t,disabled:n,onChange:o,"aria-label":r,"aria-labelledby":i}){return(0,zt().renderCheckbox)({"aria-label":r,"aria-labelledby":i,tabIndex:t,disabled:n,checked:e,onChange:o})}const At=B(void 0),Mt=At.Provider,Wt=B(void 0),Lt=Wt.Provider;function Ut(){const e=de(At),t=de(Wt);if(void 0===e||void 0===t)throw new Error("useRowSelection must be used within DataGrid cells");return[e,t]}const $t="select-row";function Kt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select All",tabIndex:e.tabIndex,value:t,onChange:e=>{n({type:"HEADER",checked:e})}})}function jt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select",tabIndex:e.tabIndex,value:t,onChange:(t,o)=>{n({type:"ROW",row:e.row,checked:t,isShiftClick:o})}})}function Bt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:t=>{n({type:"ROW",row:e.row,checked:t,isShiftClick:!1})}})}const Vt={key:$t,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:e=>Ze(Kt,{...e}),renderCell:e=>Ze(jt,{...e}),renderGroupCell:e=>Ze(Bt,{...e})},Gt="auto",qt=50;function Yt({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:o,scrollLeft:r,enableVirtualization:i}){const l=t?.width??Gt,c=t?.minWidth??qt,u=t?.maxWidth??void 0,a=t?.renderCell??Ft,s=t?.sortable??!1,d=t?.resizable??!1,_=t?.draggable??!1,{columns:f,colSpanColumns:p,lastFrozenColumnIndex:h,headerRowsCount:m}=ae((()=>{let t=-1,n=1;const o=[];!function e(r,i,f){for(const p of r){if("children"in p){const t={name:p.name,parent:f,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,i+1,t);continue}const r=p.frozen??!1,h={...p,parent:f,idx:0,level:0,frozen:r,isLastFrozenColumn:!1,width:p.width??l,minWidth:p.minWidth??c,maxWidth:p.maxWidth??u,sortable:p.sortable??s,resizable:p.resizable??d,draggable:p.draggable??_,renderCell:p.renderCell??a};o.push(h),r&&t++,i>n&&(n=i)}}(e,1),o.sort((({key:e,frozen:t},{key:n,frozen:o})=>e===$t?-1:n===$t?1:t?o?0:-1:o?1:0));const r=[];return o.forEach(((e,t)=>{e.idx=t,Xt(e,t,0),null!=e.colSpan&&r.push(e)})),-1!==t&&(o[t].isLastFrozenColumn=!0),{columns:o,colSpanColumns:r,lastFrozenColumnIndex:t,headerRowsCount:n}}),[e,l,c,u,a,d,s,_]),{templateColumns:v,layoutCssVars:w,totalFrozenColumnWidth:g,columnMetrics:y}=ae((()=>{const e=new Map;let t=0,o=0;const r=[];for(const o of f){let i=n(o);i="number"==typeof i?kt(i,o):o.minWidth,r.push(`${i}px`),e.set(o,{width:i,left:t}),t+=i}if(-1!==h){const t=e.get(f[h]);o=t.left+t.width}const i={};for(let t=0;t<=h;t++){const n=f[t];i[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:r,layoutCssVars:i,totalFrozenColumnWidth:o,columnMetrics:e}}),[n,f,h]),[x,C]=ae((()=>{if(!i)return[0,f.length-1];const e=r+g,t=r+o,n=f.length-1,l=wt(h+1,n);if(e>=t)return[l,l];let c=l;for(;c<n;){const{left:t,width:n}=y.get(f[c]);if(t+n>e)break;c++}let u=c;for(;u<n;){const{left:e,width:n}=y.get(f[u]);if(e+n>=t)break;u++}return[gt(l,c-1),wt(n,u+1)]}),[y,f,h,r,g,o,i]);return{columns:f,colSpanColumns:p,colOverscanStartIdx:x,colOverscanEndIdx:C,templateColumns:v,layoutCssVars:w,headerRowsCount:m,lastFrozenColumnIndex:h,totalFrozenColumnWidth:g}}function Xt(e,t,n){if(n<e.level&&(e.level=n),void 0!==e.parent){const{parent:o}=e;-1===o.idx&&(o.idx=t),o.colSpan+=1,Xt(o,t,n-1)}}const Jt="undefined"==typeof window?le:ce;function Zt(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,o=e.current.querySelector(n);return o?.getBoundingClientRect().width}function Qt(e){const t=ue(e);le((()=>{t.current=e}));const n=se(((...e)=>{t.current(...e)}),[]);return e?n:e}function en(e){const[t,n]=ie(!1);t&&!e&&n(!1);return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}const tn="c1creorc7-0-0-beta-40",nn="rdg-cell-drag-handle c1w9bbhr7-0-0-beta-40";function on({gridRowStart:e,rows:t,column:n,columnWidth:o,selectedPosition:r,latestDraggedOverRowIdx:i,isCellEditable:l,onRowsChange:c,onFill:u,onClick:a,setDragging:s,setDraggedOverRowIdx:d}){const{idx:_,rowIdx:f}=r;function p(e,o){const r=t[f],i=[...t],a=[];for(let c=e;c<o;c++)if(l({rowIdx:c,idx:_})){const e=u({columnKey:n.key,sourceRow:r,targetRow:t[c]});e!==t[c]&&(i[c]=e,a.push(c))}a.length>0&&c?.(i,{indexes:a,column:n})}const h=n.colSpan?.({type:"ROW",row:t[f]})??1,m=mt(n,h);return Ze("div",{style:{...m,gridRowStart:e,insetInlineStart:m.insetInlineStart&&"number"==typeof o?`calc(${m.insetInlineStart} + ${o}px - var(--rdg-drag-handle-size))`:void 0},className:Xe(nn,n.frozen&&tn),onClick:a,onMouseDown:function(e){function t(e){1!==e.buttons&&n()}function n(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",n),s(!1),function(){const e=i.current;if(void 0===e)return;p(f<e?f+1:e,f<e?e+1:f),d(void 0)}()}e.preventDefault(),1===e.buttons&&(s(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),p(f+1,t.length)}})}const rn="cis5rrm7-0-0-beta-40";function ln({column:e,colSpan:t,row:n,rowIdx:o,onRowChange:r,closeEditor:i,onKeyDown:l,navigate:c}){const u=ue(),a=!1!==e.editorOptions?.commitOnOutsideClick,s=Qt((()=>{_(!0,!1)}));function d(){cancelAnimationFrame(u.current)}function _(e=!1,t=!0){e?r(n,!0,t):i(t)}function f(e,t=!1){r(e,t,t)}le((()=>{if(a)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),d()};function e(){u.current=requestAnimationFrame(s)}}),[a,s]);const{cellClass:p}=e,h=vt(e,"rdg-editor-container","function"==typeof p?p(n):p,!e.editorOptions?.displayCellContent&&rn);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:h,style:mt(e,t),onKeyDown:function(t){if(l){const r=nt(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:o,navigate(){c(t)},onClose:_},r),r.isGridDefaultPrevented())return}"Escape"===t.key?_():"Enter"===t.key?_(!0):function({key:e,target:t}){return"Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&1===t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length}(t)&&c(t)},onMouseDownCapture:d,children:null!=e.renderEditCell&&Ze(b,{children:[e.renderEditCell({column:e,row:n,onRowChange:f,onClose:_}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:f})]})})}function cn({column:e,rowIdx:t,isCellSelected:n,selectCell:o}){const{tabIndex:r,onFocus:i}=en(n),{colSpan:l}=e,c=St(e,t),u=e.idx+1;return Ze("div",{role:"columnheader","aria-colindex":u,"aria-colspan":l,"aria-rowspan":c,"aria-selected":n,tabIndex:r,className:Xe(dt,e.headerCellClass),style:{...ht(e,t,c),gridColumnStart:u,gridColumnEnd:u+l},onFocus:i,onClick:function(){o({idx:e.idx,rowIdx:t})},children:e.name})}const un="h44jtk67-0-0-beta-40",an="rdg-header-sort-name hcgkhxz7-0-0-beta-40";function sn({column:e,sortDirection:t,priority:n}){return e.sortable?Ze(dn,{sortDirection:t,priority:n,children:e.name}):e.name}function dn({sortDirection:e,priority:t,children:n}){const o=zt().renderSortStatus;return Ze("span",{className:un,children:[Ze("span",{className:an,children:n}),Ze("span",{children:o({sortDirection:e,priority:t})})]})}const _n="c6l2wv17-0-0-beta-40",fn="rdg-cell-resizable c1kqdw7y7-0-0-beta-40",pn="r1y6ywlx7-0-0-beta-40",hn="rdg-cell-draggable",mn="rdg-cell-dragging c1bezg5o7-0-0-beta-40",vn="rdg-cell-drag-over c1vc96037-0-0-beta-40";function wn({column:e,colSpan:t,rowIdx:n,isCellSelected:o,onColumnResize:r,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:c,selectCell:u,shouldFocusGrid:a,direction:s,dragDropKey:d}){const[_,f]=ie(!1),[p,h]=ie(!1),m="rtl"===s,v=St(e,n),{tabIndex:w,childTabIndex:g,onFocus:y}=en(o),x=l?.findIndex((t=>t.columnKey===e.key)),C=void 0!==x&&x>-1?l[x]:void 0,b=C?.direction,I=void 0!==C&&l.length>1?x+1:void 0,k=b&&!I?"ASC"===b?"ascending":"descending":void 0,{sortable:S,resizable:R,draggable:E}=e,D=vt(e,e.headerCellClass,S&&_n,R&&fn,E&&hn,_&&mn,p&&vn),T=e.renderHeaderCell??sn;function P(t){if(null==c)return;const{sortDescendingFirst:n}=e;if(void 0===C){const o={columnKey:e.key,direction:n?"DESC":"ASC"};c(l&&t?[...l,o]:[o])}else{let o;if((!0===n&&"DESC"===b||!0!==n&&"ASC"===b)&&(o={columnKey:e.key,direction:"ASC"===b?"DESC":"ASC"}),t){const e=[...l];o?e[x]=o:e.splice(x,1),c(e)}else c(o?[o]:[])}}let F;return E&&(F={draggable:!0,onDragStart:function(t){t.dataTransfer.setData(d,e.key),t.dataTransfer.dropEffect="move",f(!0)},onDragEnd:function(){f(!1)},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){gn(e)&&h(!0)},onDragLeave:function(e){gn(e)&&h(!1)},onDrop:function(t){if(h(!1),t.dataTransfer.types.includes(d)){const n=t.dataTransfer.getData(d);n!==e.key&&(t.preventDefault(),i?.(n,e.key))}}}),Ze("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":v,"aria-selected":o,"aria-sort":k,tabIndex:a?0:w,className:D,style:{...ht(e,n,v),...mt(e,t)},onFocus:function(e){y?.(e),a&&u({idx:0,rowIdx:n})},onClick:function(t){u({idx:e.idx,rowIdx:n}),S&&P(t.ctrlKey||t.metaKey)},onKeyDown:S?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),P(e.ctrlKey||e.metaKey))}:void 0,...F,children:[T({column:e,sortDirection:b,priority:I,tabIndex:g}),R&&Ze("div",{className:pn,onClick:et,onDoubleClick:function(){r(e,"max-content")},onPointerDown:function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;const{currentTarget:n,pointerId:o}=t,i=n.parentElement,{right:l,left:c}=i.getBoundingClientRect(),u=m?t.clientX-c:l-t.clientX;function a(t){t.preventDefault();const{right:n,left:o}=i.getBoundingClientRect(),l=m?n+u-t.clientX:t.clientX+u-o;l>0&&r(e,kt(l,e))}n.setPointerCapture(o),n.addEventListener("pointermove",a),n.addEventListener("lostpointercapture",(function e(){n.removeEventListener("pointermove",a),n.removeEventListener("lostpointercapture",e)}))}})]})}function gn(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const yn="rdg-row r1upfr807-0-0-beta-40",xn="rdg-row-selected",Cn="rdg-header-row h10tskcx7-0-0-beta-40";function bn({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:o,sortColumns:r,onSortColumnsChange:i,lastFrozenColumnIndex:l,selectedCellIdx:c,selectCell:u,shouldFocusGrid:a,direction:s}){const d=function(){var e=re(V++,11);if(!e.__){for(var t=G.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}(),_=[];for(let f=0;f<t.length;f++){const p=t[f],h=Qe(p,l,{type:"HEADER"});void 0!==h&&(f+=h-1),_.push(Ze(wn,{column:p,colSpan:h,rowIdx:e,isCellSelected:c===p.idx,onColumnResize:n,onColumnsReorder:o,onSortColumnsChange:i,sortColumns:r,selectCell:u,shouldFocusGrid:a&&0===f,direction:s,dragDropKey:d},p.key))}return Ze("div",{role:"row","aria-rowindex":e,className:Xe(Cn,-1===c&&xn),children:_})}const In=Ce(bn);function kn({rowIdx:e,level:t,columns:n,selectedCellIdx:o,selectCell:r}){const i=[],l=new Set;for(const c of n){let{parent:n}=c;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!l.has(n)){l.add(n);const{idx:t}=n;i.push(Ze(cn,{column:n,rowIdx:e,isCellSelected:o===t,selectCell:r},t))}}}return Ze("div",{role:"row","aria-rowindex":e,className:Cn,children:i})}const Sn=Ce(kn);function Rn({column:e,colSpan:t,isCellSelected:n,isCopied:o,isDraggedOver:r,row:i,rowIdx:l,onClick:c,onDoubleClick:u,onContextMenu:a,onRowChange:s,selectCell:d,..._}){const{tabIndex:f,childTabIndex:p,onFocus:h}=en(n),{cellClass:m}=e,v=vt(e,"function"==typeof m?m(i):m,o&&"rdg-cell-copied c6ra8a37-0-0-beta-40",r&&"rdg-cell-dragged-over cq910m07-0-0-beta-40"),w=ut(e,i);function g(t){d({rowIdx:l,idx:e.idx},t)}return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!w||void 0,tabIndex:f,className:v,style:mt(e,t),onClick:function(t){if(c){const n=nt(t);if(c({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g()},onDoubleClick:function(t){if(u){const n=nt(t);if(u({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g(!0)},onContextMenu:function(t){if(a){const n=nt(t);if(a({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g()},onFocus:h,..._,children:e.renderCell({column:e,row:i,isCellEditable:w,tabIndex:p,onRowChange:function(t){s(e,t)}})})}const En=Ce(Rn);function Dn({className:e,rowIdx:t,gridRowStart:n,height:o,selectedCellIdx:r,isRowSelected:i,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:u,row:a,viewportColumns:s,selectedCellEditor:d,onCellClick:_,onCellDoubleClick:f,onCellContextMenu:p,rowClass:h,setDraggedOverRowIdx:m,onMouseEnter:v,onRowChange:w,selectCell:g,...y},x){const C=Qt(((e,n)=>{w(e,t,n)}));e=Xe(yn,"rdg-row-"+(t%2==0?"even":"odd"),h?.(a,t),e,-1===r&&xn);const b=[];for(let e=0;e<s.length;e++){const n=s[e],{idx:o}=n,i=Qe(n,u,{type:"ROW",row:a});void 0!==i&&(e+=i-1);const h=r===o;h&&d?b.push(d):b.push(Ze(En,{column:n,colSpan:i,row:a,rowIdx:t,isCopied:l===o,isDraggedOver:c===o,isCellSelected:h,onClick:_,onDoubleClick:f,onContextMenu:p,onRowChange:C,selectCell:g},n.key))}return Ze(Mt,{value:i,children:Ze("div",{role:"row",ref:x,className:e,onMouseEnter:function(e){m?.(t),v?.(e)},style:pt(n,o),...y,children:b})})}const Tn=Ce(ke(Dn));function Pn(e,t){return Ze(Tn,{...t},e)}function Fn({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:o}){const r=ue(null);return Jt((()=>{tt(r.current)})),Jt((()=>{const e=new IntersectionObserver((function(){o(null)}),{root:n,threshold:1});return e.observe(r.current),()=>{e.disconnect()}}),[n,o]),Ze("div",{ref:r,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}const On="rdg-sort-arrow a3ejtar7-0-0-beta-40";function Nn({sortDirection:e,priority:t}){return Ze(b,{children:[zn({sortDirection:e}),Hn({priority:t})]})}function zn({sortDirection:e}){return void 0===e?null:Ze("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:On,"aria-hidden":!0,children:Ze("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Hn({priority:e}){return e}function An({column:e,colSpan:t,row:n,rowIdx:o,isCellSelected:r,selectCell:i}){const{tabIndex:l,childTabIndex:c,onFocus:u}=en(r),{summaryCellClass:a}=e,s=vt(e,"s8wc6fl7-0-0-beta-40","function"==typeof a?a(n):a);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,tabIndex:l,className:s,style:mt(e,t),onClick:function(){i({rowIdx:o,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:c})})}const Mn=Ce(An);function Wn({rowIdx:e,gridRowStart:t,row:n,viewportColumns:o,top:r,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:c,isTop:u,showBorder:a,selectCell:s,"aria-rowindex":d}){const _=[];for(let t=0;t<o.length;t++){const r=o[t],i=Qe(r,l,{type:"SUMMARY",row:n});void 0!==i&&(t+=i-1);const u=c===r.idx;_.push(Ze(Mn,{column:r,colSpan:i,row:n,rowIdx:e,isCellSelected:u,selectCell:s},r.key))}return Ze("div",{role:"row","aria-rowindex":d,className:Xe(yn,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row skuhp557-0-0-beta-40",u?["rdg-top-summary-row tf8l5ub7-0-0-beta-40",a&&"tb9ughf7-0-0-beta-40"]:["rdg-bottom-summary-row",a&&"b1yssfnt7-0-0-beta-40"],-1===c&&xn),style:{...pt(t),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:_})}const Ln=Ce(Wn);function Un(e,t){const{columns:n,rows:o,topSummaryRows:r,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:c,rowHeight:u,headerRowHeight:a,summaryRowHeight:s,selectedRows:d,onSelectedRowsChange:_,sortColumns:f,onSortColumnsChange:p,defaultColumnOptions:h,onCellClick:m,onCellDoubleClick:v,onCellContextMenu:w,onCellKeyDown:g,onSelectedCellChange:y,onScroll:x,onColumnResize:C,onColumnsReorder:I,onFill:k,onCopy:S,onPaste:R,enableVirtualization:E,renderers:D,className:T,style:P,rowClass:F,direction:O,role:N,"aria-label":z,"aria-labelledby":H,"aria-describedby":A,"aria-rowcount":M,"data-testid":W}=e,L=zt(),U=N??"grid",$=u??35,K=a??("number"==typeof $?$:35),j=s??("number"==typeof $?$:35),B=D?.renderRow??L?.renderRow??Pn,V=D?.renderSortStatus??L?.renderSortStatus??Nn,G=D?.renderCheckbox??L?.renderCheckbox??Pt,q=D?.noRowsFallback??L?.noRowsFallback,Y=E??!0,J=O??"ltr",[Z,Q]=ie(0),[ee,te]=ie(0),[ne,oe]=ie((()=>new Map)),[re,le]=ie((()=>new Map)),[de,_e]=ie(null),[fe,pe]=ie(!1),[he,me]=ie(void 0),[ve,we]=ie(null),ge=se((e=>ne.get(e.key)??re.get(e.key)??e.width),[re,ne]),[ye,xe,Ce]=function(){const e=ue(null),[t,n]=ie(1),[o,r]=ie(1);return Jt((()=>{const{ResizeObserver:t}=window;if(null==t)return;const{clientWidth:o,clientHeight:i,offsetWidth:l,offsetHeight:c}=e.current,{width:u,height:a}=e.current.getBoundingClientRect(),s=a-c+i;n(u-l+o),r(s);const d=new t((e=>{const t=e[0].contentBoxSize[0];qe((()=>{n(t.inlineSize),r(t.blockSize)}))}));return d.observe(e.current),()=>{d.disconnect()}}),[]),[e,t,o]}(),{columns:be,colSpanColumns:Ie,lastFrozenColumnIndex:ke,headerRowsCount:Se,colOverscanStartIdx:Re,colOverscanEndIdx:Ee,templateColumns:De,layoutCssVars:Te,totalFrozenColumnWidth:Pe}=Yt({rawColumns:n,defaultColumnOptions:h,getColumnWidth:ge,scrollLeft:ee,viewportWidth:xe,enableVirtualization:Y}),Fe=r?.length??0,Oe=i?.length??0,Ne=Fe+Oe,ze=Se+Fe,He=Se-1,Ae=-ze,Me=Ae+He,We=o.length+Oe-1,[Le,Ue]=ie((()=>({idx:-1,rowIdx:Ae-1,mode:"SELECT"}))),$e=ue(Le),Ke=ue(he),je=ue(-1),Be=ue(null),Ve=ue(!1),Ge="treegrid"===U,Ye=Se*K,Je=Ce-Ye-Ne*j,et=null!=d&&null!=_,it="rtl"===J,ut=it?"ArrowRight":"ArrowLeft",at=it?"ArrowLeft":"ArrowRight",dt=M??Se+o.length+Ne,_t=ae((()=>({renderCheckbox:G,renderSortStatus:V})),[G,V]),ft=ae((()=>{const{length:e}=o;return 0!==e&&null!=d&&null!=l&&d.size>=e&&o.every((e=>d.has(l(e))))}),[o,d,l]),{rowOverscanStartIdx:pt,rowOverscanEndIdx:ht,totalRowHeight:mt,gridTemplateRows:vt,getRowTop:yt,getRowHeight:kt,findRowIdx:St}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:o,enableVirtualization:r}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:c,getRowHeight:u,findRowIdx:a}=ae((()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>xt(e/t)};let n=0,o=" ";const r=e.map((e=>{const r=t(e),i={top:n,height:r};return o+=`${r}px `,n+=r,i})),i=t=>gt(0,wt(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:o,getRowTop:e=>r[i(e)].top,getRowHeight:e=>r[i(e)].height,findRowIdx(e){let t=0,n=r.length-1;for(;t<=n;){const o=t+xt((n-t)/2),i=r[o].top;if(i===e)return o;if(i<e?t=o+1:i>e&&(n=o-1),t>n)return n}return 0}}}),[t,e]);let s=0,d=e.length-1;if(r){const t=4,r=a(o),i=a(o+n);s=gt(0,r-t),d=wt(e.length-1,i+t)}return{rowOverscanStartIdx:s,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:c,getRowHeight:u,findRowIdx:a}}({rows:o,rowHeight:$,clientHeight:Je,scrollTop:Z,enableVirtualization:Y}),Rt=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:c,rowOverscanStartIdx:u,rowOverscanEndIdx:a}){const s=ae((()=>{if(0===i)return 0;let e=i;const l=(t,n)=>void 0!==n&&t+n>i&&(e=t,!0);for(const i of t){const t=i.idx;if(t>=e)break;if(l(t,Qe(i,c,{type:"HEADER"})))break;for(let e=u;e<=a;e++){const o=n[e];if(l(t,Qe(i,c,{type:"ROW",row:o})))break}if(null!=o)for(const e of o)if(l(t,Qe(i,c,{type:"SUMMARY",row:e})))break;if(null!=r)for(const e of r)if(l(t,Qe(i,c,{type:"SUMMARY",row:e})))break}return e}),[u,a,n,o,r,i,c,t]);return ae((()=>{const t=[];for(let n=0;n<=l;n++){const o=e[n];n<s&&!o.frozen||t.push(o)}return t}),[s,l,e])}({columns:be,colSpanColumns:Ie,colOverscanStartIdx:Re,colOverscanEndIdx:Ee,lastFrozenColumnIndex:ke,rowOverscanStartIdx:pt,rowOverscanEndIdx:ht,rows:o,topSummaryRows:r,bottomSummaryRows:i}),{gridTemplateColumns:Et,handleColumnResize:Dt}=function(e,t,n,o,r,i,l,c,u,a){const s=ue(r),d=e.length===t.length,_=d&&r!==s.current,f=[...n],p=[];for(const{key:e,idx:n,width:o}of t)"string"!=typeof o||!_&&l.has(e)||i.has(e)||(f[n]=o,p.push(e));const h=f.join(" ");function m(e){0!==e.length&&u((t=>{const n=new Map(t);let r=!1;for(const i of e){const e=Zt(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t}))}return Jt((()=>{s.current=r,m(p)})),{gridTemplateColumns:h,handleColumnResize:function(e,r){const{key:l}=e,u=[...n],s=[];for(const{key:e,idx:n,width:o}of t)if(l===e){const e="number"==typeof r?`${r}px`:r;u[n]=e}else d&&"string"==typeof o&&!i.has(e)&&(u[n]=o,s.push(e));o.current.style.gridTemplateColumns=u.join(" ");const _="number"==typeof r?r:Zt(o,l);qe((()=>{c((e=>{const t=new Map(e);return t.set(l,_),t})),m(s)})),a?.(e.idx,_)}}}(be,Rt,De,ye,xe,ne,re,oe,le,C),Tt=Ge?-1:0,Ft=be.length-1,Ot=un(Le),Ht=an(Le),At=Qt(Dt),Wt=Qt(I),Ut=Qt(p),$t=Qt(m),Kt=Qt(v),jt=Qt(w),Bt=Qt(en),Vt=Qt(tn),Gt=Qt(dn),qt=Qt((({idx:e,rowIdx:t})=>{dn({rowIdx:Ae+t-1,idx:e})}));Jt((()=>{Ot&&!Kn(Le,$e.current)?($e.current=Le,-1===Le.idx&&(Be.current.focus({preventScroll:!0}),tt(Be.current))):$e.current=Le})),Jt((()=>{Ve.current&&(Ve.current=!1,pn())})),function(e,t,n){X=6,ce((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(t,(()=>({element:ye.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>ke&&e<be.length?e:void 0,o=void 0!==t&&cn(t)?t:void 0;void 0===n&&void 0===o||we({idx:n,rowIdx:o})},selectCell:dn})));const Xt=se((e=>{me(e),Ke.current=e}),[]);function en(e){if(!_)return;if(It(l),"HEADER"===e.type){const t=new Set(d);for(const n of o){const o=l(n);e.checked?t.add(o):t.delete(o)}return void _(t)}const{row:t,checked:n,isShiftClick:r}=e,i=new Set(d),c=l(t);if(n){i.add(c);const e=je.current,n=o.indexOf(t);if(je.current=n,r&&-1!==e&&e!==n){const t=Ct(n-e);for(let r=e+t;r!==n;r+=t){const e=o[r];i.add(l(e))}}}else i.delete(c),je.current=-1;_(i)}function tn(e,t,n){if("function"!=typeof c)return;if(n===o[t])return;const r=[...o];r[t]=n,c(r,{indexes:[t],column:e})}function nn(){"EDIT"===Le.mode&&tn(be[Le.idx],Le.rowIdx,Le.row)}function rn(e){return e>=Tt&&e<=Ft}function cn(e){return e>=0&&e<o.length}function un({idx:e,rowIdx:t}){return t>=Ae&&t<=We&&rn(e)}function an({idx:e,rowIdx:t}){return cn(t)&&rn(e)}function sn(e){return an(e)&&ct({columns:be,rows:o,selectedPosition:e})}function dn(e,t){if(!un(e))return;nn();const n=o[e.rowIdx],r=Kn(Le,e);t&&sn(e)?Ue({...e,mode:"EDIT",row:n,originalRow:n}):r?tt($n(ye.current)):(Ve.current=!0,Ue({...e,mode:"SELECT"})),y&&!r&&y({rowIdx:e.rowIdx,row:n,column:be[e.idx]})}function _n(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:o,idx:r},shiftKey:i}){return i?0===r&&o===t:r===e&&o===n}({shiftKey:n,maxColIdx:Ft,minRowIdx:Ae,maxRowIdx:We,selectedPosition:Le}))return void nn();l="CHANGE_ROW"}e.preventDefault();const c=function(e,t,n){const{idx:r,rowIdx:i}=Le,l=Ot&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case ut:return{idx:r-1,rowIdx:i};case at:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":return l?{idx:r,rowIdx:Ae}:{idx:0,rowIdx:t?Ae:i};case"End":return l?{idx:r,rowIdx:We}:{idx:Ft,rowIdx:t?We:i};case"PageUp":{if(Le.rowIdx===Ae)return Le;const e=yt(i)+kt(i)-Je;return{idx:r,rowIdx:e>0?St(e):0}}case"PageDown":{if(Le.rowIdx>=o.length)return Le;const e=yt(i)+Je;return{idx:r,rowIdx:e<mt?St(e):o.length-1}}default:return Le}}(t,rt(e),n);if(Kn(Le,c))return;dn(st({moveUp:"ArrowUp"===t,moveNext:t===at||"Tab"===t&&!n,columns:be,colSpanColumns:Ie,rows:o,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:Ae,mainHeaderRowIdx:Me,maxRowIdx:We,lastFrozenColumnIndex:ke,cellNavigationMode:l,currentPosition:Le,nextPosition:c,isCellWithinBounds:un}))}function fn(e){if(void 0===he)return;const{rowIdx:t}=Le;return(t<he?t<e&&e<=he:t>e&&e>=he)?Le.idx:void 0}function pn(){const e=$n(ye.current);if(null===e)return;tt(e);(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0})}function hn(e){if(Le.rowIdx!==e||"SELECT"===Le.mode)return;const{idx:t,row:n}=Le,r=be[t],i=Qe(r,ke,{type:"ROW",row:n}),l=e=>{Ve.current=e,Ue((({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"})))};return o[Le.rowIdx]!==Le.originalRow&&l(!1),Ze(ln,{column:r,colSpan:i,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?qe((()=>{tn(r,Le.rowIdx,e),l(n)})):Ue((t=>({...t,row:e})))},closeEditor:l,onKeyDown:g,navigate:_n},r.key)}function mn(e){const t=-1===Le.idx?void 0:be[Le.idx];return void 0===t||Le.rowIdx!==e||Rt.includes(t)?Rt:Le.idx>Ee?[...Rt,t]:[...Rt.slice(0,ke+1),t,...Rt.slice(ke+1)]}(Le.idx>Ft||Le.rowIdx>We)&&(Ue({idx:-1,rowIdx:Ae-1,mode:"SELECT"}),Xt(void 0));let vn=`repeat(${Se}, ${K}px)`;Fe>0&&(vn+=` repeat(${Fe}, ${j}px)`),o.length>0&&(vn+=vt),Oe>0&&(vn+=` repeat(${Oe}, ${j}px)`);const wn=-1===Le.idx&&Le.rowIdx!==Ae-1;return Ze("div",{role:U,"aria-label":z,"aria-labelledby":H,"aria-describedby":A,"aria-multiselectable":!!et||void 0,"aria-colcount":be.length,"aria-rowcount":dt,className:Xe("rdg rnvodz57-0-0-beta-40",T,fe&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...P,scrollPaddingInlineStart:Le.idx>ke||void 0!==ve?.idx?`${Pe}px`:void 0,scrollPaddingBlock:cn(Le.rowIdx)||void 0!==ve?.rowIdx?`${Ye+Fe*j}px ${Oe*j}px`:void 0,gridTemplateColumns:Et,gridTemplateRows:vn,"--rdg-header-row-height":`${K}px`,"--rdg-summary-row-height":`${j}px`,"--rdg-sign":it?-1:1,...Te},dir:J,ref:ye,onScroll:function(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;qe((()=>{Q(t),te(bt(n))})),x?.(e)},onKeyDown:function(e){const{idx:t,rowIdx:n,mode:r}=Le;if("EDIT"===r)return;if(g&&cn(n)){const r=o[n],i=nt(e);if(g({mode:"SELECT",row:r,column:be[t],rowIdx:n,selectCell:dn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),u=Ge&&e.target===Be.current;if(!i&&!u)return;const{keyCode:a}=e;if(Ht&&(null!=R||null!=S)&&rt(e)){const e=86;if(a===67)return void function(){const{idx:e,rowIdx:t}=Le,n=o[t],r=be[e].key;_e({row:n,columnKey:r}),S?.({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!R||!c||null===de||!sn(Le))return;const{idx:e,rowIdx:t}=Le,n=be[e],r=o[t],i=R({sourceRow:de.row,sourceColumnKey:de.columnKey,targetRow:r,targetColumnKey:n.key});tn(n,t,i)}()}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":_n(e);break;default:!function(e){if(!Ht)return;const t=o[Le.rowIdx],{key:n,shiftKey:r}=e;if(et&&r&&" "===n){It(l);const n=l(t);return en({type:"ROW",row:t,checked:!d.has(n),isShiftClick:!1}),void e.preventDefault()}sn(Le)&&function(e){return!ot.has(e.key)}(e)&&Ue((({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t})))}(e)}},"data-testid":W,children:[Ze(Nt,{value:_t,children:Ze(Lt,{value:Bt,children:[Ze(Mt,{value:ft,children:[Array.from({length:He},((e,t)=>Ze(Sn,{rowIdx:t+1,level:-He+t,columns:mn(Ae+t),selectedCellIdx:Le.rowIdx===Ae+t?Le.idx:void 0,selectCell:qt},t))),Ze(In,{rowIdx:Se,columns:mn(Me),onColumnResize:At,onColumnsReorder:Wt,sortColumns:f,onSortColumnsChange:Ut,lastFrozenColumnIndex:ke,selectedCellIdx:Le.rowIdx===Me?Le.idx:void 0,selectCell:qt,shouldFocusGrid:!Ot,direction:J})]}),0===o.length&&q?q:Ze(b,{children:[r?.map(((e,t)=>{const n=Se+1+t,o=Me+1+t,r=Le.rowIdx===o;return Ze(Ln,{"aria-rowindex":n,rowIdx:o,gridRowStart:n,row:e,top:Ye+j*t,bottom:void 0,viewportColumns:mn(o),lastFrozenColumnIndex:ke,selectedCellIdx:r?Le.idx:void 0,isTop:!0,showBorder:t===Fe-1,selectCell:Gt},t)})),function(){const e=[],{idx:t,rowIdx:n}=Le,r=Ht&&n>ht?ht+1:ht;for(let i=Ht&&n<pt?pt-1:pt;i<=r;i++){const r=i===pt-1||i===ht+1,c=r?n:i;let u=Rt;const a=-1===t?void 0:be[t];void 0!==a&&(u=r?[a]:mn(c));const s=o[c],_=ze+c+1;let f=c,p=!1;"function"==typeof l&&(f=l(s),p=d?.has(f)??!1),e.push(B(f,{"aria-rowindex":ze+c+1,"aria-selected":et?p:void 0,rowIdx:c,row:s,viewportColumns:u,isRowSelected:p,onCellClick:$t,onCellDoubleClick:Kt,onCellContextMenu:jt,rowClass:F,gridRowStart:_,height:kt(c),copiedCellIdx:null!==de&&de.row===s?be.findIndex((e=>e.key===de.columnKey)):void 0,selectedCellIdx:n===c?t:void 0,draggedOverCellIdx:fn(c),setDraggedOverRowIdx:fe?Xt:void 0,lastFrozenColumnIndex:ke,onRowChange:Vt,selectCell:Gt,selectedCellEditor:hn(c)}))}return e}(),i?.map(((e,t)=>{const n=ze+o.length+t+1,r=o.length+t,l=Le.rowIdx===r,c=Je>mt?Ce-j*(i.length-t):void 0,u=void 0===c?j*(i.length-1-t):void 0;return Ze(Ln,{"aria-rowindex":dt-Oe+t+1,rowIdx:r,gridRowStart:n,row:e,top:c,bottom:u,viewportColumns:mn(r),lastFrozenColumnIndex:ke,selectedCellIdx:l?Le.idx:void 0,isTop:!1,showBorder:0===t,selectCell:Gt},t)}))]})]})}),function(){if(null==k||"EDIT"===Le.mode||!an(Le))return;const e=be[Le.idx];if(null==e.renderEditCell||!1===e.editable)return;const t=ge(e);return Ze(on,{gridRowStart:ze+Le.rowIdx+1,rows:o,column:e,columnWidth:t,selectedPosition:Le,isCellEditable:sn,latestDraggedOverRowIdx:Ke,onRowsChange:c,onClick:pn,onFill:k,setDragging:pe,setDraggedOverRowIdx:Xt})}(),lt(Rt),Ge&&Ze("div",{ref:Be,tabIndex:wn?0:-1,className:Xe("f1lsfrzw7-0-0-beta-40",wn&&["r190mhd37-0-0-beta-40",-1!==ke&&"r139qu9m7-0-0-beta-40"],!cn(Le.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:Le.rowIdx+ze+1}}),null!==ve&&Ze(Fn,{scrollToPosition:ve,setScrollToCellPosition:we,gridElement:ye.current})]})}function $n(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function Kn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const jn=ke(Un);function Bn(e,t,n){var o=t;return l([],e,!0).sort((function(e,t){return e[o]<t[o]?n?1:-1:e[o]>t[o]?n?-1:1:0}))}var Vn=function(e){return x("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,x("span",null,"--- * --- * ---"))},Gn=function(e){var n,o=e.table,r=e.sort,i=[ae((function(){return n.columns()}),[n=o,n.dataChecksum()]),ae((function(){return n.data()}),[n,n.dataChecksum()])],c=i[0],u=i[1],a=o.multiSelect(),s=o.columnTypes(),d=o.columnPatterns(),_=o.columnFormats(),f=ie([]),p=f[0],h=f[1],m=ie(),v=m[0],w=m[1],g=ie([]),y=g[0],C=g[1],b=ie(new Set),I=b[0],k=b[1];le((function(){h(l(l([],a?[Vt]:[],!0),c.map((function(e){var n,o,r,i;switch(null!==(n=s[e])&&void 0!==n?n:"string"){case"time":r=void 0!==d[e]?t.timeParse(d[e]):void 0,i=void 0!==_[e]?t.timeFormat(_[e]):void 0;break;case"number":o=function(e){return x("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:i=void 0!==_[e]?t.format(_[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:o,__hpcc_pattern:r,__hpcc_format:i}})),!0))}),[_,d,s,c,a]);var S=se((function(e){var t=e.slice(-1)[0],n=void 0!==t,o="DESC"===(null==t?void 0:t.direction);w(t),C(Bn(y,n?t.columnKey:"key",!!n&&o))}),[y]),R=se((function(e){return e.key}),[]),E=se((function(e){k(e)}),[]),D=se((function(e,t){o.onRowClickCallback(e,t.key)}),[o]);return le((function(){var e=u.map((function(e,t){var n={key:t};return p.forEach((function(t,o){var r=e[o];t.__hpcc_pattern&&t.__hpcc_format?r=t.__hpcc_format(t.__hpcc_pattern(r)):t.__hpcc_pattern?r=t.__hpcc_pattern(r).toString():t.__hpcc_format&&(r=t.__hpcc_format(r)),n[t.key]=r})),n}));(null==r?void 0:r.attribute)&&(e=Bn(e,r.attribute,r.descending)),C(e)}),[p,u,r]),x(jn,{columns:p,headerRowHeight:24,rows:y,rowKeyGetter:R,rowHeight:20,renderers:{noRowsFallback:x(Vn,{message:o.noDataMessage()})},className:o.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:S,selectedRows:I,onSelectedRowsChange:a?E:void 0,onCellClick:a?void 0:D,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.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 qn=function(e){function l(){return e.call(this)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(l,e),l.prototype.columnType=function(e,t){var n;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(o(o({},this.columnTypes()),((n={})[e]=t,n))),this)},l.prototype.columnPattern=function(e,t){var n;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(o(o({},this.columnPatterns()),((n={})[e]=t,n))),this)},l.prototype.columnFormat=function(e,t){var n;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(o(o({},this.columnFormats()),((n={})[e]=t,n))),this)},l.prototype.onRowClickCallback=function(e,t){var n;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(n=this._prevColumn)&&void 0!==n?n:"",!1),e&&this.click(e,t,!0),this._prevRow=e,this._prevColumn=t},l.prototype.enter=function(t,n){e.prototype.enter.call(this,t,n),this._div=n.append("div")},l.prototype.update=function(t,n){e.prototype.update.call(this,t,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,t,n){null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e&&e.__c}(x(Gn,{table:this}),this._div.node())},l.prototype.exit=function(t,n){!function(e){!!e.__k&&j(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,t,n)},l.prototype.click=function(e,t,n){},r([t.publish("...empty...","string","No Data Message"),i("design:type",Function)],l.prototype,"noDataMessage",void 0),r([t.publish(!1,"boolean","Dark Mode"),i("design:type",Function)],l.prototype,"darkMode",void 0),r([t.publish(!1,"boolean","Multiple Selection"),i("design:type",Function)],l.prototype,"multiSelect",void 0),r([t.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),i("design:type",Function)],l.prototype,"columnTypes",void 0),r([t.publish({},"object","Column Patterns"),i("design:type",Function)],l.prototype,"columnPatterns",void 0),r([t.publish({},"object","Column Formats"),i("design:type",Function)],l.prototype,"columnFormats",void 0),l}(t.HTMLWidget);qn.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.30",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.12",e.Table=qn,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};var o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function r(e,t,n,o){var r,i=arguments.length,l=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(l=(i<3?r(l):i>3?r(t,n,l):r(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var c,u,a,s,d,_,f,p,h={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function x(e,t,n){var o,r,i,l={};for(i in t)"key"==i?o=t[i]:"ref"==i?r=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?c.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return C(e,l,o,r,null)}function C(e,t,n,o,r){var i={type:e,props:t,key:n,ref:o,__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!=u.vnode&&u.vnode(i),i}function b(e){return e.children}function I(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__d||n.__e;return"function"==typeof e.type?k(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function R(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!E.__r++||d!==u.debounceRendering)&&((d=u.debounceRendering)||_)(E)}function E(){var e,t,n,o,r,i,l,c,u;for(s.sort(f);e=s.shift();)e.__d&&(t=s.length,o=void 0,r=void 0,i=void 0,c=(l=(n=e).__v).__e,(u=n.__P)&&(o=[],r=[],(i=g({},l)).__v=l.__v+1,M(u,l,i,n.__n,void 0!==u.ownerSVGElement,null!=l.__h?[c]:null,o,null==c?k(l):c,l.__h,r),W(o,l,r),l.__e!=c&&S(l)),s.length>t&&s.sort(f));E.__r=0}function D(e,t,n,o,r,i,l,c,u,a,s){var d,_,f,p,v,g,y,x,I,S=0,R=o&&o.__k||m,E=R.length,D=E,P=t.length;for(n.__k=[],d=0;d<P;d++)null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p||"function"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?C(null,p,null,null,p):w(p)?C(b,{children:p},null,null,null):p.__b>0?C(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(x=O(p,R,y=d+S,D))?f=h:(f=R[x]||h,R[x]=void 0,D--),M(e,p,f,r,i,l,c,u,a,s),v=p.__e,(_=p.ref)&&f.ref!=_&&(f.ref&&U(f.ref,null,p),s.push(_,p.__c||v,p)),null!=v&&(null==g&&(g=v),(I=f===h||null===f.__v)?-1==x&&S--:x!==y&&(x===y+1?S++:x>y?D>P-y?S+=x-y:S--:S=x<y&&x==y-1?x-y:0),y=d+S,"function"!=typeof p.type||x===y&&f.__k!==p.__k?"function"==typeof p.type||x===y&&!I?void 0!==p.__d?(u=p.__d,p.__d=void 0):u=v.nextSibling:u=F(e,v,u):u=T(p,u,e),"function"==typeof n.type&&(n.__d=u))):(f=R[d])&&null==f.key&&f.__e&&(f.__e==u&&(f.__=o,u=k(f)),$(f,f,!1),R[d]=null);for(n.__e=g,d=E;d--;)null!=R[d]&&("function"==typeof n.type&&null!=R[d].__e&&R[d].__e==n.__d&&(n.__d=R[d].__e.nextSibling),$(R[d],R[d]))}function T(e,t,n){for(var o,r=e.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=e,t="function"==typeof o.type?T(o,t,n):F(n,o.__e,t));return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(w(e)?e.some((function(e){P(e,t)})):t.push(e)),t}function F(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function O(e,t,n,o){var r=e.key,i=e.type,l=n-1,c=n+1,u=t[n];if(null===u||u&&r==u.key&&i===u.type)return n;if(o>(null!=u?1:0))for(;l>=0||c<t.length;){if(l>=0){if((u=t[l])&&r==u.key&&i===u.type)return l;l--}if(c<t.length){if((u=t[c])&&r==u.key&&i===u.type)return c;c++}}return-1}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function z(e,t,n,o,r){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||N(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||N(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=Date.now(),e.addEventListener(t,i?A:H,i)):e.removeEventListener(t,i?A:H,i);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function H(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(u.event?u.event(e):e)}function A(e){return this.l[e.type+!0](u.event?u.event(e):e)}function M(e,t,n,o,r,i,l,c,a,s){var d,_,f,p,h,m,v,y,x,C,k,S,R,E,T,P=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,c=t.__e=n.__e,t.__h=null,i=[c]),(d=u.__b)&&d(t);e:if("function"==typeof P)try{if(y=t.props,x=(d=P.contextType)&&o[d.__c],C=d?x?x.props.value:d.__:o,n.__c?v=(_=t.__c=n.__c).__=_.__E:("prototype"in P&&P.prototype.render?t.__c=_=new P(y,C):(t.__c=_=new I(y,C),_.constructor=P,_.render=K),x&&x.sub(_),_.props=y,_.state||(_.state={}),_.context=C,_.__n=o,f=_.__d=!0,_.__h=[],_._sb=[]),null==_.__s&&(_.__s=_.state),null!=P.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=g({},_.__s)),g(_.__s,P.getDerivedStateFromProps(y,_.__s))),p=_.props,h=_.state,_.__v=t,f)null==P.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==p&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(y,C),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(y,_.__s,C)||t.__v===n.__v)){for(t.__v!==n.__v&&(_.props=y,_.state=_.__s,_.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),k=0;k<_._sb.length;k++)_.__h.push(_._sb[k]);_._sb=[],_.__h.length&&l.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(y,_.__s,C),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(p,h,m)}))}if(_.context=C,_.props=y,_.__P=e,_.__e=!1,S=u.__r,R=0,"prototype"in P&&P.prototype.render){for(_.state=_.__s,_.__d=!1,S&&S(t),d=_.render(_.props,_.state,_.context),E=0;E<_._sb.length;E++)_.__h.push(_._sb[E]);_._sb=[]}else do{_.__d=!1,S&&S(t),d=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++R<25);_.state=_.__s,null!=_.getChildContext&&(o=g(g({},o),_.getChildContext())),f||null==_.getSnapshotBeforeUpdate||(m=_.getSnapshotBeforeUpdate(p,h)),D(e,w(T=null!=d&&d.type===b&&null==d.key?d.props.children:d)?T:[T],t,n,o,r,i,l,c,a,s),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),v&&(_.__E=_.__=null)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=c,t.__h=!!a,i[i.indexOf(c)]=null),u.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,o,r,i,l,a,s);(d=u.diffed)&&d(t)}function W(e,t,n){for(var o=0;o<n.length;o++)U(n[o],n[++o],n[++o]);u.__c&&u.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){u.__e(e,t.__v)}}))}function L(e,t,n,o,r,i,l,u,a){var s,d,_,f=n.props,p=t.props,m=t.type,v=0;if("svg"===m&&(r=!0),null!=i)for(;v<i.length;v++)if((s=i[v])&&"setAttribute"in s==!!m&&(m?s.localName===m:3===s.nodeType)){e=s,i[v]=null;break}if(null==e){if(null===m)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),i=null,u=!1}if(null===m)f===p||u&&e.data===p||(e.data=p);else{if(i=i&&c.call(e.childNodes),d=(f=n.props||h).dangerouslySetInnerHTML,_=p.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(function(e,t,n,o,r){var i;for(i in n)"children"===i||"key"===i||i in t||z(e,i,null,n[i],o);for(i in t)r&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||z(e,i,t[i],n[i],o)}(e,p,f,r,u),_)t.__k=[];else if(D(e,w(v=t.props.children)?v:[v],t,n,o,r&&"foreignObject"!==m,i,l,i?i[0]:n.__k&&k(n,0),u,a),null!=i)for(v=i.length;v--;)null!=i[v]&&y(i[v]);u||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==f.value)&&z(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&z(e,"checked",v,f.checked,!1))}return e}function U(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){u.__e(e,n)}}function $(e,t,n){var o,r;if(u.unmount&&u.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||U(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){u.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&$(o[r],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function K(e,t,n){return this.constructor(e,n)}function j(e,t,n){var o,r,i,l;u.__&&u.__(e,t),r=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],l=[],M(t,e=(!o&&n||t).__k=x(b,null,[e]),r||h,h,void 0!==t.ownerSVGElement,!o&&n?[n]:r?null:t.firstChild?c.call(t.childNodes):null,i,!o&&n?n:r?r.__e:t.firstChild,o,l),W(i,e,l)}function B(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,R(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}c=m.slice,u={__e:function(e,t,n,o){for(var r,i,l;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),l=r.__d),l)return r.__E=r}catch(t){e=t}throw e}},a=0,I.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),R(this))},I.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},I.prototype.render=b,s=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,p=0;var V,G,q,Y,X=0,J=[],Z=[],Q=u.__b,ee=u.__r,te=u.diffed,ne=u.__c,oe=u.unmount;function re(e,t){u.__h&&u.__h(G,e,X||t),X=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Z}),n.__[e]}function ie(e){return X=1,function(e,t,n){var o=re(V++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):we(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=G,!G.u)){var r=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var l=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(l=!0)}})),!(!l&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};G.u=!0;var i=G.shouldComponentUpdate,l=G.componentWillUpdate;G.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,r(e,t,n),i=o}l&&l.call(this,e,t,n)},G.shouldComponentUpdate=r}return o.__N||o.__}(we,e)}function le(e,t){var n=re(V++,3);!u.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,G.__H.__h.push(n))}function ce(e,t){var n=re(V++,4);!u.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,G.__h.push(n))}function ue(e){return X=5,ae((function(){return{current:e}}),[])}function ae(e,t){var n=re(V++,7);return ve(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function se(e,t){return X=8,ae((function(){return e}),t)}function de(e){var t=G.context[e.__c],n=re(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function _e(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(he),e.__H.__h.forEach(me),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){G=null,Q&&Q(e)},u.__r=function(e){ee&&ee(e),V=0;var t=(G=e.__c).__H;t&&(q===G?(t.__h=[],G.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Z,e.__N=e.i=void 0}))):(t.__h.forEach(he),t.__h.forEach(me),t.__h=[],V=0)),q=G},u.diffed=function(e){te&&te(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&Y===u.requestAnimationFrame||((Y=u.requestAnimationFrame)||pe)(_e)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Z&&(e.__=e.__V),e.i=void 0,e.__V=Z}))),q=G=null},u.__c=function(e,t){t.some((function(e){try{e.__h.forEach(he),e.__h=e.__h.filter((function(e){return!e.__||me(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.__e(n,e.__v)}})),ne&&ne(e,t)},u.unmount=function(e){oe&&oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{he(e)}catch(e){t=e}})),n.__H=void 0,t&&u.__e(t,n.__v))};var fe="function"==typeof requestAnimationFrame;function pe(e){var t,n=function(){clearTimeout(o),fe&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))}function he(e){var t=G,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),G=t}function me(e){var t=G;e.__c=e.__(),G=t}function ve(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function ge(e,t){for(var n in t)e[n]=t[n];return e}function ye(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function xe(e){this.props=e}function Ce(e,t){function n(e){var n=this.props.ref,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:ye(this.props,e)}function o(t){return this.shouldComponentUpdate=n,x(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(xe.prototype=new I).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return ye(this.props,e)||ye(this.state,t)};var be=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),be&&be(e)};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ke(e){function t(t){var n=ge({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ie,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Se=u.__e;u.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Se(e,t,n,o)};var Re=u.unmount;function Ee(e,t,n){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=ge({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ee(e,t,n)}))),e}function De(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return De(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Te(){this.__u=0,this.t=null,this.__b=null}function Pe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fe(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Re&&Re(e)},(Te.prototype=new I).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Pe(o.__v),i=!1,l=function(){i||(i=!0,n.__R=null,r?r(c):c())};n.__R=l;var c=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=De(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}},u=!0===t.__h;o.__u++||u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},Te.prototype.componentWillUnmount=function(){this.t=[]},Te.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Ee(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&x(b,null,e.fallback);return r&&(r.__h=null),[x(b,null,t.__a?null:e.children),r]};var Oe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Fe.prototype=new I).__a=function(e){var t=this,n=Pe(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Oe(t,e,o)):r()};n?n(i):i()}},Fe.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Oe(e,n,t)}))};var Ne="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/,He=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ae=/[A-Z0-9]/g,Me="undefined"!=typeof document,We=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Le=u.event;function Ue(){}function $e(){return this.cancelBubble}function Ke(){return this.defaultPrevented}u.event=function(e){return Le&&(e=Le(e)),e.persist=Ue,e.isPropagationStopped=$e,e.isDefaultPrevented=Ke,e.nativeEvent=e};var je={enumerable:!1,configurable:!0,get:function(){return this.class}},Be=u.vnode;u.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var r in t){var i=t[r];if(!("value"===r&&"defaultValue"in t&&null==i||Me&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var l=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===i?i="":"ondoubleclick"===l?r="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||We(t.type)?"onfocus"===l?r="onfocusin":"onblur"===l?r="onfocusout":He.test(r)?r=l:-1===n.indexOf("-")&&ze.test(r)?r=r.replace(Ae,"-$&").toLowerCase():null===i&&(i=void 0):l=r="oninput","oninput"===l&&o[r=l]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=P(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=P(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",je)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=Ne,Be&&Be(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var Ge=u.diffed;u.diffed=function(e){Ge&&Ge(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var qe=function(e,t){return e(t)};function Ye(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ye(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Xe(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Ye(e))&&(o&&(o+=" "),o+=t);return o}var Je=0;function Ze(e,t,n,o,r,i){var l,c,a={};for(c in t)"ref"==c?l=t[c]:a[c]=t[c];var s={type:e,props:a,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Je,__source:r,__self:i};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===a[c]&&(a[c]=l[c]);return u.vnode&&u.vnode(s),s}function Qe(e,t,n){const o="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(o)&&o>1&&(!e.frozen||e.idx+o-1<=t))return o}function et(e){e.stopPropagation()}function tt(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function nt(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const ot=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 rt(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}const it="mlln6zg7-0-0-beta-40";function lt(e){return e.map((({key:e,idx:t,minWidth:n,maxWidth:o})=>Ze("div",{className:it,style:{gridColumnStart:t+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":e},e)))}function ct({selectedPosition:e,columns:t,rows:n}){return ut(t[e.idx],n[e.rowIdx])}function ut(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function at({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:o,mainHeaderRowIdx:r,lastFrozenColumnIndex:i,column:l}){const c=t?.length??0;if(o===r)return Qe(l,i,{type:"HEADER"});if(t&&o>r&&o<=c+r)return Qe(l,i,{type:"SUMMARY",row:t[o+c]});if(o>=0&&o<e.length){return Qe(l,i,{type:"ROW",row:e[o]})}return n?Qe(l,i,{type:"SUMMARY",row:n[o-e.length]}):void 0}function st({moveUp:e,moveNext:t,cellNavigationMode:n,columns:o,colSpanColumns:r,rows:i,topSummaryRows:l,bottomSummaryRows:c,minRowIdx:u,mainHeaderRowIdx:a,maxRowIdx:s,currentPosition:{idx:d,rowIdx:_},nextPosition:f,lastFrozenColumnIndex:p,isCellWithinBounds:h}){let{idx:m,rowIdx:v}=f;const w=o.length,g=e=>{for(const t of r){const n=t.idx;if(n>m)break;const o=at({rows:i,topSummaryRows:l,bottomSummaryRows:c,rowIdx:v,mainHeaderRowIdx:a,lastFrozenColumnIndex:p,column:t});if(o&&m>n&&m<o+n){m=n+(e?o:0);break}}},y=e=>e.level+a;if(h(f)&&(g(t),v<a&&(()=>{if(t){let e=o[m].parent;for(;void 0!==e;){const t=y(e);if(v===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=o[m].parent,t=!1;for(;void 0!==e;){const n=y(e);if(v>=n){m=e.idx,v=n,t=!0;break}e=e.parent}t||(m=d,v=_)}})()),"CHANGE_ROW"===n){const e=-1===m;if(m===w){v===s||(m=0,v+=1)}else if(e){v===u||(v-=1,m=w-1),g(!1)}}if(v<a){let e=o[m].parent;const t=v;for(v=a;void 0!==e;){const n=y(e);n>=t&&(v=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:v}}const dt="rdg-cell cj343x07-0-0-beta-40",_t="rdg-cell-frozen csofj7r7-0-0-beta-40",ft="rdg-cell-frozen-last ch2wcw87-0-0-beta-40";function pt(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function ht(e,t,n){const o=t+1,r=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:o,paddingBlockStart:r}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:o-n,gridRowEnd:o,paddingBlockStart:r}}function mt(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function vt(e,...t){return Xe(dt,...t,e.frozen&&_t,e.isLastFrozenColumn&&ft)}const{min:wt,max:gt,round:yt,floor:xt,sign:Ct,abs:bt}=Math;function It(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function kt(e,{minWidth:t,maxWidth:n}){return e=gt(e,t),"number"==typeof n&&n>=t?wt(e,n):e}function St(e,t){return void 0===e.parent?t:e.level-e.parent.level}const Rt="rdg-checkbox-label c1bn88vv7-0-0-beta-40",Et="rdg-checkbox-input c1qt073l7-0-0-beta-40",Dt="rdg-checkbox cf71kmq7-0-0-beta-40",Tt="rdg-checkbox-label-disabled c1lwve4p7-0-0-beta-40";function Pt({onChange:e,...t}){return Ze("label",{className:Xe(Rt,t.disabled&&Tt),children:[Ze("input",{type:"checkbox",...t,className:Et,onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),Ze("div",{className:Dt})]})}function Ft(e){try{return e.row[e.column.key]}catch{return null}}const Ot=B(void 0),Nt=Ot.Provider;function zt(){return de(Ot)}function Ht({value:e,tabIndex:t,disabled:n,onChange:o,"aria-label":r,"aria-labelledby":i}){return(0,zt().renderCheckbox)({"aria-label":r,"aria-labelledby":i,tabIndex:t,disabled:n,checked:e,onChange:o})}const At=B(void 0),Mt=At.Provider,Wt=B(void 0),Lt=Wt.Provider;function Ut(){const e=de(At),t=de(Wt);if(void 0===e||void 0===t)throw new Error("useRowSelection must be used within DataGrid cells");return[e,t]}const $t="select-row";function Kt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select All",tabIndex:e.tabIndex,value:t,onChange:e=>{n({type:"HEADER",checked:e})}})}function jt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select",tabIndex:e.tabIndex,value:t,onChange:(t,o)=>{n({type:"ROW",row:e.row,checked:t,isShiftClick:o})}})}function Bt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:t=>{n({type:"ROW",row:e.row,checked:t,isShiftClick:!1})}})}const Vt={key:$t,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:e=>Ze(Kt,{...e}),renderCell:e=>Ze(jt,{...e}),renderGroupCell:e=>Ze(Bt,{...e})},Gt="auto",qt=50;function Yt({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:o,scrollLeft:r,enableVirtualization:i}){const l=t?.width??Gt,c=t?.minWidth??qt,u=t?.maxWidth??void 0,a=t?.renderCell??Ft,s=t?.sortable??!1,d=t?.resizable??!1,_=t?.draggable??!1,{columns:f,colSpanColumns:p,lastFrozenColumnIndex:h,headerRowsCount:m}=ae((()=>{let t=-1,n=1;const o=[];!function e(r,i,f){for(const p of r){if("children"in p){const t={name:p.name,parent:f,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,i+1,t);continue}const r=p.frozen??!1,h={...p,parent:f,idx:0,level:0,frozen:r,isLastFrozenColumn:!1,width:p.width??l,minWidth:p.minWidth??c,maxWidth:p.maxWidth??u,sortable:p.sortable??s,resizable:p.resizable??d,draggable:p.draggable??_,renderCell:p.renderCell??a};o.push(h),r&&t++,i>n&&(n=i)}}(e,1),o.sort((({key:e,frozen:t},{key:n,frozen:o})=>e===$t?-1:n===$t?1:t?o?0:-1:o?1:0));const r=[];return o.forEach(((e,t)=>{e.idx=t,Xt(e,t,0),null!=e.colSpan&&r.push(e)})),-1!==t&&(o[t].isLastFrozenColumn=!0),{columns:o,colSpanColumns:r,lastFrozenColumnIndex:t,headerRowsCount:n}}),[e,l,c,u,a,d,s,_]),{templateColumns:v,layoutCssVars:w,totalFrozenColumnWidth:g,columnMetrics:y}=ae((()=>{const e=new Map;let t=0,o=0;const r=[];for(const o of f){let i=n(o);i="number"==typeof i?kt(i,o):o.minWidth,r.push(`${i}px`),e.set(o,{width:i,left:t}),t+=i}if(-1!==h){const t=e.get(f[h]);o=t.left+t.width}const i={};for(let t=0;t<=h;t++){const n=f[t];i[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:r,layoutCssVars:i,totalFrozenColumnWidth:o,columnMetrics:e}}),[n,f,h]),[x,C]=ae((()=>{if(!i)return[0,f.length-1];const e=r+g,t=r+o,n=f.length-1,l=wt(h+1,n);if(e>=t)return[l,l];let c=l;for(;c<n;){const{left:t,width:n}=y.get(f[c]);if(t+n>e)break;c++}let u=c;for(;u<n;){const{left:e,width:n}=y.get(f[u]);if(e+n>=t)break;u++}return[gt(l,c-1),wt(n,u+1)]}),[y,f,h,r,g,o,i]);return{columns:f,colSpanColumns:p,colOverscanStartIdx:x,colOverscanEndIdx:C,templateColumns:v,layoutCssVars:w,headerRowsCount:m,lastFrozenColumnIndex:h,totalFrozenColumnWidth:g}}function Xt(e,t,n){if(n<e.level&&(e.level=n),void 0!==e.parent){const{parent:o}=e;-1===o.idx&&(o.idx=t),o.colSpan+=1,Xt(o,t,n-1)}}const Jt="undefined"==typeof window?le:ce;function Zt(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,o=e.current.querySelector(n);return o?.getBoundingClientRect().width}function Qt(e){const t=ue(e);le((()=>{t.current=e}));const n=se(((...e)=>{t.current(...e)}),[]);return e?n:e}function en(e){const[t,n]=ie(!1);t&&!e&&n(!1);return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}const tn="c1creorc7-0-0-beta-40",nn="rdg-cell-drag-handle c1w9bbhr7-0-0-beta-40";function on({gridRowStart:e,rows:t,column:n,columnWidth:o,selectedPosition:r,latestDraggedOverRowIdx:i,isCellEditable:l,onRowsChange:c,onFill:u,onClick:a,setDragging:s,setDraggedOverRowIdx:d}){const{idx:_,rowIdx:f}=r;function p(e,o){const r=t[f],i=[...t],a=[];for(let c=e;c<o;c++)if(l({rowIdx:c,idx:_})){const e=u({columnKey:n.key,sourceRow:r,targetRow:t[c]});e!==t[c]&&(i[c]=e,a.push(c))}a.length>0&&c?.(i,{indexes:a,column:n})}const h=n.colSpan?.({type:"ROW",row:t[f]})??1,m=mt(n,h);return Ze("div",{style:{...m,gridRowStart:e,insetInlineStart:m.insetInlineStart&&"number"==typeof o?`calc(${m.insetInlineStart} + ${o}px - var(--rdg-drag-handle-size))`:void 0},className:Xe(nn,n.frozen&&tn),onClick:a,onMouseDown:function(e){function t(e){1!==e.buttons&&n()}function n(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",n),s(!1),function(){const e=i.current;if(void 0===e)return;p(f<e?f+1:e,f<e?e+1:f),d(void 0)}()}e.preventDefault(),1===e.buttons&&(s(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),p(f+1,t.length)}})}const rn="cis5rrm7-0-0-beta-40";function ln({column:e,colSpan:t,row:n,rowIdx:o,onRowChange:r,closeEditor:i,onKeyDown:l,navigate:c}){const u=ue(),a=!1!==e.editorOptions?.commitOnOutsideClick,s=Qt((()=>{_(!0,!1)}));function d(){cancelAnimationFrame(u.current)}function _(e=!1,t=!0){e?r(n,!0,t):i(t)}function f(e,t=!1){r(e,t,t)}le((()=>{if(a)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),d()};function e(){u.current=requestAnimationFrame(s)}}),[a,s]);const{cellClass:p}=e,h=vt(e,"rdg-editor-container","function"==typeof p?p(n):p,!e.editorOptions?.displayCellContent&&rn);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:h,style:mt(e,t),onKeyDown:function(t){if(l){const r=nt(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:o,navigate(){c(t)},onClose:_},r),r.isGridDefaultPrevented())return}"Escape"===t.key?_():"Enter"===t.key?_(!0):function({key:e,target:t}){return"Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&1===t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length}(t)&&c(t)},onMouseDownCapture:d,children:null!=e.renderEditCell&&Ze(b,{children:[e.renderEditCell({column:e,row:n,onRowChange:f,onClose:_}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:f})]})})}function cn({column:e,rowIdx:t,isCellSelected:n,selectCell:o}){const{tabIndex:r,onFocus:i}=en(n),{colSpan:l}=e,c=St(e,t),u=e.idx+1;return Ze("div",{role:"columnheader","aria-colindex":u,"aria-colspan":l,"aria-rowspan":c,"aria-selected":n,tabIndex:r,className:Xe(dt,e.headerCellClass),style:{...ht(e,t,c),gridColumnStart:u,gridColumnEnd:u+l},onFocus:i,onClick:function(){o({idx:e.idx,rowIdx:t})},children:e.name})}const un="h44jtk67-0-0-beta-40",an="rdg-header-sort-name hcgkhxz7-0-0-beta-40";function sn({column:e,sortDirection:t,priority:n}){return e.sortable?Ze(dn,{sortDirection:t,priority:n,children:e.name}):e.name}function dn({sortDirection:e,priority:t,children:n}){const o=zt().renderSortStatus;return Ze("span",{className:un,children:[Ze("span",{className:an,children:n}),Ze("span",{children:o({sortDirection:e,priority:t})})]})}const _n="c6l2wv17-0-0-beta-40",fn="rdg-cell-resizable c1kqdw7y7-0-0-beta-40",pn="r1y6ywlx7-0-0-beta-40",hn="rdg-cell-draggable",mn="rdg-cell-dragging c1bezg5o7-0-0-beta-40",vn="rdg-cell-drag-over c1vc96037-0-0-beta-40";function wn({column:e,colSpan:t,rowIdx:n,isCellSelected:o,onColumnResize:r,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:c,selectCell:u,shouldFocusGrid:a,direction:s,dragDropKey:d}){const[_,f]=ie(!1),[p,h]=ie(!1),m="rtl"===s,v=St(e,n),{tabIndex:w,childTabIndex:g,onFocus:y}=en(o),x=l?.findIndex((t=>t.columnKey===e.key)),C=void 0!==x&&x>-1?l[x]:void 0,b=C?.direction,I=void 0!==C&&l.length>1?x+1:void 0,k=b&&!I?"ASC"===b?"ascending":"descending":void 0,{sortable:S,resizable:R,draggable:E}=e,D=vt(e,e.headerCellClass,S&&_n,R&&fn,E&&hn,_&&mn,p&&vn),T=e.renderHeaderCell??sn;function P(t){if(null==c)return;const{sortDescendingFirst:n}=e;if(void 0===C){const o={columnKey:e.key,direction:n?"DESC":"ASC"};c(l&&t?[...l,o]:[o])}else{let o;if((!0===n&&"DESC"===b||!0!==n&&"ASC"===b)&&(o={columnKey:e.key,direction:"ASC"===b?"DESC":"ASC"}),t){const e=[...l];o?e[x]=o:e.splice(x,1),c(e)}else c(o?[o]:[])}}let F;return E&&(F={draggable:!0,onDragStart:function(t){t.dataTransfer.setData(d,e.key),t.dataTransfer.dropEffect="move",f(!0)},onDragEnd:function(){f(!1)},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){gn(e)&&h(!0)},onDragLeave:function(e){gn(e)&&h(!1)},onDrop:function(t){if(h(!1),t.dataTransfer.types.includes(d)){const n=t.dataTransfer.getData(d);n!==e.key&&(t.preventDefault(),i?.(n,e.key))}}}),Ze("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":v,"aria-selected":o,"aria-sort":k,tabIndex:a?0:w,className:D,style:{...ht(e,n,v),...mt(e,t)},onFocus:function(e){y?.(e),a&&u({idx:0,rowIdx:n})},onClick:function(t){u({idx:e.idx,rowIdx:n}),S&&P(t.ctrlKey||t.metaKey)},onKeyDown:S?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),P(e.ctrlKey||e.metaKey))}:void 0,...F,children:[T({column:e,sortDirection:b,priority:I,tabIndex:g}),R&&Ze("div",{className:pn,onClick:et,onDoubleClick:function(){r(e,"max-content")},onPointerDown:function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;const{currentTarget:n,pointerId:o}=t,i=n.parentElement,{right:l,left:c}=i.getBoundingClientRect(),u=m?t.clientX-c:l-t.clientX;function a(t){t.preventDefault();const{right:n,left:o}=i.getBoundingClientRect(),l=m?n+u-t.clientX:t.clientX+u-o;l>0&&r(e,kt(l,e))}n.setPointerCapture(o),n.addEventListener("pointermove",a),n.addEventListener("lostpointercapture",(function e(){n.removeEventListener("pointermove",a),n.removeEventListener("lostpointercapture",e)}))}})]})}function gn(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const yn="rdg-row r1upfr807-0-0-beta-40",xn="rdg-row-selected",Cn="rdg-header-row h10tskcx7-0-0-beta-40";function bn({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:o,sortColumns:r,onSortColumnsChange:i,lastFrozenColumnIndex:l,selectedCellIdx:c,selectCell:u,shouldFocusGrid:a,direction:s}){const d=function(){var e=re(V++,11);if(!e.__){for(var t=G.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}(),_=[];for(let f=0;f<t.length;f++){const p=t[f],h=Qe(p,l,{type:"HEADER"});void 0!==h&&(f+=h-1),_.push(Ze(wn,{column:p,colSpan:h,rowIdx:e,isCellSelected:c===p.idx,onColumnResize:n,onColumnsReorder:o,onSortColumnsChange:i,sortColumns:r,selectCell:u,shouldFocusGrid:a&&0===f,direction:s,dragDropKey:d},p.key))}return Ze("div",{role:"row","aria-rowindex":e,className:Xe(Cn,-1===c&&xn),children:_})}const In=Ce(bn);function kn({rowIdx:e,level:t,columns:n,selectedCellIdx:o,selectCell:r}){const i=[],l=new Set;for(const c of n){let{parent:n}=c;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!l.has(n)){l.add(n);const{idx:t}=n;i.push(Ze(cn,{column:n,rowIdx:e,isCellSelected:o===t,selectCell:r},t))}}}return Ze("div",{role:"row","aria-rowindex":e,className:Cn,children:i})}const Sn=Ce(kn);function Rn({column:e,colSpan:t,isCellSelected:n,isCopied:o,isDraggedOver:r,row:i,rowIdx:l,onClick:c,onDoubleClick:u,onContextMenu:a,onRowChange:s,selectCell:d,..._}){const{tabIndex:f,childTabIndex:p,onFocus:h}=en(n),{cellClass:m}=e,v=vt(e,"function"==typeof m?m(i):m,o&&"rdg-cell-copied c6ra8a37-0-0-beta-40",r&&"rdg-cell-dragged-over cq910m07-0-0-beta-40"),w=ut(e,i);function g(t){d({rowIdx:l,idx:e.idx},t)}return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!w||void 0,tabIndex:f,className:v,style:mt(e,t),onClick:function(t){if(c){const n=nt(t);if(c({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g()},onDoubleClick:function(t){if(u){const n=nt(t);if(u({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g(!0)},onContextMenu:function(t){if(a){const n=nt(t);if(a({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g()},onFocus:h,..._,children:e.renderCell({column:e,row:i,isCellEditable:w,tabIndex:p,onRowChange:function(t){s(e,t)}})})}const En=Ce(Rn);function Dn({className:e,rowIdx:t,gridRowStart:n,height:o,selectedCellIdx:r,isRowSelected:i,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:u,row:a,viewportColumns:s,selectedCellEditor:d,onCellClick:_,onCellDoubleClick:f,onCellContextMenu:p,rowClass:h,setDraggedOverRowIdx:m,onMouseEnter:v,onRowChange:w,selectCell:g,...y},x){const C=Qt(((e,n)=>{w(e,t,n)}));e=Xe(yn,"rdg-row-"+(t%2==0?"even":"odd"),h?.(a,t),e,-1===r&&xn);const b=[];for(let e=0;e<s.length;e++){const n=s[e],{idx:o}=n,i=Qe(n,u,{type:"ROW",row:a});void 0!==i&&(e+=i-1);const h=r===o;h&&d?b.push(d):b.push(Ze(En,{column:n,colSpan:i,row:a,rowIdx:t,isCopied:l===o,isDraggedOver:c===o,isCellSelected:h,onClick:_,onDoubleClick:f,onContextMenu:p,onRowChange:C,selectCell:g},n.key))}return Ze(Mt,{value:i,children:Ze("div",{role:"row",ref:x,className:e,onMouseEnter:function(e){m?.(t),v?.(e)},style:pt(n,o),...y,children:b})})}const Tn=Ce(ke(Dn));function Pn(e,t){return Ze(Tn,{...t},e)}function Fn({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:o}){const r=ue(null);return Jt((()=>{tt(r.current)})),Jt((()=>{const e=new IntersectionObserver((function(){o(null)}),{root:n,threshold:1});return e.observe(r.current),()=>{e.disconnect()}}),[n,o]),Ze("div",{ref:r,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}const On="rdg-sort-arrow a3ejtar7-0-0-beta-40";function Nn({sortDirection:e,priority:t}){return Ze(b,{children:[zn({sortDirection:e}),Hn({priority:t})]})}function zn({sortDirection:e}){return void 0===e?null:Ze("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:On,"aria-hidden":!0,children:Ze("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Hn({priority:e}){return e}function An({column:e,colSpan:t,row:n,rowIdx:o,isCellSelected:r,selectCell:i}){const{tabIndex:l,childTabIndex:c,onFocus:u}=en(r),{summaryCellClass:a}=e,s=vt(e,"s8wc6fl7-0-0-beta-40","function"==typeof a?a(n):a);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,tabIndex:l,className:s,style:mt(e,t),onClick:function(){i({rowIdx:o,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:c})})}const Mn=Ce(An);function Wn({rowIdx:e,gridRowStart:t,row:n,viewportColumns:o,top:r,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:c,isTop:u,showBorder:a,selectCell:s,"aria-rowindex":d}){const _=[];for(let t=0;t<o.length;t++){const r=o[t],i=Qe(r,l,{type:"SUMMARY",row:n});void 0!==i&&(t+=i-1);const u=c===r.idx;_.push(Ze(Mn,{column:r,colSpan:i,row:n,rowIdx:e,isCellSelected:u,selectCell:s},r.key))}return Ze("div",{role:"row","aria-rowindex":d,className:Xe(yn,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row skuhp557-0-0-beta-40",u?["rdg-top-summary-row tf8l5ub7-0-0-beta-40",a&&"tb9ughf7-0-0-beta-40"]:["rdg-bottom-summary-row",a&&"b1yssfnt7-0-0-beta-40"],-1===c&&xn),style:{...pt(t),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:_})}const Ln=Ce(Wn);function Un(e,t){const{columns:n,rows:o,topSummaryRows:r,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:c,rowHeight:u,headerRowHeight:a,summaryRowHeight:s,selectedRows:d,onSelectedRowsChange:_,sortColumns:f,onSortColumnsChange:p,defaultColumnOptions:h,onCellClick:m,onCellDoubleClick:v,onCellContextMenu:w,onCellKeyDown:g,onSelectedCellChange:y,onScroll:x,onColumnResize:C,onColumnsReorder:I,onFill:k,onCopy:S,onPaste:R,enableVirtualization:E,renderers:D,className:T,style:P,rowClass:F,direction:O,role:N,"aria-label":z,"aria-labelledby":H,"aria-describedby":A,"aria-rowcount":M,"data-testid":W}=e,L=zt(),U=N??"grid",$=u??35,K=a??("number"==typeof $?$:35),j=s??("number"==typeof $?$:35),B=D?.renderRow??L?.renderRow??Pn,V=D?.renderSortStatus??L?.renderSortStatus??Nn,G=D?.renderCheckbox??L?.renderCheckbox??Pt,q=D?.noRowsFallback??L?.noRowsFallback,Y=E??!0,J=O??"ltr",[Z,Q]=ie(0),[ee,te]=ie(0),[ne,oe]=ie((()=>new Map)),[re,le]=ie((()=>new Map)),[de,_e]=ie(null),[fe,pe]=ie(!1),[he,me]=ie(void 0),[ve,we]=ie(null),ge=se((e=>ne.get(e.key)??re.get(e.key)??e.width),[re,ne]),[ye,xe,Ce]=function(){const e=ue(null),[t,n]=ie(1),[o,r]=ie(1);return Jt((()=>{const{ResizeObserver:t}=window;if(null==t)return;const{clientWidth:o,clientHeight:i,offsetWidth:l,offsetHeight:c}=e.current,{width:u,height:a}=e.current.getBoundingClientRect(),s=a-c+i;n(u-l+o),r(s);const d=new t((e=>{const t=e[0].contentBoxSize[0];qe((()=>{n(t.inlineSize),r(t.blockSize)}))}));return d.observe(e.current),()=>{d.disconnect()}}),[]),[e,t,o]}(),{columns:be,colSpanColumns:Ie,lastFrozenColumnIndex:ke,headerRowsCount:Se,colOverscanStartIdx:Re,colOverscanEndIdx:Ee,templateColumns:De,layoutCssVars:Te,totalFrozenColumnWidth:Pe}=Yt({rawColumns:n,defaultColumnOptions:h,getColumnWidth:ge,scrollLeft:ee,viewportWidth:xe,enableVirtualization:Y}),Fe=r?.length??0,Oe=i?.length??0,Ne=Fe+Oe,ze=Se+Fe,He=Se-1,Ae=-ze,Me=Ae+He,We=o.length+Oe-1,[Le,Ue]=ie((()=>({idx:-1,rowIdx:Ae-1,mode:"SELECT"}))),$e=ue(Le),Ke=ue(he),je=ue(-1),Be=ue(null),Ve=ue(!1),Ge="treegrid"===U,Ye=Se*K,Je=Ce-Ye-Ne*j,et=null!=d&&null!=_,it="rtl"===J,ut=it?"ArrowRight":"ArrowLeft",at=it?"ArrowLeft":"ArrowRight",dt=M??Se+o.length+Ne,_t=ae((()=>({renderCheckbox:G,renderSortStatus:V})),[G,V]),ft=ae((()=>{const{length:e}=o;return 0!==e&&null!=d&&null!=l&&d.size>=e&&o.every((e=>d.has(l(e))))}),[o,d,l]),{rowOverscanStartIdx:pt,rowOverscanEndIdx:ht,totalRowHeight:mt,gridTemplateRows:vt,getRowTop:yt,getRowHeight:kt,findRowIdx:St}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:o,enableVirtualization:r}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:c,getRowHeight:u,findRowIdx:a}=ae((()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>xt(e/t)};let n=0,o=" ";const r=e.map((e=>{const r=t(e),i={top:n,height:r};return o+=`${r}px `,n+=r,i})),i=t=>gt(0,wt(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:o,getRowTop:e=>r[i(e)].top,getRowHeight:e=>r[i(e)].height,findRowIdx(e){let t=0,n=r.length-1;for(;t<=n;){const o=t+xt((n-t)/2),i=r[o].top;if(i===e)return o;if(i<e?t=o+1:i>e&&(n=o-1),t>n)return n}return 0}}}),[t,e]);let s=0,d=e.length-1;if(r){const t=4,r=a(o),i=a(o+n);s=gt(0,r-t),d=wt(e.length-1,i+t)}return{rowOverscanStartIdx:s,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:c,getRowHeight:u,findRowIdx:a}}({rows:o,rowHeight:$,clientHeight:Je,scrollTop:Z,enableVirtualization:Y}),Rt=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:c,rowOverscanStartIdx:u,rowOverscanEndIdx:a}){const s=ae((()=>{if(0===i)return 0;let e=i;const l=(t,n)=>void 0!==n&&t+n>i&&(e=t,!0);for(const i of t){const t=i.idx;if(t>=e)break;if(l(t,Qe(i,c,{type:"HEADER"})))break;for(let e=u;e<=a;e++){const o=n[e];if(l(t,Qe(i,c,{type:"ROW",row:o})))break}if(null!=o)for(const e of o)if(l(t,Qe(i,c,{type:"SUMMARY",row:e})))break;if(null!=r)for(const e of r)if(l(t,Qe(i,c,{type:"SUMMARY",row:e})))break}return e}),[u,a,n,o,r,i,c,t]);return ae((()=>{const t=[];for(let n=0;n<=l;n++){const o=e[n];n<s&&!o.frozen||t.push(o)}return t}),[s,l,e])}({columns:be,colSpanColumns:Ie,colOverscanStartIdx:Re,colOverscanEndIdx:Ee,lastFrozenColumnIndex:ke,rowOverscanStartIdx:pt,rowOverscanEndIdx:ht,rows:o,topSummaryRows:r,bottomSummaryRows:i}),{gridTemplateColumns:Et,handleColumnResize:Dt}=function(e,t,n,o,r,i,l,c,u,a){const s=ue(r),d=e.length===t.length,_=d&&r!==s.current,f=[...n],p=[];for(const{key:e,idx:n,width:o}of t)"string"!=typeof o||!_&&l.has(e)||i.has(e)||(f[n]=o,p.push(e));const h=f.join(" ");function m(e){0!==e.length&&u((t=>{const n=new Map(t);let r=!1;for(const i of e){const e=Zt(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t}))}return Jt((()=>{s.current=r,m(p)})),{gridTemplateColumns:h,handleColumnResize:function(e,r){const{key:l}=e,u=[...n],s=[];for(const{key:e,idx:n,width:o}of t)if(l===e){const e="number"==typeof r?`${r}px`:r;u[n]=e}else d&&"string"==typeof o&&!i.has(e)&&(u[n]=o,s.push(e));o.current.style.gridTemplateColumns=u.join(" ");const _="number"==typeof r?r:Zt(o,l);qe((()=>{c((e=>{const t=new Map(e);return t.set(l,_),t})),m(s)})),a?.(e.idx,_)}}}(be,Rt,De,ye,xe,ne,re,oe,le,C),Tt=Ge?-1:0,Ft=be.length-1,Ot=un(Le),Ht=an(Le),At=Qt(Dt),Wt=Qt(I),Ut=Qt(p),$t=Qt(m),Kt=Qt(v),jt=Qt(w),Bt=Qt(en),Vt=Qt(tn),Gt=Qt(dn),qt=Qt((({idx:e,rowIdx:t})=>{dn({rowIdx:Ae+t-1,idx:e})}));Jt((()=>{Ot&&!Kn(Le,$e.current)?($e.current=Le,-1===Le.idx&&(Be.current.focus({preventScroll:!0}),tt(Be.current))):$e.current=Le})),Jt((()=>{Ve.current&&(Ve.current=!1,pn())})),function(e,t,n){X=6,ce((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(t,(()=>({element:ye.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>ke&&e<be.length?e:void 0,o=void 0!==t&&cn(t)?t:void 0;void 0===n&&void 0===o||we({idx:n,rowIdx:o})},selectCell:dn})));const Xt=se((e=>{me(e),Ke.current=e}),[]);function en(e){if(!_)return;if(It(l),"HEADER"===e.type){const t=new Set(d);for(const n of o){const o=l(n);e.checked?t.add(o):t.delete(o)}return void _(t)}const{row:t,checked:n,isShiftClick:r}=e,i=new Set(d),c=l(t);if(n){i.add(c);const e=je.current,n=o.indexOf(t);if(je.current=n,r&&-1!==e&&e!==n){const t=Ct(n-e);for(let r=e+t;r!==n;r+=t){const e=o[r];i.add(l(e))}}}else i.delete(c),je.current=-1;_(i)}function tn(e,t,n){if("function"!=typeof c)return;if(n===o[t])return;const r=[...o];r[t]=n,c(r,{indexes:[t],column:e})}function nn(){"EDIT"===Le.mode&&tn(be[Le.idx],Le.rowIdx,Le.row)}function rn(e){return e>=Tt&&e<=Ft}function cn(e){return e>=0&&e<o.length}function un({idx:e,rowIdx:t}){return t>=Ae&&t<=We&&rn(e)}function an({idx:e,rowIdx:t}){return cn(t)&&rn(e)}function sn(e){return an(e)&&ct({columns:be,rows:o,selectedPosition:e})}function dn(e,t){if(!un(e))return;nn();const n=o[e.rowIdx],r=Kn(Le,e);t&&sn(e)?Ue({...e,mode:"EDIT",row:n,originalRow:n}):r?tt($n(ye.current)):(Ve.current=!0,Ue({...e,mode:"SELECT"})),y&&!r&&y({rowIdx:e.rowIdx,row:n,column:be[e.idx]})}function _n(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:o,idx:r},shiftKey:i}){return i?0===r&&o===t:r===e&&o===n}({shiftKey:n,maxColIdx:Ft,minRowIdx:Ae,maxRowIdx:We,selectedPosition:Le}))return void nn();l="CHANGE_ROW"}e.preventDefault();const c=function(e,t,n){const{idx:r,rowIdx:i}=Le,l=Ot&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case ut:return{idx:r-1,rowIdx:i};case at:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":return l?{idx:r,rowIdx:Ae}:{idx:0,rowIdx:t?Ae:i};case"End":return l?{idx:r,rowIdx:We}:{idx:Ft,rowIdx:t?We:i};case"PageUp":{if(Le.rowIdx===Ae)return Le;const e=yt(i)+kt(i)-Je;return{idx:r,rowIdx:e>0?St(e):0}}case"PageDown":{if(Le.rowIdx>=o.length)return Le;const e=yt(i)+Je;return{idx:r,rowIdx:e<mt?St(e):o.length-1}}default:return Le}}(t,rt(e),n);if(Kn(Le,c))return;dn(st({moveUp:"ArrowUp"===t,moveNext:t===at||"Tab"===t&&!n,columns:be,colSpanColumns:Ie,rows:o,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:Ae,mainHeaderRowIdx:Me,maxRowIdx:We,lastFrozenColumnIndex:ke,cellNavigationMode:l,currentPosition:Le,nextPosition:c,isCellWithinBounds:un}))}function fn(e){if(void 0===he)return;const{rowIdx:t}=Le;return(t<he?t<e&&e<=he:t>e&&e>=he)?Le.idx:void 0}function pn(){const e=$n(ye.current);if(null===e)return;tt(e);(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0})}function hn(e){if(Le.rowIdx!==e||"SELECT"===Le.mode)return;const{idx:t,row:n}=Le,r=be[t],i=Qe(r,ke,{type:"ROW",row:n}),l=e=>{Ve.current=e,Ue((({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"})))};return o[Le.rowIdx]!==Le.originalRow&&l(!1),Ze(ln,{column:r,colSpan:i,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?qe((()=>{tn(r,Le.rowIdx,e),l(n)})):Ue((t=>({...t,row:e})))},closeEditor:l,onKeyDown:g,navigate:_n},r.key)}function mn(e){const t=-1===Le.idx?void 0:be[Le.idx];return void 0===t||Le.rowIdx!==e||Rt.includes(t)?Rt:Le.idx>Ee?[...Rt,t]:[...Rt.slice(0,ke+1),t,...Rt.slice(ke+1)]}(Le.idx>Ft||Le.rowIdx>We)&&(Ue({idx:-1,rowIdx:Ae-1,mode:"SELECT"}),Xt(void 0));let vn=`repeat(${Se}, ${K}px)`;Fe>0&&(vn+=` repeat(${Fe}, ${j}px)`),o.length>0&&(vn+=vt),Oe>0&&(vn+=` repeat(${Oe}, ${j}px)`);const wn=-1===Le.idx&&Le.rowIdx!==Ae-1;return Ze("div",{role:U,"aria-label":z,"aria-labelledby":H,"aria-describedby":A,"aria-multiselectable":!!et||void 0,"aria-colcount":be.length,"aria-rowcount":dt,className:Xe("rdg rnvodz57-0-0-beta-40",T,fe&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...P,scrollPaddingInlineStart:Le.idx>ke||void 0!==ve?.idx?`${Pe}px`:void 0,scrollPaddingBlock:cn(Le.rowIdx)||void 0!==ve?.rowIdx?`${Ye+Fe*j}px ${Oe*j}px`:void 0,gridTemplateColumns:Et,gridTemplateRows:vn,"--rdg-header-row-height":`${K}px`,"--rdg-summary-row-height":`${j}px`,"--rdg-sign":it?-1:1,...Te},dir:J,ref:ye,onScroll:function(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;qe((()=>{Q(t),te(bt(n))})),x?.(e)},onKeyDown:function(e){const{idx:t,rowIdx:n,mode:r}=Le;if("EDIT"===r)return;if(g&&cn(n)){const r=o[n],i=nt(e);if(g({mode:"SELECT",row:r,column:be[t],rowIdx:n,selectCell:dn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),u=Ge&&e.target===Be.current;if(!i&&!u)return;const{keyCode:a}=e;if(Ht&&(null!=R||null!=S)&&rt(e)){const e=86;if(a===67)return void function(){const{idx:e,rowIdx:t}=Le,n=o[t],r=be[e].key;_e({row:n,columnKey:r}),S?.({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!R||!c||null===de||!sn(Le))return;const{idx:e,rowIdx:t}=Le,n=be[e],r=o[t],i=R({sourceRow:de.row,sourceColumnKey:de.columnKey,targetRow:r,targetColumnKey:n.key});tn(n,t,i)}()}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":_n(e);break;default:!function(e){if(!Ht)return;const t=o[Le.rowIdx],{key:n,shiftKey:r}=e;if(et&&r&&" "===n){It(l);const n=l(t);return en({type:"ROW",row:t,checked:!d.has(n),isShiftClick:!1}),void e.preventDefault()}sn(Le)&&function(e){return!ot.has(e.key)}(e)&&Ue((({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t})))}(e)}},"data-testid":W,children:[Ze(Nt,{value:_t,children:Ze(Lt,{value:Bt,children:[Ze(Mt,{value:ft,children:[Array.from({length:He},((e,t)=>Ze(Sn,{rowIdx:t+1,level:-He+t,columns:mn(Ae+t),selectedCellIdx:Le.rowIdx===Ae+t?Le.idx:void 0,selectCell:qt},t))),Ze(In,{rowIdx:Se,columns:mn(Me),onColumnResize:At,onColumnsReorder:Wt,sortColumns:f,onSortColumnsChange:Ut,lastFrozenColumnIndex:ke,selectedCellIdx:Le.rowIdx===Me?Le.idx:void 0,selectCell:qt,shouldFocusGrid:!Ot,direction:J})]}),0===o.length&&q?q:Ze(b,{children:[r?.map(((e,t)=>{const n=Se+1+t,o=Me+1+t,r=Le.rowIdx===o;return Ze(Ln,{"aria-rowindex":n,rowIdx:o,gridRowStart:n,row:e,top:Ye+j*t,bottom:void 0,viewportColumns:mn(o),lastFrozenColumnIndex:ke,selectedCellIdx:r?Le.idx:void 0,isTop:!0,showBorder:t===Fe-1,selectCell:Gt},t)})),function(){const e=[],{idx:t,rowIdx:n}=Le,r=Ht&&n>ht?ht+1:ht;for(let i=Ht&&n<pt?pt-1:pt;i<=r;i++){const r=i===pt-1||i===ht+1,c=r?n:i;let u=Rt;const a=-1===t?void 0:be[t];void 0!==a&&(u=r?[a]:mn(c));const s=o[c],_=ze+c+1;let f=c,p=!1;"function"==typeof l&&(f=l(s),p=d?.has(f)??!1),e.push(B(f,{"aria-rowindex":ze+c+1,"aria-selected":et?p:void 0,rowIdx:c,row:s,viewportColumns:u,isRowSelected:p,onCellClick:$t,onCellDoubleClick:Kt,onCellContextMenu:jt,rowClass:F,gridRowStart:_,height:kt(c),copiedCellIdx:null!==de&&de.row===s?be.findIndex((e=>e.key===de.columnKey)):void 0,selectedCellIdx:n===c?t:void 0,draggedOverCellIdx:fn(c),setDraggedOverRowIdx:fe?Xt:void 0,lastFrozenColumnIndex:ke,onRowChange:Vt,selectCell:Gt,selectedCellEditor:hn(c)}))}return e}(),i?.map(((e,t)=>{const n=ze+o.length+t+1,r=o.length+t,l=Le.rowIdx===r,c=Je>mt?Ce-j*(i.length-t):void 0,u=void 0===c?j*(i.length-1-t):void 0;return Ze(Ln,{"aria-rowindex":dt-Oe+t+1,rowIdx:r,gridRowStart:n,row:e,top:c,bottom:u,viewportColumns:mn(r),lastFrozenColumnIndex:ke,selectedCellIdx:l?Le.idx:void 0,isTop:!1,showBorder:0===t,selectCell:Gt},t)}))]})]})}),function(){if(null==k||"EDIT"===Le.mode||!an(Le))return;const e=be[Le.idx];if(null==e.renderEditCell||!1===e.editable)return;const t=ge(e);return Ze(on,{gridRowStart:ze+Le.rowIdx+1,rows:o,column:e,columnWidth:t,selectedPosition:Le,isCellEditable:sn,latestDraggedOverRowIdx:Ke,onRowsChange:c,onClick:pn,onFill:k,setDragging:pe,setDraggedOverRowIdx:Xt})}(),lt(Rt),Ge&&Ze("div",{ref:Be,tabIndex:wn?0:-1,className:Xe("f1lsfrzw7-0-0-beta-40",wn&&["r190mhd37-0-0-beta-40",-1!==ke&&"r139qu9m7-0-0-beta-40"],!cn(Le.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:Le.rowIdx+ze+1}}),null!==ve&&Ze(Fn,{scrollToPosition:ve,setScrollToCellPosition:we,gridElement:ye.current})]})}function $n(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function Kn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const jn=ke(Un);function Bn(e,t,n){var o=t;return l([],e,!0).sort((function(e,t){return e[o]<t[o]?n?1:-1:e[o]>t[o]?n?-1:1:0}))}var Vn=function(e){return x("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,x("span",null,"--- * --- * ---"))},Gn=function(e){var n,o=e.table,r=e.sort,i=[ae((function(){return n.columns()}),[n=o,n.dataChecksum()]),ae((function(){return n.data()}),[n,n.dataChecksum()])],c=i[0],u=i[1],a=o.multiSelect(),s=o.columnTypes(),d=o.columnPatterns(),_=o.columnFormats(),f=ie([]),p=f[0],h=f[1],m=ie(),v=m[0],w=m[1],g=ie([]),y=g[0],C=g[1],b=ie(new Set),I=b[0],k=b[1];le((function(){h(l(l([],a?[Vt]:[],!0),c.map((function(e){var n,o,r,i;switch(null!==(n=s[e])&&void 0!==n?n:"string"){case"time":r=void 0!==d[e]?t.timeParse(d[e]):void 0,i=void 0!==_[e]?t.timeFormat(_[e]):void 0;break;case"number":o=function(e){return x("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:i=void 0!==_[e]?t.format(_[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:o,__hpcc_pattern:r,__hpcc_format:i}})),!0))}),[_,d,s,c,a]);var S=se((function(e){var t=e.slice(-1)[0],n=void 0!==t,o="DESC"===(null==t?void 0:t.direction);w(t),C(Bn(y,n?t.columnKey:"key",!!n&&o))}),[y]),R=se((function(e){return e.key}),[]),E=se((function(e){k(e)}),[]),D=se((function(e,t){o.onRowClickCallback(e,t.key)}),[o]);return le((function(){var e=u.map((function(e,t){var n={key:t};return p.forEach((function(t,o){var r=e[o];t.__hpcc_pattern&&t.__hpcc_format?r=t.__hpcc_format(t.__hpcc_pattern(r)):t.__hpcc_pattern?r=t.__hpcc_pattern(r).toString():t.__hpcc_format&&(r=t.__hpcc_format(r)),n[t.key]=r})),n}));(null==r?void 0:r.attribute)&&(e=Bn(e,r.attribute,r.descending)),C(e)}),[p,u,r]),x(jn,{columns:p,headerRowHeight:24,rows:y,rowKeyGetter:R,rowHeight:20,renderers:{noRowsFallback:x(Vn,{message:o.noDataMessage()})},className:o.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:S,selectedRows:I,onSelectedRowsChange:a?E:void 0,onCellClick:a?void 0:D,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.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 qn=function(e){function l(){return e.call(this)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(l,e),l.prototype.columnType=function(e,t){var n;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(o(o({},this.columnTypes()),((n={})[e]=t,n))),this)},l.prototype.columnPattern=function(e,t){var n;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(o(o({},this.columnPatterns()),((n={})[e]=t,n))),this)},l.prototype.columnFormat=function(e,t){var n;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(o(o({},this.columnFormats()),((n={})[e]=t,n))),this)},l.prototype.onRowClickCallback=function(e,t){var n;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(n=this._prevColumn)&&void 0!==n?n:"",!1),e&&this.click(e,t,!0),this._prevRow=e,this._prevColumn=t},l.prototype.enter=function(t,n){e.prototype.enter.call(this,t,n),this._div=n.append("div")},l.prototype.update=function(t,n){e.prototype.update.call(this,t,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,t,n){null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e&&e.__c}(x(Gn,{table:this}),this._div.node())},l.prototype.exit=function(t,n){!function(e){!!e.__k&&j(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,t,n)},l.prototype.click=function(e,t,n){},r([t.publish("...empty...","string","No Data Message"),i("design:type",Function)],l.prototype,"noDataMessage",void 0),r([t.publish(!1,"boolean","Dark Mode"),i("design:type",Function)],l.prototype,"darkMode",void 0),r([t.publish(!1,"boolean","Multiple Selection"),i("design:type",Function)],l.prototype,"multiSelect",void 0),r([t.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),i("design:type",Function)],l.prototype,"columnTypes",void 0),r([t.publish({},"object","Column Patterns"),i("design:type",Function)],l.prototype,"columnPatterns",void 0),r([t.publish({},"object","Column Formats"),i("design:type",Function)],l.prototype,"columnFormats",void 0),l}(t.HTMLWidget);qn.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.32",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.13",e.Table=qn,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.min.js.map