@revolist/revogrid 4.4.0-next.2 → 4.4.0-next.21
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/custom-element/columnService.js +1 -1
- package/custom-element/consts.js +2 -1
- package/custom-element/consts.js.map +1 -1
- package/custom-element/localScrollService.js +1 -1
- package/custom-element/localScrollService.js.map +1 -1
- package/custom-element/revo-grid.js +163 -97
- package/custom-element/revo-grid.js.map +1 -1
- package/custom-element/revogr-clipboard.js +24 -5
- package/custom-element/revogr-clipboard.js.map +1 -1
- package/custom-element/revogr-edit2.js +12 -6
- package/custom-element/revogr-edit2.js.map +1 -1
- package/custom-element/revogr-focus2.js +1 -1
- package/custom-element/revogr-focus2.js.map +1 -1
- package/custom-element/revogr-header2.js +25 -11
- package/custom-element/revogr-header2.js.map +1 -1
- package/custom-element/revogr-overlay-selection2.js +99 -32
- package/custom-element/revogr-overlay-selection2.js.map +1 -1
- package/custom-element/revogr-row-headers2.js +1 -2
- package/custom-element/revogr-row-headers2.js.map +1 -1
- package/custom-element/revogr-viewport-scroll2.js +39 -6
- package/custom-element/revogr-viewport-scroll2.js.map +1 -1
- package/dist/cjs/{debounce-525dd66c.js → debounce-f50730b6.js} +1 -38
- package/dist/cjs/debounce-f50730b6.js.map +1 -0
- package/dist/cjs/dispatcher-20520c70.js +21 -0
- package/dist/cjs/dispatcher-20520c70.js.map +1 -0
- package/dist/cjs/events-030618fc.js +459 -0
- package/dist/cjs/events-030618fc.js.map +1 -0
- package/dist/cjs/filter.button-6badec7a.js +44 -0
- package/dist/cjs/filter.button-6badec7a.js.map +1 -0
- package/dist/cjs/{index-aad39b7b.js → index-ee2ef5ae.js} +96 -36
- package/dist/cjs/index-ee2ef5ae.js.map +1 -0
- package/dist/cjs/index-effc94b9.js +3944 -0
- package/dist/cjs/index-effc94b9.js.map +1 -0
- package/dist/cjs/isString-3dde8d95.js +38 -0
- package/dist/cjs/isString-3dde8d95.js.map +1 -0
- package/dist/cjs/keyCodes.utils-d665ebed.js +271 -0
- package/dist/cjs/keyCodes.utils-d665ebed.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/localScrollService-a81823c5.js +403 -0
- package/dist/cjs/localScrollService-a81823c5.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +3858 -0
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.js +3 -3
- package/dist/cjs/revo-grid.cjs.js.map +1 -1
- package/dist/cjs/revogr-clipboard.cjs.entry.js +24 -6
- package/dist/cjs/revogr-clipboard.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_3.cjs.entry.js +1138 -0
- package/dist/cjs/revogr-data_3.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-edit_2.cjs.entry.js +325 -0
- package/dist/cjs/revogr-edit_2.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +6 -5
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-focus_5.cjs.entry.js +1231 -0
- package/dist/cjs/revogr-focus_5.cjs.entry.js.map +1 -0
- package/dist/cjs/{revo-grid_11.cjs.entry.js → viewport.helpers-70ccec8f.js} +13978 -25269
- package/dist/cjs/viewport.helpers-70ccec8f.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/clipboard/revogr-clipboard.d.ts +6 -2
- package/dist/collection/components/clipboard/revogr-clipboard.js +46 -5
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -1
- package/dist/collection/components/header/headerCellRenderer.d.ts +2 -1
- package/dist/collection/components/header/headerCellRenderer.js +1 -1
- package/dist/collection/components/header/headerCellRenderer.js.map +1 -1
- package/dist/collection/components/header/headerRenderer.d.ts +2 -2
- package/dist/collection/components/header/headerRenderer.js +1 -1
- package/dist/collection/components/header/headerRenderer.js.map +1 -1
- package/dist/collection/components/header/revogr-header.d.ts +15 -1
- package/dist/collection/components/header/revogr-header.js +34 -8
- package/dist/collection/components/header/revogr-header.js.map +1 -1
- package/dist/collection/components/overlay/autofill.service.d.ts +7 -3
- package/dist/collection/components/overlay/autofill.service.js +32 -12
- package/dist/collection/components/overlay/autofill.service.js.map +1 -1
- package/dist/collection/components/overlay/clipboard.service.d.ts +1 -1
- package/dist/collection/components/overlay/clipboard.service.js +2 -2
- package/dist/collection/components/overlay/clipboard.service.js.map +1 -1
- package/dist/collection/components/overlay/keyboard.service.js +2 -6
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -1
- package/dist/collection/components/overlay/revogr-edit.d.ts +8 -0
- package/dist/collection/components/overlay/revogr-edit.js +34 -9
- package/dist/collection/components/overlay/revogr-edit.js.map +1 -1
- package/dist/collection/components/overlay/revogr-overlay-selection.d.ts +32 -10
- package/dist/collection/components/overlay/revogr-overlay-selection.js +80 -12
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -1
- package/dist/collection/components/overlay/revogr-overlay-style.css +71 -4
- package/dist/collection/components/revoGrid/revo-grid.d.ts +15 -4
- package/dist/collection/components/revoGrid/revo-grid.js +60 -19
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
- package/dist/collection/components/revoGrid/viewport.scrolling.service.d.ts +6 -2
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +26 -4
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -1
- package/dist/collection/components/revoGrid/viewport.section.d.ts +3 -2
- package/dist/collection/components/revoGrid/viewport.section.js +8 -4
- package/dist/collection/components/revoGrid/viewport.section.js.map +1 -1
- package/dist/collection/components/revoGrid/viewport.service.d.ts +4 -0
- package/dist/collection/components/revoGrid/viewport.service.js +15 -3
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -1
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -1
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +3 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.d.ts +16 -5
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +64 -9
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -1
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +1 -1
- package/dist/collection/components.d.ts +110 -6
- package/dist/collection/interfaces.d.ts +4 -1
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +3 -2
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +2 -2
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -1
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +2 -2
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +1 -1
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -1
- package/dist/collection/plugins/sorting/sorting.plugin.d.ts +21 -13
- package/dist/collection/plugins/sorting/sorting.plugin.js +77 -70
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -1
- package/dist/collection/serve/controller.js +183 -0
- package/dist/collection/services/localScrollService.js +1 -1
- package/dist/collection/services/localScrollService.js.map +1 -1
- package/dist/collection/services/resizable.directive.d.ts +8 -7
- package/dist/collection/services/resizable.directive.js +13 -36
- package/dist/collection/services/resizable.directive.js.map +1 -1
- package/dist/collection/services/resizable.element.d.ts +4 -0
- package/dist/collection/services/resizable.element.js +39 -0
- package/dist/collection/services/resizable.element.js.map +1 -0
- package/dist/collection/stencil-public-runtime.d.ts +1 -0
- package/dist/collection/store/viewPort/viewport.store.js +0 -1
- package/dist/collection/store/viewPort/viewport.store.js.map +1 -1
- package/dist/collection/utils/consts.d.ts +1 -0
- package/dist/collection/utils/consts.js +1 -0
- package/dist/collection/utils/consts.js.map +1 -1
- package/dist/collection/utils/events.d.ts +2 -1
- package/dist/collection/utils/events.js +18 -2
- package/dist/collection/utils/events.js.map +1 -1
- package/dist/collection/utils/mobile.d.ts +1 -0
- package/dist/collection/utils/mobile.js +7 -0
- package/dist/collection/utils/mobile.js.map +1 -0
- package/dist/esm/{debounce-301fd4d2.js → debounce-820b5a8b.js} +2 -34
- package/dist/esm/debounce-820b5a8b.js.map +1 -0
- package/dist/esm/dispatcher-9e9c0233.js +19 -0
- package/dist/esm/dispatcher-9e9c0233.js.map +1 -0
- package/dist/esm/events-31272e5e.js +454 -0
- package/dist/esm/events-31272e5e.js.map +1 -0
- package/dist/esm/filter.button-21ce90ef.js +38 -0
- package/dist/esm/filter.button-21ce90ef.js.map +1 -0
- package/dist/esm/{index-5e90b19b.js → index-05947c5f.js} +97 -37
- package/dist/esm/index-05947c5f.js.map +1 -0
- package/dist/esm/index-728bf6e3.js +3889 -0
- package/dist/esm/index-728bf6e3.js.map +1 -0
- package/dist/esm/isString-d539060a.js +36 -0
- package/dist/esm/isString-d539060a.js.map +1 -0
- package/dist/esm/keyCodes.utils-c0064460.js +265 -0
- package/dist/esm/keyCodes.utils-c0064460.js.map +1 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/localScrollService-884d8952.js +400 -0
- package/dist/esm/localScrollService-884d8952.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +3854 -0
- package/dist/esm/revo-grid.entry.js.map +1 -0
- package/dist/esm/revo-grid.js +4 -4
- package/dist/esm/revo-grid.js.map +1 -1
- package/dist/esm/revogr-clipboard.entry.js +24 -6
- package/dist/esm/revogr-clipboard.entry.js.map +1 -1
- package/dist/esm/revogr-data_3.entry.js +1132 -0
- package/dist/esm/revogr-data_3.entry.js.map +1 -0
- package/dist/esm/revogr-edit_2.entry.js +320 -0
- package/dist/esm/revogr-edit_2.entry.js.map +1 -0
- package/dist/esm/revogr-filter-panel.entry.js +3 -2
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/revogr-focus_5.entry.js +1223 -0
- package/dist/esm/revogr-focus_5.entry.js.map +1 -0
- package/dist/esm/{revo-grid_11.entry.js → viewport.helpers-c08e729e.js} +13790 -25093
- package/dist/esm/viewport.helpers-c08e729e.js.map +1 -0
- package/dist/revo-grid/debounce-820b5a8b.js +5 -0
- package/dist/revo-grid/debounce-820b5a8b.js.map +1 -0
- package/dist/revo-grid/dispatcher-9e9c0233.js +5 -0
- package/dist/revo-grid/dispatcher-9e9c0233.js.map +1 -0
- package/dist/revo-grid/events-31272e5e.js +5 -0
- package/dist/revo-grid/events-31272e5e.js.map +1 -0
- package/dist/revo-grid/filter.button-21ce90ef.js +5 -0
- package/dist/revo-grid/filter.button-21ce90ef.js.map +1 -0
- package/dist/revo-grid/index-05947c5f.js +6 -0
- package/dist/revo-grid/index-05947c5f.js.map +1 -0
- package/dist/revo-grid/index-728bf6e3.js +5 -0
- package/dist/revo-grid/index-728bf6e3.js.map +1 -0
- package/dist/revo-grid/isString-d539060a.js +5 -0
- package/dist/revo-grid/isString-d539060a.js.map +1 -0
- package/dist/revo-grid/keyCodes.utils-c0064460.js +5 -0
- package/dist/revo-grid/keyCodes.utils-c0064460.js.map +1 -0
- package/dist/revo-grid/localScrollService-884d8952.js +5 -0
- package/dist/revo-grid/localScrollService-884d8952.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +5 -0
- package/dist/revo-grid/revo-grid.entry.js.map +1 -0
- package/dist/revo-grid/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.esm.js.map +1 -1
- package/dist/revo-grid/revogr-clipboard.entry.js +1 -1
- package/dist/revo-grid/revogr-clipboard.entry.js.map +1 -1
- package/dist/revo-grid/revogr-data_3.entry.js +5 -0
- package/dist/revo-grid/revogr-data_3.entry.js.map +1 -0
- package/dist/revo-grid/revogr-edit_2.entry.js +5 -0
- package/dist/revo-grid/revogr-edit_2.entry.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/revogr-focus_5.entry.js +5 -0
- package/dist/revo-grid/revogr-focus_5.entry.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-c08e729e.js +5 -0
- package/dist/revo-grid/viewport.helpers-c08e729e.js.map +1 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +6 -2
- package/dist/types/components/header/headerCellRenderer.d.ts +2 -1
- package/dist/types/components/header/headerRenderer.d.ts +2 -2
- package/dist/types/components/header/revogr-header.d.ts +15 -1
- package/dist/types/components/overlay/autofill.service.d.ts +7 -3
- package/dist/types/components/overlay/clipboard.service.d.ts +1 -1
- package/dist/types/components/overlay/revogr-edit.d.ts +8 -0
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +32 -10
- package/dist/types/components/revoGrid/revo-grid.d.ts +15 -4
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +6 -2
- package/dist/types/components/revoGrid/viewport.section.d.ts +3 -2
- package/dist/types/components/revoGrid/viewport.service.d.ts +4 -0
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +16 -5
- package/dist/types/components.d.ts +110 -6
- package/dist/types/interfaces.d.ts +4 -1
- package/dist/types/plugins/groupingColumn/columnGroupsRenderer.d.ts +3 -2
- package/dist/types/plugins/groupingColumn/headerGroupRenderer.d.ts +2 -2
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +21 -13
- package/dist/types/services/resizable.directive.d.ts +8 -7
- package/dist/types/services/resizable.element.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/types/utils/consts.d.ts +1 -0
- package/dist/types/utils/events.d.ts +2 -1
- package/dist/types/utils/mobile.d.ts +1 -0
- package/package.json +4 -3
- package/dist/cjs/debounce-525dd66c.js.map +0 -1
- package/dist/cjs/index-aad39b7b.js.map +0 -1
- package/dist/cjs/revo-grid_11.cjs.entry.js.map +0 -1
- package/dist/esm/debounce-301fd4d2.js.map +0 -1
- package/dist/esm/index-5e90b19b.js.map +0 -1
- package/dist/esm/revo-grid_11.entry.js.map +0 -1
- package/dist/revo-grid/debounce-301fd4d2.js +0 -5
- package/dist/revo-grid/debounce-301fd4d2.js.map +0 -1
- package/dist/revo-grid/index-5e90b19b.js +0 -6
- package/dist/revo-grid/index-5e90b19b.js.map +0 -1
- package/dist/revo-grid/revo-grid_11.entry.js +0 -5
- package/dist/revo-grid/revo-grid_11.entry.js.map +0 -1
- /package/dist/collection/{utilsExternal/generate-data.js → serve/data.js} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by Revolist
|
|
3
|
-
*/
|
|
4
|
-
import{g as t,f as e,h as r,r as n,c as i,H as o,a as s}from"./index-5e90b19b.js";import{i as a,_ as u,c,a as l,b as h,d as f,e as d,f as v,t as g,g as p,F as C,h as w,j as m,k as b}from"./debounce-301fd4d2.js";class L{constructor(){this.defaultRowSize=32}}class x{constructor(){this.defaultRowSize=27}}class y{constructor(){this.defaultRowSize=42}}const k="default";const E=[k,"material","compact","darkMaterial","darkCompact"];class S{get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}constructor(t){this.customRowSize=0;this.customRowSize=t.rowSize;this.register("default")}register(t){const e=S.getTheme(t);switch(e){case"material":case"darkMaterial":this.currentTheme=new y;break;case"compact":case"darkCompact":this.currentTheme=new L;break;default:this.currentTheme=new x;break}}static getTheme(t){if(E.indexOf(t)>-1){return t}return k}}function j(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)===false){break}}return t}var R=j;function O(t){return function(e,r,n){var i=-1,o=Object(e),s=n(e),a=s.length;while(a--){var u=s[t?a:++i];if(r(o[u],u,o)===false){break}}return e}}var z=O;var M=z();var F=M;function A(t,e){var r=-1,n=Array(t);while(++r<t){n[r]=e(r)}return n}var _=A;var D="[object Arguments]";function I(t){return a(t)&&u(t)==D}var T=I;var P=Object.prototype;var $=P.hasOwnProperty;var U=P.propertyIsEnumerable;var H=T(function(){return arguments}())?T:function(t){return a(t)&&$.call(t,"callee")&&!U.call(t,"callee")};var Z=H;var B=Array.isArray;var N=B;function V(){return false}var W=V;var G=c((function(t,e){var r=e&&!e.nodeType&&e;var n=r&&"object"=="object"&&t&&!t.nodeType&&t;var i=n&&n.exports===r;var o=i?l.Buffer:undefined;var s=o?o.isBuffer:undefined;var a=s||W;t.exports=a}));var q=9007199254740991;var K=/^(?:0|[1-9]\d*)$/;function X(t,e){var r=typeof t;e=e==null?q:e;return!!e&&(r=="number"||r!="symbol"&&K.test(t))&&(t>-1&&t%1==0&&t<e)}var Y=X;var J=9007199254740991;function Q(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=J}var tt=Q;var et="[object Arguments]",rt="[object Array]",nt="[object Boolean]",it="[object Date]",ot="[object Error]",st="[object Function]",at="[object Map]",ut="[object Number]",ct="[object Object]",lt="[object RegExp]",ht="[object Set]",ft="[object String]",dt="[object WeakMap]";var vt="[object ArrayBuffer]",gt="[object DataView]",pt="[object Float32Array]",Ct="[object Float64Array]",wt="[object Int8Array]",mt="[object Int16Array]",bt="[object Int32Array]",Lt="[object Uint8Array]",xt="[object Uint8ClampedArray]",yt="[object Uint16Array]",kt="[object Uint32Array]";var Et={};Et[pt]=Et[Ct]=Et[wt]=Et[mt]=Et[bt]=Et[Lt]=Et[xt]=Et[yt]=Et[kt]=true;Et[et]=Et[rt]=Et[vt]=Et[nt]=Et[gt]=Et[it]=Et[ot]=Et[st]=Et[at]=Et[ut]=Et[ct]=Et[lt]=Et[ht]=Et[ft]=Et[dt]=false;function St(t){return a(t)&&tt(t.length)&&!!Et[u(t)]}var jt=St;function Rt(t){return function(e){return t(e)}}var Ot=Rt;var zt=c((function(t,e){var r=e&&!e.nodeType&&e;var n=r&&"object"=="object"&&t&&!t.nodeType&&t;var i=n&&n.exports===r;var o=i&&h.process;var s=function(){try{var t=n&&n.require&&n.require("util").types;if(t){return t}return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}));var Mt=zt&&zt.isTypedArray;var Ft=Mt?Ot(Mt):jt;var At=Ft;var _t=Object.prototype;var Dt=_t.hasOwnProperty;function It(t,e){var r=N(t),n=!r&&Z(t),i=!r&&!n&&G(t),o=!r&&!n&&!i&&At(t),s=r||n||i||o,a=s?_(t.length,String):[],u=a.length;for(var c in t){if((e||Dt.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Y(c,u)))){a.push(c)}}return a}var Tt=It;var Pt=Object.prototype;function $t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Pt;return t===r}var Ut=$t;function Ht(t,e){return function(r){return t(e(r))}}var Zt=Ht;var Bt=Zt(Object.keys,Object);var Nt=Bt;var Vt=Object.prototype;var Wt=Vt.hasOwnProperty;function Gt(t){if(!Ut(t)){return Nt(t)}var e=[];for(var r in Object(t)){if(Wt.call(t,r)&&r!="constructor"){e.push(r)}}return e}var qt=Gt;var Kt="[object AsyncFunction]",Xt="[object Function]",Yt="[object GeneratorFunction]",Jt="[object Proxy]";function Qt(t){if(!f(t)){return false}var e=u(t);return e==Xt||e==Yt||e==Kt||e==Jt}var te=Qt;function ee(t){return t!=null&&tt(t.length)&&!te(t)}var re=ee;function ne(t){return re(t)?Tt(t):qt(t)}var ie=ne;function oe(t,e){return t&&F(t,e,ie)}var se=oe;function ae(t,e){return function(r,n){if(r==null){return r}if(!re(r)){return t(r,n)}var i=r.length,o=e?i:-1,s=Object(r);while(e?o--:++o<i){if(n(s[o],o,s)===false){break}}return r}}var ue=ae;var ce=ue(se);var le=ce;function he(t){return t}var fe=he;function de(t){return typeof t=="function"?t:fe}var ve=de;function ge(t,e){var r=N(t)?R:le;return r(t,ve(e))}var pe=ge;var Ce=pe;function we(t,e,r,n){var i=-1,o=t==null?0:t.length;if(n&&o){r=t[++i]}while(++i<o){r=e(r,t[i],i,t)}return r}var me=we;function be(){this.__data__=[];this.size=0}var Le=be;function xe(t,e){return t===e||t!==t&&e!==e}var ye=xe;function ke(t,e){var r=t.length;while(r--){if(ye(t[r][0],e)){return r}}return-1}var Ee=ke;var Se=Array.prototype;var je=Se.splice;function Re(t){var e=this.__data__,r=Ee(e,t);if(r<0){return false}var n=e.length-1;if(r==n){e.pop()}else{je.call(e,r,1)}--this.size;return true}var Oe=Re;function ze(t){var e=this.__data__,r=Ee(e,t);return r<0?undefined:e[r][1]}var Me=ze;function Fe(t){return Ee(this.__data__,t)>-1}var Ae=Fe;function _e(t,e){var r=this.__data__,n=Ee(r,t);if(n<0){++this.size;r.push([t,e])}else{r[n][1]=e}return this}var De=_e;function Ie(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}Ie.prototype.clear=Le;Ie.prototype["delete"]=Oe;Ie.prototype.get=Me;Ie.prototype.has=Ae;Ie.prototype.set=De;var Te=Ie;function Pe(){this.__data__=new Te;this.size=0}var $e=Pe;function Ue(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}var He=Ue;function Ze(t){return this.__data__.get(t)}var Be=Ze;function Ne(t){return this.__data__.has(t)}var Ve=Ne;var We=l["__core-js_shared__"];var Ge=We;var qe=function(){var t=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ke(t){return!!qe&&qe in t}var Xe=Ke;var Ye=Function.prototype;var Je=Ye.toString;function Qe(t){if(t!=null){try{return Je.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var tr=Qe;var er=/[\\^$.*+?()[\]{}|]/g;var rr=/^\[object .+?Constructor\]$/;var nr=Function.prototype,ir=Object.prototype;var or=nr.toString;var sr=ir.hasOwnProperty;var ar=RegExp("^"+or.call(sr).replace(er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ur(t){if(!f(t)||Xe(t)){return false}var e=te(t)?ar:rr;return e.test(tr(t))}var cr=ur;function lr(t,e){return t==null?undefined:t[e]}var hr=lr;function fr(t,e){var r=hr(t,e);return cr(r)?r:undefined}var dr=fr;var vr=dr(l,"Map");var gr=vr;var pr=dr(Object,"create");var Cr=pr;function wr(){this.__data__=Cr?Cr(null):{};this.size=0}var mr=wr;function br(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}var Lr=br;var xr="__lodash_hash_undefined__";var yr=Object.prototype;var kr=yr.hasOwnProperty;function Er(t){var e=this.__data__;if(Cr){var r=e[t];return r===xr?undefined:r}return kr.call(e,t)?e[t]:undefined}var Sr=Er;var jr=Object.prototype;var Rr=jr.hasOwnProperty;function Or(t){var e=this.__data__;return Cr?e[t]!==undefined:Rr.call(e,t)}var zr=Or;var Mr="__lodash_hash_undefined__";function Fr(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=Cr&&e===undefined?Mr:e;return this}var Ar=Fr;function _r(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}_r.prototype.clear=mr;_r.prototype["delete"]=Lr;_r.prototype.get=Sr;_r.prototype.has=zr;_r.prototype.set=Ar;var Dr=_r;function Ir(){this.size=0;this.__data__={hash:new Dr,map:new(gr||Te),string:new Dr}}var Tr=Ir;function Pr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var $r=Pr;function Ur(t,e){var r=t.__data__;return $r(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Hr=Ur;function Zr(t){var e=Hr(this,t)["delete"](t);this.size-=e?1:0;return e}var Br=Zr;function Nr(t){return Hr(this,t).get(t)}var Vr=Nr;function Wr(t){return Hr(this,t).has(t)}var Gr=Wr;function qr(t,e){var r=Hr(this,t),n=r.size;r.set(t,e);this.size+=r.size==n?0:1;return this}var Kr=qr;function Xr(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}Xr.prototype.clear=Tr;Xr.prototype["delete"]=Br;Xr.prototype.get=Vr;Xr.prototype.has=Gr;Xr.prototype.set=Kr;var Yr=Xr;var Jr=200;function Qr(t,e){var r=this.__data__;if(r instanceof Te){var n=r.__data__;if(!gr||n.length<Jr-1){n.push([t,e]);this.size=++r.size;return this}r=this.__data__=new Yr(n)}r.set(t,e);this.size=r.size;return this}var tn=Qr;function en(t){var e=this.__data__=new Te(t);this.size=e.size}en.prototype.clear=$e;en.prototype["delete"]=He;en.prototype.get=Be;en.prototype.has=Ve;en.prototype.set=tn;var rn=en;var nn="__lodash_hash_undefined__";function on(t){this.__data__.set(t,nn);return this}var sn=on;function an(t){return this.__data__.has(t)}var un=an;function cn(t){var e=-1,r=t==null?0:t.length;this.__data__=new Yr;while(++e<r){this.add(t[e])}}cn.prototype.add=cn.prototype.push=sn;cn.prototype.has=un;var ln=cn;function hn(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)){return true}}return false}var fn=hn;function dn(t,e){return t.has(e)}var vn=dn;var gn=1,pn=2;function Cn(t,e,r,n,i,o){var s=r&gn,a=t.length,u=e.length;if(a!=u&&!(s&&u>a)){return false}var c=o.get(t);var l=o.get(e);if(c&&l){return c==e&&l==t}var h=-1,f=true,d=r&pn?new ln:undefined;o.set(t,e);o.set(e,t);while(++h<a){var v=t[h],g=e[h];if(n){var p=s?n(g,v,h,e,t,o):n(v,g,h,t,e,o)}if(p!==undefined){if(p){continue}f=false;break}if(d){if(!fn(e,(function(t,e){if(!vn(d,e)&&(v===t||i(v,t,r,n,o))){return d.push(e)}}))){f=false;break}}else if(!(v===g||i(v,g,r,n,o))){f=false;break}}o["delete"](t);o["delete"](e);return f}var wn=Cn;var mn=l.Uint8Array;var bn=mn;function Ln(t){var e=-1,r=Array(t.size);t.forEach((function(t,n){r[++e]=[n,t]}));return r}var xn=Ln;function yn(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}var kn=yn;var En=1,Sn=2;var jn="[object Boolean]",Rn="[object Date]",On="[object Error]",zn="[object Map]",Mn="[object Number]",Fn="[object RegExp]",An="[object Set]",_n="[object String]",Dn="[object Symbol]";var In="[object ArrayBuffer]",Tn="[object DataView]";var Pn=d?d.prototype:undefined,$n=Pn?Pn.valueOf:undefined;function Un(t,e,r,n,i,o,s){switch(r){case Tn:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case In:if(t.byteLength!=e.byteLength||!o(new bn(t),new bn(e))){return false}return true;case jn:case Rn:case Mn:return ye(+t,+e);case On:return t.name==e.name&&t.message==e.message;case Fn:case _n:return t==e+"";case zn:var a=xn;case An:var u=n&En;a||(a=kn);if(t.size!=e.size&&!u){return false}var c=s.get(t);if(c){return c==e}n|=Sn;s.set(t,e);var l=wn(a(t),a(e),n,i,o,s);s["delete"](t);return l;case Dn:if($n){return $n.call(t)==$n.call(e)}}return false}var Hn=Un;function Zn(t,e){var r=-1,n=e.length,i=t.length;while(++r<n){t[i+r]=e[r]}return t}var Bn=Zn;function Nn(t,e,r){var n=e(t);return N(t)?n:Bn(n,r(t))}var Vn=Nn;function Wn(t,e){var r=-1,n=t==null?0:t.length,i=0,o=[];while(++r<n){var s=t[r];if(e(s,r,t)){o[i++]=s}}return o}var Gn=Wn;function qn(){return[]}var Kn=qn;var Xn=Object.prototype;var Yn=Xn.propertyIsEnumerable;var Jn=Object.getOwnPropertySymbols;var Qn=!Jn?Kn:function(t){if(t==null){return[]}t=Object(t);return Gn(Jn(t),(function(e){return Yn.call(t,e)}))};var ti=Qn;function ei(t){return Vn(t,ie,ti)}var ri=ei;var ni=1;var ii=Object.prototype;var oi=ii.hasOwnProperty;function si(t,e,r,n,i,o){var s=r&ni,a=ri(t),u=a.length,c=ri(e),l=c.length;if(u!=l&&!s){return false}var h=u;while(h--){var f=a[h];if(!(s?f in e:oi.call(e,f))){return false}}var d=o.get(t);var v=o.get(e);if(d&&v){return d==e&&v==t}var g=true;o.set(t,e);o.set(e,t);var p=s;while(++h<u){f=a[h];var C=t[f],w=e[f];if(n){var m=s?n(w,C,f,e,t,o):n(C,w,f,t,e,o)}if(!(m===undefined?C===w||i(C,w,r,n,o):m)){g=false;break}p||(p=f=="constructor")}if(g&&!p){var b=t.constructor,L=e.constructor;if(b!=L&&("constructor"in t&&"constructor"in e)&&!(typeof b=="function"&&b instanceof b&&typeof L=="function"&&L instanceof L)){g=false}}o["delete"](t);o["delete"](e);return g}var ai=si;var ui=dr(l,"DataView");var ci=ui;var li=dr(l,"Promise");var hi=li;var fi=dr(l,"Set");var di=fi;var vi=dr(l,"WeakMap");var gi=vi;var pi="[object Map]",Ci="[object Object]",wi="[object Promise]",mi="[object Set]",bi="[object WeakMap]";var Li="[object DataView]";var xi=tr(ci),yi=tr(gr),ki=tr(hi),Ei=tr(di),Si=tr(gi);var ji=u;if(ci&&ji(new ci(new ArrayBuffer(1)))!=Li||gr&&ji(new gr)!=pi||hi&&ji(hi.resolve())!=wi||di&&ji(new di)!=mi||gi&&ji(new gi)!=bi){ji=function(t){var e=u(t),r=e==Ci?t.constructor:undefined,n=r?tr(r):"";if(n){switch(n){case xi:return Li;case yi:return pi;case ki:return wi;case Ei:return mi;case Si:return bi}}return e}}var Ri=ji;var Oi=1;var zi="[object Arguments]",Mi="[object Array]",Fi="[object Object]";var Ai=Object.prototype;var _i=Ai.hasOwnProperty;function Di(t,e,r,n,i,o){var s=N(t),a=N(e),u=s?Mi:Ri(t),c=a?Mi:Ri(e);u=u==zi?Fi:u;c=c==zi?Fi:c;var l=u==Fi,h=c==Fi,f=u==c;if(f&&G(t)){if(!G(e)){return false}s=true;l=false}if(f&&!l){o||(o=new rn);return s||At(t)?wn(t,e,r,n,i,o):Hn(t,e,u,r,n,i,o)}if(!(r&Oi)){var d=l&&_i.call(t,"__wrapped__"),v=h&&_i.call(e,"__wrapped__");if(d||v){var g=d?t.value():t,p=v?e.value():e;o||(o=new rn);return i(g,p,r,n,o)}}if(!f){return false}o||(o=new rn);return ai(t,e,r,n,i,o)}var Ii=Di;function Ti(t,e,r,n,i){if(t===e){return true}if(t==null||e==null||!a(t)&&!a(e)){return t!==t&&e!==e}return Ii(t,e,r,n,Ti,i)}var Pi=Ti;var $i=1,Ui=2;function Hi(t,e,r,n){var i=r.length,o=i,s=!n;if(t==null){return!o}t=Object(t);while(i--){var a=r[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t)){return false}}while(++i<o){a=r[i];var u=a[0],c=t[u],l=a[1];if(s&&a[2]){if(c===undefined&&!(u in t)){return false}}else{var h=new rn;if(n){var f=n(c,l,u,t,e,h)}if(!(f===undefined?Pi(l,c,$i|Ui,n,h):f)){return false}}}return true}var Zi=Hi;function Bi(t){return t===t&&!f(t)}var Ni=Bi;function Vi(t){var e=ie(t),r=e.length;while(r--){var n=e[r],i=t[n];e[r]=[n,i,Ni(i)]}return e}var Wi=Vi;function Gi(t,e){return function(r){if(r==null){return false}return r[t]===e&&(e!==undefined||t in Object(r))}}var qi=Gi;function Ki(t){var e=Wi(t);if(e.length==1&&e[0][2]){return qi(e[0][0],e[0][1])}return function(r){return r===t||Zi(r,t,e)}}var Xi=Ki;var Yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ji=/^\w*$/;function Qi(t,e){if(N(t)){return false}var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||v(t)){return true}return Ji.test(t)||!Yi.test(t)||e!=null&&t in Object(e)}var to=Qi;var eo="Expected a function";function ro(t,e){if(typeof t!="function"||e!=null&&typeof e!="function"){throw new TypeError(eo)}var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var s=t.apply(this,n);r.cache=o.set(i,s)||o;return s};r.cache=new(ro.Cache||Yr);return r}ro.Cache=Yr;var no=ro;var io=500;function oo(t){var e=no(t,(function(t){if(r.size===io){r.clear()}return t}));var r=e.cache;return e}var so=oo;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var uo=/\\(\\)?/g;var co=so((function(t){var e=[];if(t.charCodeAt(0)===46){e.push("")}t.replace(ao,(function(t,r,n,i){e.push(n?i.replace(uo,"$1"):r||t)}));return e}));var lo=co;function ho(t,e){var r=-1,n=t==null?0:t.length,i=Array(n);while(++r<n){i[r]=e(t[r],r,t)}return i}var fo=ho;var vo=1/0;var go=d?d.prototype:undefined,po=go?go.toString:undefined;function Co(t){if(typeof t=="string"){return t}if(N(t)){return fo(t,Co)+""}if(v(t)){return po?po.call(t):""}var e=t+"";return e=="0"&&1/t==-vo?"-0":e}var wo=Co;function mo(t){return t==null?"":wo(t)}var bo=mo;function Lo(t,e){if(N(t)){return t}return to(t,e)?[t]:lo(bo(t))}var xo=Lo;var yo=1/0;function ko(t){if(typeof t=="string"||v(t)){return t}var e=t+"";return e=="0"&&1/t==-yo?"-0":e}var Eo=ko;function So(t,e){e=xo(e,t);var r=0,n=e.length;while(t!=null&&r<n){t=t[Eo(e[r++])]}return r&&r==n?t:undefined}var jo=So;function Ro(t,e,r){var n=t==null?undefined:jo(t,e);return n===undefined?r:n}var Oo=Ro;function zo(t,e){return t!=null&&e in Object(t)}var Mo=zo;function Fo(t,e,r){e=xo(e,t);var n=-1,i=e.length,o=false;while(++n<i){var s=Eo(e[n]);if(!(o=t!=null&&r(t,s))){break}t=t[s]}if(o||++n!=i){return o}i=t==null?0:t.length;return!!i&&tt(i)&&Y(s,i)&&(N(t)||Z(t))}var Ao=Fo;function _o(t,e){return t!=null&&Ao(t,e,Mo)}var Do=_o;var Io=1,To=2;function Po(t,e){if(to(t)&&Ni(e)){return qi(Eo(t),e)}return function(r){var n=Oo(r,t);return n===undefined&&n===e?Do(r,t):Pi(e,n,Io|To)}}var $o=Po;function Uo(t){return function(e){return e==null?undefined:e[t]}}var Ho=Uo;function Zo(t){return function(e){return jo(e,t)}}var Bo=Zo;function No(t){return to(t)?Ho(Eo(t)):Bo(t)}var Vo=No;function Wo(t){if(typeof t=="function"){return t}if(t==null){return fe}if(typeof t=="object"){return N(t)?$o(t[0],t[1]):Xi(t)}return Vo(t)}var Go=Wo;function qo(t,e,r,n,i){i(t,(function(t,i,o){r=n?(n=false,t):e(r,t,i,o)}));return r}var Ko=qo;function Xo(t,e,r){var n=N(t)?me:Ko,i=arguments.length<3;return n(t,Go(e),r,i,le)}var Yo=Xo;function Jo(t){return function(e,r,n){var i=Object(e);if(!re(e)){var o=Go(r);e=ie(e);r=function(t){return o(i[t],t,i)}}var s=t(e,r,n);return s>-1?i[o?e[s]:s]:undefined}}var Qo=Jo;function ts(t,e,r,n){var i=t.length,o=r+(n?1:-1);while(n?o--:++o<i){if(e(t[o],o,t)){return o}}return-1}var es=ts;var rs=1/0,ns=17976931348623157e292;function is(t){if(!t){return t===0?t:0}t=g(t);if(t===rs||t===-rs){var e=t<0?-1:1;return e*ns}return t===t?t:0}var os=is;function ss(t){var e=os(t),r=e%1;return e===e?r?e-r:e:0}var as=ss;var us=Math.max;function cs(t,e,r){var n=t==null?0:t.length;if(!n){return-1}var i=r==null?0:as(r);if(i<0){i=us(n+i,0)}return es(t,Go(e),i)}var ls=cs;var hs=Qo(ls);var fs=hs;const ds=(t,e,r)=>{const n=t.get(e);if(!n){t.set(e,[r])}else if(!n.includes(r)){n.push(r)}};const vs=(t,e)=>{let r;return(...n)=>{if(r){clearTimeout(r)}r=setTimeout((()=>{r=0;t(...n)}),e)}};const gs=t=>!("isConnected"in t)||t.isConnected;const ps=vs((t=>{for(let e of t.keys()){t.set(e,t.get(e).filter(gs))}}),2e3);const Cs=()=>{if(typeof t!=="function"){return{}}const r=new Map;return{dispose:()=>r.clear(),get:e=>{const n=t();if(n){ds(r,e,n)}},set:t=>{const n=r.get(t);if(n){r.set(t,n.filter(e))}ps(r)},reset:()=>{r.forEach((t=>t.forEach(e)));ps(r)}}};const ws=t=>typeof t==="function"?t():t;const ms=(t,e=((t,e)=>t!==e))=>{const r=ws(t);let n=new Map(Object.entries(r!==null&&r!==void 0?r:{}));const i={dispose:[],get:[],set:[],reset:[]};const o=()=>{var e;n=new Map(Object.entries((e=ws(t))!==null&&e!==void 0?e:{}));i.reset.forEach((t=>t()))};const s=()=>{i.dispose.forEach((t=>t()));o()};const a=t=>{i.get.forEach((e=>e(t)));return n.get(t)};const u=(t,r)=>{const o=n.get(t);if(e(r,o,t)){n.set(t,r);i.set.forEach((e=>e(t,r,o)))}};const c=typeof Proxy==="undefined"?{}:new Proxy(r,{get(t,e){return a(e)},ownKeys(t){return Array.from(n.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,e){return n.has(e)},set(t,e,r){u(e,r);return true}});const l=(t,e)=>{i[t].push(e);return()=>{bs(i[t],e)}};const h=(e,r)=>{const n=l("set",((t,n)=>{if(t===e){r(n)}}));const i=l("reset",(()=>r(ws(t)[e])));return()=>{n();i()}};const f=(...t)=>{const e=t.reduce(((t,e)=>{if(e.set){t.push(l("set",e.set))}if(e.get){t.push(l("get",e.get))}if(e.reset){t.push(l("reset",e.reset))}if(e.dispose){t.push(l("dispose",e.dispose))}return t}),[]);return()=>e.forEach((t=>t()))};const d=t=>{const e=n.get(t);i.set.forEach((r=>r(t,e,e)))};return{state:c,get:a,set:u,on:l,onChange:h,use:f,dispose:s,reset:o,forceUpdate:d}};const bs=(t,e)=>{const r=t.indexOf(e);if(r>=0){t[r]=t[t.length-1];t.length--}};const Ls=(t,e)=>{const r=ms(t,e);r.use(Cs());return r};var xs=Math.ceil,ys=Math.max;function ks(t,e,r,n){var i=-1,o=ys(xs((e-t)/(r||1)),0),s=Array(o);while(o--){s[n?o:++i]=t;t+=r}return s}var Es=ks;function Ss(t,e,r){if(!f(r)){return false}var n=typeof e;if(n=="number"?re(r)&&Y(e,r.length):n=="string"&&e in r){return ye(r[e],t)}return false}var js=Ss;function Rs(t){return function(e,r,n){if(n&&typeof n!="number"&&js(e,r,n)){r=n=undefined}e=os(e);if(r===undefined){r=e;e=0}else{r=os(r)}n=n===undefined?e<r?1:-1:os(n);return Es(e,r,n,t)}}var Os=Rs;var zs=Os();var Ms=zs;const Fs=t=>({set(e,r){switch(e){case"trimmed":const e=t.get("proxyItems");const n=As(r);const i=e.reduce(((t,e)=>{if(!n[e]){t.push(e)}return t}),[]);t.set("items",i);break}}});function As(t){const e={};for(let r in t){for(let n in t[r]){e[n]=e[n]||t[r][n]}}return e}function _s(t,e){for(let r in e){t.set(r,e[r])}}const Ds=t=>({set(e,r){if(!Is(e)){return}const n=t.get("items").reduce(((t,e)=>{t[e]=true;return t}),{});const i=r.reduce(((t,e)=>{if(n[e]){t.push(e)}return t}),[]);t.set("items",i)}});function Is(t){return t==="proxyItems"}class Ts{get store(){return this.dataStore}constructor(t){const e=this.dataStore=Ls({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{},groupingCustomRenderer:undefined});e.use(Ds(e));e.use(Fs(e))}updateData(t,e,r=false){if(!r){this.store.set("trimmed",{})}this.store.set("items",[]);const n=Ms(0,(t===null||t===void 0?void 0:t.length)||0);_s(this.store,{source:t,proxyItems:[...n]});this.store.set("items",n);if(e){_s(this.store,{groupingDepth:e.depth,groups:e.groups,groupingCustomRenderer:e.customRenderer})}}addTrimmed(t){let e=this.store.get("trimmed");e=Object.assign(Object.assign({},e),t);_s(this.store,{trimmed:e})}setData(t){const e=Object.assign({},t);_s(this.store,e)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function Ps(t,e){const r=t.get("items");return r[e]}function $s(t){const e=t.get("source");return t.get("items").map((t=>e[t]))}function Us(t,e){const r=t.get("items");const n=t.get("source");return n[r[e]]}function Hs(t,e){const r=t.get("items");const n=t.get("source");for(let t in e){const i=r[t];n[i]=e[t]}t.set("source",[...n])}function Zs(t,e){t.set("items",e)}function Bs(t,e){const r=t.get("items");const n=t.get("source");const i=ls(n,{prop:e});return r.indexOf(i)}const Ns=["rowPinStart","rgRow","rowPinEnd"];const Vs=["colPinStart","rgCol","colPinEnd"];function Ws(t){return Ns.indexOf(t)>-1}function Gs(t,e){var r=-1,n=re(t)?Array(t.length):[];le(t,(function(t,i,o){n[++r]=e(t,i,o)}));return n}var qs=Gs;function Ks(t,e){var r=N(t)?fo:qs;return r(t,Go(e))}var Xs=Ks;class Ys{constructor(t){this.revogrid=t;this.subscriptions={}}addEventListener(t,e){this.revogrid.addEventListener(t,e);this.subscriptions[t]=e}watch(t,e,{immediate:r}={immediate:false}){var n;const i=Object.getOwnPropertyDescriptor(this.revogrid,t)||Object.getOwnPropertyDescriptor(this.revogrid.constructor.prototype,t);Object.defineProperty(this.revogrid,t,{set(t){var r;const n=e(t);if(n===false){return}return(r=i===null||i===void 0?void 0:i.set)===null||r===void 0?void 0:r.call(this,t)},get(){var t;return(t=i===null||i===void 0?void 0:i.get)===null||t===void 0?void 0:t.call(this)}});if(r){e((n=i===null||i===void 0?void 0:i.get)===null||n===void 0?void 0:n.call(this.revogrid))}}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]);delete this.subscriptions[t]}emit(t,e){const r=new CustomEvent(t,{detail:e,cancelable:true});this.revogrid.dispatchEvent(r);return r}clearSubscriptions(){for(let t in this.subscriptions){this.removeEventListener(t)}}destroy(){this.clearSubscriptions()}}class Js extends Ys{static gatherGroup(t,e,r,n=0){const i=Object.assign(Object.assign({},e),{level:n,ids:[]});for(let e in r.columns){const n=e;const o=t.columns[n];const s=r.columns[n];if(N(o)&&N(s)){o.push(...s);if(s.length){t.columnGrouping[n].push(Object.assign(Object.assign({},i),{ids:Xs(s,"prop")}))}}}for(let e in r.columnGrouping){const n=e;const i=r.columnGrouping[n];t.columnGrouping[n].push(...i)}t.maxLevel=Math.max(t.maxLevel,r.maxLevel);t.sort=Object.assign(Object.assign({},t.sort),r.sort);return t}}function Qs(t){return!!t.children}class ta{get order(){return Yo(this.sorting,((t,e,r)=>{t[r]=e.order;return t}),{})}get stores(){return this.dataSources}constructor(){this.sorting=null;this.dataSources=Yo(Vs,((t,e)=>{t[e]=new Ts(e);return t}),{})}column(t,e){return this.getColumn(t,e||"rgCol")}getColumn(t,e){return Us(this.dataSources[e].store,t)}getRawColumns(){return Yo(this.dataSources,((t,e,r)=>{t[r]=e.store.get("source");return t}),{rgCol:[],colPinStart:[],colPinEnd:[]})}getColumns(t="all"){if(t!=="all"){return this.dataSources[t].store.get("source")}return Vs.reduce(((t,e)=>{t.push(...this.dataSources[e].store.get("source"));return t}),[])}getColumnIndexByProp(t,e){return Bs(this.dataSources[e].store,t)}getColumnByProp(t,e){const r=this.dataSources[e].store.get("source");return fs(r,{prop:t})}refreshByType(t){this.dataSources[t].refresh()}setColumns(t){Ce(Vs,(e=>{this.dataSources[e].updateData(t.columns[e],{depth:t.maxLevel,groups:Yo(t.columnGrouping[e],((t,e)=>{if(!t[e.level]){t[e.level]=[]}t[e.level].push(e);return t}),{})})}));this.sorting=t.sort;return t}updateColumns(t){const e=t.reduce(((t,e)=>{const r=ta.getColumnType(e);if(!t[r]){t[r]={}}t[r][e.prop]=e;return t}),{});const r={};Ce(e,((t,e)=>{const n=this.dataSources[e].store.get("source");r[e]=n.reduce(((e,r,n)=>{const i=t[r.prop];if(i){e[n]=i}return e}),{})}));Ce(r,((t,e)=>Hs(this.dataSources[e].store,t)))}updateColumn(t,e){const r=ta.getColumnType(t);Hs(this.dataSources[r].store,{[e]:t})}updateColumnSorting(t,e,r,n){if(!n){this.clearSorting()}t.order=r;this.sorting[t.prop]=t;this.updateColumn(t,e);return t}clearSorting(){const t=Yo(this.sorting,((t,e)=>{const r=ta.getColumnType(e);t[r]=true;return t}),{});Ce(t,((t,e)=>{const r=this.dataSources[e].store.get("source");Ce(r,(t=>t.order=undefined));this.dataSources[e].setData({source:[...r]})}));this.sorting={}}static getSizes(t){return Yo(t,((t,e,r)=>{if(e.size){t[r]=e.size}return t}),{})}static getColumnByProp(t,e){return fs(t,(t=>{if(Qs(t)){return ta.getColumnByProp(t.children,e)}return t.prop===e}))}static getColumns(t,e=0,r){const n={columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:e,sort:{}};return Yo(t,((t,n)=>{if(Qs(n)){return Js.gatherGroup(t,n,ta.getColumns(n.children,e+1,r),e)}const i=Object.assign(Object.assign({},n.columnType&&r&&r[n.columnType]),n);if(!i.pin){t.columns.rgCol.push(i)}else{t.columns[i.pin].push(i)}if(i.order){t.sort[i.prop]=i}i.beforeSetup&&i.beforeSetup(i);return t}),n)}static getColumnType(t){if(t.pin){return t.pin}return"rgCol"}}class ea{constructor(t){this.dimensionProvider=t;this.stores=Yo(Ns,((t,e)=>{t[e]=new Ts(e);return t}),{})}setData(t,e="rgRow",r,n=false){this.stores[e].updateData([...t],r,n);this.dimensionProvider.setData(t.length,e,e!=="rgRow");return t}getModel(t,e="rgRow"){const r=this.stores[e].store;return Us(r,t)}setCellData({type:t,rowIndex:e,prop:r,val:n}){const i=this.getModel(e,t);i[r]=n;Hs(this.stores[t].store,{[e]:i})}refresh(t="all"){if(Ws(t)){this.refreshItems(t)}Ns.forEach((t=>this.refreshItems(t)))}refreshItems(t="rgRow"){const e=this.stores[t].store.get("items");this.stores[t].setData({items:[...e]})}setGrouping({depth:t},e="rgRow"){this.stores[e].setData({groupingDepth:t})}setTrimmed(t,e="rgRow"){const r=this.stores[e];r.addTrimmed(t);this.dimensionProvider.setTrimmed(t,e);if(e==="rgRow"){this.dimensionProvider.setData($s(r.store).length,e)}}}var ra=c((function(t,e){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var c=500;var l="__lodash_placeholder__";var h=1,f=2,d=4;var v=1,g=2;var C=1,w=2,m=4,b=8,L=16,x=32,y=64,k=128,E=256,S=512;var j=30,R="...";var O=800,z=16;var M=1,F=2,A=3;var _=1/0,D=9007199254740991,I=17976931348623157e292,T=0/0;var P=4294967295,$=P-1,U=P>>>1;var H=[["ary",k],["bind",C],["bindKey",w],["curry",b],["curryRight",L],["flip",S],["partial",x],["partialRight",y],["rearg",E]];var Z="[object Arguments]",B="[object Array]",N="[object AsyncFunction]",V="[object Boolean]",W="[object Date]",G="[object DOMException]",q="[object Error]",K="[object Function]",X="[object GeneratorFunction]",Y="[object Map]",J="[object Number]",Q="[object Null]",tt="[object Object]",et="[object Promise]",rt="[object Proxy]",nt="[object RegExp]",it="[object Set]",ot="[object String]",st="[object Symbol]",at="[object Undefined]",ut="[object WeakMap]",ct="[object WeakSet]";var lt="[object ArrayBuffer]",ht="[object DataView]",ft="[object Float32Array]",dt="[object Float64Array]",vt="[object Int8Array]",gt="[object Int16Array]",pt="[object Int32Array]",Ct="[object Uint8Array]",wt="[object Uint8ClampedArray]",mt="[object Uint16Array]",bt="[object Uint32Array]";var Lt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var kt=/&(?:amp|lt|gt|quot|#39);/g,Et=/[&<>"']/g,St=RegExp(kt.source),jt=RegExp(Et.source);var Rt=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g;var Mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/,At=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var _t=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(_t.source);var It=/^\s+/;var Tt=/\s/;var Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$t=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /;var Ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Zt=/[()=,{}\[\]\/\s]/;var Bt=/\\(\\)?/g;var Nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Vt=/\w*$/;var Wt=/^[-+]0x[0-9a-f]+$/i;var Gt=/^0b[01]+$/i;var qt=/^\[object .+?Constructor\]$/;var Kt=/^0o[0-7]+$/i;var Xt=/^(?:0|[1-9]\d*)$/;var Yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Jt=/($^)/;var Qt=/['\n\r\u2028\u2029\\]/g;var te="\\ud800-\\udfff",ee="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ne="\\u20d0-\\u20ff",ie=ee+re+ne,oe="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",ue="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ce="\\u2000-\\u206f",le=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="A-Z\\xc0-\\xd6\\xd8-\\xde",fe="\\ufe0e\\ufe0f",de=ae+ue+ce+le;var ve="['’]",ge="["+te+"]",pe="["+de+"]",Ce="["+ie+"]",we="\\d+",me="["+oe+"]",be="["+se+"]",Le="[^"+te+de+we+oe+se+he+"]",xe="\\ud83c[\\udffb-\\udfff]",ye="(?:"+Ce+"|"+xe+")",ke="[^"+te+"]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+he+"]",Re="\\u200d";var Oe="(?:"+be+"|"+Le+")",ze="(?:"+je+"|"+Le+")",Me="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",Fe="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Ae=ye+"?",_e="["+fe+"]?",De="(?:"+Re+"(?:"+[ke,Ee,Se].join("|")+")"+_e+Ae+")*",Ie="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pe=_e+Ae+De,$e="(?:"+[me,Ee,Se].join("|")+")"+Pe,Ue="(?:"+[ke+Ce+"?",Ce,Ee,Se,ge].join("|")+")";var He=RegExp(ve,"g");var Ze=RegExp(Ce,"g");var Be=RegExp(xe+"(?="+xe+")|"+Ue+Pe,"g");var Ne=RegExp([je+"?"+be+"+"+Me+"(?="+[pe,je,"$"].join("|")+")",ze+"+"+Fe+"(?="+[pe,je+Oe,"$"].join("|")+")",je+"?"+Oe+"+"+Me,je+"+"+Fe,Te,Ie,we,$e].join("|"),"g");var Ve=RegExp("["+Re+te+ie+fe+"]");var We=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Ge=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var qe=-1;var Ke={};Ke[ft]=Ke[dt]=Ke[vt]=Ke[gt]=Ke[pt]=Ke[Ct]=Ke[wt]=Ke[mt]=Ke[bt]=true;Ke[Z]=Ke[B]=Ke[lt]=Ke[V]=Ke[ht]=Ke[W]=Ke[q]=Ke[K]=Ke[Y]=Ke[J]=Ke[tt]=Ke[nt]=Ke[it]=Ke[ot]=Ke[ut]=false;var Xe={};Xe[Z]=Xe[B]=Xe[lt]=Xe[ht]=Xe[V]=Xe[W]=Xe[ft]=Xe[dt]=Xe[vt]=Xe[gt]=Xe[pt]=Xe[Y]=Xe[J]=Xe[tt]=Xe[nt]=Xe[it]=Xe[ot]=Xe[st]=Xe[Ct]=Xe[wt]=Xe[mt]=Xe[bt]=true;Xe[q]=Xe[K]=Xe[ut]=false;var Ye={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"};var Je={"&":"&","<":"<",">":">",'"':""","'":"'"};var Qe={"&":"&","<":"<",">":">",""":'"',"'":"'"};var tr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var er=parseFloat,rr=parseInt;var nr=typeof p=="object"&&p&&p.Object===Object&&p;var ir=typeof self=="object"&&self&&self.Object===Object&&self;var or=nr||ir||Function("return this")();var sr=e&&!e.nodeType&&e;var ar=sr&&"object"=="object"&&t&&!t.nodeType&&t;var ur=ar&&ar.exports===sr;var cr=ur&&nr.process;var lr=function(){try{var t=ar&&ar.require&&ar.require("util").types;if(t){return t}return cr&&cr.binding&&cr.binding("util")}catch(t){}}();var hr=lr&&lr.isArrayBuffer,fr=lr&&lr.isDate,dr=lr&&lr.isMap,vr=lr&&lr.isRegExp,gr=lr&&lr.isSet,pr=lr&&lr.isTypedArray;function Cr(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function wr(t,e,r,n){var i=-1,o=t==null?0:t.length;while(++i<o){var s=t[i];e(n,s,r(s),t)}return n}function mr(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)===false){break}}return t}function br(t,e){var r=t==null?0:t.length;while(r--){if(e(t[r],r,t)===false){break}}return t}function Lr(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(!e(t[r],r,t)){return false}}return true}function xr(t,e){var r=-1,n=t==null?0:t.length,i=0,o=[];while(++r<n){var s=t[r];if(e(s,r,t)){o[i++]=s}}return o}function yr(t,e){var r=t==null?0:t.length;return!!r&&Dr(t,e,0)>-1}function kr(t,e,r){var n=-1,i=t==null?0:t.length;while(++n<i){if(r(e,t[n])){return true}}return false}function Er(t,e){var r=-1,n=t==null?0:t.length,i=Array(n);while(++r<n){i[r]=e(t[r],r,t)}return i}function Sr(t,e){var r=-1,n=e.length,i=t.length;while(++r<n){t[i+r]=e[r]}return t}function jr(t,e,r,n){var i=-1,o=t==null?0:t.length;if(n&&o){r=t[++i]}while(++i<o){r=e(r,t[i],i,t)}return r}function Rr(t,e,r,n){var i=t==null?0:t.length;if(n&&i){r=t[--i]}while(i--){r=e(r,t[i],i,t)}return r}function Or(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)){return true}}return false}var zr=$r("length");function Mr(t){return t.split("")}function Fr(t){return t.match(Ht)||[]}function Ar(t,e,r){var n;r(t,(function(t,r,i){if(e(t,r,i)){n=r;return false}}));return n}function _r(t,e,r,n){var i=t.length,o=r+(n?1:-1);while(n?o--:++o<i){if(e(t[o],o,t)){return o}}return-1}function Dr(t,e,r){return e===e?fn(t,e,r):_r(t,Tr,r)}function Ir(t,e,r,n){var i=r-1,o=t.length;while(++i<o){if(n(t[i],e)){return i}}return-1}function Tr(t){return t!==t}function Pr(t,e){var r=t==null?0:t.length;return r?Br(t,e)/r:T}function $r(t){return function(e){return e==null?r:e[t]}}function Ur(t){return function(e){return t==null?r:t[e]}}function Hr(t,e,r,n,i){i(t,(function(t,i,o){r=n?(n=false,t):e(r,t,i,o)}));return r}function Zr(t,e){var r=t.length;t.sort(e);while(r--){t[r]=t[r].value}return t}function Br(t,e){var n,i=-1,o=t.length;while(++i<o){var s=e(t[i]);if(s!==r){n=n===r?s:n+s}}return n}function Nr(t,e){var r=-1,n=Array(t);while(++r<t){n[r]=e(r)}return n}function Vr(t,e){return Er(e,(function(e){return[e,t[e]]}))}function Wr(t){return t?t.slice(0,pn(t)+1).replace(It,""):t}function Gr(t){return function(e){return t(e)}}function qr(t,e){return Er(e,(function(e){return t[e]}))}function Kr(t,e){return t.has(e)}function Xr(t,e){var r=-1,n=t.length;while(++r<n&&Dr(e,t[r],0)>-1){}return r}function Yr(t,e){var r=t.length;while(r--&&Dr(e,t[r],0)>-1){}return r}function Jr(t,e){var r=t.length,n=0;while(r--){if(t[r]===e){++n}}return n}var Qr=Ur(Ye);var tn=Ur(Je);function en(t){return"\\"+tr[t]}function rn(t,e){return t==null?r:t[e]}function nn(t){return Ve.test(t)}function on(t){return We.test(t)}function sn(t){var e,r=[];while(!(e=t.next()).done){r.push(e.value)}return r}function an(t){var e=-1,r=Array(t.size);t.forEach((function(t,n){r[++e]=[n,t]}));return r}function un(t,e){return function(r){return t(e(r))}}function cn(t,e){var r=-1,n=t.length,i=0,o=[];while(++r<n){var s=t[r];if(s===e||s===l){t[r]=l;o[i++]=r}}return o}function ln(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}function hn(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=[t,t]}));return r}function fn(t,e,r){var n=r-1,i=t.length;while(++n<i){if(t[n]===e){return n}}return-1}function dn(t,e,r){var n=r+1;while(n--){if(t[n]===e){return n}}return n}function vn(t){return nn(t)?wn(t):zr(t)}function gn(t){return nn(t)?mn(t):Mr(t)}function pn(t){var e=t.length;while(e--&&Tt.test(t.charAt(e))){}return e}var Cn=Ur(Qe);function wn(t){var e=Be.lastIndex=0;while(Be.test(t)){++e}return e}function mn(t){return t.match(Be)||[]}function bn(t){return t.match(Ne)||[]}var Ln=function t(e){e=e==null?or:xn.defaults(or.Object(),e,xn.pick(or,Ge));var p=e.Array,Tt=e.Date,Ht=e.Error,te=e.Function,ee=e.Math,re=e.Object,ne=e.RegExp,ie=e.String,oe=e.TypeError;var se=p.prototype,ae=te.prototype,ue=re.prototype;var ce=e["__core-js_shared__"];var le=ae.toString;var he=ue.hasOwnProperty;var fe=0;var de=function(){var t=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var ve=ue.toString;var ge=le.call(re);var pe=or._;var Ce=ne("^"+le.call(he).replace(_t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var we=ur?e.Buffer:r,me=e.Symbol,be=e.Uint8Array,Le=we?we.allocUnsafe:r,xe=un(re.getPrototypeOf,re),ye=re.create,ke=ue.propertyIsEnumerable,Ee=se.splice,Se=me?me.isConcatSpreadable:r,je=me?me.iterator:r,Re=me?me.toStringTag:r;var Oe=function(){try{var t=Gs(re,"defineProperty");t({},"",{});return t}catch(t){}}();var ze=e.clearTimeout!==or.clearTimeout&&e.clearTimeout,Me=Tt&&Tt.now!==or.Date.now&&Tt.now,Fe=e.setTimeout!==or.setTimeout&&e.setTimeout;var Ae=ee.ceil,_e=ee.floor,De=re.getOwnPropertySymbols,Ie=we?we.isBuffer:r,Te=e.isFinite,Pe=se.join,$e=un(re.keys,re),Ue=ee.max,Be=ee.min,Ne=Tt.now,Ve=e.parseInt,We=ee.random,Ye=se.reverse;var Je=Gs(e,"DataView"),Qe=Gs(e,"Map"),tr=Gs(e,"Promise"),nr=Gs(e,"Set"),ir=Gs(e,"WeakMap"),sr=Gs(re,"create");var ar=ir&&new ir;var cr={};var lr=Fa(Je),zr=Fa(Qe),Mr=Fa(tr),Ur=Fa(nr),fn=Fa(ir);var wn=me?me.prototype:r,mn=wn?wn.valueOf:r,Ln=wn?wn.toString:r;function yn(t){if(El(t)&&!ul(t)&&!(t instanceof jn)){if(t instanceof Sn){return t}if(he.call(t,"__wrapped__")){return _a(t)}}return new Sn(t)}var kn=function(){function t(){}return function(e){if(!kl(e)){return{}}if(ye){return ye(e)}t.prototype=e;var n=new t;t.prototype=r;return n}}();function En(){}function Sn(t,e){this.__wrapped__=t;this.__actions__=[];this.__chain__=!!e;this.__index__=0;this.__values__=r}yn.templateSettings={escape:Rt,evaluate:Ot,interpolate:zt,variable:"",imports:{_:yn}};yn.prototype=En.prototype;yn.prototype.constructor=yn;Sn.prototype=kn(En.prototype);Sn.prototype.constructor=Sn;function jn(t){this.__wrapped__=t;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=P;this.__views__=[]}function Rn(){var t=new jn(this.__wrapped__);t.__actions__=is(this.__actions__);t.__dir__=this.__dir__;t.__filtered__=this.__filtered__;t.__iteratees__=is(this.__iteratees__);t.__takeCount__=this.__takeCount__;t.__views__=is(this.__views__);return t}function On(){if(this.__filtered__){var t=new jn(this);t.__dir__=-1;t.__filtered__=true}else{t=this.clone();t.__dir__*=-1}return t}function zn(){var t=this.__wrapped__.value(),e=this.__dir__,r=ul(t),n=e<0,i=r?t.length:0,o=Js(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,h=l.length,f=0,d=Be(u,this.__takeCount__);if(!r||!n&&i==u&&d==u){return $o(t,this.__actions__)}var v=[];t:while(u--&&f<d){c+=e;var g=-1,p=t[c];while(++g<h){var C=l[g],w=C.iteratee,m=C.type,b=w(p);if(m==F){p=b}else if(!b){if(m==M){continue t}else{break t}}}v[f++]=p}return v}jn.prototype=kn(En.prototype);jn.prototype.constructor=jn;function Mn(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Fn(){this.__data__=sr?sr(null):{};this.size=0}function An(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}function _n(t){var e=this.__data__;if(sr){var n=e[t];return n===u?r:n}return he.call(e,t)?e[t]:r}function Dn(t){var e=this.__data__;return sr?e[t]!==r:he.call(e,t)}function In(t,e){var n=this.__data__;this.size+=this.has(t)?0:1;n[t]=sr&&e===r?u:e;return this}Mn.prototype.clear=Fn;Mn.prototype["delete"]=An;Mn.prototype.get=_n;Mn.prototype.has=Dn;Mn.prototype.set=In;function Tn(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Pn(){this.__data__=[];this.size=0}function $n(t){var e=this.__data__,r=li(e,t);if(r<0){return false}var n=e.length-1;if(r==n){e.pop()}else{Ee.call(e,r,1)}--this.size;return true}function Un(t){var e=this.__data__,n=li(e,t);return n<0?r:e[n][1]}function Hn(t){return li(this.__data__,t)>-1}function Zn(t,e){var r=this.__data__,n=li(r,t);if(n<0){++this.size;r.push([t,e])}else{r[n][1]=e}return this}Tn.prototype.clear=Pn;Tn.prototype["delete"]=$n;Tn.prototype.get=Un;Tn.prototype.has=Hn;Tn.prototype.set=Zn;function Bn(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Nn(){this.size=0;this.__data__={hash:new Mn,map:new(Qe||Tn),string:new Mn}}function Vn(t){var e=Vs(this,t)["delete"](t);this.size-=e?1:0;return e}function Wn(t){return Vs(this,t).get(t)}function Gn(t){return Vs(this,t).has(t)}function qn(t,e){var r=Vs(this,t),n=r.size;r.set(t,e);this.size+=r.size==n?0:1;return this}Bn.prototype.clear=Nn;Bn.prototype["delete"]=Vn;Bn.prototype.get=Wn;Bn.prototype.has=Gn;Bn.prototype.set=qn;function Kn(t){var e=-1,r=t==null?0:t.length;this.__data__=new Bn;while(++e<r){this.add(t[e])}}function Xn(t){this.__data__.set(t,u);return this}function Yn(t){return this.__data__.has(t)}Kn.prototype.add=Kn.prototype.push=Xn;Kn.prototype.has=Yn;function Jn(t){var e=this.__data__=new Tn(t);this.size=e.size}function Qn(){this.__data__=new Tn;this.size=0}function ti(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}function ei(t){return this.__data__.get(t)}function ri(t){return this.__data__.has(t)}function ni(t,e){var r=this.__data__;if(r instanceof Tn){var n=r.__data__;if(!Qe||n.length<i-1){n.push([t,e]);this.size=++r.size;return this}r=this.__data__=new Bn(n)}r.set(t,e);this.size=r.size;return this}Jn.prototype.clear=Qn;Jn.prototype["delete"]=ti;Jn.prototype.get=ei;Jn.prototype.has=ri;Jn.prototype.set=ni;function ii(t,e){var r=ul(t),n=!r&&al(t),i=!r&&!n&&dl(t),o=!r&&!n&&!i&&Ul(t),s=r||n||i||o,a=s?Nr(t.length,ie):[],u=a.length;for(var c in t){if((e||he.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||sa(c,u)))){a.push(c)}}return a}function oi(t){var e=t.length;return e?t[wo(0,e-1)]:r}function si(t,e){return Oa(is(t),pi(e,0,t.length))}function ai(t){return Oa(is(t))}function ui(t,e,n){if(n!==r&&!il(t[e],n)||n===r&&!(e in t)){vi(t,e,n)}}function ci(t,e,n){var i=t[e];if(!(he.call(t,e)&&il(i,n))||n===r&&!(e in t)){vi(t,e,n)}}function li(t,e){var r=t.length;while(r--){if(il(t[r][0],e)){return r}}return-1}function hi(t,e,r,n){xi(t,(function(t,i,o){e(n,t,r(t),o)}));return n}function fi(t,e){return t&&os(e,xh(e),t)}function di(t,e){return t&&os(e,yh(e),t)}function vi(t,e,r){if(e=="__proto__"&&Oe){Oe(t,e,{configurable:true,enumerable:true,value:r,writable:true})}else{t[e]=r}}function gi(t,e){var n=-1,i=e.length,o=p(i),s=t==null;while(++n<i){o[n]=s?r:ph(t,e[n])}return o}function pi(t,e,n){if(t===t){if(n!==r){t=t<=n?t:n}if(e!==r){t=t>=e?t:e}}return t}function Ci(t,e,n,i,o,s){var a,u=e&h,c=e&f,l=e&d;if(n){a=o?n(t,i,o,s):n(t)}if(a!==r){return a}if(!kl(t)){return t}var v=ul(t);if(v){a=ea(t);if(!u){return is(t,a)}}else{var g=Ys(t),p=g==K||g==X;if(dl(t)){return qo(t,u)}if(g==tt||g==Z||p&&!o){a=c||p?{}:ra(t);if(!u){return c?as(t,di(a,t)):ss(t,fi(a,t))}}else{if(!Xe[g]){return o?t:{}}a=na(t,g,u)}}s||(s=new Jn);var C=s.get(t);if(C){return C}s.set(t,a);if(Tl(t)){t.forEach((function(r){a.add(Ci(r,e,n,r,t,s))}))}else if(Sl(t)){t.forEach((function(r,i){a.set(i,Ci(r,e,n,i,t,s))}))}var w=l?c?Us:$s:c?yh:xh;var m=v?r:w(t);mr(m||t,(function(r,i){if(m){i=r;r=t[i]}ci(a,i,Ci(r,e,n,i,t,s))}));return a}function wi(t){var e=xh(t);return function(r){return mi(r,t,e)}}function mi(t,e,n){var i=n.length;if(t==null){return!i}t=re(t);while(i--){var o=n[i],s=e[o],a=t[o];if(a===r&&!(o in t)||!s(a)){return false}}return true}function bi(t,e,n){if(typeof t!="function"){throw new oe(s)}return Ea((function(){t.apply(r,n)}),e)}function Li(t,e,r,n){var o=-1,s=yr,a=true,u=t.length,c=[],l=e.length;if(!u){return c}if(r){e=Er(e,Gr(r))}if(n){s=kr;a=false}else if(e.length>=i){s=Kr;a=false;e=new Kn(e)}t:while(++o<u){var h=t[o],f=r==null?h:r(h);h=n||h!==0?h:0;if(a&&f===f){var d=l;while(d--){if(e[d]===f){continue t}}c.push(h)}else if(!s(e,f,n)){c.push(h)}}return c}var xi=ls(Mi);var yi=ls(Fi,true);function ki(t,e){var r=true;xi(t,(function(t,n,i){r=!!e(t,n,i);return r}));return r}function Ei(t,e,n){var i=-1,o=t.length;while(++i<o){var s=t[i],a=e(s);if(a!=null&&(u===r?a===a&&!$l(a):n(a,u))){var u=a,c=s}}return c}function Si(t,e,n,i){var o=t.length;n=ql(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:ql(i);if(i<0){i+=o}i=n>i?0:Kl(i);while(n<i){t[n++]=e}return t}function ji(t,e){var r=[];xi(t,(function(t,n,i){if(e(t,n,i)){r.push(t)}}));return r}function Ri(t,e,r,n,i){var o=-1,s=t.length;r||(r=oa);i||(i=[]);while(++o<s){var a=t[o];if(e>0&&r(a)){if(e>1){Ri(a,e-1,r,n,i)}else{Sr(i,a)}}else if(!n){i[i.length]=a}}return i}var Oi=hs();var zi=hs(true);function Mi(t,e){return t&&Oi(t,e,xh)}function Fi(t,e){return t&&zi(t,e,xh)}function Ai(t,e){return xr(e,(function(e){return Ll(t[e])}))}function _i(t,e){e=No(e,t);var n=0,i=e.length;while(t!=null&&n<i){t=t[Ma(e[n++])]}return n&&n==i?t:r}function Di(t,e,r){var n=e(t);return ul(t)?n:Sr(n,r(t))}function Ii(t){if(t==null){return t===r?at:Q}return Re&&Re in re(t)?qs(t):ma(t)}function Ti(t,e){return t>e}function Pi(t,e){return t!=null&&he.call(t,e)}function $i(t,e){return t!=null&&e in re(t)}function Ui(t,e,r){return t>=Be(e,r)&&t<Ue(e,r)}function Hi(t,e,n){var i=n?kr:yr,o=t[0].length,s=t.length,a=s,u=p(s),c=Infinity,l=[];while(a--){var h=t[a];if(a&&e){h=Er(h,Gr(e))}c=Be(h.length,c);u[a]=!n&&(e||o>=120&&h.length>=120)?new Kn(a&&h):r}h=t[0];var f=-1,d=u[0];t:while(++f<o&&l.length<c){var v=h[f],g=e?e(v):v;v=n||v!==0?v:0;if(!(d?Kr(d,g):i(l,g,n))){a=s;while(--a){var C=u[a];if(!(C?Kr(C,g):i(t[a],g,n))){continue t}}if(d){d.push(g)}l.push(v)}}return l}function Zi(t,e,r,n){Mi(t,(function(t,i,o){e(n,r(t),i,o)}));return n}function Bi(t,e,n){e=No(e,t);t=La(t,e);var i=t==null?t:t[Ma(ou(e))];return i==null?r:Cr(i,t,n)}function Ni(t){return El(t)&&Ii(t)==Z}function Vi(t){return El(t)&&Ii(t)==lt}function Wi(t){return El(t)&&Ii(t)==W}function Gi(t,e,r,n,i){if(t===e){return true}if(t==null||e==null||!El(t)&&!El(e)){return t!==t&&e!==e}return qi(t,e,r,n,Gi,i)}function qi(t,e,r,n,i,o){var s=ul(t),a=ul(e),u=s?B:Ys(t),c=a?B:Ys(e);u=u==Z?tt:u;c=c==Z?tt:c;var l=u==tt,h=c==tt,f=u==c;if(f&&dl(t)){if(!dl(e)){return false}s=true;l=false}if(f&&!l){o||(o=new Jn);return s||Ul(t)?Ds(t,e,r,n,i,o):Is(t,e,u,r,n,i,o)}if(!(r&v)){var d=l&&he.call(t,"__wrapped__"),g=h&&he.call(e,"__wrapped__");if(d||g){var p=d?t.value():t,C=g?e.value():e;o||(o=new Jn);return i(p,C,r,n,o)}}if(!f){return false}o||(o=new Jn);return Ts(t,e,r,n,i,o)}function Ki(t){return El(t)&&Ys(t)==Y}function Xi(t,e,n,i){var o=n.length,s=o,a=!i;if(t==null){return!s}t=re(t);while(o--){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t)){return false}}while(++o<s){u=n[o];var c=u[0],l=t[c],h=u[1];if(a&&u[2]){if(l===r&&!(c in t)){return false}}else{var f=new Jn;if(i){var d=i(l,h,c,t,e,f)}if(!(d===r?Gi(h,l,v|g,i,f):d)){return false}}}return true}function Yi(t){if(!kl(t)||ha(t)){return false}var e=Ll(t)?Ce:qt;return e.test(Fa(t))}function Ji(t){return El(t)&&Ii(t)==nt}function Qi(t){return El(t)&&Ys(t)==it}function to(t){return El(t)&&yl(t.length)&&!!Ke[Ii(t)]}function eo(t){if(typeof t=="function"){return t}if(t==null){return Mf}if(typeof t=="object"){return ul(t)?ao(t[0],t[1]):so(t)}return Nf(t)}function ro(t){if(!da(t)){return $e(t)}var e=[];for(var r in re(t)){if(he.call(t,r)&&r!="constructor"){e.push(r)}}return e}function no(t){if(!kl(t)){return wa(t)}var e=da(t),r=[];for(var n in t){if(!(n=="constructor"&&(e||!he.call(t,n)))){r.push(n)}}return r}function io(t,e){return t<e}function oo(t,e){var r=-1,n=ll(t)?p(t.length):[];xi(t,(function(t,i,o){n[++r]=e(t,i,o)}));return n}function so(t){var e=Ws(t);if(e.length==1&&e[0][2]){return ga(e[0][0],e[0][1])}return function(r){return r===t||Xi(r,t,e)}}function ao(t,e){if(ua(t)&&va(e)){return ga(Ma(t),e)}return function(n){var i=ph(n,t);return i===r&&i===e?wh(n,t):Gi(e,i,v|g)}}function uo(t,e,n,i,o){if(t===e){return}Oi(e,(function(s,a){o||(o=new Jn);if(kl(s)){co(t,e,a,n,uo,i,o)}else{var u=i?i(ya(t,a),s,a+"",t,e,o):r;if(u===r){u=s}ui(t,a,u)}}),yh)}function co(t,e,n,i,o,s,a){var u=ya(t,n),c=ya(e,n),l=a.get(c);if(l){ui(t,n,l);return}var h=s?s(u,c,n+"",t,e,a):r;var f=h===r;if(f){var d=ul(c),v=!d&&dl(c),g=!d&&!v&&Ul(c);h=c;if(d||v||g){if(ul(u)){h=u}else if(hl(u)){h=is(u)}else if(v){f=false;h=qo(c,true)}else if(g){f=false;h=Qo(c,true)}else{h=[]}}else if(_l(c)||al(c)){h=u;if(al(u)){h=Yl(u)}else if(!kl(u)||Ll(u)){h=ra(c)}}else{f=false}}if(f){a.set(c,h);o(h,c,i,s,a);a["delete"](c)}ui(t,n,h)}function lo(t,e){var n=t.length;if(!n){return}e+=e<0?n:0;return sa(e,n)?t[e]:r}function ho(t,e,r){if(e.length){e=Er(e,(function(t){if(ul(t)){return function(e){return _i(e,t.length===1?t[0]:t)}}return t}))}else{e=[Mf]}var n=-1;e=Er(e,Gr(Ns()));var i=oo(t,(function(t,r,i){var o=Er(e,(function(e){return e(t)}));return{criteria:o,index:++n,value:t}}));return Zr(i,(function(t,e){return es(t,e,r)}))}function fo(t,e){return vo(t,e,(function(e,r){return wh(t,r)}))}function vo(t,e,r){var n=-1,i=e.length,o={};while(++n<i){var s=e[n],a=_i(t,s);if(r(a,s)){ko(o,No(s,t),a)}}return o}function go(t){return function(e){return _i(e,t)}}function po(t,e,r,n){var i=n?Ir:Dr,o=-1,s=e.length,a=t;if(t===e){e=is(e)}if(r){a=Er(t,Gr(r))}while(++o<s){var u=0,c=e[o],l=r?r(c):c;while((u=i(a,l,u,n))>-1){if(a!==t){Ee.call(a,u,1)}Ee.call(t,u,1)}}return t}function Co(t,e){var r=t?e.length:0,n=r-1;while(r--){var i=e[r];if(r==n||i!==o){var o=i;if(sa(i)){Ee.call(t,i,1)}else{Io(t,i)}}}return t}function wo(t,e){return t+_e(We()*(e-t+1))}function mo(t,e,r,n){var i=-1,o=Ue(Ae((e-t)/(r||1)),0),s=p(o);while(o--){s[n?o:++i]=t;t+=r}return s}function bo(t,e){var r="";if(!t||e<1||e>D){return r}do{if(e%2){r+=t}e=_e(e/2);if(e){t+=t}}while(e);return r}function Lo(t,e){return Sa(ba(t,e,Mf),t+"")}function xo(t){return oi(Hh(t))}function yo(t,e){var r=Hh(t);return Oa(r,pi(e,0,r.length))}function ko(t,e,n,i){if(!kl(t)){return t}e=No(e,t);var o=-1,s=e.length,a=s-1,u=t;while(u!=null&&++o<s){var c=Ma(e[o]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype"){return t}if(o!=a){var h=u[c];l=i?i(h,c,u):r;if(l===r){l=kl(h)?h:sa(e[o+1])?[]:{}}}ci(u,c,l);u=u[c]}return t}var Eo=!ar?Mf:function(t,e){ar.set(t,e);return t};var So=!Oe?Mf:function(t,e){return Oe(t,"toString",{configurable:true,enumerable:false,value:jf(e),writable:true})};function jo(t){return Oa(Hh(t))}function Ro(t,e,r){var n=-1,i=t.length;if(e<0){e=-e>i?0:i+e}r=r>i?i:r;if(r<0){r+=i}i=e>r?0:r-e>>>0;e>>>=0;var o=p(i);while(++n<i){o[n]=t[n+e]}return o}function Oo(t,e){var r;xi(t,(function(t,n,i){r=e(t,n,i);return!r}));return!!r}function zo(t,e,r){var n=0,i=t==null?n:t.length;if(typeof e=="number"&&e===e&&i<=U){while(n<i){var o=n+i>>>1,s=t[o];if(s!==null&&!$l(s)&&(r?s<=e:s<e)){n=o+1}else{i=o}}return i}return Mo(t,e,Mf,r)}function Mo(t,e,n,i){var o=0,s=t==null?0:t.length;if(s===0){return 0}e=n(e);var a=e!==e,u=e===null,c=$l(e),l=e===r;while(o<s){var h=_e((o+s)/2),f=n(t[h]),d=f!==r,v=f===null,g=f===f,p=$l(f);if(a){var C=i||g}else if(l){C=g&&(i||d)}else if(u){C=g&&d&&(i||!v)}else if(c){C=g&&d&&!v&&(i||!p)}else if(v||p){C=false}else{C=i?f<=e:f<e}if(C){o=h+1}else{s=h}}return Be(s,$)}function Fo(t,e){var r=-1,n=t.length,i=0,o=[];while(++r<n){var s=t[r],a=e?e(s):s;if(!r||!il(a,u)){var u=a;o[i++]=s===0?0:s}}return o}function Ao(t){if(typeof t=="number"){return t}if($l(t)){return T}return+t}function _o(t){if(typeof t=="string"){return t}if(ul(t)){return Er(t,_o)+""}if($l(t)){return Ln?Ln.call(t):""}var e=t+"";return e=="0"&&1/t==-_?"-0":e}function Do(t,e,r){var n=-1,o=yr,s=t.length,a=true,u=[],c=u;if(r){a=false;o=kr}else if(s>=i){var l=e?null:Os(t);if(l){return ln(l)}a=false;o=Kr;c=new Kn}else{c=e?[]:u}t:while(++n<s){var h=t[n],f=e?e(h):h;h=r||h!==0?h:0;if(a&&f===f){var d=c.length;while(d--){if(c[d]===f){continue t}}if(e){c.push(f)}u.push(h)}else if(!o(c,f,r)){if(c!==u){c.push(f)}u.push(h)}}return u}function Io(t,e){e=No(e,t);t=La(t,e);return t==null||delete t[Ma(ou(e))]}function To(t,e,r,n){return ko(t,e,r(_i(t,e)),n)}function Po(t,e,r,n){var i=t.length,o=n?i:-1;while((n?o--:++o<i)&&e(t[o],o,t)){}return r?Ro(t,n?0:o,n?o+1:i):Ro(t,n?o+1:0,n?i:o)}function $o(t,e){var r=t;if(r instanceof jn){r=r.value()}return jr(e,(function(t,e){return e.func.apply(e.thisArg,Sr([t],e.args))}),r)}function Uo(t,e,r){var n=t.length;if(n<2){return n?Do(t[0]):[]}var i=-1,o=p(n);while(++i<n){var s=t[i],a=-1;while(++a<n){if(a!=i){o[i]=Li(o[i]||s,t[a],e,r)}}}return Do(Ri(o,1),e,r)}function Ho(t,e,n){var i=-1,o=t.length,s=e.length,a={};while(++i<o){var u=i<s?e[i]:r;n(a,t[i],u)}return a}function Zo(t){return hl(t)?t:[]}function Bo(t){return typeof t=="function"?t:Mf}function No(t,e){if(ul(t)){return t}return ua(t,e)?[t]:za(Ql(t))}var Vo=Lo;function Wo(t,e,n){var i=t.length;n=n===r?i:n;return!e&&n>=i?t:Ro(t,e,n)}var Go=ze||function(t){return or.clearTimeout(t)};function qo(t,e){if(e){return t.slice()}var r=t.length,n=Le?Le(r):new t.constructor(r);t.copy(n);return n}function Ko(t){var e=new t.constructor(t.byteLength);new be(e).set(new be(t));return e}function Xo(t,e){var r=e?Ko(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function Yo(t){var e=new t.constructor(t.source,Vt.exec(t));e.lastIndex=t.lastIndex;return e}function Jo(t){return mn?re(mn.call(t)):{}}function Qo(t,e){var r=e?Ko(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ts(t,e){if(t!==e){var n=t!==r,i=t===null,o=t===t,s=$l(t);var a=e!==r,u=e===null,c=e===e,l=$l(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o){return 1}if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c){return-1}}return 0}function es(t,e,r){var n=-1,i=t.criteria,o=e.criteria,s=i.length,a=r.length;while(++n<s){var u=ts(i[n],o[n]);if(u){if(n>=a){return u}var c=r[n];return u*(c=="desc"?-1:1)}}return t.index-e.index}function rs(t,e,r,n){var i=-1,o=t.length,s=r.length,a=-1,u=e.length,c=Ue(o-s,0),l=p(u+c),h=!n;while(++a<u){l[a]=e[a]}while(++i<s){if(h||i<o){l[r[i]]=t[i]}}while(c--){l[a++]=t[i++]}return l}function ns(t,e,r,n){var i=-1,o=t.length,s=-1,a=r.length,u=-1,c=e.length,l=Ue(o-a,0),h=p(l+c),f=!n;while(++i<l){h[i]=t[i]}var d=i;while(++u<c){h[d+u]=e[u]}while(++s<a){if(f||i<o){h[d+r[s]]=t[i++]}}return h}function is(t,e){var r=-1,n=t.length;e||(e=p(n));while(++r<n){e[r]=t[r]}return e}function os(t,e,n,i){var o=!n;n||(n={});var s=-1,a=e.length;while(++s<a){var u=e[s];var c=i?i(n[u],t[u],u,n,t):r;if(c===r){c=t[u]}if(o){vi(n,u,c)}else{ci(n,u,c)}}return n}function ss(t,e){return os(t,Ks(t),e)}function as(t,e){return os(t,Xs(t),e)}function us(t,e){return function(r,n){var i=ul(r)?wr:hi,o=e?e():{};return i(r,t,Ns(n,2),o)}}function cs(t){return Lo((function(e,n){var i=-1,o=n.length,s=o>1?n[o-1]:r,a=o>2?n[2]:r;s=t.length>3&&typeof s=="function"?(o--,s):r;if(a&&aa(n[0],n[1],a)){s=o<3?r:s;o=1}e=re(e);while(++i<o){var u=n[i];if(u){t(e,u,i,s)}}return e}))}function ls(t,e){return function(r,n){if(r==null){return r}if(!ll(r)){return t(r,n)}var i=r.length,o=e?i:-1,s=re(r);while(e?o--:++o<i){if(n(s[o],o,s)===false){break}}return r}}function hs(t){return function(e,r,n){var i=-1,o=re(e),s=n(e),a=s.length;while(a--){var u=s[t?a:++i];if(r(o[u],u,o)===false){break}}return e}}function fs(t,e,r){var n=e&C,i=gs(t);function o(){var e=this&&this!==or&&this instanceof o?i:t;return e.apply(n?r:this,arguments)}return o}function ds(t){return function(e){e=Ql(e);var n=nn(e)?gn(e):r;var i=n?n[0]:e.charAt(0);var o=n?Wo(n,1).join(""):e.slice(1);return i[t]()+o}}function vs(t){return function(e){return jr(xf(qh(e).replace(He,"")),t,"")}}function gs(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=kn(t.prototype),n=t.apply(r,e);return kl(n)?n:r}}function ps(t,e,n){var i=gs(t);function o(){var s=arguments.length,a=p(s),u=s,c=Bs(o);while(u--){a[u]=arguments[u]}var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:cn(a,c);s-=l.length;if(s<n){return js(t,e,ms,o.placeholder,r,a,l,r,r,n-s)}var h=this&&this!==or&&this instanceof o?i:t;return Cr(h,this,a)}return o}function Cs(t){return function(e,n,i){var o=re(e);if(!ll(e)){var s=Ns(n,3);e=xh(e);n=function(t){return s(o[t],t,o)}}var a=t(e,n,i);return a>-1?o[s?e[a]:a]:r}}function ws(t){return Ps((function(e){var n=e.length,i=n,o=Sn.prototype.thru;if(t){e.reverse()}while(i--){var a=e[i];if(typeof a!="function"){throw new oe(s)}if(o&&!u&&Zs(a)=="wrapper"){var u=new Sn([],true)}}i=u?i:n;while(++i<n){a=e[i];var c=Zs(a),l=c=="wrapper"?Hs(a):r;if(l&&la(l[0])&&l[1]==(k|b|x|E)&&!l[4].length&&l[9]==1){u=u[Zs(l[0])].apply(u,l[3])}else{u=a.length==1&&la(a)?u[c]():u.thru(a)}}return function(){var t=arguments,r=t[0];if(u&&t.length==1&&ul(r)){return u.plant(r).value()}var i=0,o=n?e[i].apply(this,t):r;while(++i<n){o=e[i].call(this,o)}return o}}))}function ms(t,e,n,i,o,s,a,u,c,l){var h=e&k,f=e&C,d=e&w,v=e&(b|L),g=e&S,m=d?r:gs(t);function x(){var r=arguments.length,C=p(r),w=r;while(w--){C[w]=arguments[w]}if(v){var b=Bs(x),L=Jr(C,b)}if(i){C=rs(C,i,o,v)}if(s){C=ns(C,s,a,v)}r-=L;if(v&&r<l){var y=cn(C,b);return js(t,e,ms,x.placeholder,n,C,y,u,c,l-r)}var k=f?n:this,E=d?k[t]:t;r=C.length;if(u){C=xa(C,u)}else if(g&&r>1){C.reverse()}if(h&&c<r){C.length=c}if(this&&this!==or&&this instanceof x){E=m||gs(E)}return E.apply(k,C)}return x}function bs(t,e){return function(r,n){return Zi(r,t,e(n),{})}}function Ls(t,e){return function(n,i){var o;if(n===r&&i===r){return e}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=_o(n);i=_o(i)}else{n=Ao(n);i=Ao(i)}o=t(n,i)}return o}}function xs(t){return Ps((function(e){e=Er(e,Gr(Ns()));return Lo((function(r){var n=this;return t(e,(function(t){return Cr(t,n,r)}))}))}))}function ys(t,e){e=e===r?" ":_o(e);var n=e.length;if(n<2){return n?bo(e,t):e}var i=bo(e,Ae(t/vn(e)));return nn(e)?Wo(gn(i),0,t).join(""):i.slice(0,t)}function ks(t,e,r,n){var i=e&C,o=gs(t);function s(){var e=-1,a=arguments.length,u=-1,c=n.length,l=p(c+a),h=this&&this!==or&&this instanceof s?o:t;while(++u<c){l[u]=n[u]}while(a--){l[u++]=arguments[++e]}return Cr(h,i?r:this,l)}return s}function Es(t){return function(e,n,i){if(i&&typeof i!="number"&&aa(e,n,i)){n=i=r}e=Gl(e);if(n===r){n=e;e=0}else{n=Gl(n)}i=i===r?e<n?1:-1:Gl(i);return mo(e,n,i,t)}}function Ss(t){return function(e,r){if(!(typeof e=="string"&&typeof r=="string")){e=Xl(e);r=Xl(r)}return t(e,r)}}function js(t,e,n,i,o,s,a,u,c,l){var h=e&b,f=h?a:r,d=h?r:a,v=h?s:r,g=h?r:s;e|=h?x:y;e&=~(h?y:x);if(!(e&m)){e&=~(C|w)}var p=[t,e,o,v,f,g,d,u,c,l];var L=n.apply(r,p);if(la(t)){ka(L,p)}L.placeholder=i;return ja(L,t,e)}function Rs(t){var e=ee[t];return function(t,r){t=Xl(t);r=r==null?0:Be(ql(r),292);if(r&&Te(t)){var n=(Ql(t)+"e").split("e"),i=e(n[0]+"e"+(+n[1]+r));n=(Ql(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return e(t)}}var Os=!(nr&&1/ln(new nr([,-0]))[1]==_)?$f:function(t){return new nr(t)};function zs(t){return function(e){var r=Ys(e);if(r==Y){return an(e)}if(r==it){return hn(e)}return Vr(e,t(e))}}function Ms(t,e,n,i,o,a,u,c){var l=e&w;if(!l&&typeof t!="function"){throw new oe(s)}var h=i?i.length:0;if(!h){e&=~(x|y);i=o=r}u=u===r?u:Ue(ql(u),0);c=c===r?c:ql(c);h-=o?o.length:0;if(e&y){var f=i,d=o;i=o=r}var v=l?r:Hs(t);var g=[t,e,n,i,o,f,d,a,u,c];if(v){Ca(g,v)}t=g[0];e=g[1];n=g[2];i=g[3];o=g[4];c=g[9]=g[9]===r?l?0:t.length:Ue(g[9]-h,0);if(!c&&e&(b|L)){e&=~(b|L)}if(!e||e==C){var p=fs(t,e,n)}else if(e==b||e==L){p=ps(t,e,c)}else if((e==x||e==(C|x))&&!o.length){p=ks(t,e,n,i)}else{p=ms.apply(r,g)}var m=v?Eo:ka;return ja(m(p,g),t,e)}function Fs(t,e,n,i){if(t===r||il(t,ue[n])&&!he.call(i,n)){return e}return t}function As(t,e,n,i,o,s){if(kl(t)&&kl(e)){s.set(e,t);uo(t,e,r,As,s);s["delete"](e)}return t}function _s(t){return _l(t)?r:t}function Ds(t,e,n,i,o,s){var a=n&v,u=t.length,c=e.length;if(u!=c&&!(a&&c>u)){return false}var l=s.get(t);var h=s.get(e);if(l&&h){return l==e&&h==t}var f=-1,d=true,p=n&g?new Kn:r;s.set(t,e);s.set(e,t);while(++f<u){var C=t[f],w=e[f];if(i){var m=a?i(w,C,f,e,t,s):i(C,w,f,t,e,s)}if(m!==r){if(m){continue}d=false;break}if(p){if(!Or(e,(function(t,e){if(!Kr(p,e)&&(C===t||o(C,t,n,i,s))){return p.push(e)}}))){d=false;break}}else if(!(C===w||o(C,w,n,i,s))){d=false;break}}s["delete"](t);s["delete"](e);return d}function Is(t,e,r,n,i,o,s){switch(r){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case lt:if(t.byteLength!=e.byteLength||!o(new be(t),new be(e))){return false}return true;case V:case W:case J:return il(+t,+e);case q:return t.name==e.name&&t.message==e.message;case nt:case ot:return t==e+"";case Y:var a=an;case it:var u=n&v;a||(a=ln);if(t.size!=e.size&&!u){return false}var c=s.get(t);if(c){return c==e}n|=g;s.set(t,e);var l=Ds(a(t),a(e),n,i,o,s);s["delete"](t);return l;case st:if(mn){return mn.call(t)==mn.call(e)}}return false}function Ts(t,e,n,i,o,s){var a=n&v,u=$s(t),c=u.length,l=$s(e),h=l.length;if(c!=h&&!a){return false}var f=c;while(f--){var d=u[f];if(!(a?d in e:he.call(e,d))){return false}}var g=s.get(t);var p=s.get(e);if(g&&p){return g==e&&p==t}var C=true;s.set(t,e);s.set(e,t);var w=a;while(++f<c){d=u[f];var m=t[d],b=e[d];if(i){var L=a?i(b,m,d,e,t,s):i(m,b,d,t,e,s)}if(!(L===r?m===b||o(m,b,n,i,s):L)){C=false;break}w||(w=d=="constructor")}if(C&&!w){var x=t.constructor,y=e.constructor;if(x!=y&&("constructor"in t&&"constructor"in e)&&!(typeof x=="function"&&x instanceof x&&typeof y=="function"&&y instanceof y)){C=false}}s["delete"](t);s["delete"](e);return C}function Ps(t){return Sa(ba(t,r,qa),t+"")}function $s(t){return Di(t,xh,Ks)}function Us(t){return Di(t,yh,Xs)}var Hs=!ar?$f:function(t){return ar.get(t)};function Zs(t){var e=t.name+"",r=cr[e],n=he.call(cr,e)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==t){return i.name}}return e}function Bs(t){var e=he.call(yn,"placeholder")?yn:t;return e.placeholder}function Ns(){var t=yn.iteratee||Ff;t=t===Ff?eo:t;return arguments.length?t(arguments[0],arguments[1]):t}function Vs(t,e){var r=t.__data__;return ca(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Ws(t){var e=xh(t),r=e.length;while(r--){var n=e[r],i=t[n];e[r]=[n,i,va(i)]}return e}function Gs(t,e){var n=rn(t,e);return Yi(n)?n:r}function qs(t){var e=he.call(t,Re),n=t[Re];try{t[Re]=r;var i=true}catch(t){}var o=ve.call(t);if(i){if(e){t[Re]=n}else{delete t[Re]}}return o}var Ks=!De?qf:function(t){if(t==null){return[]}t=re(t);return xr(De(t),(function(e){return ke.call(t,e)}))};var Xs=!De?qf:function(t){var e=[];while(t){Sr(e,Ks(t));t=xe(t)}return e};var Ys=Ii;if(Je&&Ys(new Je(new ArrayBuffer(1)))!=ht||Qe&&Ys(new Qe)!=Y||tr&&Ys(tr.resolve())!=et||nr&&Ys(new nr)!=it||ir&&Ys(new ir)!=ut){Ys=function(t){var e=Ii(t),n=e==tt?t.constructor:r,i=n?Fa(n):"";if(i){switch(i){case lr:return ht;case zr:return Y;case Mr:return et;case Ur:return it;case fn:return ut}}return e}}function Js(t,e,r){var n=-1,i=r.length;while(++n<i){var o=r[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=Be(e,t+s);break;case"takeRight":t=Ue(t,e-s);break}}return{start:t,end:e}}function Qs(t){var e=t.match($t);return e?e[1].split(Ut):[]}function ta(t,e,r){e=No(e,t);var n=-1,i=e.length,o=false;while(++n<i){var s=Ma(e[n]);if(!(o=t!=null&&r(t,s))){break}t=t[s]}if(o||++n!=i){return o}i=t==null?0:t.length;return!!i&&yl(i)&&sa(s,i)&&(ul(t)||al(t))}function ea(t){var e=t.length,r=new t.constructor(e);if(e&&typeof t[0]=="string"&&he.call(t,"index")){r.index=t.index;r.input=t.input}return r}function ra(t){return typeof t.constructor=="function"&&!da(t)?kn(xe(t)):{}}function na(t,e,r){var n=t.constructor;switch(e){case lt:return Ko(t);case V:case W:return new n(+t);case ht:return Xo(t,r);case ft:case dt:case vt:case gt:case pt:case Ct:case wt:case mt:case bt:return Qo(t,r);case Y:return new n;case J:case ot:return new n(t);case nt:return Yo(t);case it:return new n;case st:return Jo(t)}}function ia(t,e){var r=e.length;if(!r){return t}var n=r-1;e[n]=(r>1?"& ":"")+e[n];e=e.join(r>2?", ":" ");return t.replace(Pt,"{\n/* [wrapped with "+e+"] */\n")}function oa(t){return ul(t)||al(t)||!!(Se&&t&&t[Se])}function sa(t,e){var r=typeof t;e=e==null?D:e;return!!e&&(r=="number"||r!="symbol"&&Xt.test(t))&&(t>-1&&t%1==0&&t<e)}function aa(t,e,r){if(!kl(r)){return false}var n=typeof e;if(n=="number"?ll(r)&&sa(e,r.length):n=="string"&&e in r){return il(r[e],t)}return false}function ua(t,e){if(ul(t)){return false}var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||$l(t)){return true}return Ft.test(t)||!Mt.test(t)||e!=null&&t in re(e)}function ca(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function la(t){var e=Zs(t),r=yn[e];if(typeof r!="function"||!(e in jn.prototype)){return false}if(t===r){return true}var n=Hs(r);return!!n&&t===n[0]}function ha(t){return!!de&&de in t}var fa=ce?Ll:Kf;function da(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ue;return t===r}function va(t){return t===t&&!kl(t)}function ga(t,e){return function(n){if(n==null){return false}return n[t]===e&&(e!==r||t in re(n))}}function pa(t){var e=Uc(t,(function(t){if(r.size===c){r.clear()}return t}));var r=e.cache;return e}function Ca(t,e){var r=t[1],n=e[1],i=r|n,o=i<(C|w|k);var s=n==k&&r==b||n==k&&r==E&&t[7].length<=e[8]||n==(k|E)&&e[7].length<=e[8]&&r==b;if(!(o||s)){return t}if(n&C){t[2]=e[2];i|=r&C?0:m}var a=e[3];if(a){var u=t[3];t[3]=u?rs(u,a,e[4]):a;t[4]=u?cn(t[3],l):e[4]}a=e[5];if(a){u=t[5];t[5]=u?ns(u,a,e[6]):a;t[6]=u?cn(t[5],l):e[6]}a=e[7];if(a){t[7]=a}if(n&k){t[8]=t[8]==null?e[8]:Be(t[8],e[8])}if(t[9]==null){t[9]=e[9]}t[0]=e[0];t[1]=i;return t}function wa(t){var e=[];if(t!=null){for(var r in re(t)){e.push(r)}}return e}function ma(t){return ve.call(t)}function ba(t,e,n){e=Ue(e===r?t.length-1:e,0);return function(){var r=arguments,i=-1,o=Ue(r.length-e,0),s=p(o);while(++i<o){s[i]=r[e+i]}i=-1;var a=p(e+1);while(++i<e){a[i]=r[i]}a[e]=n(s);return Cr(t,this,a)}}function La(t,e){return e.length<2?t:_i(t,Ro(e,0,-1))}function xa(t,e){var n=t.length,i=Be(e.length,n),o=is(t);while(i--){var s=e[i];t[i]=sa(s,n)?o[s]:r}return t}function ya(t,e){if(e==="constructor"&&typeof t[e]==="function"){return}if(e=="__proto__"){return}return t[e]}var ka=Ra(Eo);var Ea=Fe||function(t,e){return or.setTimeout(t,e)};var Sa=Ra(So);function ja(t,e,r){var n=e+"";return Sa(t,ia(n,Aa(Qs(n),r)))}function Ra(t){var e=0,n=0;return function(){var i=Ne(),o=z-(i-n);n=i;if(o>0){if(++e>=O){return arguments[0]}}else{e=0}return t.apply(r,arguments)}}function Oa(t,e){var n=-1,i=t.length,o=i-1;e=e===r?i:e;while(++n<e){var s=wo(n,o),a=t[s];t[s]=t[n];t[n]=a}t.length=e;return t}var za=pa((function(t){var e=[];if(t.charCodeAt(0)===46){e.push("")}t.replace(At,(function(t,r,n,i){e.push(n?i.replace(Bt,"$1"):r||t)}));return e}));function Ma(t){if(typeof t=="string"||$l(t)){return t}var e=t+"";return e=="0"&&1/t==-_?"-0":e}function Fa(t){if(t!=null){try{return le.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Aa(t,e){mr(H,(function(r){var n="_."+r[0];if(e&r[1]&&!yr(t,n)){t.push(n)}}));return t.sort()}function _a(t){if(t instanceof jn){return t.clone()}var e=new Sn(t.__wrapped__,t.__chain__);e.__actions__=is(t.__actions__);e.__index__=t.__index__;e.__values__=t.__values__;return e}function Da(t,e,n){if(n?aa(t,e,n):e===r){e=1}else{e=Ue(ql(e),0)}var i=t==null?0:t.length;if(!i||e<1){return[]}var o=0,s=0,a=p(Ae(i/e));while(o<i){a[s++]=Ro(t,o,o+=e)}return a}function Ia(t){var e=-1,r=t==null?0:t.length,n=0,i=[];while(++e<r){var o=t[e];if(o){i[n++]=o}}return i}function Ta(){var t=arguments.length;if(!t){return[]}var e=p(t-1),r=arguments[0],n=t;while(n--){e[n-1]=arguments[n]}return Sr(ul(r)?is(r):[r],Ri(e,1))}var Pa=Lo((function(t,e){return hl(t)?Li(t,Ri(e,1,hl,true)):[]}));var $a=Lo((function(t,e){var n=ou(e);if(hl(n)){n=r}return hl(t)?Li(t,Ri(e,1,hl,true),Ns(n,2)):[]}));var Ua=Lo((function(t,e){var n=ou(e);if(hl(n)){n=r}return hl(t)?Li(t,Ri(e,1,hl,true),r,n):[]}));function Ha(t,e,n){var i=t==null?0:t.length;if(!i){return[]}e=n||e===r?1:ql(e);return Ro(t,e<0?0:e,i)}function Za(t,e,n){var i=t==null?0:t.length;if(!i){return[]}e=n||e===r?1:ql(e);e=i-e;return Ro(t,0,e<0?0:e)}function Ba(t,e){return t&&t.length?Po(t,Ns(e,3),true,true):[]}function Na(t,e){return t&&t.length?Po(t,Ns(e,3),true):[]}function Va(t,e,r,n){var i=t==null?0:t.length;if(!i){return[]}if(r&&typeof r!="number"&&aa(t,e,r)){r=0;n=i}return Si(t,e,r,n)}function Wa(t,e,r){var n=t==null?0:t.length;if(!n){return-1}var i=r==null?0:ql(r);if(i<0){i=Ue(n+i,0)}return _r(t,Ns(e,3),i)}function Ga(t,e,n){var i=t==null?0:t.length;if(!i){return-1}var o=i-1;if(n!==r){o=ql(n);o=n<0?Ue(i+o,0):Be(o,i-1)}return _r(t,Ns(e,3),o,true)}function qa(t){var e=t==null?0:t.length;return e?Ri(t,1):[]}function Ka(t){var e=t==null?0:t.length;return e?Ri(t,_):[]}function Xa(t,e){var n=t==null?0:t.length;if(!n){return[]}e=e===r?1:ql(e);return Ri(t,e)}function Ya(t){var e=-1,r=t==null?0:t.length,n={};while(++e<r){var i=t[e];n[i[0]]=i[1]}return n}function Ja(t){return t&&t.length?t[0]:r}function Qa(t,e,r){var n=t==null?0:t.length;if(!n){return-1}var i=r==null?0:ql(r);if(i<0){i=Ue(n+i,0)}return Dr(t,e,i)}function tu(t){var e=t==null?0:t.length;return e?Ro(t,0,-1):[]}var eu=Lo((function(t){var e=Er(t,Zo);return e.length&&e[0]===t[0]?Hi(e):[]}));var ru=Lo((function(t){var e=ou(t),n=Er(t,Zo);if(e===ou(n)){e=r}else{n.pop()}return n.length&&n[0]===t[0]?Hi(n,Ns(e,2)):[]}));var nu=Lo((function(t){var e=ou(t),n=Er(t,Zo);e=typeof e=="function"?e:r;if(e){n.pop()}return n.length&&n[0]===t[0]?Hi(n,r,e):[]}));function iu(t,e){return t==null?"":Pe.call(t,e)}function ou(t){var e=t==null?0:t.length;return e?t[e-1]:r}function su(t,e,n){var i=t==null?0:t.length;if(!i){return-1}var o=i;if(n!==r){o=ql(n);o=o<0?Ue(i+o,0):Be(o,i-1)}return e===e?dn(t,e,o):_r(t,Tr,o,true)}function au(t,e){return t&&t.length?lo(t,ql(e)):r}var uu=Lo(cu);function cu(t,e){return t&&t.length&&e&&e.length?po(t,e):t}function lu(t,e,r){return t&&t.length&&e&&e.length?po(t,e,Ns(r,2)):t}function hu(t,e,n){return t&&t.length&&e&&e.length?po(t,e,r,n):t}var fu=Ps((function(t,e){var r=t==null?0:t.length,n=gi(t,e);Co(t,Er(e,(function(t){return sa(t,r)?+t:t})).sort(ts));return n}));function du(t,e){var r=[];if(!(t&&t.length)){return r}var n=-1,i=[],o=t.length;e=Ns(e,3);while(++n<o){var s=t[n];if(e(s,n,t)){r.push(s);i.push(n)}}Co(t,i);return r}function vu(t){return t==null?t:Ye.call(t)}function gu(t,e,n){var i=t==null?0:t.length;if(!i){return[]}if(n&&typeof n!="number"&&aa(t,e,n)){e=0;n=i}else{e=e==null?0:ql(e);n=n===r?i:ql(n)}return Ro(t,e,n)}function pu(t,e){return zo(t,e)}function Cu(t,e,r){return Mo(t,e,Ns(r,2))}function wu(t,e){var r=t==null?0:t.length;if(r){var n=zo(t,e);if(n<r&&il(t[n],e)){return n}}return-1}function mu(t,e){return zo(t,e,true)}function bu(t,e,r){return Mo(t,e,Ns(r,2),true)}function Lu(t,e){var r=t==null?0:t.length;if(r){var n=zo(t,e,true)-1;if(il(t[n],e)){return n}}return-1}function xu(t){return t&&t.length?Fo(t):[]}function yu(t,e){return t&&t.length?Fo(t,Ns(e,2)):[]}function ku(t){var e=t==null?0:t.length;return e?Ro(t,1,e):[]}function Eu(t,e,n){if(!(t&&t.length)){return[]}e=n||e===r?1:ql(e);return Ro(t,0,e<0?0:e)}function Su(t,e,n){var i=t==null?0:t.length;if(!i){return[]}e=n||e===r?1:ql(e);e=i-e;return Ro(t,e<0?0:e,i)}function ju(t,e){return t&&t.length?Po(t,Ns(e,3),false,true):[]}function Ru(t,e){return t&&t.length?Po(t,Ns(e,3)):[]}var Ou=Lo((function(t){return Do(Ri(t,1,hl,true))}));var zu=Lo((function(t){var e=ou(t);if(hl(e)){e=r}return Do(Ri(t,1,hl,true),Ns(e,2))}));var Mu=Lo((function(t){var e=ou(t);e=typeof e=="function"?e:r;return Do(Ri(t,1,hl,true),r,e)}));function Fu(t){return t&&t.length?Do(t):[]}function Au(t,e){return t&&t.length?Do(t,Ns(e,2)):[]}function _u(t,e){e=typeof e=="function"?e:r;return t&&t.length?Do(t,r,e):[]}function Du(t){if(!(t&&t.length)){return[]}var e=0;t=xr(t,(function(t){if(hl(t)){e=Ue(t.length,e);return true}}));return Nr(e,(function(e){return Er(t,$r(e))}))}function Iu(t,e){if(!(t&&t.length)){return[]}var n=Du(t);if(e==null){return n}return Er(n,(function(t){return Cr(e,r,t)}))}var Tu=Lo((function(t,e){return hl(t)?Li(t,e):[]}));var Pu=Lo((function(t){return Uo(xr(t,hl))}));var $u=Lo((function(t){var e=ou(t);if(hl(e)){e=r}return Uo(xr(t,hl),Ns(e,2))}));var Uu=Lo((function(t){var e=ou(t);e=typeof e=="function"?e:r;return Uo(xr(t,hl),r,e)}));var Hu=Lo(Du);function Zu(t,e){return Ho(t||[],e||[],ci)}function Bu(t,e){return Ho(t||[],e||[],ko)}var Nu=Lo((function(t){var e=t.length,n=e>1?t[e-1]:r;n=typeof n=="function"?(t.pop(),n):r;return Iu(t,n)}));function Vu(t){var e=yn(t);e.__chain__=true;return e}function Wu(t,e){e(t);return t}function Gu(t,e){return e(t)}var qu=Ps((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return gi(e,t)};if(e>1||this.__actions__.length||!(i instanceof jn)||!sa(n)){return this.thru(o)}i=i.slice(n,+n+(e?1:0));i.__actions__.push({func:Gu,args:[o],thisArg:r});return new Sn(i,this.__chain__).thru((function(t){if(e&&!t.length){t.push(r)}return t}))}));function Ku(){return Vu(this)}function Xu(){return new Sn(this.value(),this.__chain__)}function Yu(){if(this.__values__===r){this.__values__=Wl(this.value())}var t=this.__index__>=this.__values__.length,e=t?r:this.__values__[this.__index__++];return{done:t,value:e}}function Ju(){return this}function Qu(t){var e,n=this;while(n instanceof En){var i=_a(n);i.__index__=0;i.__values__=r;if(e){o.__wrapped__=i}else{e=i}var o=i;n=n.__wrapped__}o.__wrapped__=t;return e}function tc(){var t=this.__wrapped__;if(t instanceof jn){var e=t;if(this.__actions__.length){e=new jn(this)}e=e.reverse();e.__actions__.push({func:Gu,args:[vu],thisArg:r});return new Sn(e,this.__chain__)}return this.thru(vu)}function ec(){return $o(this.__wrapped__,this.__actions__)}var rc=us((function(t,e,r){if(he.call(t,r)){++t[r]}else{vi(t,r,1)}}));function nc(t,e,n){var i=ul(t)?Lr:ki;if(n&&aa(t,e,n)){e=r}return i(t,Ns(e,3))}function ic(t,e){var r=ul(t)?xr:ji;return r(t,Ns(e,3))}var oc=Cs(Wa);var sc=Cs(Ga);function ac(t,e){return Ri(pc(t,e),1)}function uc(t,e){return Ri(pc(t,e),_)}function cc(t,e,n){n=n===r?1:ql(n);return Ri(pc(t,e),n)}function lc(t,e){var r=ul(t)?mr:xi;return r(t,Ns(e,3))}function hc(t,e){var r=ul(t)?br:yi;return r(t,Ns(e,3))}var fc=us((function(t,e,r){if(he.call(t,r)){t[r].push(e)}else{vi(t,r,[e])}}));function dc(t,e,r,n){t=ll(t)?t:Hh(t);r=r&&!n?ql(r):0;var i=t.length;if(r<0){r=Ue(i+r,0)}return Pl(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Dr(t,e,r)>-1}var vc=Lo((function(t,e,r){var n=-1,i=typeof e=="function",o=ll(t)?p(t.length):[];xi(t,(function(t){o[++n]=i?Cr(e,t,r):Bi(t,e,r)}));return o}));var gc=us((function(t,e,r){vi(t,r,e)}));function pc(t,e){var r=ul(t)?Er:oo;return r(t,Ns(e,3))}function Cc(t,e,n,i){if(t==null){return[]}if(!ul(e)){e=e==null?[]:[e]}n=i?r:n;if(!ul(n)){n=n==null?[]:[n]}return ho(t,e,n)}var wc=us((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]}));function mc(t,e,r){var n=ul(t)?jr:Hr,i=arguments.length<3;return n(t,Ns(e,4),r,i,xi)}function bc(t,e,r){var n=ul(t)?Rr:Hr,i=arguments.length<3;return n(t,Ns(e,4),r,i,yi)}function Lc(t,e){var r=ul(t)?xr:ji;return r(t,Hc(Ns(e,3)))}function xc(t){var e=ul(t)?oi:xo;return e(t)}function yc(t,e,n){if(n?aa(t,e,n):e===r){e=1}else{e=ql(e)}var i=ul(t)?si:yo;return i(t,e)}function kc(t){var e=ul(t)?ai:jo;return e(t)}function Ec(t){if(t==null){return 0}if(ll(t)){return Pl(t)?vn(t):t.length}var e=Ys(t);if(e==Y||e==it){return t.size}return ro(t).length}function Sc(t,e,n){var i=ul(t)?Or:Oo;if(n&&aa(t,e,n)){e=r}return i(t,Ns(e,3))}var jc=Lo((function(t,e){if(t==null){return[]}var r=e.length;if(r>1&&aa(t,e[0],e[1])){e=[]}else if(r>2&&aa(e[0],e[1],e[2])){e=[e[0]]}return ho(t,Ri(e,1),[])}));var Rc=Me||function(){return or.Date.now()};function Oc(t,e){if(typeof e!="function"){throw new oe(s)}t=ql(t);return function(){if(--t<1){return e.apply(this,arguments)}}}function zc(t,e,n){e=n?r:e;e=t&&e==null?t.length:e;return Ms(t,k,r,r,r,r,e)}function Mc(t,e){var n;if(typeof e!="function"){throw new oe(s)}t=ql(t);return function(){if(--t>0){n=e.apply(this,arguments)}if(t<=1){e=r}return n}}var Fc=Lo((function(t,e,r){var n=C;if(r.length){var i=cn(r,Bs(Fc));n|=x}return Ms(t,n,e,r,i)}));var Ac=Lo((function(t,e,r){var n=C|w;if(r.length){var i=cn(r,Bs(Ac));n|=x}return Ms(e,n,t,r,i)}));function _c(t,e,n){e=n?r:e;var i=Ms(t,b,r,r,r,r,r,e);i.placeholder=_c.placeholder;return i}function Dc(t,e,n){e=n?r:e;var i=Ms(t,L,r,r,r,r,r,e);i.placeholder=Dc.placeholder;return i}function Ic(t,e,n){var i,o,a,u,c,l,h=0,f=false,d=false,v=true;if(typeof t!="function"){throw new oe(s)}e=Xl(e)||0;if(kl(n)){f=!!n.leading;d="maxWait"in n;a=d?Ue(Xl(n.maxWait)||0,e):a;v="trailing"in n?!!n.trailing:v}function g(e){var n=i,s=o;i=o=r;h=e;u=t.apply(s,n);return u}function p(t){h=t;c=Ea(m,e);return f?g(t):u}function C(t){var r=t-l,n=t-h,i=e-r;return d?Be(i,a-n):i}function w(t){var n=t-l,i=t-h;return l===r||n>=e||n<0||d&&i>=a}function m(){var t=Rc();if(w(t)){return b(t)}c=Ea(m,C(t))}function b(t){c=r;if(v&&i){return g(t)}i=o=r;return u}function L(){if(c!==r){Go(c)}h=0;i=l=o=c=r}function x(){return c===r?u:b(Rc())}function y(){var t=Rc(),n=w(t);i=arguments;o=this;l=t;if(n){if(c===r){return p(l)}if(d){Go(c);c=Ea(m,e);return g(l)}}if(c===r){c=Ea(m,e)}return u}y.cancel=L;y.flush=x;return y}var Tc=Lo((function(t,e){return bi(t,1,e)}));var Pc=Lo((function(t,e,r){return bi(t,Xl(e)||0,r)}));function $c(t){return Ms(t,S)}function Uc(t,e){if(typeof t!="function"||e!=null&&typeof e!="function"){throw new oe(s)}var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var s=t.apply(this,n);r.cache=o.set(i,s)||o;return s};r.cache=new(Uc.Cache||Bn);return r}Uc.Cache=Bn;function Hc(t){if(typeof t!="function"){throw new oe(s)}return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Zc(t){return Mc(2,t)}var Bc=Vo((function(t,e){e=e.length==1&&ul(e[0])?Er(e[0],Gr(Ns())):Er(Ri(e,1),Gr(Ns()));var r=e.length;return Lo((function(n){var i=-1,o=Be(n.length,r);while(++i<o){n[i]=e[i].call(this,n[i])}return Cr(t,this,n)}))}));var Nc=Lo((function(t,e){var n=cn(e,Bs(Nc));return Ms(t,x,r,e,n)}));var Vc=Lo((function(t,e){var n=cn(e,Bs(Vc));return Ms(t,y,r,e,n)}));var Wc=Ps((function(t,e){return Ms(t,E,r,r,r,e)}));function Gc(t,e){if(typeof t!="function"){throw new oe(s)}e=e===r?e:ql(e);return Lo(t,e)}function qc(t,e){if(typeof t!="function"){throw new oe(s)}e=e==null?0:Ue(ql(e),0);return Lo((function(r){var n=r[e],i=Wo(r,0,e);if(n){Sr(i,n)}return Cr(t,this,i)}))}function Kc(t,e,r){var n=true,i=true;if(typeof t!="function"){throw new oe(s)}if(kl(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Ic(t,e,{leading:n,maxWait:e,trailing:i})}function Xc(t){return zc(t,1)}function Yc(t,e){return Nc(Bo(e),t)}function Jc(){if(!arguments.length){return[]}var t=arguments[0];return ul(t)?t:[t]}function Qc(t){return Ci(t,d)}function tl(t,e){e=typeof e=="function"?e:r;return Ci(t,d,e)}function el(t){return Ci(t,h|d)}function rl(t,e){e=typeof e=="function"?e:r;return Ci(t,h|d,e)}function nl(t,e){return e==null||mi(t,e,xh(e))}function il(t,e){return t===e||t!==t&&e!==e}var ol=Ss(Ti);var sl=Ss((function(t,e){return t>=e}));var al=Ni(function(){return arguments}())?Ni:function(t){return El(t)&&he.call(t,"callee")&&!ke.call(t,"callee")};var ul=p.isArray;var cl=hr?Gr(hr):Vi;function ll(t){return t!=null&&yl(t.length)&&!Ll(t)}function hl(t){return El(t)&&ll(t)}function fl(t){return t===true||t===false||El(t)&&Ii(t)==V}var dl=Ie||Kf;var vl=fr?Gr(fr):Wi;function gl(t){return El(t)&&t.nodeType===1&&!_l(t)}function pl(t){if(t==null){return true}if(ll(t)&&(ul(t)||typeof t=="string"||typeof t.splice=="function"||dl(t)||Ul(t)||al(t))){return!t.length}var e=Ys(t);if(e==Y||e==it){return!t.size}if(da(t)){return!ro(t).length}for(var r in t){if(he.call(t,r)){return false}}return true}function Cl(t,e){return Gi(t,e)}function wl(t,e,n){n=typeof n=="function"?n:r;var i=n?n(t,e):r;return i===r?Gi(t,e,r,n):!!i}function ml(t){if(!El(t)){return false}var e=Ii(t);return e==q||e==G||typeof t.message=="string"&&typeof t.name=="string"&&!_l(t)}function bl(t){return typeof t=="number"&&Te(t)}function Ll(t){if(!kl(t)){return false}var e=Ii(t);return e==K||e==X||e==N||e==rt}function xl(t){return typeof t=="number"&&t==ql(t)}function yl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=D}function kl(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function El(t){return t!=null&&typeof t=="object"}var Sl=dr?Gr(dr):Ki;function jl(t,e){return t===e||Xi(t,e,Ws(e))}function Rl(t,e,n){n=typeof n=="function"?n:r;return Xi(t,e,Ws(e),n)}function Ol(t){return Al(t)&&t!=+t}function zl(t){if(fa(t)){throw new Ht(o)}return Yi(t)}function Ml(t){return t===null}function Fl(t){return t==null}function Al(t){return typeof t=="number"||El(t)&&Ii(t)==J}function _l(t){if(!El(t)||Ii(t)!=tt){return false}var e=xe(t);if(e===null){return true}var r=he.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&le.call(r)==ge}var Dl=vr?Gr(vr):Ji;function Il(t){return xl(t)&&t>=-D&&t<=D}var Tl=gr?Gr(gr):Qi;function Pl(t){return typeof t=="string"||!ul(t)&&El(t)&&Ii(t)==ot}function $l(t){return typeof t=="symbol"||El(t)&&Ii(t)==st}var Ul=pr?Gr(pr):to;function Hl(t){return t===r}function Zl(t){return El(t)&&Ys(t)==ut}function Bl(t){return El(t)&&Ii(t)==ct}var Nl=Ss(io);var Vl=Ss((function(t,e){return t<=e}));function Wl(t){if(!t){return[]}if(ll(t)){return Pl(t)?gn(t):is(t)}if(je&&t[je]){return sn(t[je]())}var e=Ys(t),r=e==Y?an:e==it?ln:Hh;return r(t)}function Gl(t){if(!t){return t===0?t:0}t=Xl(t);if(t===_||t===-_){var e=t<0?-1:1;return e*I}return t===t?t:0}function ql(t){var e=Gl(t),r=e%1;return e===e?r?e-r:e:0}function Kl(t){return t?pi(ql(t),0,P):0}function Xl(t){if(typeof t=="number"){return t}if($l(t)){return T}if(kl(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=kl(e)?e+"":e}if(typeof t!="string"){return t===0?t:+t}t=Wr(t);var r=Gt.test(t);return r||Kt.test(t)?rr(t.slice(2),r?2:8):Wt.test(t)?T:+t}function Yl(t){return os(t,yh(t))}function Jl(t){return t?pi(ql(t),-D,D):t===0?t:0}function Ql(t){return t==null?"":_o(t)}var th=cs((function(t,e){if(da(e)||ll(e)){os(e,xh(e),t);return}for(var r in e){if(he.call(e,r)){ci(t,r,e[r])}}}));var eh=cs((function(t,e){os(e,yh(e),t)}));var rh=cs((function(t,e,r,n){os(e,yh(e),t,n)}));var nh=cs((function(t,e,r,n){os(e,xh(e),t,n)}));var ih=Ps(gi);function oh(t,e){var r=kn(t);return e==null?r:fi(r,e)}var sh=Lo((function(t,e){t=re(t);var n=-1;var i=e.length;var o=i>2?e[2]:r;if(o&&aa(e[0],e[1],o)){i=1}while(++n<i){var s=e[n];var a=yh(s);var u=-1;var c=a.length;while(++u<c){var l=a[u];var h=t[l];if(h===r||il(h,ue[l])&&!he.call(t,l)){t[l]=s[l]}}}return t}));var ah=Lo((function(t){t.push(r,As);return Cr(jh,r,t)}));function uh(t,e){return Ar(t,Ns(e,3),Mi)}function ch(t,e){return Ar(t,Ns(e,3),Fi)}function lh(t,e){return t==null?t:Oi(t,Ns(e,3),yh)}function hh(t,e){return t==null?t:zi(t,Ns(e,3),yh)}function fh(t,e){return t&&Mi(t,Ns(e,3))}function dh(t,e){return t&&Fi(t,Ns(e,3))}function vh(t){return t==null?[]:Ai(t,xh(t))}function gh(t){return t==null?[]:Ai(t,yh(t))}function ph(t,e,n){var i=t==null?r:_i(t,e);return i===r?n:i}function Ch(t,e){return t!=null&&ta(t,e,Pi)}function wh(t,e){return t!=null&&ta(t,e,$i)}var mh=bs((function(t,e,r){if(e!=null&&typeof e.toString!="function"){e=ve.call(e)}t[e]=r}),jf(Mf));var bh=bs((function(t,e,r){if(e!=null&&typeof e.toString!="function"){e=ve.call(e)}if(he.call(t,e)){t[e].push(r)}else{t[e]=[r]}}),Ns);var Lh=Lo(Bi);function xh(t){return ll(t)?ii(t):ro(t)}function yh(t){return ll(t)?ii(t,true):no(t)}function kh(t,e){var r={};e=Ns(e,3);Mi(t,(function(t,n,i){vi(r,e(t,n,i),t)}));return r}function Eh(t,e){var r={};e=Ns(e,3);Mi(t,(function(t,n,i){vi(r,n,e(t,n,i))}));return r}var Sh=cs((function(t,e,r){uo(t,e,r)}));var jh=cs((function(t,e,r,n){uo(t,e,r,n)}));var Rh=Ps((function(t,e){var r={};if(t==null){return r}var n=false;e=Er(e,(function(e){e=No(e,t);n||(n=e.length>1);return e}));os(t,Us(t),r);if(n){r=Ci(r,h|f|d,_s)}var i=e.length;while(i--){Io(r,e[i])}return r}));function Oh(t,e){return Mh(t,Hc(Ns(e)))}var zh=Ps((function(t,e){return t==null?{}:fo(t,e)}));function Mh(t,e){if(t==null){return{}}var r=Er(Us(t),(function(t){return[t]}));e=Ns(e);return vo(t,r,(function(t,r){return e(t,r[0])}))}function Fh(t,e,n){e=No(e,t);var i=-1,o=e.length;if(!o){o=1;t=r}while(++i<o){var s=t==null?r:t[Ma(e[i])];if(s===r){i=o;s=n}t=Ll(s)?s.call(t):s}return t}function Ah(t,e,r){return t==null?t:ko(t,e,r)}function _h(t,e,n,i){i=typeof i=="function"?i:r;return t==null?t:ko(t,e,n,i)}var Dh=zs(xh);var Ih=zs(yh);function Th(t,e,r){var n=ul(t),i=n||dl(t)||Ul(t);e=Ns(e,4);if(r==null){var o=t&&t.constructor;if(i){r=n?new o:[]}else if(kl(t)){r=Ll(o)?kn(xe(t)):{}}else{r={}}}(i?mr:Mi)(t,(function(t,n,i){return e(r,t,n,i)}));return r}function Ph(t,e){return t==null?true:Io(t,e)}function $h(t,e,r){return t==null?t:To(t,e,Bo(r))}function Uh(t,e,n,i){i=typeof i=="function"?i:r;return t==null?t:To(t,e,Bo(n),i)}function Hh(t){return t==null?[]:qr(t,xh(t))}function Zh(t){return t==null?[]:qr(t,yh(t))}function Bh(t,e,n){if(n===r){n=e;e=r}if(n!==r){n=Xl(n);n=n===n?n:0}if(e!==r){e=Xl(e);e=e===e?e:0}return pi(Xl(t),e,n)}function Nh(t,e,n){e=Gl(e);if(n===r){n=e;e=0}else{n=Gl(n)}t=Xl(t);return Ui(t,e,n)}function Vh(t,e,n){if(n&&typeof n!="boolean"&&aa(t,e,n)){e=n=r}if(n===r){if(typeof e=="boolean"){n=e;e=r}else if(typeof t=="boolean"){n=t;t=r}}if(t===r&&e===r){t=0;e=1}else{t=Gl(t);if(e===r){e=t;t=0}else{e=Gl(e)}}if(t>e){var i=t;t=e;e=i}if(n||t%1||e%1){var o=We();return Be(t+o*(e-t+er("1e-"+((o+"").length-1))),e)}return wo(t,e)}var Wh=vs((function(t,e,r){e=e.toLowerCase();return t+(r?Gh(e):e)}));function Gh(t){return Lf(Ql(t).toLowerCase())}function qh(t){t=Ql(t);return t&&t.replace(Yt,Qr).replace(Ze,"")}function Kh(t,e,n){t=Ql(t);e=_o(e);var i=t.length;n=n===r?i:pi(ql(n),0,i);var o=n;n-=e.length;return n>=0&&t.slice(n,o)==e}function Xh(t){t=Ql(t);return t&&jt.test(t)?t.replace(Et,tn):t}function Yh(t){t=Ql(t);return t&&Dt.test(t)?t.replace(_t,"\\$&"):t}var Jh=vs((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()}));var Qh=vs((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}));var tf=ds("toLowerCase");function ef(t,e,r){t=Ql(t);e=ql(e);var n=e?vn(t):0;if(!e||n>=e){return t}var i=(e-n)/2;return ys(_e(i),r)+t+ys(Ae(i),r)}function rf(t,e,r){t=Ql(t);e=ql(e);var n=e?vn(t):0;return e&&n<e?t+ys(e-n,r):t}function nf(t,e,r){t=Ql(t);e=ql(e);var n=e?vn(t):0;return e&&n<e?ys(e-n,r)+t:t}function of(t,e,r){if(r||e==null){e=0}else if(e){e=+e}return Ve(Ql(t).replace(It,""),e||0)}function sf(t,e,n){if(n?aa(t,e,n):e===r){e=1}else{e=ql(e)}return bo(Ql(t),e)}function af(){var t=arguments,e=Ql(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var uf=vs((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));function cf(t,e,n){if(n&&typeof n!="number"&&aa(t,e,n)){e=n=r}n=n===r?P:n>>>0;if(!n){return[]}t=Ql(t);if(t&&(typeof e=="string"||e!=null&&!Dl(e))){e=_o(e);if(!e&&nn(t)){return Wo(gn(t),0,n)}}return t.split(e,n)}var lf=vs((function(t,e,r){return t+(r?" ":"")+Lf(e)}));function hf(t,e,r){t=Ql(t);r=r==null?0:pi(ql(r),0,t.length);e=_o(e);return t.slice(r,r+e.length)==e}function ff(t,e,n){var i=yn.templateSettings;if(n&&aa(t,e,n)){e=r}t=Ql(t);e=rh({},e,i,Fs);var o=rh({},e.imports,i.imports,Fs),s=xh(o),u=qr(o,s);var c,l,h=0,f=e.interpolate||Jt,d="__p += '";var v=ne((e.escape||Jt).source+"|"+f.source+"|"+(f===zt?Nt:Jt).source+"|"+(e.evaluate||Jt).source+"|$","g");var g="//# sourceURL="+(he.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qe+"]")+"\n";t.replace(v,(function(e,r,n,i,o,s){n||(n=i);d+=t.slice(h,s).replace(Qt,en);if(r){c=true;d+="' +\n__e("+r+") +\n'"}if(o){l=true;d+="';\n"+o+";\n__p += '"}if(n){d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}h=s+e.length;return e}));d+="';\n";var p=he.call(e,"variable")&&e.variable;if(!p){d="with (obj) {\n"+d+"\n}\n"}else if(Zt.test(p)){throw new Ht(a)}d=(l?d.replace(Lt,""):d).replace(xt,"$1").replace(yt,"$1;");d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var C=yf((function(){return te(s,g+"return "+d).apply(r,u)}));C.source=d;if(ml(C)){throw C}return C}function df(t){return Ql(t).toLowerCase()}function vf(t){return Ql(t).toUpperCase()}function gf(t,e,n){t=Ql(t);if(t&&(n||e===r)){return Wr(t)}if(!t||!(e=_o(e))){return t}var i=gn(t),o=gn(e),s=Xr(i,o),a=Yr(i,o)+1;return Wo(i,s,a).join("")}function pf(t,e,n){t=Ql(t);if(t&&(n||e===r)){return t.slice(0,pn(t)+1)}if(!t||!(e=_o(e))){return t}var i=gn(t),o=Yr(i,gn(e))+1;return Wo(i,0,o).join("")}function Cf(t,e,n){t=Ql(t);if(t&&(n||e===r)){return t.replace(It,"")}if(!t||!(e=_o(e))){return t}var i=gn(t),o=Xr(i,gn(e));return Wo(i,o).join("")}function wf(t,e){var n=j,i=R;if(kl(e)){var o="separator"in e?e.separator:o;n="length"in e?ql(e.length):n;i="omission"in e?_o(e.omission):i}t=Ql(t);var s=t.length;if(nn(t)){var a=gn(t);s=a.length}if(n>=s){return t}var u=n-vn(i);if(u<1){return i}var c=a?Wo(a,0,u).join(""):t.slice(0,u);if(o===r){return c+i}if(a){u+=c.length-u}if(Dl(o)){if(t.slice(u).search(o)){var l,h=c;if(!o.global){o=ne(o.source,Ql(Vt.exec(o))+"g")}o.lastIndex=0;while(l=o.exec(h)){var f=l.index}c=c.slice(0,f===r?u:f)}}else if(t.indexOf(_o(o),u)!=u){var d=c.lastIndexOf(o);if(d>-1){c=c.slice(0,d)}}return c+i}function mf(t){t=Ql(t);return t&&St.test(t)?t.replace(kt,Cn):t}var bf=vs((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}));var Lf=ds("toUpperCase");function xf(t,e,n){t=Ql(t);e=n?r:e;if(e===r){return on(t)?bn(t):Fr(t)}return t.match(e)||[]}var yf=Lo((function(t,e){try{return Cr(t,r,e)}catch(t){return ml(t)?t:new Ht(t)}}));var kf=Ps((function(t,e){mr(e,(function(e){e=Ma(e);vi(t,e,Fc(t[e],t))}));return t}));function Ef(t){var e=t==null?0:t.length,r=Ns();t=!e?[]:Er(t,(function(t){if(typeof t[1]!="function"){throw new oe(s)}return[r(t[0]),t[1]]}));return Lo((function(r){var n=-1;while(++n<e){var i=t[n];if(Cr(i[0],this,r)){return Cr(i[1],this,r)}}}))}function Sf(t){return wi(Ci(t,h))}function jf(t){return function(){return t}}function Rf(t,e){return t==null||t!==t?e:t}var Of=ws();var zf=ws(true);function Mf(t){return t}function Ff(t){return eo(typeof t=="function"?t:Ci(t,h))}function Af(t){return so(Ci(t,h))}function _f(t,e){return ao(t,Ci(e,h))}var Df=Lo((function(t,e){return function(r){return Bi(r,t,e)}}));var If=Lo((function(t,e){return function(r){return Bi(t,r,e)}}));function Tf(t,e,r){var n=xh(e),i=Ai(e,n);if(r==null&&!(kl(e)&&(i.length||!n.length))){r=e;e=t;t=this;i=Ai(e,xh(e))}var o=!(kl(r)&&"chain"in r)||!!r.chain,s=Ll(t);mr(i,(function(r){var n=e[r];t[r]=n;if(s){t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=is(this.__actions__);i.push({func:n,args:arguments,thisArg:t});r.__chain__=e;return r}return n.apply(t,Sr([this.value()],arguments))}}}));return t}function Pf(){if(or._===this){or._=pe}return this}function $f(){}function Uf(t){t=ql(t);return Lo((function(e){return lo(e,t)}))}var Hf=xs(Er);var Zf=xs(Lr);var Bf=xs(Or);function Nf(t){return ua(t)?$r(Ma(t)):go(t)}function Vf(t){return function(e){return t==null?r:_i(t,e)}}var Wf=Es();var Gf=Es(true);function qf(){return[]}function Kf(){return false}function Xf(){return{}}function Yf(){return""}function Jf(){return true}function Qf(t,e){t=ql(t);if(t<1||t>D){return[]}var r=P,n=Be(t,P);e=Ns(e);t-=P;var i=Nr(n,e);while(++r<t){e(r)}return i}function td(t){if(ul(t)){return Er(t,Ma)}return $l(t)?[t]:is(za(Ql(t)))}function ed(t){var e=++fe;return Ql(t)+e}var rd=Ls((function(t,e){return t+e}),0);var nd=Rs("ceil");var id=Ls((function(t,e){return t/e}),1);var od=Rs("floor");function sd(t){return t&&t.length?Ei(t,Mf,Ti):r}function ad(t,e){return t&&t.length?Ei(t,Ns(e,2),Ti):r}function ud(t){return Pr(t,Mf)}function cd(t,e){return Pr(t,Ns(e,2))}function ld(t){return t&&t.length?Ei(t,Mf,io):r}function hd(t,e){return t&&t.length?Ei(t,Ns(e,2),io):r}var fd=Ls((function(t,e){return t*e}),1);var dd=Rs("round");var vd=Ls((function(t,e){return t-e}),0);function gd(t){return t&&t.length?Br(t,Mf):0}function pd(t,e){return t&&t.length?Br(t,Ns(e,2)):0}yn.after=Oc;yn.ary=zc;yn.assign=th;yn.assignIn=eh;yn.assignInWith=rh;yn.assignWith=nh;yn.at=ih;yn.before=Mc;yn.bind=Fc;yn.bindAll=kf;yn.bindKey=Ac;yn.castArray=Jc;yn.chain=Vu;yn.chunk=Da;yn.compact=Ia;yn.concat=Ta;yn.cond=Ef;yn.conforms=Sf;yn.constant=jf;yn.countBy=rc;yn.create=oh;yn.curry=_c;yn.curryRight=Dc;yn.debounce=Ic;yn.defaults=sh;yn.defaultsDeep=ah;yn.defer=Tc;yn.delay=Pc;yn.difference=Pa;yn.differenceBy=$a;yn.differenceWith=Ua;yn.drop=Ha;yn.dropRight=Za;yn.dropRightWhile=Ba;yn.dropWhile=Na;yn.fill=Va;yn.filter=ic;yn.flatMap=ac;yn.flatMapDeep=uc;yn.flatMapDepth=cc;yn.flatten=qa;yn.flattenDeep=Ka;yn.flattenDepth=Xa;yn.flip=$c;yn.flow=Of;yn.flowRight=zf;yn.fromPairs=Ya;yn.functions=vh;yn.functionsIn=gh;yn.groupBy=fc;yn.initial=tu;yn.intersection=eu;yn.intersectionBy=ru;yn.intersectionWith=nu;yn.invert=mh;yn.invertBy=bh;yn.invokeMap=vc;yn.iteratee=Ff;yn.keyBy=gc;yn.keys=xh;yn.keysIn=yh;yn.map=pc;yn.mapKeys=kh;yn.mapValues=Eh;yn.matches=Af;yn.matchesProperty=_f;yn.memoize=Uc;yn.merge=Sh;yn.mergeWith=jh;yn.method=Df;yn.methodOf=If;yn.mixin=Tf;yn.negate=Hc;yn.nthArg=Uf;yn.omit=Rh;yn.omitBy=Oh;yn.once=Zc;yn.orderBy=Cc;yn.over=Hf;yn.overArgs=Bc;yn.overEvery=Zf;yn.overSome=Bf;yn.partial=Nc;yn.partialRight=Vc;yn.partition=wc;yn.pick=zh;yn.pickBy=Mh;yn.property=Nf;yn.propertyOf=Vf;yn.pull=uu;yn.pullAll=cu;yn.pullAllBy=lu;yn.pullAllWith=hu;yn.pullAt=fu;yn.range=Wf;yn.rangeRight=Gf;yn.rearg=Wc;yn.reject=Lc;yn.remove=du;yn.rest=Gc;yn.reverse=vu;yn.sampleSize=yc;yn.set=Ah;yn.setWith=_h;yn.shuffle=kc;yn.slice=gu;yn.sortBy=jc;yn.sortedUniq=xu;yn.sortedUniqBy=yu;yn.split=cf;yn.spread=qc;yn.tail=ku;yn.take=Eu;yn.takeRight=Su;yn.takeRightWhile=ju;yn.takeWhile=Ru;yn.tap=Wu;yn.throttle=Kc;yn.thru=Gu;yn.toArray=Wl;yn.toPairs=Dh;yn.toPairsIn=Ih;yn.toPath=td;yn.toPlainObject=Yl;yn.transform=Th;yn.unary=Xc;yn.union=Ou;yn.unionBy=zu;yn.unionWith=Mu;yn.uniq=Fu;yn.uniqBy=Au;yn.uniqWith=_u;yn.unset=Ph;yn.unzip=Du;yn.unzipWith=Iu;yn.update=$h;yn.updateWith=Uh;yn.values=Hh;yn.valuesIn=Zh;yn.without=Tu;yn.words=xf;yn.wrap=Yc;yn.xor=Pu;yn.xorBy=$u;yn.xorWith=Uu;yn.zip=Hu;yn.zipObject=Zu;yn.zipObjectDeep=Bu;yn.zipWith=Nu;yn.entries=Dh;yn.entriesIn=Ih;yn.extend=eh;yn.extendWith=rh;Tf(yn,yn);yn.add=rd;yn.attempt=yf;yn.camelCase=Wh;yn.capitalize=Gh;yn.ceil=nd;yn.clamp=Bh;yn.clone=Qc;yn.cloneDeep=el;yn.cloneDeepWith=rl;yn.cloneWith=tl;yn.conformsTo=nl;yn.deburr=qh;yn.defaultTo=Rf;yn.divide=id;yn.endsWith=Kh;yn.eq=il;yn.escape=Xh;yn.escapeRegExp=Yh;yn.every=nc;yn.find=oc;yn.findIndex=Wa;yn.findKey=uh;yn.findLast=sc;yn.findLastIndex=Ga;yn.findLastKey=ch;yn.floor=od;yn.forEach=lc;yn.forEachRight=hc;yn.forIn=lh;yn.forInRight=hh;yn.forOwn=fh;yn.forOwnRight=dh;yn.get=ph;yn.gt=ol;yn.gte=sl;yn.has=Ch;yn.hasIn=wh;yn.head=Ja;yn.identity=Mf;yn.includes=dc;yn.indexOf=Qa;yn.inRange=Nh;yn.invoke=Lh;yn.isArguments=al;yn.isArray=ul;yn.isArrayBuffer=cl;yn.isArrayLike=ll;yn.isArrayLikeObject=hl;yn.isBoolean=fl;yn.isBuffer=dl;yn.isDate=vl;yn.isElement=gl;yn.isEmpty=pl;yn.isEqual=Cl;yn.isEqualWith=wl;yn.isError=ml;yn.isFinite=bl;yn.isFunction=Ll;yn.isInteger=xl;yn.isLength=yl;yn.isMap=Sl;yn.isMatch=jl;yn.isMatchWith=Rl;yn.isNaN=Ol;yn.isNative=zl;yn.isNil=Fl;yn.isNull=Ml;yn.isNumber=Al;yn.isObject=kl;yn.isObjectLike=El;yn.isPlainObject=_l;yn.isRegExp=Dl;yn.isSafeInteger=Il;yn.isSet=Tl;yn.isString=Pl;yn.isSymbol=$l;yn.isTypedArray=Ul;yn.isUndefined=Hl;yn.isWeakMap=Zl;yn.isWeakSet=Bl;yn.join=iu;yn.kebabCase=Jh;yn.last=ou;yn.lastIndexOf=su;yn.lowerCase=Qh;yn.lowerFirst=tf;yn.lt=Nl;yn.lte=Vl;yn.max=sd;yn.maxBy=ad;yn.mean=ud;yn.meanBy=cd;yn.min=ld;yn.minBy=hd;yn.stubArray=qf;yn.stubFalse=Kf;yn.stubObject=Xf;yn.stubString=Yf;yn.stubTrue=Jf;yn.multiply=fd;yn.nth=au;yn.noConflict=Pf;yn.noop=$f;yn.now=Rc;yn.pad=ef;yn.padEnd=rf;yn.padStart=nf;yn.parseInt=of;yn.random=Vh;yn.reduce=mc;yn.reduceRight=bc;yn.repeat=sf;yn.replace=af;yn.result=Fh;yn.round=dd;yn.runInContext=t;yn.sample=xc;yn.size=Ec;yn.snakeCase=uf;yn.some=Sc;yn.sortedIndex=pu;yn.sortedIndexBy=Cu;yn.sortedIndexOf=wu;yn.sortedLastIndex=mu;yn.sortedLastIndexBy=bu;yn.sortedLastIndexOf=Lu;yn.startCase=lf;yn.startsWith=hf;yn.subtract=vd;yn.sum=gd;yn.sumBy=pd;yn.template=ff;yn.times=Qf;yn.toFinite=Gl;yn.toInteger=ql;yn.toLength=Kl;yn.toLower=df;yn.toNumber=Xl;yn.toSafeInteger=Jl;yn.toString=Ql;yn.toUpper=vf;yn.trim=gf;yn.trimEnd=pf;yn.trimStart=Cf;yn.truncate=wf;yn.unescape=mf;yn.uniqueId=ed;yn.upperCase=bf;yn.upperFirst=Lf;yn.each=lc;yn.eachRight=hc;yn.first=Ja;Tf(yn,function(){var t={};Mi(yn,(function(e,r){if(!he.call(yn.prototype,r)){t[r]=e}}));return t}(),{chain:false});yn.VERSION=n;mr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){yn[t].placeholder=yn}));mr(["drop","take"],(function(t,e){jn.prototype[t]=function(n){n=n===r?1:Ue(ql(n),0);var i=this.__filtered__&&!e?new jn(this):this.clone();if(i.__filtered__){i.__takeCount__=Be(n,i.__takeCount__)}else{i.__views__.push({size:Be(n,P),type:t+(i.__dir__<0?"Right":"")})}return i};jn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}));mr(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=r==M||r==A;jn.prototype[t]=function(t){var e=this.clone();e.__iteratees__.push({iteratee:Ns(t,3),type:r});e.__filtered__=e.__filtered__||n;return e}}));mr(["head","last"],(function(t,e){var r="take"+(e?"Right":"");jn.prototype[t]=function(){return this[r](1).value()[0]}}));mr(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");jn.prototype[t]=function(){return this.__filtered__?new jn(this):this[r](1)}}));jn.prototype.compact=function(){return this.filter(Mf)};jn.prototype.find=function(t){return this.filter(t).head()};jn.prototype.findLast=function(t){return this.reverse().find(t)};jn.prototype.invokeMap=Lo((function(t,e){if(typeof t=="function"){return new jn(this)}return this.map((function(r){return Bi(r,t,e)}))}));jn.prototype.reject=function(t){return this.filter(Hc(Ns(t)))};jn.prototype.slice=function(t,e){t=ql(t);var n=this;if(n.__filtered__&&(t>0||e<0)){return new jn(n)}if(t<0){n=n.takeRight(-t)}else if(t){n=n.drop(t)}if(e!==r){e=ql(e);n=e<0?n.dropRight(-e):n.take(e-t)}return n};jn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()};jn.prototype.toArray=function(){return this.take(P)};Mi(jn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=yn[i?"take"+(e=="last"?"Right":""):e],s=i||/^find/.test(e);if(!o){return}yn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,u=e instanceof jn,c=a[0],l=u||ul(e);var h=function(t){var e=o.apply(yn,Sr([t],a));return i&&f?e[0]:e};if(l&&n&&typeof c=="function"&&c.length!=1){u=l=false}var f=this.__chain__,d=!!this.__actions__.length,v=s&&!f,g=u&&!d;if(!s&&l){e=g?e:new jn(this);var p=t.apply(e,a);p.__actions__.push({func:Gu,args:[h],thisArg:r});return new Sn(p,f)}if(v&&g){return t.apply(this,a)}p=this.thru(h);return v?i?p.value()[0]:p.value():p}}));mr(["pop","push","shift","sort","splice","unshift"],(function(t){var e=se[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);yn.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(ul(i)?i:[],t)}return this[r]((function(r){return e.apply(ul(r)?r:[],t)}))}}));Mi(jn.prototype,(function(t,e){var r=yn[e];if(r){var n=r.name+"";if(!he.call(cr,n)){cr[n]=[]}cr[n].push({name:e,func:r})}}));cr[ms(r,w).name]=[{name:"wrapper",func:r}];jn.prototype.clone=Rn;jn.prototype.reverse=On;jn.prototype.value=zn;yn.prototype.at=qu;yn.prototype.chain=Ku;yn.prototype.commit=Xu;yn.prototype.next=Yu;yn.prototype.plant=Qu;yn.prototype.reverse=tc;yn.prototype.toJSON=yn.prototype.valueOf=yn.prototype.value=ec;yn.prototype.first=yn.prototype.head;if(je){yn.prototype[je]=Ju}return yn};var xn=Ln();if(ar){(ar.exports=xn)._=xn;sr._=xn}else{or._=xn}}).call(p)}));var na=4294967295,ia=na-1;var oa=Math.floor,sa=Math.min;function aa(t,e,r,n){var i=0,o=t==null?0:t.length;if(o===0){return 0}e=r(e);var s=e!==e,a=e===null,u=v(e),c=e===undefined;while(i<o){var l=oa((i+o)/2),h=r(t[l]),f=h!==undefined,d=h===null,g=h===h,p=v(h);if(s){var C=n||g}else if(c){C=g&&(n||f)}else if(a){C=g&&f&&(n||!d)}else if(u){C=g&&f&&!d&&(n||!p)}else if(d||p){C=false}else{C=n?h<=e:h<e}if(C){i=l+1}else{o=l}}return sa(o,ia)}var ua=aa;var ca=4294967295,la=ca>>>1;function ha(t,e,r){var n=0,i=t==null?n:t.length;if(typeof e=="number"&&e===e&&i<=la){while(n<i){var o=n+i>>>1,s=t[o];if(s!==null&&!v(s)&&(r?s<=e:s<e)){n=o+1}else{i=o}}return i}return ua(t,e,fe,r)}var fa=ha;function da(t,e){return fa(t,e)}var va=da;function ga(t,e={}){const r=[];const n={};const i={};const o=Object.assign({},e);let s=[];Ce(e,((t,e)=>{const r=parseInt(e,10);s[va(s,r)]=r}));Yo(s,((e,s,a)=>{const u={itemIndex:s,start:0,end:0};if(e){const r=(s-e.itemIndex-1)*t;u.start=r+e.end}else{u.start=s*t}u.end=u.start+o[s];r.push(u.start);i[s]=n[a]=u;return u}),undefined);return{indexes:s,positionIndexes:[...r],positionIndexToItem:Object.assign({},n),indexToItem:i,sizes:o}}function pa({indexes:t,positionIndexes:e,originItemSize:r,positionIndexToItem:n},i){const o={itemIndex:0,start:0,end:0};const s=t.length?va(e,i):0;if(!s){o.itemIndex=Math.floor(i/r);o.start=o.itemIndex*r;o.end=o.start+r;return o}const a=n[s-1];if(a.end>i){return a}const u=i-a.end;const c=Math.floor(u/r);o.itemIndex=a.itemIndex+1+c;o.start=a.end+c*r;o.end=o.start+r;return o}function Ca(t,e){let r={itemIndex:e,start:0,end:0};if(t.indexToItem[e]){return t.indexToItem[e]}const n=t.indexes.length?va(t.indexes,e):0;if(!n){r.start=r.itemIndex*t.originItemSize;r.end=r.start+t.originItemSize;return r}const i=t.indexToItem[t.indexes[n-1]];r.start=i.end+(e-i.itemIndex-1)*t.originItemSize;r.end=r.start+t.originItemSize;return r}const wa=t=>{let e={};const r=(r,n)=>{const i=Object.assign({},r);e={};Ce(n,((t,r)=>{if(t&&i[r]){e[r]=i[r];delete i[r]}}));t.setDimensionSize(i)};return{set(n,i){switch(n){case"trimmed":const n=i;const o=t.store.get("sizes");r(Object.assign(Object.assign({},o),e),n);break}}}};const ma=t=>({set(e){switch(e){case"count":case"sizes":case"originItemSize":let e=0;const r=t.store.get("count");for(let n=0;n<r;n++){e+=t.store.get("sizes")[n]||t.store.get("originItemSize")}t.setStore({realSize:e})}}});function ba(){return{indexes:[],count:0,trimmed:{},sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function La(){return Object.assign(Object.assign({},ba()),{realSize:0,originItemSize:0})}class xa{constructor(){this.store=Ls(La());this.store.use(wa(this));this.store.use(ma(this))}getCurrentState(){const t=La();const e=Object.keys(t);return Yo(e,((t,e)=>{const r=this.store.get(e);t[e]=r;return t}),t)}dispose(){_s(this.store,La())}setStore(t){_s(this.store,t)}drop(){_s(this.store,ba())}setDimensionSize(t){const e=ga(this.store.get("originItemSize"),t);_s(this.store,e);return e}}const ya=30;const ka=40;const Ea="data-rgCol";const Sa="data-rgRow";const ja="grid-uuid";const Ra="disabled";const Oa="rgCell";const za="rowHeaders";const Ma="rgHeaderCell";const Fa="sortable";const Aa="header-rgRow";const _a="actual-rgRow";const Da="revo-drag-icon";const Ia="revo-draggable";const Ta="focused-cell";const Pa="selection-border-range";const $a="temp-bg-range";const Ua="autofill-handle";const Ha="edit-input-wrapper";const Za="Draggable item";const Ba="__rvgr";class Na{constructor(t,e){this.viewports=t;const r=ra.debounce((t=>e.realSizeChanged(t)),ka);this.stores=Yo([...Ns,...Vs],((t,e)=>{t[e]=new xa;t[e].store.onChange("realSize",(()=>r(e)));return t}),{})}clearSize(t,e){this.stores[t].drop();this.viewports.stores[t].setOriginalSizes(this.stores[t].store.get("originItemSize"));this.setItemCount(e,t)}setCustomSizes(t,e,r=false){let n=e;if(r){const r=this.stores[t].store.get("sizes");n=Object.assign(Object.assign({},r),e)}this.stores[t].setDimensionSize(n);this.viewports.stores[t].setViewPortDimensionSizes(n,!r?this.stores[t].store.get("originItemSize"):undefined)}setItemCount(t,e){this.viewports.stores[e].setViewport({realCount:t});this.stores[e].setStore({count:t})}setTrimmed(t,e){const r=As(t);const n=this.stores[e];n.setStore({trimmed:r});this.viewports.stores[e].setViewPortDimensionSizes(n.store.get("sizes"))}setData(t,e,r=false){this.setItemCount(t,e);if(r){this.setNoVirtual(e)}this.updateViewport(e)}setNoVirtual(t){const e=this.stores[t].getCurrentState();this.viewports.stores[t].setViewport({virtualSize:e.realSize})}dropColumns(t=Vs){for(let e of t){this.stores[e].drop();this.viewports.stores[e].clearItems()}}getFullSize(){var t,e;let r=0;let n=0;for(let e of Vs){r+=((t=this.stores[e])===null||t===void 0?void 0:t.store.get("realSize"))||0}for(let t of Ns){n+=((e=this.stores[t])===null||e===void 0?void 0:e.store.get("realSize"))||0}return{y:n,x:r}}setNewColumns(t,e,r,n=false){this.setItemCount(e,t);this.setCustomSizes(t,r);if(n){this.setNoVirtual(t)}this.updateViewport(t)}updateViewport(t){this.setViewPortCoordinate({coordinate:this.viewports.stores[t].lastCoordinate,type:t})}setViewPortCoordinate({coordinate:t,type:e}){const r=this.stores[e].getCurrentState();this.viewports.stores[e].setViewPortCoordinate(t,r)}getViewPortPos(t){const e=this.stores[t.dimension].getCurrentState();const r=Ca(e,t.coordinate);return r.start}setSettings(t,e){let r=[];switch(e){case"rgCol":r=Vs;break;case"rgRow":r=Ns;break}for(let e of r){this.stores[e].setStore(t)}}}function Va(t,e,r,n,i){const o=pa(i,t);const s=tu(e);let a;if(s){let t=o.itemIndex-(s.itemIndex||0);if(t){a=Xa(Math.abs(t),Object.assign(Object.assign({positiveDirection:t>-1},i),e))}}const u=Wa(n,i.realSize,o);if(a){const t=qa(o,r,u,a,i);if(t.length){Ga(a.items,t,a)}}if(!a){const t=Ka({firstItemStart:o.start,firstItemIndex:o.itemIndex,origSize:i.originItemSize,maxSize:u,maxCount:r,sizes:i.sizes});a={items:t,start:0,end:t.length-1}}return a}function Wa(t,e,r){return Math.min(t+(r.end-r.start),e)}function Ga(t,e,r){t.splice(r.end+1,0,...e);if(r.start>=r.end&&!(r.start===r.end&&r.start===0)){r.start+=e.length}r.end+=e.length}function qa(t,e,r,n,i){const o=eu(n);const s=Ka({sizes:i.sizes,firstItemStart:o.end,firstItemIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:r-(o.end-t.start),maxCount:e});return s}function Ka(t,e=0){const r=[];let n=t.firstItemIndex;let i=e;while(i<=t.maxSize&&n<t.maxCount){const e=Ya(n,t.sizes,t.origSize);r.push({start:t.firstItemStart+i,end:t.firstItemStart+i+e,itemIndex:n,size:e});i+=e;n++}return r}function Xa(t,e){const r=[...e.items];const n=r.length;let i={start:e.start,end:e.end};if(t>n){return null}if(e.positiveDirection){let o=eu(e);let s=i.start;const a=s+t;for(;s<a;s++){const t=o.itemIndex+1;const a=Ya(t,e.sizes,e.originItemSize);if(o.end+a>e.realSize){break}let u=s%n;if(!r[u]){throw new Error("incorrect index")}r[u]=o={start:o.end,end:o.end+a,itemIndex:t,size:a};i.start++;i.end=u}}else{let o=tu(e);const s=i.end;for(let a=0;a<t;a++){const t=o.itemIndex-1;const u=Ya(t,e.sizes,e.originItemSize);let c=s-a;c=(c<0?n+c:c)%n;if(!r[c]){throw new Error("incorrect index")}r[c]=o={start:o.start-u,end:o.start,itemIndex:t,size:u};i.start=c;i.end--}}const o={start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n};return Object.assign({items:r},o)}function Ya(t,e,r=0){if(e&&e[t]){return e[t]}return r}function Ja(t,e,r,n){if(!r||!n){return false}return t>=r.start&&t<=r.end||t>r.end&&n.end===e}function Qa(t,e,r,n){if(!r){return false}return e+t>(n===null||n===void 0?void 0:n.end)}function tu(t){return t.items[t.start]}function eu(t){return t.items[t.end]}function ru(t,e,r,n){const i=[...t];const o=i.length;let s=n;let a=0;let u=e;if(!o){return[]}while(a<o){const t=i[u];t.start=s;t.size=r;t.end=t.start+r;s=t.end;u++;a++;if(u===o){u=0}}return i}function nu(){return{items:[],start:0,end:0,virtualSize:0,realCount:0}}class iu{get lastCoordinate(){return this.lastKnownScroll}set lastCoordinate(t){this.lastKnownScroll=t}constructor(t){this.type=t;this.lastKnownScroll=0;this.store=Ls(nu());this.store.onChange("realCount",(()=>this.clearItems()));this.store.onChange("virtualSize",(()=>this.setViewport({items:[]})))}setViewPortCoordinate(t,e){let r=this.store.get("virtualSize");if(!r){return}const n=1;const i=e.originItemSize*n;const o=i*2;r+=o;let s=0;if(e.realSize>r){s=e.realSize-r}let a=t;if(a<0){a=0}else if(a>s){a=s}this.lastCoordinate=a;a-=n*e.originItemSize;a=a<0?0:a<s?a:s;const u=this.getItems();const c=tu(u);const l=eu(u);let h={};if(!Ja(a,e.realSize,c,l)){h=Object.assign(Object.assign({},h),Va(a,u,this.store.get("realCount"),r,e));this.setViewport(Object.assign({},h))}else if(Qa(a,r,c,l)){const t=qa(c,this.store.get("realCount"),r+a-c.start,u,e);if(t.length){const e=[...this.store.get("items")];const r={start:this.store.get("start"),end:this.store.get("end")};Ga(e,t,r);h=Object.assign(Object.assign(Object.assign({},h),{items:[...e]}),r);this.setViewport(Object.assign({},h))}}}setViewPortDimensionSizes(t,e){let r=[...this.store.get("items")];const n=r.length;if(!n){return}let i=0;let o=0;let s=this.store.get("start");if(e){r=ru(r,s,e,this.lastCoordinate)}console.log("items",r);while(o<n){const e=r[s];if(i){e.start+=i;e.end+=i}const a=t[e.itemIndex];if(a){const t=a-e.size;i+=t;e.size=a;e.end=e.start+a}s++;o++;if(s===n){s=0}}this.setViewport({items:[...r]})}setOriginalSizes(t){const e=this.store.get("items");const r=e.length;if(!r){return}_s(this.store,{items:ru(e,this.store.get("start"),t,this.lastCoordinate)})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){_s(this.store,t)}clearItems(){this.store.set("items",[])}}class ou{constructor(){this.stores=Yo([...Ns,...Vs],((t,e)=>{t[e]=new iu(e);return t}),{})}setViewport(t,e){this.stores[t].setViewport(e)}}function su(t){const e=t.createElement("div");const r=e.style;r.visibility="hidden";r.overflow="scroll";r.msOverflowStyle="scrollbar";t.body.appendChild(e);const n=t.createElement("div");e.appendChild(n);const i=e.offsetWidth-n.offsetWidth;e.parentNode.removeChild(e);return i}function au(t,e,r){return(r[1]-r[0])*(t-e[0])/(e[1]-e[0])+r[0]}async function uu(t=0){await new Promise((e=>{setTimeout((()=>e()),t)}))}const cu=7;var lu;(function(t){t["headerClickAutosize"]="headerClickAutoSize";t["autoSizeOnTextOverlap"]="autoSizeOnTextOverlap";t["autoSizeAll"]="autoSizeAll"})(lu||(lu={}));class hu extends Ys{constructor(t,e,r){super(t);this.providers=e;this.config=r;this.autoSizeColumns=null;this.dataResolve=null;this.dataReject=null;this.letterBlockSize=(r===null||r===void 0?void 0:r.letterBlockSize)||cu;if(r===null||r===void 0?void 0:r.preciseSize){this.precsizeCalculationArea=this.initiatePresizeElement();t.appendChild(this.precsizeCalculationArea)}const n=({detail:{source:t}})=>{this.setSource(t)};const i=({detail:t})=>{this.afteredit(t)};const o=({detail:t})=>{this.afterEditAll(t)};const s=({detail:{columns:t}})=>{this.columnSet(t)};const a=({detail:t})=>{const e=ta.getColumnType(t.column);const r=this.getColumnSize(t.index,e);if(r){this.providers.dimensionProvider.setCustomSizes(e,{[t.index]:r},true)}};this.addEventListener("beforecolumnsset",s);switch(r===null||r===void 0?void 0:r.mode){case lu.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",n);this.addEventListener("afteredit",i);break;case lu.autoSizeAll:this.addEventListener("aftersourceset",n);this.addEventListener("afteredit",o);break;default:this.addEventListener("headerdblClick",a);break}}async setSource(t){let e=this.autoSizeColumns;if(this.dataReject){this.dataReject();this.clearPromise()}if(!e){const t=new Promise(((t,e)=>{this.dataResolve=t;this.dataReject=e}));try{e=await t}catch(t){return}}Ce(e,((r,n)=>{const i={};Ce(e[n],(e=>{e.size=i[e.index]=t.reduce(((t,r)=>Math.max(t,this.getLength(r[e.prop]))),this.getLength(e.name||""))}));this.providers.dimensionProvider.setCustomSizes(n,i,true)}))}getLength(t){var e;const r=15;if(!t){return 0}try{const n=t.toString();if((e=this.config)===null||e===void 0?void 0:e.preciseSize){this.precsizeCalculationArea.innerText=n;return this.precsizeCalculationArea.scrollWidth+r*2}return n.length*this.letterBlockSize+r*2}catch(t){return 0}}afteredit(t){let e;if(this.isRangeEdit(t)){e=t.data}else{e={0:{[t.prop]:t.val}}}Ce(this.autoSizeColumns,((t,r)=>{const n={};Ce(t,(t=>{const r=Yo(e,((e,r)=>{if(typeof r[t.prop]==="undefined"){return e}return Math.max(e||0,this.getLength(r[t.prop]))}),undefined);if(r&&t.size<r){t.size=n[t.index]=r}}));this.providers.dimensionProvider.setCustomSizes(r,n,true)}))}afterEditAll(t){const e={};if(this.isRangeEdit(t)){Ce(t.data,(t=>Ce(t,((t,r)=>e[r]=true))))}else{e[t.prop]=true}Ce(this.autoSizeColumns,((t,r)=>{const n={};Ce(t,(t=>{if(e[t.prop]){const e=this.getColumnSize(t.index,r);if(e){n[t.index]=e}}}));this.providers.dimensionProvider.setCustomSizes(r,n,true)}))}getColumnSize(t,e){const r=this.autoSizeColumns[e][t];if(!r){return 0}return Yo(this.providers.dataProvider.stores,((t,e)=>{const n=Yo(e.store.get("items"),((t,n,i)=>{const o=Us(e.store,i);return Math.max(t||0,this.getLength(o[r.prop]))}),0);return Math.max(t,n)}),r.size||0)}columnSet(t){var e;for(let r of Vs){const n=r;const i=t[n];for(let t in i){if(i[t].autoSize||((e=this.config)===null||e===void 0?void 0:e.allColumns)){if(!this.autoSizeColumns){this.autoSizeColumns={}}if(!this.autoSizeColumns[n]){this.autoSizeColumns[n]={}}this.autoSizeColumns[n][t]=Object.assign(Object.assign({},i[t]),{index:parseInt(t,10)})}}}if(this.dataResolve){this.dataResolve(this.autoSizeColumns);this.clearPromise()}}clearPromise(){this.dataResolve=null;this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){const t={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"};const e=document.createElement("div");for(let r in t){e.style[r]=t[r]}e.classList.add("revo-test-container");return e}destroy(){var t;super.destroy();(t=this.precsizeCalculationArea)===null||t===void 0?void 0:t.remove()}}const fu=(t,e)=>{if(typeof t==="undefined"||t===null&&!e){return true}if(typeof t!=="string"){t=JSON.stringify(t)}const r=e.toString().toLocaleLowerCase();if(r.length===0){return true}return t.toLocaleLowerCase()===r};const du=(t,e)=>!fu(t,e);du.extra="input";fu.extra="input";const vu=function(t,e){let r;if(typeof t==="number"){r=parseFloat(e===null||e===void 0?void 0:e.toString());return t>r}return false};vu.extra="input";const gu=function(t,e){return fu(t,e)||vu(t,e)};gu.extra="input";const pu=function(t,e){let r;if(typeof t==="number"){r=parseFloat(e===null||e===void 0?void 0:e.toString());return t<r}else{return false}};pu.extra="input";const Cu=function(t,e){return fu(t,e)||pu(t,e)};Cu.extra="input";const wu=t=>!(t===""||t===null||t===void 0);const mu=t=>!wu(t);const bu=(t,e)=>{if(!t){return false}if(!e){return true}if(typeof t!=="string"){t=JSON.stringify(t)}if(typeof e!=="string"){e=JSON.stringify(e)}return t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())===0};bu.extra="input";const Lu=(t,e)=>{if(!e){return true}if(!t){return false}if(e){if(typeof t!=="string"){t=JSON.stringify(t)}return t.toLocaleLowerCase().indexOf(e.toString().toLowerCase())>-1}return true};const xu=(t,e)=>!Lu(t,e);xu.extra="input";Lu.extra="input";const yu={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="};const ku={none:()=>true,empty:mu,notEmpty:wu,eq:fu,notEq:du,begins:bu,contains:Lu,notContains:xu,eqN:fu,neqN:du,gt:vu,gte:gu,lt:pu,lte:Cu};const Eu={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};const Su="filter";const ju="filterconfigchanged";class Ru extends Ys{constructor(t,e,n){var i;super(t);this.revogrid=t;this.filterCollection={};this.multiFilterItems={};this.possibleFilters=Object.assign({},Eu);this.possibleFilterNames=Object.assign({},yu);this.possibleFilterEntities=Object.assign({},ku);this.filterProp=C;if(n){this.initConfig(n)}const o=t=>this.headerclick(t);const s=async()=>{const t=Object.keys(this.filterCollection);if(t.length>0){t.forEach(((t,e)=>{if(!this.multiFilterItems[t]){this.multiFilterItems[t]=[{id:e,type:this.filterCollection[t].type,value:this.filterCollection[t].value,relation:"and"}]}}))}await this.runFiltering()};this.addEventListener("headerclick",o);this.addEventListener(ju,(({detail:t})=>{if(!t){this.clearFiltering();return}if(typeof t==="object"){this.initConfig(t)}s()}));this.addEventListener("aftersourceset",s);this.addEventListener("filter",(({detail:t})=>this.onFilterChange(t)));this.revogrid.registerVNode([r("revogr-filter-panel",{uuid:`filter-${e}`,filterItems:this.multiFilterItems,filterNames:this.possibleFilterNames,filterEntities:this.possibleFilterEntities,filterCaptions:(i=n===null||n===void 0?void 0:n.localization)===null||i===void 0?void 0:i.captions,onFilterChange:t=>this.onFilterChange(t.detail),disableDynamicFiltering:n===null||n===void 0?void 0:n.disableDynamicFiltering,ref:t=>this.pop=t})])}initConfig(t){if(t.multiFilterItems){this.multiFilterItems=Object.assign({},t.multiFilterItems)}if(t.customFilters){for(let e in t.customFilters){const r=t.customFilters[e];if(!this.possibleFilters[r.columnFilterType]){this.possibleFilters[r.columnFilterType]=[]}this.possibleFilters[r.columnFilterType].push(e);this.possibleFilterEntities[e]=r.func;this.possibleFilterNames[e]=r.name}}if(t.filterProp){this.filterProp=t.filterProp}if(t.include){const e={};for(let r in this.possibleFilters){const n=this.possibleFilters[r].filter((e=>t.include.indexOf(e)>-1));if(n.length){e[r]=n}}if(Object.keys(e).length>0){this.possibleFilters=e}}if(t.collection){this.filterCollection=ra.reduce(t.collection,((t,e,r)=>{if(this.possibleFilterEntities[e.type]){t[r]=e}else{console.warn(`${e.type} type is not found.`)}return t}),{})}if(t.localization){if(t.localization.filterNames){Object.entries(t.localization.filterNames).forEach((([t,e])=>{if(this.possibleFilterNames[t]!=void 0){this.possibleFilterNames[t]=e}}))}}}async headerclick(t){var e;const r=(e=t.detail.originalEvent)===null||e===void 0?void 0:e.target;if(!w(r)){return}t.preventDefault();const n=await this.pop.getChanges();if(n&&(n===null||n===void 0?void 0:n.prop)===t.detail.prop){this.pop.show();return}const i=this.revogrid.getBoundingClientRect();const o=r.getBoundingClientRect();const s=t.detail.prop;this.pop.filterTypes=this.getColumnFilter(t.detail.filter);this.pop.show(Object.assign(Object.assign({},this.filterCollection[s]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:s}))}getColumnFilter(t){let e="string";if(!t){return{[e]:this.possibleFilters[e]}}if(this.isValidType(t)){e=t}else if(typeof t==="object"&&t.length){return t.reduce(((t,e)=>{if(this.isValidType(e)){t[e]=this.possibleFilters[e]}return t}),{})}return{[e]:this.possibleFilters[e]}}isValidType(t){return!!(typeof t==="string"&&this.possibleFilters[t])}async onFilterChange(t){this.multiFilterItems=t;this.runFiltering()}async doFiltering(t,e,r,n){const i=[];r.forEach((t=>{const e=Object.assign({},t);const r=n[e.prop];if(e[this.filterProp]&&!r){delete e[this.filterProp];i.push(e)}if(!e[this.filterProp]&&r){i.push(e);e[this.filterProp]=true}}));const o=this.getRowFilter(e,n);const{defaultPrevented:s,detail:a}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:o,source:e,filterItems:n});if(s){return}const u=await this.revogrid.addTrimmed(a.itemsToFilter,Su);if(u.defaultPrevented){return}await this.revogrid.updateColumns(i);this.emit("afterFilterApply")}async clearFiltering(){this.multiFilterItems={};await this.runFiltering()}async runFiltering(){const t={};const e=Object.keys(this.multiFilterItems);for(const r of e){if(this.multiFilterItems[r].length>0){const e=this.multiFilterItems[r][0];t[r]={filter:ku[e.type],type:e.type,value:e.value}}}this.filterCollection=t;const{source:r,columns:n}=await this.getData();const{defaultPrevented:i,detail:o}=this.emit("beforefilterapply",{collection:this.filterCollection,source:r,columns:n,filterItems:this.multiFilterItems});if(i){return}this.doFiltering(o.collection,o.source,o.columns,o.filterItems)}async getData(){return{source:await this.revogrid.getSource(),columns:await this.revogrid.getColumns()}}getRowFilter(t,e){const r=Object.keys(e);const n={};let i=0;let o=[];t.forEach(((t,s)=>{for(const a of r){const r=e[a];i=0;o=[];for(const[e,n]of r.entries()){const s=this.possibleFilterEntities[n.type];if(n.relation==="or"){o=[];if(s(t[a],n.value)){continue}i++}else{o.push(!s(t[a],n.value));const u=r[e+1];if(!u||u.relation!=="and"){if(o.indexOf(true)===-1){o=[];continue}i+=o.length;o=[]}}}if(i===r.length)n[s]=true}}));return n}}var Ou="[object String]";function zu(t){return typeof t=="string"||!N(t)&&a(t)&&u(t)==Ou}var Mu=zu;var Fu=Ho("length");var Au=Fu;var _u="\\ud800-\\udfff",Du="\\u0300-\\u036f",Iu="\\ufe20-\\ufe2f",Tu="\\u20d0-\\u20ff",Pu=Du+Iu+Tu,$u="\\ufe0e\\ufe0f";var Uu="\\u200d";var Hu=RegExp("["+Uu+_u+Pu+$u+"]");function Zu(t){return Hu.test(t)}var Bu=Zu;var Nu="\\ud800-\\udfff",Vu="\\u0300-\\u036f",Wu="\\ufe20-\\ufe2f",Gu="\\u20d0-\\u20ff",qu=Vu+Wu+Gu,Ku="\\ufe0e\\ufe0f";var Xu="["+Nu+"]",Yu="["+qu+"]",Ju="\\ud83c[\\udffb-\\udfff]",Qu="(?:"+Yu+"|"+Ju+")",tc="[^"+Nu+"]",ec="(?:\\ud83c[\\udde6-\\uddff]){2}",rc="[\\ud800-\\udbff][\\udc00-\\udfff]",nc="\\u200d";var ic=Qu+"?",oc="["+Ku+"]?",sc="(?:"+nc+"(?:"+[tc,ec,rc].join("|")+")"+oc+ic+")*",ac=oc+ic+sc,uc="(?:"+[tc+Yu+"?",Yu,ec,rc,Xu].join("|")+")";var cc=RegExp(Ju+"(?="+Ju+")|"+uc+ac,"g");function lc(t){var e=cc.lastIndex=0;while(cc.test(t)){++e}return e}var hc=lc;function fc(t){return Bu(t)?hc(t):Au(t)}var dc=fc;var vc="[object Map]",gc="[object Set]";function pc(t){if(t==null){return 0}if(re(t)){return Mu(t)?dc(t):t.length}var e=Ri(t);if(e==vc||e==gc){return t.size}return qt(t).length}var Cc=pc;class wc extends Ys{get hasSorting(){return!!this.sorting}constructor(t){super(t);this.revogrid=t;this.sorting=null;this.sortingFunc=null;const e=({detail:t})=>{if(this.hasSorting){const t=this.emit("beforesourcesortingapply");if(t.defaultPrevented){return}}const e=this.setData(t.source,t.type);if(e){t.source=e}};const r=async({detail:{order:t}})=>{const e=await this.revogrid.getColumns();const r={};for(let n in t){const i=ta.getColumnByProp(e,n);const o=(i===null||i===void 0?void 0:i.cellCompare)||this.defaultCellCompare;r[n]=t[n]=="desc"?this.descCellCompare(o):o}this.sort(t,r)};const n=async t=>{var e,r;if(t.defaultPrevented){return}if(!t.detail.column.sortable){return}this.headerclick(t.detail.column,t.detail.index,(r=(e=t.detail)===null||e===void 0?void 0:e.originalEvent)===null||r===void 0?void 0:r.shiftKey)};this.addEventListener("beforesourceset",e);this.addEventListener("aftercolumnsset",r);this.addEventListener("initialHeaderClick",n)}async headerclick(t,e,r){let n=this.getNextOrder(t.order);const i=this.emit("beforesorting",{column:t,order:n,additive:r});if(i.defaultPrevented){return}n=i.detail.order;const o=await this.revogrid.updateColumnSorting(i.detail.column,e,n,r);const s=this.emit("beforesortingapply",{column:o,order:n,additive:r});if(s.defaultPrevented){return}n=s.detail.order;const a=(t===null||t===void 0?void 0:t.cellCompare)||this.defaultCellCompare;const u=n=="asc"?a:n=="desc"?this.descCellCompare(a):undefined;if(r&&this.sorting){const e={};const r={};Object.assign(e,this.sorting);Object.assign(r,this.sortingFunc);if(t.prop in e&&Cc(e)>1&&n===undefined){delete e[t.prop];delete r[t.prop]}else{e[t.prop]=n;r[t.prop]=u}this.sort(e,r)}else{this.sort({[t.prop]:n},{[t.prop]:u})}}setData(t,e){if(e==="rgRow"&&this.sortingFunc){return this.sortItems(t,this.sortingFunc)}}async sort(t,e){if(!Cc(t)){this.sorting=null;this.sortingFunc=null;return}this.sorting=t;this.sortingFunc=e;const r=await this.revogrid.getSourceStore();const n=r.get("source");const i=this.sortIndexByItems([...r.get("proxyItems")],n,this.sortingFunc);_s(r,{proxyItems:i,source:[...n]});this.emit("afterSortingApply")}defaultCellCompare(t,e,r){var n,i;const o=(n=e[t])===null||n===void 0?void 0:n.toString().toLowerCase();const s=(i=r[t])===null||i===void 0?void 0:i.toString().toLowerCase();return o==s?0:o>s?1:-1}descCellCompare(t){return(e,r,n)=>-1*t(e,r,n)}sortIndexByItems(t,e,r){for(let e in r){if(typeof r[e]==="undefined"){return[...Array(t.length).keys()]}}return t.sort(((t,n)=>{let i=0;for(let o in r){const s=r[o];const a=e[t];const u=e[n];i=s(o,a,u);if(i){break}}return i}))}sortItems(t,e){return t.sort(((t,r)=>{let n=0;for(let i in e){const o=e[i];if(!o){continue}n=o(i,t,r);if(n){break}}return n}))}getNextOrder(t){switch(t){case undefined:return"asc";case"asc":return"desc";case"desc":return undefined}}}function mc(t,e,r){if(t===t){if(r!==undefined){t=t<=r?t:r}if(e!==undefined){t=t>=e?t:e}}return t}var bc=mc;var Lc=4294967295;function xc(t){return t?bc(as(t),0,Lc):0}var yc=xc;function kc(t,e,r,n){var i=t.length;r=as(r);if(r<0){r=-r>i?0:i+r}n=n===undefined||n>i?i:as(n);if(n<0){n+=i}n=r>n?0:yc(n);while(r<n){t[r++]=e}return t}var Ec=kc;function Sc(t,e,r,n){var i=t==null?0:t.length;if(!i){return[]}if(r&&typeof r!="number"&&js(t,e,r)){r=0;n=i}return Ec(t,e,r,n)}var jc=Sc;const Rc=`${Ba}-depth`;const Oc=`${Ba}-name`;const zc=`${Ba}-id`;const Mc=`${Ba}-value`;const Fc=`${Ba}-column`;const Ac=`${Ba}-expanded`;const _c=`${Ba}-original-index`;const Dc=`group-expand`;const Ic=`groupExpandClick`;const Tc="rgRow";function Pc(t,e,{prevExpanded:r,expandedAll:n}){const i=new Map;t.forEach(((t,r)=>{const n=e.map((e=>t[e]||null));const o=n.pop();let s=i;n.forEach((t=>{if(!s.has(t)){s.set(t,new Map)}s=s.get(t)}));if(!s.has(o)){s.set(o,[])}t[_c]=r;const a=s.get(o);a.push(t)}));let o=-1;const s=e.length;const a={};const u={};const c={};const l=[];function h(t,e,i){const s=e.length;t.forEach(((t,f)=>{const d=[...e,f];const v=d.join(",");const g=i&&(!!n||!!(r===null||r===void 0?void 0:r[v]));l.push({[Oc]:f,[Rc]:s,[zc]:JSON.stringify(d),[Mc]:v,[Ac]:g});o+=1;if(!g&&s){a[o]=true}if(Array.isArray(t)){t.forEach((t=>{o+=1;if(!g){a[o]=true}u[t[_c]]=o;const e=d.map(((t,e)=>d.slice(0,e+1).join(",")));e.forEach((t=>{if(!c[t]){c[t]=[]}c[t].push(o)}))}));l.push(...t)}else{h(t,d,g)}}))}h(i,[],true);return{sourceWithGroups:l,depth:s,trimmed:a,oldNewIndexMap:u,childrenByGroup:c}}function $c(t){return t&&t[Oc]}function Uc(t){return t&&typeof t[Oc]!=="undefined"}function Hc(t){return t&&typeof t[Fc]!=="undefined"}function Zc(t,e){const r=t.length;let n=0;for(;n<r;n++){if(t[n]!==e[n]){return n}}return n}function Bc(t){const e=JSON.parse(t);if(!Array.isArray(e)){return null}return e}function Nc(t,e,r){const n=Bc(r[zc]);if(!n){return false}const i=Zc(t,n);return e[Rc]<i}const Vc={mime:"text/csv",fileKind:"csv",bom:true,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""};const Wc=String.fromCharCode(13);const Gc=String.fromCharCode(10);const qc=String.fromCharCode(34);const Kc=String.fromCharCode(65279);const Xc=new RegExp('"',"g");class Yc{constructor(t={}){this.options=Object.assign(Object.assign({},Vc),t)}doExport({data:t,headers:e,props:r}){let n=this.options.bom?Kc:"";if((e===null||e===void 0?void 0:e.length)>0){e.forEach((t=>{if(!t.length){return}n+=this.prepareHeader(t,this.options.columnDelimiter);n+=this.options.rowDelimiter}))}t.forEach(((t,e)=>{if(e>0){n+=this.options.rowDelimiter}if(Uc(t)){n+=this.parseCell($c(t),this.options.columnDelimiter);return}n+=r.map((e=>this.parseCell(t[e],this.options.columnDelimiter))).join(this.options.columnDelimiter)}));return n}prepareHeader(t,e){let r="";const n=t.map((t=>this.parseCell(t,e,true)));r+=n.join(e);return r}parseCell(t,e,r=false){let n=t;if(typeof t!=="string"){n=JSON.stringify(t)}const i=[Wc,qc,Gc,e];if(typeof n==="undefined"){return""}if(n!==""&&(r||i.some((t=>n.indexOf(t)>=0)))){return`"${n.replace(Xc,'""')}"`}return n}}var Jc;(function(t){t["csv"]="csv"})(Jc||(Jc={}));class Qc extends Ys{async exportString(t={},e=Jc.csv){const r=await this.beforeexport();if(!r){return null}return this.formatter(e,t).doExport(r)}async exportBlob(t={},e=Jc.csv){return await this.getBlob(this.formatter(e,t))}async exportFile(t={},e=Jc.csv){const r=this.formatter(e,t);const n=await this.getBlob(r);const i=window.URL||window.webkitURL;const o=document.createElement("a");const{filename:s,fileKind:a}=r.options;const u=`${s}.${a}`;const c=i.createObjectURL(n);o.style.display="none";o.setAttribute("href",c);o.setAttribute("download",u);this.revogrid.appendChild(o);o.dispatchEvent(new MouseEvent("click"));this.revogrid.removeChild(o);await uu(120);i.revokeObjectURL(c)}async getBlob(t){const e=`${t.options.mime};charset=${t.options.encoding}`;if(typeof Blob!=="undefined"){const r=await this.beforeexport();if(!r){return null}return new Blob([t.doExport(r)],{type:e})}return null}async beforeexport(){let t=await this.getData();const e=this.emit("beforeexport",{data:t});if(e.defaultPrevented){return null}return e.detail.data}async getData(){const t=await this.getSource();const e=[];const r=[];Vs.forEach(((t,n)=>{r.push(this.getColPerSource(t).then((t=>e[n]=t)))}));await Promise.all(r);const n={headers:[],props:[]};for(let t of e){t.headers.forEach(((t,e)=>{if(!n.headers[e]){n.headers[e]=[]}n.headers[e].push(...t)}));n.props.push(...t.props)}return Object.assign({data:t},n)}async getColPerSource(t){const e=await this.revogrid.getColumnStore(t);const r=e.get("source");const n=e.get("items");const i=e.get("groupingDepth");const o=e.get("groups");const s=[];const a=[];const u=n.reduce(((t,e,n)=>{const i=r[e].prop;s.push(r[e].name||"");a.push(i);t[i]=n;return t}),{});const c=this.getGroupHeaders(i,o,n,u);c.push(s);return{headers:c,props:a}}getGroupHeaders(t,e,r,n){const i=[];const o=jc(new Array(r.length),"");for(let r=0;r<t;r++){const t=[...o];i.push(t);if(!e[r]){continue}const s=e[r];s.forEach((e=>{const r=this.findGroupStartIndex(e.ids,n);if(typeof r==="number"){t[r]=e.name}}))}return i}findGroupStartIndex(t,e){let r;t.forEach((t=>{const n=e[t];if(typeof n==="number"){if(typeof r!=="number"||r>n){r=n}}}));return r}async getSource(){const t=[];const e=[];Ns.forEach((r=>{const n=[];t.push(n);const i=this.revogrid.getVisibleSource(r).then((t=>n.push(...t)));e.push(i)}));await Promise.all(e);return t.reduce(((t,e)=>{t.push(...e);return t}),[])}formatter(t,e={}){switch(t){case Jc.csv:return new Yc(e);default:throw new Error("Unknown format")}}}function tl(t,e){const r=e[t];const n=r[Mc];const i={};let o=t+1;const s=e.length;while(o<s){const t=e[o];if(Uc(t)){const e=t[Mc];if(!e.length||!e.startsWith(n+",")){break}t[Ac]=false}i[o++]=true}r[Ac]=false;return{trimmed:i}}function el(t,e,r){const n=r[t];const i=e[n];const o=Bc(i[zc]);const s={};if(!o){return{trimmed:s}}const a=[];i[Ac]=true;let u=n+1;const c=e.length;let l=0;while(u<c){const t=e[u];const r=Uc(t);if(r){if(!Nc(o,i,t)){break}else if(!l){l=t[Rc]}}if(!l||r&&l===t[Rc]){s[u]=false;a.push(u)}u++}const h={trimmed:s};if(a.length){const e=[...r];e.splice(t+1,0,...a);h.items=e}return h}const rl="grouping";function nl(t,e,r){const n={};for(let i in t){if(i===rl){continue}const o=t[i];const s={};for(let t in o){let a=e[t];if(r){a=r[a]}if(o[t]){s[a]=true;if(a!==parseInt(t,10)){n[i]=s}}}}return n}class il extends Ys{get hasProps(){var t,e,r;return((t=this.options)===null||t===void 0?void 0:t.props)&&((r=(e=this.options)===null||e===void 0?void 0:e.props)===null||r===void 0?void 0:r.length)}get store(){return this.providers.dataProvider.stores[Tc].store}get rowItems(){return this.store.get("items")}get trimmed(){return this.store.get("trimmed")}constructor(t,e){super(t);this.revogrid=t;this.providers=e}onFocus(t){if(Uc(t.detail.model)){t.preventDefault()}}onExpand({virtualIndex:t}){const{source:e}=this.getSource();let r=this.trimmed[rl];let n=Ps(this.store,t);const i=e[n];const o=i[Ac];if(!o){const{trimmed:n,items:i}=el(t,e,this.rowItems);r=Object.assign(Object.assign({},r),n);if(i){Zs(this.store,i)}}else{const{trimmed:t}=tl(n,e);r=Object.assign(Object.assign({},r),t);this.revogrid.clearFocus()}this.store.set("source",e);this.revogrid.addTrimmed(r,rl)}getSource(t=false){const e=this.store.get("source");const r=this.store.get("proxyItems");let n=0;return r.reduce(((r,i)=>{const o=e[i];if(!t){r.source.push(o);return r}if(!Uc(o)){r.source.push(o);r.oldNewIndexes[i]=n;n++}else{if(o[Ac]){r.prevExpanded[o[Mc]]=true}}return r}),{source:[],prevExpanded:{},oldNewIndexes:{}})}setColumnGrouping(t){if(t===null||t===void 0?void 0:t.length){t[0][Fc]=true;return true}return false}setColumns({columns:t}){for(let e of Vs){if(this.setColumnGrouping(t[e])){break}}}onDrag(t){const{from:e,to:r}=t.detail;const n=r-e>=0;const{source:i}=this.getSource();const o=this.rowItems;let s=n?e:r;const a=n?r:e;for(;s<a;s++){const e=i[o[s]];const r=Uc(e);if(r){t.preventDefault();return}}}beforeTrimmedApply(t,e){if(e===Su){const e=this.store.get("source");for(let r in t){if(t[r]&&Uc(e[r])){t[r]=false}}}}subscribe(){this.addEventListener("beforesourceset",(({detail:t})=>this.onDataSet(t)));this.addEventListener("beforecolumnsset",(({detail:t})=>this.setColumns(t)));this.addEventListener("beforetrimmed",(({detail:{trimmed:t,trimmedType:e}})=>this.beforeTrimmedApply(t,e)));this.addEventListener("afterSortingApply",(()=>this.doSourceUpdate(Object.assign({},this.options))));this.addEventListener("beforecellfocus",(t=>this.onFocus(t)));this.addEventListener("roworderchanged",(t=>this.onDrag(t)));this.addEventListener(Ic,(({detail:t})=>this.onExpand(t)))}doSourceUpdate(t){var e;if(!this.hasProps){return}const{source:r,prevExpanded:n,oldNewIndexes:i}=this.getSource(true);const{sourceWithGroups:o,depth:s,trimmed:a,oldNewIndexMap:u,childrenByGroup:c}=Pc(r,((e=this.options)===null||e===void 0?void 0:e.props)||[],Object.assign({prevExpanded:n},t));this.providers.dataProvider.setData(o,Tc,{depth:s,customRenderer:t===null||t===void 0?void 0:t.groupLabelTemplate},true);this.updateTrimmed(a,c,i,u)}onDataSet(t){var e;if(!this.hasProps||!(t===null||t===void 0?void 0:t.source)||!t.source.length){return}const r=t.source.filter((t=>!Uc(t)));const n=this.revogrid.grouping||{};const{sourceWithGroups:i,depth:o,trimmed:s,oldNewIndexMap:a,childrenByGroup:u}=Pc(r,((e=this.options)===null||e===void 0?void 0:e.props)||[],Object.assign({},n||{}));t.source=i;this.providers.dataProvider.setGrouping({depth:o});this.updateTrimmed(s,u,a)}setGrouping(t){this.clearSubscriptions();this.options=t;if(!t.props||!Object.keys(t.props).length){this.clearGrouping();return}const{source:e}=this.getSource();if(e.length){this.doSourceUpdate(Object.assign({},t))}for(let t of Vs){if(this.setColumnGrouping(this.providers.columnProvider.getColumns(t))){this.providers.columnProvider.refreshByType(t);break}}this.subscribe()}clearGrouping(){Vs.forEach((t=>{const e=this.providers.columnProvider.getColumns(t);let r=false;e.forEach((t=>{if(Hc(t)){delete t[Fc];r=true}}));if(r){this.providers.columnProvider.refreshByType(t)}}));const{source:t,oldNewIndexes:e}=this.getSource(true);this.providers.dataProvider.setData(t,Tc,undefined,true);this.updateTrimmed(undefined,undefined,e)}updateTrimmed(t={},e={},r,n){const i=nl(this.trimmed,r,n);for(let t in i){this.revogrid.addTrimmed(i[t],t)}this.revogrid.addTrimmed(Object.assign({},t),rl)}}class ol{constructor(){this.parentY=0}start(t,{pos:e,text:r,event:n}){var i;const{top:o}=t.getBoundingClientRect();this.parentY=o;if(this.text){this.text.innerText=r}this.move(e);this.moveTip({x:n.x,y:n.y});(i=this.el)===null||i===void 0?void 0:i.classList.remove("hidden")}end(){var t;(t=this.el)===null||t===void 0?void 0:t.classList.add("hidden")}move(t){this.moveElement(t.end-this.parentY)}moveTip({x:t,y:e}){if(!this.draggable){return}this.draggable.style.left=`${t}px`;this.draggable.style.top=`${e}px`}moveElement(t){if(!this.rgRow){return}this.rgRow.style.transform=`translateY(${t}px)`}}const sl=({ref:t})=>{const e=new ol;t(e);return r("div",{class:"draggable-wrapper hidden",ref:t=>e.el=t},r("div",{class:"draggable",ref:t=>e.draggable=t},r("span",{class:"revo-alt-icon"}),r("span",{ref:t=>e.text=t})),r("div",{class:"drag-position",ref:t=>e.rgRow=t}))};const al=({viewports:t,dimensions:e,orderRef:n,nakedClick:i,registerElement:o,onScroll:s},a)=>{const u=(t,e)=>{if(e===t.target){i(t)}};let c;const l="rgRow";const h="rgCol";return[r("div",{class:"main-viewport",ref:t=>c=t,onClick:t=>u(t,c)},r("div",{class:"viewports"},a,r("revogr-scroll-virtual",{class:"vertical",dimension:l,viewportStore:t[l].store,dimensionStore:e[l].store,ref:t=>o(t,"rowScroll"),onScrollVirtual:t=>s(t.detail)}),r(sl,{ref:n}))),r("revogr-scroll-virtual",{class:"horizontal",dimension:h,viewportStore:t[h].store,dimensionStore:e[h].store,ref:t=>o(t,"colScroll"),onScrollVirtual:t=>s(t.detail)})]};function ul(t){return t===gl}function cl(t,e){const r={};let n=["x","y"];for(let e of n){if(t[e]<0){r[e]=t[e];return r}}for(let i of n){if(t[i]>=e[i]){r[i]=t[i]-e[i];return r}}return null}function ll(t,e){const r=Object.assign({},t);let n=["x","y"];for(let e of n){if(t[e]<0){r[e]=0}}for(let i of n){if(t[i]>=e[i]){r[i]=e[i]-1}}return r}function hl(t,e){return t&&e?{x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x1:Math.max(t.x,e.x),y1:Math.max(t.y,e.y)}:null}function fl(t){return t.x===t.x1&&t.y===t.y1}function dl(){return{range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}}class vl{constructor(){this.unsubscribe=[];this.store=Ls(dl());this.store.on("set",((t,e)=>{if(t==="tempRange"&&!e){this.store.set("tempRangeType",null)}}))}onChange(t,e){this.unsubscribe.push(this.store.onChange(t,e))}clearFocus(){_s(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,e){if(!e){_s(this.store,{focus:t})}else{_s(this.store,{focus:t,range:hl(t,e),edit:null,tempRange:null})}}setTempArea(t){_s(this.store,{tempRange:t===null||t===void 0?void 0:t.area,tempRangeType:t===null||t===void 0?void 0:t.type,edit:null})}clearTemp(){_s(this.store,{tempRange:null})}setRangeArea(t){_s(this.store,{range:t,edit:null,tempRange:null})}setRange(t,e){this.setRangeArea(hl(t,e))}setLastCell(t){_s(this.store,{lastCell:t})}setEdit(t){const e=this.store.get("focus");if(e&&typeof t==="string"){_s(this.store,{edit:{x:e.x,y:e.y,val:t}});return}_s(this.store,{edit:null})}dispose(){this.unsubscribe.forEach((t=>t()));this.store.dispose()}}const gl=-1;class pl{constructor(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.storesByType={};this.storesXToType={};this.storesYToType={};this.sections=[]}get focusedStore(){var t;for(let e in this.stores){for(let r in this.stores[e]){const n=(t=this.stores[e][r])===null||t===void 0?void 0:t.store.get("focus");if(n){return{entity:this.stores[e][r],cell:n,position:{x:parseInt(r,10),y:parseInt(e,10)}}}}}return null}get edit(){var t;return(t=this.focusedStore)===null||t===void 0?void 0:t.entity.store.get("edit")}get focused(){var t;return(t=this.focusedStore)===null||t===void 0?void 0:t.entity.store.get("focus")}get selectedRange(){var t;return(t=this.focusedStore)===null||t===void 0?void 0:t.entity.store.get("range")}registerSection(t){if(!t){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(t)===-1){this.sections.push(t)}}beforeUpdate(){if(this.dirty){for(let t in this.stores){for(let e in this.stores[t]){this.stores[t][e].dispose()}}this.dirty=false}}registerColumn(t,e){if(ul(t)){return new vl}if(this.columnStores[t]){return this.columnStores[t]}this.columnStores[t]=new vl;this.storesByType[e]=t;this.storesXToType[t]=e;return this.columnStores[t]}registerRow(t,e){if(ul(t)){return new vl}if(this.rowStores[t]){return this.rowStores[t]}this.rowStores[t]=new vl;this.storesByType[e]=t;this.storesYToType[t]=e;return this.rowStores[t]}register({x:t,y:e}){var r,n;if(ul(t)||ul(e)){return new vl}if(!this.stores[e]){this.stores[e]={}}if(this.stores[e][t]){return this.stores[e][t]}this.stores[e][t]=new vl;(r=this.stores[e][t])===null||r===void 0?void 0:r.onChange("range",(r=>{this.columnStores[t].setRangeArea(r);this.rowStores[e].setRangeArea(r)}));(n=this.stores[e][t])===null||n===void 0?void 0:n.store.on("dispose",(()=>this.destroy(t,e)));return this.stores[e][t]}destroy(t,e){var r,n;(r=this.columnStores[t])===null||r===void 0?void 0:r.dispose();(n=this.rowStores[e])===null||n===void 0?void 0:n.dispose();delete this.rowStores[e];delete this.columnStores[t];if(this.storesXToType[t]){const e=this.storesXToType[t];delete this.storesXToType[t];delete this.storesByType[e]}if(this.storesYToType[e]){const t=this.storesYToType[e];delete this.storesYToType[e];delete this.storesByType[t]}if(this.stores[e]){delete this.stores[e][t]}if(!Object.keys(this.stores[e]||{}).length){delete this.stores[e]}}setEditByCell(t,e){this.focusByCell(t,e,e);this.setEdit("")}focusByCell(t,e,r){const n=this.stores[t.y][t.x];this.focus(n,{focus:e,end:r})}focus(t,{focus:e,end:r}){let n;for(let e in this.stores){for(let r in this.stores[e]){const i=this.stores[e][r];if(i!==t){i.clearFocus()}else{n={x:parseInt(r,10),y:parseInt(e,10)}}}}if(!n){return null}const i=t.store.get("lastCell");const o=cl(e,i);let s;if(o){for(let t in o){let e=t;let r;switch(e){case"x":r=this.getXStores(n.y);break;case"y":r=this.getYStores(n.x);break}if(o[e]>=0){s=r[++n[e]]}else{s=r[--n[e]];const t=s===null||s===void 0?void 0:s.store.get("lastCell");if(t){o[e]=t[e]+o[e]}}}}if(s){let t=Object.assign(Object.assign({},e),o);this.focus(s,{focus:t,end:t});return null}e=ll(e,i);r=ll(r,i);t.setFocus(e,r);return e}clearAll(){var t;for(let e in this.stores){for(let r in this.stores[e]){(t=this.stores[e][r])===null||t===void 0?void 0:t.clearFocus()}}}setEdit(t){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(t)}selectAll(){for(let t in this.stores){for(let e in this.stores[t]){const r=this.stores[t][e];if(!r){continue}const n=r.store.get("lastCell");r.setRange({x:0,y:0},{x:n.x-1,y:n.y-1})}}}getXStores(t){return this.stores[t]}getYStores(t){const e={};for(let r in this.stores){e[r]=this.stores[r][t]}return e}}const Cl="header";const wl="footer";const ml="content";const bl="data";function Ll(t,e){return{x:t.viewports[t.colType].store.get("realCount"),y:t.viewports[e].store.get("realCount")}}class xl{constructor(t,e){var r,n;this.sv=t;(r=this.sv.selectionStoreConnector)===null||r===void 0?void 0:r.beforeUpdate();this.columns=this.getViewportColumnData(e);(n=this.sv.scrollingService)===null||n===void 0?void 0:n.unregister()}onColumnResize(t,{detail:e},r){var n;(n=this.sv.dimensionProvider)===null||n===void 0?void 0:n.setCustomSizes(t,e,true);const i=ra.reduce(e||{},((t,e,n)=>{const i=parseInt(n,10);const o=Us(r,i);if(o){t[i]=Object.assign(Object.assign({},o),{size:e})}return t}),{});this.sv.resize(i)}getViewportColumnData(t){const e=[];let r=0;Vs.forEach((n=>{const i=this.sv.columnProvider.stores[n].store;if(!i.get("items").length){return}const o={colType:n,position:{x:r,y:1},contentHeight:t,fixWidth:n!=="rgCol",uuid:`${this.sv.uuid}-${r}`,viewports:this.sv.viewportProvider.stores,dimensions:this.sv.dimensionProvider.stores,rowStores:this.sv.dataProvider.stores,colStore:i,onHeaderresize:t=>this.onColumnResize(n,t,i)};if(n==="rgCol"){o.onResizeViewport=t=>{var e;return(e=this.sv.viewportProvider)===null||e===void 0?void 0:e.setViewport(t.detail.dimension,{virtualSize:t.detail.size})}}const s=this.gatherColumnData(o);const a=this.registerCol(s.position.x,n);const u=this.dataViewPort(o).reduce(((t,e)=>{const r=this.registerSegment(e.position);r.setLastCell(e.lastCell);const n=this.registerRow(e.position.y,e.type);const i=Object.assign(Object.assign({},e),{rowSelectionStore:n,segmentSelectionStore:r.store,ref:t=>this.sv.selectionStoreConnector.registerSection(t),onSetRange:t=>r.setRangeArea(t.detail),onSetTempRange:t=>r.setTempArea(t.detail),onFocusCell:t=>{r.clearFocus();this.sv.selectionStoreConnector.focus(r,t.detail)}});t.push(i);return t}),[]);e.push(Object.assign(Object.assign({},s),{columnSelectionStore:a,dataPorts:u}));r++}));return e}registerSegment(t){return this.sv.selectionStoreConnector.register(t)}registerRow(t,e){return this.sv.selectionStoreConnector.registerRow(t,e).store}registerCol(t,e){return this.sv.selectionStoreConnector.registerColumn(t,e).store}gatherColumnData(t){const e=t.uuid;const r=t.dimensions[t.colType].store.get("realSize");const n={contentWidth:r,class:t.colType,[`${ja}`]:t.uuid,contentHeight:t.contentHeight,key:t.colType,onResizeViewport:t.onResizeViewport};if(t.fixWidth){n.style={minWidth:`${r}px`}}const i={parent:e,colData:$s(t.colStore),dimensionCol:t.dimensions[t.colType].store,groups:t.colStore.get("groups"),groupingDepth:t.colStore.get("groupingDepth"),onHeaderresize:t.onHeaderresize};return{prop:n,type:t.colType,position:t.position,headerProp:i,parent:e,viewportCol:t.viewports[t.colType].store}}dataViewPort(t){const e={rowPinStart:Cl,rgRow:ml,rowPinEnd:wl};let r=0;return Ns.reduce(((n,i)=>{const o=t.viewports[i].store.get("realCount")||i==="rgRow";const s=Object.assign(Object.assign({},t),{position:Object.assign(Object.assign({},t.position),{y:o?r:gl})});n.push(this.dataPartition(s,i,e[i],i!=="rgRow"));if(o){r++}return n}),[])}dataPartition(t,e,r,n){return{colData:t.colStore,viewportCol:t.viewports[t.colType].store,viewportRow:t.viewports[e].store,lastCell:Ll(t,e),slot:r,type:e,canDrag:!n,position:t.position,uuid:`${t.uuid}-${t.position.x}-${t.position.y}`,dataStore:t.rowStores[e].store,dimensionCol:t.dimensions[t.colType].store,dimensionRow:t.dimensions[e].store,style:n?{height:`${t.dimensions[e].store.get("realSize")}px`}:undefined}}scrollToCell(t){for(let e in t){const r=t[e];this.sv.scrollingService.onScroll({dimension:e==="x"?"rgCol":"rgRow",coordinate:r})}}clearFocused(){this.sv.selectionStoreConnector.clearAll()}clearEdit(){this.sv.selectionStoreConnector.setEdit(false)}getFocused(){const t=this.sv.selectionStoreConnector.focusedStore;if(!t){return null}const e=this.sv.selectionStoreConnector.storesXToType[t.position.x];const r=this.sv.columnProvider.getColumn(t.cell.x,e);const n=this.sv.selectionStoreConnector.storesYToType[t.position.x];const i=this.sv.dataProvider.getModel(t.cell.y,n);return{column:r,model:i,cell:t.cell,colType:e,rowType:n}}getStoreCoordinateByType(t,e){const r=this.sv.selectionStoreConnector.storesByType;const n={x:r[t],y:r[e]};return n}setFocus(t,e,r,n){var i;(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.focusByCell(this.getStoreCoordinateByType(t,e),r,n)}getSelectedRange(){return this.sv.selectionStoreConnector.selectedRange}setEdit(t,e,r,n){var i;(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.setEditByCell(this.getStoreCoordinateByType(r,n),{x:e,y:t})}}const yl=({resize:t,editors:e,rowClass:n,readonly:i,range:o,columns:s,useClipboard:a,columnFilter:u,applyEditorChangesOnClose:c,additionalData:l,onCancelEdit:h,registerElement:f,onEdit:d,onScroll:v,focusTemplate:g,onSelectAll:p})=>{const C=[];for(let w of s){const s=Object.assign(Object.assign({},w.headerProp),{type:w.type,additionalData:l,viewportCol:w.viewportCol,selectionStore:w.columnSelectionStore,canResize:t,columnFilter:u});const m=[r("revogr-header",Object.assign({},s,{slot:Cl}))];w.dataPorts.forEach(((t,s)=>{const u=w.prop.key+(s+1);const f=r("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,onSelectall:()=>p(),editors:e,readonly:i,range:o,useClipboard:a,onCancelEdit:()=>h(),applyChangesOnClose:c,onSetEdit:({detail:t})=>d(t)}),r("revogr-data",Object.assign({},t,{[ja]:t.uuid},{key:u,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,additionalData:l,slot:bl})),r("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),r("revogr-focus",{colData:t.colData,dataStore:t.dataStore,focusTemplate:g,rowType:t.type,colType:w.type,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));m.push(f)}));C.push(r("revogr-viewport-scroll",Object.assign({},w.prop,{ref:t=>f(t,w.prop.key),onScrollViewport:t=>v(t.detail,w.prop.key)}),m))}return C};class kl{constructor(t){this.setViewport=t;this.elements={}}async onScroll(t,e){let r;for(let n in this.elements){if(t.dimension==="rgCol"&&n==="headerRow"){continue}else if(this.isPinnedColumn(e)&&t.dimension==="rgCol"){if(n===e||!t.delta){continue}for(let e of this.elements[n]){e.changeScroll&&(r=e.changeScroll(t))}}else{for(let e of this.elements[n]){e.setScroll(t)}}}let n=t;if(r){n=await r}this.setViewport(n)}isPinnedColumn(t){return["colPinStart","colPinEnd"].indexOf(t)>-1}registerElements(t){this.elements=t}registerElement(t,e){if(!this.elements[e]){this.elements[e]=[]}if(t){this.elements[e].push(t)}else if(this.elements[e]){delete this.elements[e]}}unregister(){delete this.elements;this.elements={}}}const El=10;const Sl=(t,e)=>(e===null||e===void 0?void 0:e.size)||(t.toString().length+1)*El;class jl extends Ys{constructor(t,e){super(t);this.providers=e;this.stretchedColumn=null;this.scrollSize=su(document);const r=({detail:{columns:t}})=>this.applyStretch(t);this.addEventListener("beforecolumnapplied",r)}setScroll({type:t,hasScroll:e}){var r;if(t==="rgRow"&&this.stretchedColumn&&((r=this.stretchedColumn)===null||r===void 0?void 0:r.initialSize)===this.stretchedColumn.size){if(e){this.stretchedColumn.size-=this.scrollSize;this.apply();this.dropChanges()}}}activateChanges(){const t=({detail:t})=>this.setScroll(t);this.addEventListener("scrollchange",t)}dropChanges(){this.stretchedColumn=null;this.removeEventListener("scrollchange")}apply(){if(!this.stretchedColumn){return}const t="rgCol";const e=this.providers.dimensionProvider.stores[t].store.get("sizes");this.providers.dimensionProvider.setCustomSizes(t,Object.assign(Object.assign({},e),{[this.stretchedColumn.index]:this.stretchedColumn.size}),true)}applyStretch(t){this.dropChanges();let e=this.revogrid.clientWidth-1;ra.each(t,((t,r)=>{const n=this.providers.dimensionProvider.stores[r].store.get("realSize");e-=n}));if(this.revogrid.rowHeaders){const t=this.providers.dataProvider.stores.rgRow.store.get("source").length;const r=this.revogrid.rowHeaders;const n=Sl(t,typeof r==="object"?r:undefined);if(n){e-=n}}if(e>0){const r=t.rgCol.length-1;const n=t.rgCol[r];const i=(n===null||n===void 0?void 0:n.size)||this.revogrid.colSize||0;const o=e+i-1;if(n&&!n.autoSize&&i<o){this.stretchedColumn={initialSize:o,index:r,size:o};this.apply();this.activateChanges()}}}}function Rl(t){return!!t.applyStretch}const Ol=(t=[])=>Yo(t,((t,e)=>{if(!t[e.type]){t[e.type]={}}if(e.size){if(!t[e.type].sizes){t[e.type].sizes={}}t[e.type].sizes[e.index]=e.size}return t}),{});const zl=(t=[])=>Yo(t,((t,e)=>{if(!t[e.type]){t[e.type]=[]}if(e.size){t[e.type].push(e.index)}return t}),{});const Ml="column-drag-start";class Fl{constructor(){this.offset=0}renderAutoscroll(t,e){if(!e){return}this.autoscrollEl=document.createElement("div");this.autoscrollEl.classList.add("drag-auto-scroll-y");e.appendChild(this.autoscrollEl)}autoscroll(t,e,r="translateX"){if(!this.autoscrollEl){return}const n=10;const i=Math.min(t+n,e-3);this.autoscrollEl.style.transform=`${r}(${i}px)`;this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})}start(t,{dataEl:e,gridRect:r,scrollEl:n,gridEl:i},o="left"){i.classList.add(Ml);const s=n.getBoundingClientRect();if(s){this.offset=s[o]-r[o]}this.renderAutoscroll(t,e)}stop(t){var e;t.classList.remove(Ml);if(this.element){this.element.hidden=true}this.offset=0;(e=this.autoscrollEl)===null||e===void 0?void 0:e.remove();this.autoscrollEl=undefined}showHandler(t,e,r="translateX"){if(!this.element){return}if(this.offset){t=Math.max(t,this.offset)}t=Math.min(t,e);this.element.style.transform=`${r}(${t}px)`;this.element.hidden=false}render(){return r("div",{class:"drag-position-y",hidden:true,ref:t=>this.element=t})}}function Al(t,e,r){const n=new CustomEvent(e,{detail:r,cancelable:true,bubbles:true});t===null||t===void 0?void 0:t.dispatchEvent(n);return n}const _l="column-click";const Dl="column-mouse-move";const Il="column-drag-end";const Tl="before-column-drag-end";const Pl="column-drag-start";class $l extends Ys{constructor(t,e){super(t);this.revogrid=t;this.providers=e;this.moveFunc=m((t=>this.doMove(t)),5);this.staticDragData=null;this.dragData=null;this.localSubscriptions={};this.orderUi=new Fl;t.registerVNode([this.orderUi.render()]);t.classList.add("column-draggable");this.localSubscriptions["mouseleave"]={target:document,callback:t=>this.onMouseOut(t)};this.localSubscriptions["mouseup"]={target:document,callback:t=>this.onMouseUp(t)};this.localSubscriptions["mousemove"]={target:document,callback:t=>this.move(t)};this.addEventListener(_l,(({detail:t})=>this.dragStart(t)))}dragStart({event:t,data:e}){if(t.defaultPrevented){return}const{defaultPrevented:r}=Al(this.revogrid,Pl,e);if(r){return}this.clearOrder();const{mouseleave:n,mouseup:i,mousemove:o}=this.localSubscriptions;n.target.addEventListener("mouseleave",n.callback);i.target.addEventListener("mouseup",i.callback);const s=t.target.closest("revogr-header");const a=t.target.closest("revogr-viewport-scroll");if(!s||!a){return}if(Qs(e)){return}const u=this.getDimension(e.pin||"rgCol");const c=this.revogrid.getBoundingClientRect();const l=s.getBoundingClientRect();const h=pa(u,Ul(t.x,c.left,l.left-c.left));this.staticDragData={startPos:t.x,startItem:h,data:e,dataEl:s,scrollEl:a,gridEl:this.revogrid,cols:u};this.dragData=this.getData(this.staticDragData);o.target.addEventListener("mousemove",o.callback);this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))}doMove(t){if(!this.staticDragData){return}const e=this.dragData=this.getData(this.staticDragData);if(!e){return}const r=this.staticDragData.startPos;if(Math.abs(r-t.x)>10){const r=Ul(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset);const n=pa(this.staticDragData.cols,r);this.orderUi.autoscroll(r,e.elRect.width);this.orderUi.showHandler(n.end+e.scrollOffset,e.gridRect.width)}}move(t){Al(this.revogrid,Dl,t);this.moveFunc(t)}onMouseOut(t){this.clearOrder()}onMouseUp(t){if(this.dragData){let e=Ul(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset);if(e<0){e=0}const r=pa(this.staticDragData.cols,e);const n=this.providers.column.stores[this.dragData.type].store;const i=[...n.get("items")];const{defaultPrevented:o}=Al(this.revogrid,Tl,Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:r,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]}));if(!o){const t=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice(r.itemIndex,0,...t);n.set("items",i)}Al(this.revogrid,Il,this.dragData)}this.clearOrder()}clearLocalSubscriptions(){Ce(this.localSubscriptions,(({target:t,callback:e},r)=>t.removeEventListener(r,e)))}clearOrder(){this.staticDragData=null;this.dragData=null;this.clearLocalSubscriptions();this.orderUi.stop(this.revogrid)}clearSubscriptions(){super.clearSubscriptions();this.clearLocalSubscriptions()}getData({gridEl:t,dataEl:e,data:r}){const n=t.getBoundingClientRect();const i=e.getBoundingClientRect();const o=i.left-n.left;return{elRect:i,gridRect:n,type:r.pin||"rgCol",scrollOffset:o}}getDimension(t){return this.providers.dimension.stores[t].getCurrentState()}}function Ul(t,e,r){return t-e-r}function Hl(t){return!!t.touches}function Zl(t,e){if(Hl(t)){return t.touches[0][e]||0}return t[e]||0}const Bl=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revo-grid[theme=default]{font-size:12px}revo-grid[theme=default] revogr-header{text-align:center;line-height:30px;background-color:#f8f9fa}revo-grid[theme=default] revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:#61656a}revo-grid[theme=default] revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 #c0c0c0, -1px 0 0 0 #c0c0c0 inset, 0 -1px 0 0 #c0c0c0, 0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] .rowHeaders{background-color:#f8f9fa}revo-grid[theme=default] .rowHeaders revogr-data .rgCell{color:#61656a;box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] .rowHeaders revogr-header{box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 #c0c0c0 inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset, 0 -1px 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data{text-align:center}revo-grid[theme=default] revogr-data .rgRow{line-height:27px;box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] revogr-data .rgCell{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgCell.disabled{background-color:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=material] .viewports{width:100%}revo-grid[theme=material] .rowHeaders{background-color:#f7faff}revo-grid[theme=material] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=material] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=material] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=material] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=material] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=material] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=material] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=material] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial] .viewports{width:100%}revo-grid[theme=darkMaterial] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkMaterial] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkMaterial] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkMaterial] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkMaterial] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact] .viewports{width:100%}revo-grid[theme=darkCompact] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkCompact] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkCompact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkCompact] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkCompact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkCompact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] .viewports{width:100%}revo-grid[theme=compact] .rowHeaders{background-color:#f7faff}revo-grid[theme=compact] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=compact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=compact] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=compact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=compact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=compact] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=compact] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=compact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid{display:block;height:100%;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid.column-draggable.column-drag-start:hover,revo-grid.column-draggable.column-drag-start *:hover{cursor:grabbing}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-height:100%;display:flex;flex-direction:row;align-items:flex-start;max-width:100%}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:#fff;border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 rgba(0, 0, 0, 0.15);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:black;position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:gray;pointer-events:none}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:gray;pointer-events:none}revo-grid .drag-auto-scroll-y{pointer-events:none;position:absolute;left:0;top:0;height:50px;width:1px}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}";const Nl=class{constructor(t){n(this,t);this.contentsizechanged=i(this,"contentsizechanged",7);this.beforeedit=i(this,"beforeedit",7);this.beforerangeedit=i(this,"beforerangeedit",7);this.afteredit=i(this,"afteredit",7);this.beforeautofill=i(this,"beforeautofill",7);this.beforeange=i(this,"beforeange",7);this.afterfocus=i(this,"afterfocus",7);this.roworderchanged=i(this,"roworderchanged",7);this.beforesourcesortingapply=i(this,"beforesourcesortingapply",7);this.beforesortingapply=i(this,"beforesortingapply",7);this.beforesorting=i(this,"beforesorting",7);this.rowdragstart=i(this,"rowdragstart",7);this.headerclick=i(this,"headerclick",7);this.beforecellfocus=i(this,"beforecellfocus",7);this.beforefocuslost=i(this,"beforefocuslost",7);this.beforesourceset=i(this,"beforesourceset",7);this.beforeAnySource=i(this,"before-any-source",7);this.aftersourceset=i(this,"aftersourceset",7);this.beforecolumnsset=i(this,"beforecolumnsset",7);this.beforecolumnapplied=i(this,"beforecolumnapplied",7);this.aftercolumnsset=i(this,"aftercolumnsset",7);this.beforefilterapply=i(this,"beforefilterapply",7);this.beforefiltertrimmed=i(this,"beforefiltertrimmed",7);this.beforetrimmed=i(this,"beforetrimmed",7);this.aftertrimmed=i(this,"aftertrimmed",7);this.viewportscroll=i(this,"viewportscroll",7);this.beforeexport=i(this,"beforeexport",7);this.beforeeditstart=i(this,"beforeeditstart",7);this.aftercolumnresize=i(this,"aftercolumnresize",7);this.beforerowdefinition=i(this,"beforerowdefinition",7);this.filterconfigchanged=i(this,"filterconfigchanged",7);this.rowheaderschanged=i(this,"rowheaderschanged",7);this.clickTrackForFocusClear=null;this.uuid=null;this.viewport=null;this.internalPlugins=[];this.rowHeaders=undefined;this.frameSize=1;this.rowSize=0;this.colSize=100;this.range=false;this.readonly=false;this.resize=false;this.canFocus=true;this.useClipboard=true;this.columns=[];this.source=[];this.pinnedTopSource=[];this.pinnedBottomSource=[];this.rowDefinitions=[];this.editors={};this.applyOnClose=false;this.plugins=undefined;this.columnTypes={};this.theme="default";this.rowClass="";this.autoSizeColumn=false;this.filter=false;this.focusTemplate=undefined;this.canMoveColumns=false;this.trimmedRows={};this.exporting=false;this.grouping=undefined;this.stretch=true;this.additionalData={};this.extraElements=[]}async refresh(t="all"){this.dataProvider.refresh(t)}async scrollToRow(t=0){const e=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgRow"});await this.scrollToCoordinate({y:e})}async scrollToColumnIndex(t=0){const e=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});await this.scrollToCoordinate({x:e})}async scrollToColumnProp(t){const e=this.columnProvider.getColumnIndexByProp(t,"rgCol");if(e<0){return}const r=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgCol"});await this.scrollToCoordinate({x:r})}async updateColumns(t){this.columnProvider.updateColumns(t)}async addTrimmed(t,e="external",r="rgRow"){const n=this.beforetrimmed.emit({trimmed:t,trimmedType:e,type:r});if(n.defaultPrevented){return n}this.dataProvider.setTrimmed({[e]:n.detail.trimmed},r);this.aftertrimmed.emit();return n}async scrollToCoordinate(t){var e;(e=this.viewport)===null||e===void 0?void 0:e.scrollToCell(t)}async setCellEdit(t,e,r="rgRow"){var n;const i=ta.getColumnByProp(this.columns,e);if(!i){return}await uu();const o=i.pin||"rgCol";(n=this.viewport)===null||n===void 0?void 0:n.setEdit(t,this.columnProvider.getColumnIndexByProp(e,o),o,r)}async setCellsFocus(t={x:0,y:0},e={x:0,y:0},r="rgCol",n="rgRow"){var i;(i=this.viewport)===null||i===void 0?void 0:i.setFocus(r,n,t,e)}async registerVNode(t){this.extraElements.push(...t);this.extraElements=[...this.extraElements]}async getSource(t="rgRow"){return this.dataProvider.stores[t].store.get("source")}async getVisibleSource(t="rgRow"){return $s(this.dataProvider.stores[t].store)}async getSourceStore(t="rgRow"){return this.dataProvider.stores[t].store}async getColumnStore(t="rgCol"){return this.columnProvider.stores[t].store}async updateColumnSorting(t,e,r,n){return this.columnProvider.updateColumnSorting(t,e,r,n)}async clearSorting(){this.columnProvider.clearSorting()}async getColumns(){return this.columnProvider.getColumns()}async clearFocus(){const t=await this.getFocused();const e=this.beforefocuslost.emit(t);if(e.defaultPrevented){return}this.selectionStoreConnector.clearAll()}async getPlugins(){return[...this.internalPlugins]}async getFocused(){var t;return(t=this.viewport)===null||t===void 0?void 0:t.getFocused()}async getContentSize(){var t;return(t=this.dimensionProvider)===null||t===void 0?void 0:t.getFullSize()}async getSelectedRange(){var t;return(t=this.viewport)===null||t===void 0?void 0:t.getSelectedRange()}mousedownHandle(t){this.clickTrackForFocusClear=Zl(t,"screenX")+Zl(t,"screenY")}mouseupHandle(t){if(t.defaultPrevented){return}const e=t.target;const r=Zl(t,"screenX")+Zl(t,"screenY");if(Math.abs(this.clickTrackForFocusClear-r)>10){return}if(e===null||e===void 0?void 0:e.closest(`[${ja}="${this.uuid}"]`)){return}this.clearFocus()}onRowDragStarted(t){var e;const r=this.rowdragstart.emit(t.detail);if(r.defaultPrevented){t.preventDefault();return}(e=this.orderService)===null||e===void 0?void 0:e.start(this.element,Object.assign(Object.assign({},t.detail),r.detail))}onRowDragEnd(){var t;(t=this.orderService)===null||t===void 0?void 0:t.end()}onRowDrag({detail:t}){var e;(e=this.orderService)===null||e===void 0?void 0:e.move(t)}onRowMouseMove(t){var e;(e=this.orderService)===null||e===void 0?void 0:e.moveTip(t.detail)}async onBeforeEdit(t){const{defaultPrevented:e,detail:r}=this.beforeedit.emit(t.detail);await uu();if(!e){this.dataProvider.setCellData(r);this.afteredit.emit(r)}}onBeforeRangeEdit(t){const{defaultPrevented:e,detail:r}=this.beforerangeedit.emit(t.detail);if(e){t.preventDefault();return}this.afteredit.emit(r)}onRangeChanged(t){const e=this.beforeange.emit(t.detail);if(e.defaultPrevented){t.preventDefault()}const r=this.beforeautofill.emit(e.detail);if(r.defaultPrevented){t.preventDefault()}}onRowDropped(t){const{defaultPrevented:e}=this.roworderchanged.emit(t.detail);if(e){t.preventDefault()}}onHeaderClick(t){const{defaultPrevented:e}=this.headerclick.emit(Object.assign(Object.assign({},t.detail.column),{originalEvent:t.detail.originalEvent}));if(e){t.preventDefault()}}onCellFocus(t){const{defaultPrevented:e}=this.beforecellfocus.emit(t.detail);if(!this.canFocus||e){t.preventDefault()}}columnChanged(t=[]){this.dimensionProvider.dropColumns();const e=ta.getColumns(t,0,this.columnTypes);this.beforecolumnsset.emit(e);for(let t of Vs){const r=e.columns[t];this.dimensionProvider.setNewColumns(t,r.length,ta.getSizes(r),t!=="rgCol")}this.beforecolumnapplied.emit(e);const r=this.columnProvider.setColumns(e);this.aftercolumnsset.emit({columns:r,order:this.columnProvider.order})}rowSizeChanged(t){this.dimensionProvider.setSettings({originItemSize:t},"rgRow");Ns.forEach((t=>{this.dimensionProvider.clearSize(t,this.dataProvider.stores[t].store.get("source").length);this.dimensionProvider.setCustomSizes(t,{},true)}))}themeChanged(t){this.themeService.register(t);this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize},"rgRow");this.dimensionProvider.setSettings({originItemSize:this.colSize},"rgCol")}dataSourceChanged(t=[],e,r){let n="rgRow";switch(r){case"pinnedBottomSource":n="rowPinEnd";break;case"pinnedTopSource":n="rowPinStart";break;case"source":n="rgRow";const e=this.beforesourceset.emit({type:n,source:t});t=e.detail.source;break}this.dataSourceApply(t,n);if(r==="source"){this.aftersourceset.emit({type:n,source:t})}}rowDefChanged(t,e){const{detail:{vals:r,oldVals:n}}=this.beforerowdefinition.emit({vals:t,oldVals:e});const i=Ol(r);if(n){const t=zl(n);Ce(t,((t,e)=>{this.dimensionProvider.clearSize(e,this.dataProvider.stores[e].store.get("source").length)}))}if(!r.length){return}Ce(i,((t,e)=>this.dimensionProvider.setCustomSizes(e,t.sizes||{})))}trimmedRowsChanged(t={}){this.addTrimmed(t)}groupingChanged(t={}){let e;for(let t of this.internalPlugins){const r=t;if(r.setGrouping){e=r;break}}if(!e){return}e.setGrouping(t||{})}applyStretch(t){if(t==="false"){t=false}let e=this.internalPlugins.filter((t=>Rl(t)))[0];if(typeof t==="boolean"&&t||t==="true"){if(!e){this.internalPlugins.push(new jl(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider}))}else if(Rl(e)){e.applyStretch(this.columnProvider.getRawColumns())}}else if(e){const t=this.internalPlugins.indexOf(e);this.internalPlugins.splice(t,1)}}applyFilter(t){this.filterconfigchanged.emit(t)}rowHeadersChange(t){this.rowheaderschanged.emit(t)}dataSourceApply(t=[],e="rgRow"){const r=this.beforeAnySource.emit({type:e,source:t});const n=[...r.detail.source];return this.dataProvider.setData(n,e)}connectedCallback(){this.viewportProvider=new ou;this.themeService=new S({rowSize:this.rowSize});const t={realSizeChanged:t=>this.contentsizechanged.emit(t)};this.dimensionProvider=new Na(this.viewportProvider,t);this.columnProvider=new ta;this.selectionStoreConnector=new pl;this.dataProvider=new ea(this.dimensionProvider);this.uuid=`${(new Date).getTime()}-rvgrid`;const e={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};if(this.autoSizeColumn){this.internalPlugins.push(new hu(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},typeof this.autoSizeColumn==="object"?this.autoSizeColumn:undefined))}if(this.filter){this.internalPlugins.push(new Ru(this.element,this.uuid,typeof this.filter==="object"?this.filter:undefined))}if(this.exporting){this.internalPlugins.push(new Qc(this.element))}this.internalPlugins.push(new wc(this.element));this.internalPlugins.push(new il(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider}));if(this.canMoveColumns){this.internalPlugins.push(new $l(this.element,e))}if(this.plugins){this.plugins.forEach((t=>{this.internalPlugins.push(new t(this.element,e))}))}this.applyStretch(this.stretch);this.themeChanged(this.theme);this.columnChanged(this.columns);this.dataSourceChanged(this.source,undefined,"source");this.dataSourceChanged(this.pinnedTopSource,undefined,"pinnedTopSource");this.dataSourceChanged(this.pinnedBottomSource,undefined,"pinnedBottomSource");this.trimmedRowsChanged(this.trimmedRows);this.rowDefChanged(this.rowDefinitions);this.groupingChanged(this.grouping);this.scrollingService=new kl((t=>{this.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension});this.viewportscroll.emit(t)}))}disconnectedCallback(){Ce(this.internalPlugins,(t=>t.destroy()));this.internalPlugins=[]}render(){const t=this.dimensionProvider.stores["rgRow"].store.get("realSize");this.viewport=new xl({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:t=>this.aftercolumnresize.emit(t)},t);const e=[];if(this.rowHeaders&&this.viewport.columns.length){const n=this.viewport.columns[0];e.push(r("revogr-row-headers",{additionalData:this.additionalData,height:t,rowClass:this.rowClass,resize:this.resize,dataPorts:n.dataPorts,headerProp:n.headerProp,uiid:n.prop[ja],rowHeaderColumn:typeof this.rowHeaders==="object"?this.rowHeaders:undefined,onScrollViewport:({detail:t})=>this.scrollingService.onScroll(t,"headerRow"),onElementToScroll:({detail:t})=>this.scrollingService.registerElement(t,"headerRow")}))}e.push(r(yl,{additionalData:this.additionalData,columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,applyEditorChangesOnClose:this.applyOnClose,useClipboard:this.useClipboard,columns:this.viewport.columns,onSelectAll:()=>{this.selectionStoreConnector.selectAll()},onEdit:t=>{const e=this.beforeeditstart.emit(t);if(!e.defaultPrevented){this.selectionStoreConnector.setEdit(t.val)}},onCancelEdit:()=>{this.selectionStoreConnector.setEdit(false)},registerElement:(t,e)=>this.scrollingService.registerElement(t,e),onScroll:(t,e)=>this.scrollingService.onScroll(t,e),focusTemplate:this.focusTemplate}));return r(o,Object.assign({},{[`${ja}`]:this.uuid}),r(al,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:t=>this.orderService=t,registerElement:(t,e)=>this.scrollingService.registerElement(t,e),nakedClick:()=>this.viewport.clearEdit(),onScroll:t=>this.scrollingService.onScroll(t)},e),this.extraElements)}get element(){return s(this)}static get watchers(){return{columns:["columnChanged"],rowSize:["rowSizeChanged"],theme:["themeChanged"],source:["dataSourceChanged"],pinnedBottomSource:["dataSourceChanged"],pinnedTopSource:["dataSourceChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"],filter:["applyFilter"],rowHeaders:["rowHeadersChange"]}}};Nl.style=Bl;class Vl{get columns(){return $s(this.source)}constructor(t,e){this.dataStore=t;this.source=e;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(e.onChange("source",(t=>this.checkGrouping(t))));this.checkGrouping(e.get("source"));this.type=e.get("type")}checkGrouping(t){for(let e of t){if(Hc(e)){this.hasGrouping=true;return}this.hasGrouping=false}}isReadOnly(t,e){var r;const n=(r=this.columns[e])===null||r===void 0?void 0:r.readonly;if(typeof n==="function"){const r=this.rowDataModel(t,e);return n(r)}return n}static doMerge(t,e){let r=Object.assign(Object.assign({},e),t);if(e.class){if(typeof e.class==="object"&&typeof r.class==="object"){r.class=Object.assign(Object.assign({},e.class),r.class)}else if(typeof e.class==="string"&&typeof r.class==="object"){r.class[e.class]=true}else if(typeof r.class==="string"){r.class+=" "+e.class}}if(e.style){r.style=Object.assign(Object.assign({},e.style),r.style)}return r}mergeProperties(t,e,r){var n;const i={[Oa]:true,[Ra]:this.isReadOnly(t,e)};let o=Object.assign(Object.assign({},r),{class:i});const s=(n=this.columns[e])===null||n===void 0?void 0:n.cellProperties;if(s){const r=this.rowDataModel(t,e);const n=s(r);if(!n){return o}return Vl.doMerge(o,n)}return o}customRenderer(t,e,n,i){var o;const s=(o=this.columns[t])===null||o===void 0?void 0:o.cellTemplate;if(s){return s(r,Object.assign(Object.assign({},e),{providers:n}),i)}return}getRowClass(t,e){const r=Us(this.dataStore,t)||{};return r[e]||""}getCellData(t,e){const r=this.rowDataModel(t,e);return Vl.getData(r.model[r.prop])}getSaveData(t,e,r){if(typeof r==="undefined"){r=this.getCellData(t,e)}const n=this.rowDataModel(t,e);return{prop:n.prop,rowIndex:t,val:r,model:n.model,type:this.dataStore.get("type")}}getCellEditor(t,e,r){var n;const i=(n=this.columns[e])===null||n===void 0?void 0:n.editor;if(!i){return undefined}if(typeof i==="string"){return r[i]}return i}rowDataModel(t,e){const r=this.columns[e];const n=r===null||r===void 0?void 0:r.prop;const i=Us(this.dataStore,t)||{};return{prop:n,model:i,data:this.dataStore.get("source"),column:r,rowIndex:t}}getRangeData(t,e){var r;const n={};const i=t.oldRange.x1-t.oldRange.x+1;const o=t.oldRange.y1-t.oldRange.y+1;const s={};for(let a=t.newRange.y,u=0;a<t.newRange.y1+1;a++,u++){const c=t.oldRange.y+u%o;const l=Us(this.dataStore,c)||{};for(let o=t.newRange.x,u=0;o<t.newRange.x1+1;o++,u++){if(a>=t.oldRange.y&&a<=t.oldRange.y1&&o>=t.oldRange.x&&o<=t.oldRange.x1){continue}if(!this.columns[o]){continue}const h=(r=this.columns[o])===null||r===void 0?void 0:r.prop;const f=t.oldRange.x+u%i;const d=e[f].prop;if(!this.isReadOnly(a,o)){if(!n[a]){n[a]={}}n[a][h]=l[d];if(!s[a]){s[a]={}}s[a][h]={colProp:d,rowIndex:c}}}}return{changed:n,mapping:s}}getTransformedDataToApply(t,e){const r={};const n=e.length;const i=this.columns.length;const o=this.dataStore.get("items").length;let s=t.y;let a=0;for(let u=0;s<o&&u<n;s++,u++){const o=e[u%n];const c=(o===null||o===void 0?void 0:o.length)||0;let l=t.x;for(let t=0;l<i&&t<c;l++,t++){const e=this.columns[l].prop;const n=t%i;if(!this.isReadOnly(s,l)){if(!r[s]){r[s]={}}r[s][e]=o[n]}}a=Math.max(a,l-1)}const u=hl(t,{y:s-1,x:a});return{changed:r,range:u}}applyRangeData(t){const e={};for(let r in t){const n=e[r]=Us(this.dataStore,parseInt(r,10));if(!n){continue}for(let e in t[r]){n[e]=t[r][e]}}Hs(this.dataStore,e)}getRangeStaticData(t,e){const r={};for(let n=t.y,i=0;n<t.y1+1;n++,i++){for(let i=t.x,o=0;i<t.x1+1;i++,o++){if(!this.columns[i]){continue}const t=this.columns[i].prop;if(!this.isReadOnly(n,i)){if(!r[n]){r[n]={}}r[n][t]=e}}}return r}getRangeTransformedToProps(t,e){var r;const n=[];const i=this.dataStore.get("type");for(let o=t.y,s=0;o<t.y1+1;o++,s++){for(let s=t.x,a=0;s<t.x1+1;s++,a++){const t=(r=this.columns[s])===null||r===void 0?void 0:r.prop;n.push({prop:t,rowIndex:o,model:Us(e,o),type:i})}}return n}copyRangeArray(t,e){const r=[...this.columns];const n=ra.slice(r,t.x,t.x1+1).map((t=>t.prop));const i=[];const o={};for(let r=t.y;r<=t.y1;r++){const t=[];o[r]={};for(let i of n){const n=Us(e,r);if(!n){continue}const s=n[i];t.push(s);o[r][i]=s}i.push(t)}return{data:i,mapping:o}}static getData(t){if(typeof t==="undefined"||t===null){return""}return t}destroy(){this.unsubscribe.forEach((t=>t()))}}const Wl=({model:t,onDragStart:e})=>{const n=[];if(t.column.rowDrag&&Gl(t.column.rowDrag,t)){n.push(r("span",{class:Ia,onMouseDown:r=>e({originalEvent:r,model:t})},r("span",{class:Da})))}n.push(`${Vl.getData(t.model[t.prop])}`);return n};function Gl(t,e){if(typeof t==="function"){return t(e)}return!!t}const ql=10;const Kl=({rowClass:t,size:e,start:n,style:i,depth:o},s)=>r("div",{class:`rgRow ${t||""}`,style:Object.assign(Object.assign({},i),{height:`${e}px`,transform:`translateY(${n}px)`,paddingLeft:o?`${ql*o}px`:undefined})},s);function Xl(t,e,r){const n=new CustomEvent(Ic,{detail:{model:e,virtualIndex:r},cancelable:true,bubbles:true});t.target.dispatchEvent(n)}const Yl=t=>{const{model:e,itemIndex:n,hasExpand:i,groupingCustomRenderer:o}=t;const s=e[Oc];const a=e[Ac];const u=parseInt(e[Rc],10)||0;if(!i){return r(Kl,Object.assign({},t,{rowClass:"groupingRow",depth:u}))}if(o){return r(Kl,Object.assign({},t,{rowClass:"groupingRow",depth:u}),r("div",{onClick:t=>Xl(t,e,n)},o(r,{name:s,itemIndex:n,expanded:a,depth:u})))}return r(Kl,Object.assign({},t,{rowClass:"groupingRow",depth:u}),r("button",{class:{[Dc]:true},onClick:t=>Xl(t,e,n)},r("svg",{"aria-hidden":"true",style:{transform:`rotate(${!a?-90:0}deg)`},focusable:"false",viewBox:"0 0 448 512"},r("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),s)};const Jl=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer}revogr-data .revo-draggable>.revo-drag-icon{vertical-align:middle;display:inline-block;pointer-events:none;transition:background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}";const Ql=class{constructor(t){n(this,t);this.dragStartCell=i(this,"dragStartCell",7);this.beforeRowRender=i(this,"beforeRowRender",7);this.beforeCellRender=i(this,"before-cell-render",7);this.readonly=undefined;this.range=undefined;this.rowClass=undefined;this.additionalData=undefined;this.rowSelectionStore=undefined;this.viewportRow=undefined;this.viewportCol=undefined;this.dimensionRow=undefined;this.colData=undefined;this.dataStore=undefined;this.type=undefined}onStoreChange(){var t;(t=this.columnService)===null||t===void 0?void 0:t.destroy();this.columnService=new Vl(this.dataStore,this.colData)}connectedCallback(){this.onStoreChange()}disconnectedCallback(){var t;(t=this.columnService)===null||t===void 0?void 0:t.destroy()}render(){var t;const e=this.viewportRow.get("items");const n=this.viewportCol.get("items");if(!this.columnService.columns.length||!e.length||!n.length){return""}const i=(t=this.rowSelectionStore)===null||t===void 0?void 0:t.get("range");const o=[];const s=this.dataStore.get("groupingDepth");const a=this.dataStore.get("groupingCustomRenderer");for(let t of e){const e=Us(this.dataStore,t.itemIndex);if(Uc(e)){o.push(r(Yl,Object.assign({},t,{model:e,groupingCustomRenderer:a,hasExpand:this.columnService.hasGrouping})));continue}const u=[];let c=this.rowClass?this.columnService.getRowClass(t.itemIndex,this.rowClass):"";if(i&&t.itemIndex>=i.y&&t.itemIndex<=i.y1){c+=" focused-rgRow"}for(let e of n){u.push(this.getCellRenderer(t,e,this.columnService.hasGrouping?s:0))}const l=r(Kl,{rowClass:c,size:t.size,start:t.start},u);this.beforeRowRender.emit({node:l,item:t,dataItem:e});o.push(l)}return o}getCellRenderer(t,e,n=0){const i=this.columnService.rowDataModel(t.itemIndex,e.itemIndex);const o=this.beforeCellRender.emit({column:Object.assign({},e),row:Object.assign(Object.assign({},t),{size:undefined}),model:i,rowType:this.type,colType:this.columnService.type});if(o.defaultPrevented){return}const{detail:{column:s,row:a}}=o;const u={[Ea]:s.itemIndex,[Sa]:a.itemIndex,style:{width:`${s.size}px`,transform:`translateX(${s.start}px)`,height:a.size?`${a.size}px`:undefined}};if(n&&!s.itemIndex){u.style.paddingLeft=`${ql*n}px`}const c=this.columnService.mergeProperties(a.itemIndex,s.itemIndex,u);const l=this.columnService.customRenderer(s.itemIndex,i,this.providers,this.additionalData);if(typeof l!=="undefined"){return r("div",Object.assign({},c),l)}if(!i.column){console.error("Investigate column problem");return}return r("div",Object.assign({},c),r(Wl,{model:i,onDragStart:t=>this.dragStartCell.emit(t)}))}get providers(){return{type:this.type,data:this.dataStore,viewport:this.viewportCol,dimension:this.dimensionRow,selection:this.rowSelectionStore}}get element(){return s(this)}static get watchers(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}}};Ql.style=Jl;var th;(function(t){t[t["MOUSE_LEFT"]=1]="MOUSE_LEFT";t[t["MOUSE_RIGHT"]=3]="MOUSE_RIGHT";t[t["MOUSE_MIDDLE"]=2]="MOUSE_MIDDLE";t[t["BACKSPACE"]=8]="BACKSPACE";t[t["COMMA"]=188]="COMMA";t[t["INSERT"]=45]="INSERT";t[t["DELETE"]=46]="DELETE";t[t["END"]=35]="END";t[t["ENTER"]=13]="ENTER";t[t["ESCAPE"]=27]="ESCAPE";t[t["CONTROL"]=17]="CONTROL";t[t["COMMAND_LEFT"]=91]="COMMAND_LEFT";t[t["COMMAND_RIGHT"]=93]="COMMAND_RIGHT";t[t["COMMAND_FIREFOX"]=224]="COMMAND_FIREFOX";t[t["ALT"]=18]="ALT";t[t["HOME"]=36]="HOME";t[t["PAGE_DOWN"]=34]="PAGE_DOWN";t[t["PAGE_UP"]=33]="PAGE_UP";t[t["PERIOD"]=190]="PERIOD";t[t["SPACE"]=32]="SPACE";t[t["SHIFT"]=16]="SHIFT";t[t["CAPS_LOCK"]=20]="CAPS_LOCK";t[t["TAB"]=9]="TAB";t[t["ARROW_RIGHT"]=39]="ARROW_RIGHT";t[t["ARROW_LEFT"]=37]="ARROW_LEFT";t[t["ARROW_UP"]=38]="ARROW_UP";t[t["ARROW_DOWN"]=40]="ARROW_DOWN";t[t["F1"]=112]="F1";t[t["F2"]=113]="F2";t[t["F3"]=114]="F3";t[t["F4"]=115]="F4";t[t["F5"]=116]="F5";t[t["F6"]=117]="F6";t[t["F7"]=118]="F7";t[t["F8"]=119]="F8";t[t["F9"]=120]="F9";t[t["F10"]=121]="F10";t[t["F11"]=122]="F11";t[t["F12"]=123]="F12";t[t["A"]=65]="A";t[t["C"]=67]="C";t[t["D"]=68]="D";t[t["F"]=70]="F";t[t["L"]=76]="L";t[t["O"]=79]="O";t[t["P"]=80]="P";t[t["S"]=83]="S";t[t["V"]=86]="V";t[t["X"]=88]="X"})(th||(th={}));var eh;(function(t){t["ENTER"]="Enter";t["ENTER_NUM"]="NumpadEnter";t["A"]="KeyA";t["C"]="KeyC";t["X"]="KeyX";t["V"]="KeyV";t["ESCAPE"]="Escape";t["TAB"]="Tab";t["BACKSPACE"]="Backspace";t["DELETE"]="Delete";t["ARROW_RIGHT"]="ArrowRight";t["ARROW_LEFT"]="ArrowLeft";t["ARROW_UP"]="ArrowUp";t["ARROW_DOWN"]="ArrowDown";t["SHIFT"]="Shift"})(eh||(eh={}));const rh=th;var nh;(function(t){t["mac"]="Mac"})(nh||(nh={}));const ih=nh;function oh(t){return t!==t}var sh=oh;function ah(t,e,r){var n=r-1,i=t.length;while(++n<i){if(t[n]===e){return n}}return-1}var uh=ah;function ch(t,e,r){return e===e?uh(t,e,r):es(t,sh,r)}var lh=ch;function hh(t,e){return fo(e,(function(e){return t[e]}))}var fh=hh;function dh(t){return t==null?[]:fh(t,ie(t))}var vh=dh;var gh=Math.max;function ph(t,e,r,n){t=re(t)?t:vh(t);r=r&&!n?as(r):0;var i=t.length;if(r<0){r=gh(i+r,0)}return Mu(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&lh(t,e,r)>-1}var Ch=ph;function wh(t){return t===32||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}function mh(t,e){if(e.includes(ih.mac)){return Ch([rh.COMMAND_LEFT,rh.COMMAND_RIGHT,rh.COMMAND_FIREFOX],t)}return rh.CONTROL===t}function bh(t){return eh.BACKSPACE===t||eh.DELETE===t}function Lh(t){return eh.TAB===t}function xh(t){return t===eh.ENTER||t===eh.ENTER_NUM}class yh{constructor(t,e){this.column=t;this.saveCallback=e;this.element=null;this.editCell=null}async componentDidRender(){var t;if(this.editInput){await uu();(t=this.editInput)===null||t===void 0?void 0:t.focus()}}onKeyDown(t){const e=xh(t.code);const r=Lh(t.code);if((r||e)&&t.target&&this.saveCallback&&!t.isComposing){this.editInput.blur();this.saveCallback(this.getValue(),r)}}getValue(){var t;return(t=this.editInput)===null||t===void 0?void 0:t.value}render(){var t;return r("input",{type:"text",value:((t=this.editCell)===null||t===void 0?void 0:t.val)||"",ref:t=>{this.editInput=t},onKeyDown:t=>this.onKeyDown(t)})}}const kh=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";const Eh=class{constructor(t){n(this,t);this.cellEdit=i(this,"cellEdit",3);this.closeEdit=i(this,"closeEdit",3);this.currentEditor=null;this.saveRunning=false;this.editCell=undefined;this.column=undefined;this.editor=undefined;this.saveOnClose=false}async cancel(){this.saveRunning=true}onAutoSave(){this.saveRunning=true;const t=this.currentEditor.getValue&&this.currentEditor.getValue();if(this.currentEditor.beforeAutoSave){const e=this.currentEditor.beforeAutoSave(t);if(e===false){return}}this.onSave(t,true)}onSave(t,e){this.saveRunning=true;if(this.editCell){this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:t,preventFocus:e})}}componentWillRender(){if(this.currentEditor){return}this.saveRunning=false;if(this.editor){this.currentEditor=new this.editor(this.column,((t,e)=>{this.onSave(t,e)}),(t=>{this.saveRunning=true;this.closeEdit.emit(t)}));return}this.currentEditor=new yh(this.column,((t,e)=>this.onSave(t,e)))}componentDidRender(){if(!this.currentEditor){return}this.currentEditor.element=this.element.firstElementChild;this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender()}disconnectedCallback(){if(this.saveOnClose){if(!this.saveRunning){this.onAutoSave()}}this.saveRunning=false;if(!this.currentEditor){return}this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback();if(this.currentEditor.element){this.currentEditor.element=null}this.currentEditor=null}render(){if(this.currentEditor){this.currentEditor.editCell=this.editCell;return r(o,{class:Ha},this.currentEditor.render(r))}return""}get element(){return s(this)}};Eh.style=kh;function Sh({x:t,y:e},{el:r,rows:n,cols:i}){const{top:o,left:s,height:a,width:u}=r.getBoundingClientRect();let c=e-o;if(c>=a){c=a-1}let l=t-s;if(l>=u){l=u-1}const h=pa(n,c);const f=pa(i,l);if(f.itemIndex<0){f.itemIndex=0}if(h.itemIndex<0){h.itemIndex=0}return{x:f.itemIndex,y:h.itemIndex}}function jh(t,e,r,n=false){const i=i=>{const o={x:t.x,y:t.y};const s=n?{x:t.x1,y:t.y1}:o;const a=s[i]>e[i]?s:o;a[i]+=r[i];return{start:o,end:s}};if(r.x){return i("x")}if(r.y){return i("y")}return null}function Rh({x:t,y:e},{lastCell:r}){return t>=r.x||e>=r.y}function Oh({x:t,y:e}){return t<0||e<0}function zh(t){return{left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`}}function Mh({x:t,y:e,x1:r,y1:n},i,o){const s=Ca(i,e).start;const a=Ca(o,t).start;const u=Ca(i,n).end;const c=Ca(o,r).end;return{left:a,right:c,top:s,bottom:u,width:c-a,height:u-s}}function Fh(t,e,r){const n=Mh(t,e,r);return zh(n)}const Ah=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block}";const _h=class{constructor(t){n(this,t);this.beforeFocusRender=i(this,"before-focus-render",7);this.afterFocus=i(this,"afterfocus",7);this.selectionStore=undefined;this.dimensionRow=undefined;this.dimensionCol=undefined;this.dataStore=undefined;this.colData=undefined;this.colType=undefined;this.rowType=undefined;this.focusTemplate=null}changed(t,e){t===null||t===void 0?void 0:t.scrollIntoView({block:"nearest",inline:"nearest"});const r=Us(this.dataStore,e.y);const n=Us(this.colData,e.x);this.afterFocus.emit({model:r,column:n})}componentDidRender(){const t=this.selectionStore.get("focus");t&&this.el&&this.changed(this.el,t)}render(){const t=this.selectionStore.get("edit");if(t){return}const e=this.selectionStore.get("focus");if(e){const t=this.beforeFocusRender.emit({range:Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),rowType:this.rowType,colType:this.colType});if(t.defaultPrevented){return}const{detail:n}=t;const i=Fh(n.range,this.dimensionRow.state,this.dimensionCol.state);const s=this.focusTemplate&&this.focusTemplate(r,n);return r(o,{class:Ta,style:i},s)}}get el(){return s(this)}};_h.style=Ah;var Dh=function(){try{var t=dr(Object,"defineProperty");t({},"",{});return t}catch(t){}}();var Ih=Dh;function Th(t,e,r){if(e=="__proto__"&&Ih){Ih(t,e,{configurable:true,enumerable:true,value:r,writable:true})}else{t[e]=r}}var Ph=Th;function $h(t,e,r,n){var i=-1,o=t==null?0:t.length;while(++i<o){var s=t[i];e(n,s,r(s),t)}return n}var Uh=$h;function Hh(t,e,r,n){le(t,(function(t,i,o){e(n,t,r(t),o)}));return n}var Zh=Hh;function Bh(t,e){return function(r,n){var i=N(r)?Uh:Zh,o=e?e():{};return i(r,t,Go(n),o)}}var Nh=Bh;var Vh=Nh((function(t,e,r){Ph(t,r,e)}));var Wh=Vh;const Gh=({column:t})=>r("i",{class:t.order});var qh;(function(t){t["start"]="resize:start";t["move"]="resize:move";t["end"]="resize:end"})(qh||(qh={}));const Kh={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}};const Xh={l:1,t:2,w:4,h:8};const Yh=t=>Object.assign(Object.assign({},t),{fitParent:t.fitParent||false,active:t.active||[],disableAttributes:t.disableAttributes||[],minWidth:t.minWidth||0,minHeight:t.minHeight||0});class Jh{constructor(t,e){this.initialProps=t;this.$event=e;this.mouseX=0;this.mouseY=0;this.width=0;this.height=0;this.changeX=0;this.changeY=0;this.disableCalcMap=15;this.props=Yh(t);this.mouseMoveFunc=this.handleMove.bind(this);this.mouseUpFunc=this.handleUp.bind(this);this.minW=this.props.minWidth;this.minH=this.props.minHeight;this.maxW=this.props.maxWidth;this.maxH=this.props.maxHeight;this.parent={width:0,height:0};this.resizeState=0}set(t){this.$el=t;this.props.disableAttributes.forEach((t=>{switch(t){case"l":this.disableCalcMap&=~Xh.l;break;case"t":this.disableCalcMap&=~Xh.t;break;case"w":this.disableCalcMap&=~Xh.w;break;case"h":this.disableCalcMap&=~Xh.h}}))}emitEvent(t,e){if(!this.$event){return}this.$event(Object.assign({eventName:t,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},e))}static isTouchEvent(t){var e;const r=t;return((e=r.touches)===null||e===void 0?void 0:e.length)>=0}handleMove(t){if(!this.resizeState){return}let e,r;if(Jh.isTouchEvent(t)){e=t.touches[0].clientY;r=t.touches[0].clientX}else{e=t.clientY;r=t.clientX}let n=this.resizeState&Kh["resizable-r"].bit||this.resizeState&Kh["resizable-l"].bit;let i=this.resizeState&Kh["resizable-t"].bit||this.resizeState&Kh["resizable-b"].bit;if(i&&this.disableCalcMap&Xh.h){let t=e-this.mouseY;let r=this.changeY+t;const n=this.height+r;if(n<this.minH){r=-(this.height-this.minH)}if(this.maxH&&n>this.maxH){r=this.maxH-this.height}this.changeY=r;this.mouseY=e;if(this.activeResizer){this.activeResizer.style.bottom=`${-this.changeY}px`}}if(n&&this.disableCalcMap&Xh.w){let t=r-this.mouseX;let e=this.changeX+t;const n=this.width+e;if(n<this.minW){e=-(this.width-this.minW)}if(this.maxW&&n>this.maxW){e=this.maxW-this.width}this.changeX=e;this.mouseX=r;if(this.activeResizer){this.activeResizer.style.right=`${-this.changeX}px`}}this.emitEvent(qh.move)}handleDown(t){if(t.defaultPrevented){return}t.preventDefault();this.dropInitial();for(let e in Kh){const r=t.target;if(this.$el.contains(r)&&(r===null||r===void 0?void 0:r.classList.contains(e))){document.body.style.cursor=Kh[e].cursor;if(Jh.isTouchEvent(t)){this.setInitials(t.touches[0],r)}else{t.preventDefault&&t.preventDefault();this.setInitials(t,r)}this.resizeState=Kh[e].bit;const n=qh.start;this.emitEvent(n);break}}this.bindMove()}handleUp(t){t.preventDefault();if(this.resizeState!==0){this.resizeState=0;document.body.style.cursor="";const t=qh.end;this.emitEvent(t)}this.dropInitial();this.unbindMove()}setInitials({clientX:t,clientY:e},r){const n=getComputedStyle(this.$el);this.$el.classList.add("active");this.activeResizer=r;if(this.disableCalcMap&Xh.w){this.mouseX=t;this.width=this.$el.clientWidth;this.parent.width=this.$el.parentElement.clientWidth;const e=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);this.minW=Math.max(e,this.initialProps.minWidth||0);if(this.initialProps.maxWidth){this.maxW=Math.max(this.width,this.initialProps.maxWidth)}}if(this.disableCalcMap&Xh.h){this.mouseY=e;this.height=this.$el.clientHeight;this.parent.height=this.$el.parentElement.clientHeight;const t=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);this.minH=Math.max(t,this.initialProps.minHeight||0);if(this.initialProps.maxHeight){this.maxH=Math.max(this.height,this.initialProps.maxHeight)}}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH;this.width=this.height=0;if(this.activeResizer){this.activeResizer.removeAttribute("style")}this.$el.classList.remove("active");this.activeResizer=null}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.addEventListener("touchend",this.mouseUpFunc,true);document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.removeEventListener("touchend",this.mouseUpFunc,true);document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const Qh=(t,e)=>{const n=[];const i=t.canResize&&new Jh(t,(e=>{if(e.eventName===qh.end){t.onResize&&t.onResize(e)}}))||null;if(t.canResize){if(t.active){for(let e in t.active){n.push(r("div",{onClick:t=>t.preventDefault(),onDblClick:e=>{e.preventDefault();t.onDoubleClick&&t.onDoubleClick()},onMouseDown:t=>i===null||i===void 0?void 0:i.handleDown(t),onTouchStart:t=>i===null||i===void 0?void 0:i.handleDown(t),class:`resizable resizable-${t.active[e]}`}))}}}else{if(t.active){for(let e in t.active){n.push(r("div",{onClick:t=>t.preventDefault(),onTouchStart:t=>t.preventDefault(),onDblClick:e=>{e.preventDefault();t.onDoubleClick&&t.onDoubleClick()},class:`no-resize resizable resizable-${t.active[e]}`}))}}}return r("div",Object.assign({},t,{ref:t=>i===null||i===void 0?void 0:i.set(t)}),e,n)};const tf="column-click";const ef=({data:t,props:e,additionalData:n},i)=>{let o=(t===null||t===void 0?void 0:t.name)||"";let s=e;if(t===null||t===void 0?void 0:t.columnTemplate){o=t.columnTemplate(r,t,n)}if(t===null||t===void 0?void 0:t.columnProperties){const r=t.columnProperties(t);if(r&&typeof r==="object"){s=Vl.doMerge(e,r)}}return r(Qh,Object.assign({},s,{onMouseDown:e=>{Al(e.currentTarget,tf,{data:t,event:e})}}),r("div",{class:"header-content"},o),i)};const rf=t=>{var e,n,i,o,s,a;const u={[Ma]:true,[Fa]:!!((e=t.data)===null||e===void 0?void 0:e.sortable)};if((n=t.data)===null||n===void 0?void 0:n.order){u[t.data.order]=true}const c={[Ea]:t.column.itemIndex,canResize:t.canResize,minWidth:((i=t.data)===null||i===void 0?void 0:i.minSize)||ya,maxWidth:(o=t.data)===null||o===void 0?void 0:o.maxSize,active:["r"],class:u,style:{width:`${t.column.size}px`,transform:`translateX(${t.column.start}px)`},onResize:t.onResize,onDoubleClick(e){t.onDoubleClick({column:t.data,index:t.column.itemIndex,originalEvent:e})},onClick(e){if(e.defaultPrevented||!t.onClick){return}t.onClick({column:t.data,index:t.column.itemIndex,originalEvent:e})}};if(t.range){if(t.column.itemIndex>=t.range.x&&t.column.itemIndex<=t.range.x1){if(typeof c.class==="object"){c.class[Ta]=true}}}return r(ef,{data:t.data,props:c,additionalData:t.additionalData},((s=t.data)===null||s===void 0?void 0:s.order)?r(Gh,{column:t.data}):"",t.canFilter&&((a=t.data)===null||a===void 0?void 0:a.filter)!==false?r(b,{column:t.data}):"")};const nf=t=>{const e={canResize:t.canResize,minWidth:t.group.ids.length*ya,maxWidth:0,active:["r"],class:{[Ma]:true},style:{transform:`translateX(${t.start}px)`,width:`${t.end-t.start}px`},onResize:t.onResize};return r(ef,{data:Object.assign(Object.assign({},t.group),{prop:"",providers:t.providers,index:t.start}),props:e,additionalData:t.additionalData})};const of=({additionalData:t,providers:e,depth:n,groups:i,visibleProps:o,dimensionCol:s,canResize:a,onResize:u})=>{const c=[];for(let l=0;l<n;l++){if(i[l]){for(let n of i[l]){const i=ls(n.ids,(t=>typeof o[t]==="number"));if(i>-1){const l=o[n.ids[i]];const h=l-i;const f=h+n.ids.length-1;const d=Ca(s,h).start;const v=Ca(s,f).end;c.push(r(nf,{providers:e,start:d,end:v,group:n,additionalData:t,canResize:a,onResize:t=>u(t.changedX,h,f)}))}}}c.push(r("div",{class:`${Aa} group`}))}return c};const sf="@charset \"UTF-8\";.revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-header{position:relative;z-index:5;display:block}revogr-header .rgHeaderCell{display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell i.asc:after,revogr-header .rgHeaderCell i.desc:after{font-size:13px}revogr-header .rgHeaderCell i.asc:after{content:\"↑\"}revogr-header .rgHeaderCell i.desc:after{content:\"↓\"}revogr-header .rgHeaderCell,revogr-header .grouped-cell{position:absolute;box-sizing:border-box;height:100%;z-index:1}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}";const af=class{constructor(t){n(this,t);this.initialHeaderClick=i(this,"initialHeaderClick",7);this.headerresize=i(this,"headerresize",7);this.beforeResize=i(this,"before-resize",7);this.headerdblClick=i(this,"headerdblClick",7);this.viewportCol=undefined;this.dimensionCol=undefined;this.selectionStore=undefined;this.parent="";this.groups=undefined;this.groupingDepth=0;this.canResize=undefined;this.colData=undefined;this.columnFilter=undefined;this.type=undefined;this.additionalData={}}onResize({width:t},e){const r=this.colData[e];const n=this.beforeResize.emit([Object.assign(Object.assign({},r),{size:t||undefined})]);if(n.defaultPrevented){return}this.headerresize.emit({[e]:t||0})}onResizeGroup(t,e,r){const n={};const i=Wh(this.viewportCol.get("items"),"itemIndex");const o=t/(r-e+1);for(let t=e;t<=r;t++){const e=i[t];if(e){n[t]=e.size+o}}this.headerresize.emit(n)}render(){var t;const e=this.viewportCol.get("items");const n=(t=this.selectionStore)===null||t===void 0?void 0:t.get("range");const i=[];const o={};for(let t of e){const e=this.colData[t.itemIndex];i.push(r(rf,{range:n,column:t,data:Object.assign(Object.assign({},e),{index:t.itemIndex,providers:this.providers}),canFilter:!!this.columnFilter,canResize:this.canResize,additionalData:this.additionalData,onResize:e=>this.onResize(e,t.itemIndex),onDoubleClick:t=>this.headerdblClick.emit(t),onClick:t=>this.initialHeaderClick.emit(t)}));o[e===null||e===void 0?void 0:e.prop]=t.itemIndex}return[r("div",{class:"group-rgRow"},r(of,{additionalData:this.additionalData,canResize:this.canResize,visibleProps:o,providers:this.providers,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:(t,e,r)=>this.onResizeGroup(t,e,r)})),r("div",{class:`${Aa} ${_a}`},i)]}get providers(){return{type:this.type,data:this.colData,viewport:this.viewportCol,dimension:this.dimensionCol,selection:this.selectionStore}}get element(){return s(this)}};af.style=sf;class uf{constructor(t){this.config=t;this.currentCell=null;this.previousRow=null}endOrder(t,e){if(this.currentCell===null){return}const r=this.getCell(t,e);if(r.y!==this.currentCell.y){if(r.y<0){r.y=0}else if(r.y<this.currentCell.y){r.y++}this.config.positionChanged(this.currentCell.y,r.y)}this.clear()}startOrder(t,e){this.currentCell=this.getCell(t,e);return this.currentCell}move(t,e){const r=this.getRow(t,e);if(this.previousRow===r.itemIndex||r.itemIndex<-1){return null}this.previousRow=r.itemIndex;return r}clear(){this.currentCell=null;this.previousRow=null}getRow(t,{el:e,rows:r}){const{top:n}=e.getBoundingClientRect();const i=t-n;const o=pa(r,i);const s={itemIndex:o.itemIndex,start:o.start+n,end:o.end+n};return s}getCell({x:t,y:e},{el:r,rows:n,cols:i}){const{top:o,left:s}=r.getBoundingClientRect();const a=e-o;const u=t-s;const c=pa(n,a);const l=pa(i,u);return{x:l.itemIndex,y:c.itemIndex}}}const cf=class{constructor(t){n(this,t);this.internalRowDragStart=i(this,"internalRowDragStart",7);this.internalRowDragEnd=i(this,"internalRowDragEnd",7);this.internalRowDrag=i(this,"internalRowDrag",7);this.internalRowMouseMove=i(this,"internalRowMouseMove",7);this.initialRowDropped=i(this,"initialRowDropped",7);this.rowMoveFunc=m((t=>{const e=this.rowOrderService.move(t,this.getData());if(e!==null){this.internalRowDrag.emit(e)}}),5);this.parent=undefined;this.dimensionRow=undefined;this.dimensionCol=undefined;this.dataStore=undefined}onMouseOut(){this.clearOrder()}onMouseUp(t){this.endOrder(t)}async dragStart(t){t.originalEvent.preventDefault();if(this.moveFunc){this.clearOrder()}const e=this.getData();const r=this.rowOrderService.startOrder(t.originalEvent,e);const n=this.rowOrderService.getRow(t.originalEvent.y,e);const i=this.internalRowDragStart.emit({cell:r,text:Za,pos:n,event:t.originalEvent});if(i.defaultPrevented){return}this.moveFunc=t=>this.move(t);document.addEventListener("mousemove",this.moveFunc)}async endOrder(t){this.rowOrderService.endOrder(t,this.getData());this.clearOrder()}async clearOrder(){this.rowOrderService.clear();document.removeEventListener("mousemove",this.moveFunc);this.moveFunc=null;this.internalRowDragEnd.emit()}move({x:t,y:e}){this.internalRowMouseMove.emit({x:t,y:e});this.rowMoveFunc(e)}connectedCallback(){this.rowOrderService=new uf({positionChanged:(t,e)=>this.onPositionChanged(t,e)})}onPositionChanged(t,e){const r=this.initialRowDropped.emit({from:t,to:e});if(r.defaultPrevented){return}const n=[...this.dataStore.get("items")];const i=n.splice(t,1);n.splice(e,0,...i);Zs(this.dataStore,n)}getData(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}}};class lf{constructor(t,e){this.store=t;this.config=e;this.store=t}get edited(){return this.store.get("edit")}get focused(){return this.store.get("focus")}get ranged(){return this.store.get("range")}changeRange(t){return this.config.changeRange(t)}focus(t,e=false){if(!t){return false}let r=t;if(e){let t=this.store.get("focus");if(t){return this.config.changeRange(hl(t,r))}}return this.config.focus(t,r)}}function hf(t){return!!(t===null||t===void 0?void 0:t.closest(`.${Ha}`))}const ff=[eh.TAB,eh.ARROW_UP,eh.ARROW_DOWN,eh.ARROW_LEFT,eh.ARROW_RIGHT];class df{constructor(t){this.sv=t;this.ctrlDown=false}async keyDown(t,e){if(mh(t.keyCode,navigator.platform)){this.ctrlDown=true}if(this.sv.selectionStoreService.edited){switch(t.code){case eh.ESCAPE:this.sv.cancelEdit();break}return}if(this.sv.selectionStoreService.ranged&&bh(t.code)){this.sv.clearCell();return}if(!this.sv.selectionStoreService.focused){return}if(eh.TAB===t.code){this.keyChangeSelection(t,e);return}if(xh(t.code)){this.sv.applyEdit();return}if(this.isCopy(t)){return}if(this.isCut(t)){return}if(this.isPaste(t)){this.sv.internalPaste();return}if(this.isAll(t)){if(e){this.selectAll(t)}return}if(wh(t.keyCode)){this.sv.applyEdit(t.key);return}if(await this.keyChangeSelection(t,e)){return}}selectAll(t){const e=this.sv.selectionStore.get("range");const r=this.sv.selectionStore.get("focus");if(!e||!r){return}t.preventDefault();this.sv.selectAll()}async keyChangeSelection(t,e){const r=this.changeDirectionKey(t,e);if(!r){return false}await uu(ka+30);const n=this.sv.selectionStore.get("range");const i=this.sv.selectionStore.get("focus");return this.keyPositionChange(r.changes,n,i,r.isMulti)}keyPositionChange(t,e,r,n=false){if(!e||!r){return false}const i=jh(e,r,t,n);if(!i){return false}if(n){const t=this.sv.getData();if(Rh(i.end,t)||Oh(i.start)){return false}const e=hl(i.start,i.end);return this.sv.range(e)}return this.sv.focusNext(i.start,t)}keyUp(t){if(mh(t.keyCode,navigator.platform)){this.ctrlDown=false}}isCut(t){return this.ctrlDown&&t.code==eh.X}isCopy(t){return this.ctrlDown&&t.code==eh.C}isPaste(t){return this.ctrlDown&&t.code==eh.V}isAll(t){return this.ctrlDown&&t.code==eh.A}changeDirectionKey(t,e){const r=e&&t.shiftKey;if(ff.includes(t.code)){t.preventDefault()}switch(t.code){case eh.ARROW_UP:return{changes:{y:-1},isMulti:r};case eh.ARROW_DOWN:return{changes:{y:1},isMulti:r};case eh.ARROW_LEFT:return{changes:{x:-1},isMulti:r};case eh.TAB:case eh.ARROW_RIGHT:return{changes:{x:1},isMulti:r}}}}var vf;(function(t){t["selection"]="Selection";t["autoFill"]="AutoFill"})(vf||(vf={}));class gf{constructor(t){this.sv=t;this.autoFillType=null;this.autoFillInitial=null;this.autoFillStart=null;this.autoFillLast=null}renderAutofill(t,e){let n;if(t){n=Mh(t,this.sv.dimensionRow.state,this.sv.dimensionCol.state)}else{n=Mh(Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state)}return r("div",{class:Ua,style:{left:`${n.right}px`,top:`${n.bottom}px`},onMouseDown:t=>this.selectionStart(t,this.sv.getData(),vf.autoFill)})}get isAutoFill(){return!!this.autoFillType}selectionMouseMove(t){if(!this.onMouseMoveAutofill){this.onMouseMoveAutofill=m(((t,e)=>this.doAutofillMouseMove(t,e)),5)}if(this.isAutoFill){this.onMouseMoveAutofill(t,this.sv.getData())}}getFocus(){let t=this.sv.selectionStoreService.focused;const e=this.sv.selectionStoreService.ranged;if(e){t={x:e.x,y:e.y}}if(!t&&!e){return null}return t}doAutofillMouseMove(t,e){if(!this.autoFillInitial){return}const r=Sh({x:Zl(t,"clientX"),y:Zl(t,"clientY")},e);if(!this.autoFillLast){if(!this.autoFillLast){this.autoFillLast=this.autoFillStart}}if(Rh(r,e)){return}this.autoFillLast=r;const n=r.x===this.autoFillInitial.x&&r.y===this.autoFillInitial.y;if(n){this.sv.setTempRange(null)}else{this.sv.setTempRange({area:hl(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})}}selectionStart(t,e,r=vf.selection){const{top:n,left:i}=t.target.getBoundingClientRect();this.autoFillInitial=this.getFocus();this.autoFillType=r;this.autoFillStart=Sh({x:i,y:n},e);t.preventDefault()}clearAutoFillSelection(){if(this.autoFillInitial){this.autoFillInitial=this.getFocus();if(this.autoFillType===vf.autoFill){const t=hl(this.autoFillInitial,this.autoFillLast);if(t){const{defaultPrevented:e,detail:{range:r}}=this.sv.clearRangeDataApply({range:t});if(!e){this.applyRangeWithData(r)}else{this.sv.setTempRange(null)}}}else{this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)}}this.autoFillType=null;this.autoFillInitial=null;this.autoFillLast=null;this.autoFillStart=null}onRangeApply(t,e){const r={};for(let e in t){r[e]=Us(this.sv.dataStore,parseInt(e,10))}const{defaultPrevented:n,detail:i}=this.sv.rangeDataApply({data:t,models:r,type:this.sv.dataStore.get("type")});if(!n){this.sv.columnService.applyRangeData(i.data)}this.sv.setRange(e)}applyRangeWithData(t){const e=this.sv.selectionStoreService.ranged;const r={type:this.sv.dataStore.get("type"),newData:{},mapping:{},newRange:t,oldRange:e};const{mapping:n,changed:i}=this.sv.columnService.getRangeData(r,this.sv.columnService.columns);r.newData=i;r.mapping=n;let o=this.sv.selectionChanged(r);if(o.defaultPrevented){this.sv.setTempRange(null);return}o=this.sv.rangeCopy(r);if(o.defaultPrevented){this.sv.setRange(t);return}this.onRangeApply(r.newData,t)}applyRangeOnly(t,e){if(!t||!e){return}const r=hl(t,e);this.sv.setRange(r)}}class pf{constructor(t){this.sv=t}renderClipboard(){return r("revogr-clipboard",{onCopyRegion:t=>this.onCopy(t.detail),onClearRegion:()=>this.sv.rangeClear(),ref:t=>this.clipboard=t,onPasteRegion:t=>this.onPaste(t.detail)})}getRegion(){const t=this.sv.selectionStoreService.focused;let e=this.sv.selectionStoreService.ranged;if(!e){e=hl(t,t)}return e}onCopy(t){const e=this.getRegion();const r=this.sv.beforeCopy(e);if(r.defaultPrevented){return false}const n=this.sv.rangeCopy(e);this.clipboard.doCopy(t,n);return true}onPaste(t){const e=this.sv.selectionStoreService.focused;const r=this.sv.selectionStoreService.edited!==null;if(!e||r){return}let{changed:n,range:i}=this.sv.columnService.getTransformedDataToApply(e,t);const{defaultPrevented:o}=this.sv.beforePaste(n,i);if(o){return}this.sv.rangeApply(n,i)}}const Cf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";const wf=class{constructor(t){n(this,t);this.internalCopy=i(this,"internalCopy",7);this.internalPaste=i(this,"internalPaste",7);this.internalCellEdit=i(this,"internalCellEdit",7);this.beforeFocusCell=i(this,"beforeFocusCell",7);this.setEdit=i(this,"setEdit",7);this.beforeApplyRange=i(this,"before-apply-range",7);this.beforeSetRange=i(this,"before-set-range",7);this.beforeEditRender=i(this,"before-edit-render",7);this.setRange=i(this,"setRange",7);this.selectAll=i(this,"selectall",7);this.cancelEdit=i(this,"cancelEdit",7);this.setTempRange=i(this,"setTempRange",7);this.applyFocus=i(this,"applyFocus",7);this.focusCell=i(this,"focusCell",7);this.beforeRangeDataApply=i(this,"beforeRangeDataApply",7);this.internalSelectionChanged=i(this,"internalSelectionChanged",7);this.beforeRangeCopyApply=i(this,"beforeRangeCopyApply",7);this.internalRangeDataApply=i(this,"internalRangeDataApply",7);this.rangeClipboardCopy=i(this,"rangeClipboardCopy",7);this.rangeClipboardPaste=i(this,"rangeClipboardPaste",7);this.beforeCellSave=i(this,"before-cell-save",7);this.keyboardService=null;this.autoFillService=null;this.clipboardService=null;this.revogrEdit=null;this.readonly=undefined;this.range=undefined;this.canDrag=undefined;this.useClipboard=undefined;this.selectionStore=undefined;this.dimensionRow=undefined;this.dimensionCol=undefined;this.dataStore=undefined;this.colData=undefined;this.lastCell=undefined;this.editors=undefined;this.applyChangesOnClose=false}onMouseMove(t){if(this.selectionStoreService.focused){this.autoFillService.selectionMouseMove(t)}}onMouseUp(){this.autoFillService.clearAutoFillSelection()}onCellDrag(t){var e;(e=this.orderEditor)===null||e===void 0?void 0:e.dragStart(t.detail)}onKeyUp(t){var e;(e=this.keyboardService)===null||e===void 0?void 0:e.keyUp(t)}onKeyDown(t){var e;if(t.defaultPrevented){return}(e=this.keyboardService)===null||e===void 0?void 0:e.keyDown(t,this.range)}selectionServiceSet(t){this.selectionStoreService=new lf(t,{changeRange:t=>this.triggerRangeEvent(t),focus:(t,e)=>this.doFocus(t,e)});this.keyboardService=new df({selectionStoreService:this.selectionStoreService,selectionStore:t,range:t=>this.selectionStoreService.changeRange(t),focusNext:(t,e)=>this.doFocus(t,t,e),applyEdit:t=>{if(this.readonly){return}this.doEdit(t)},cancelEdit:async()=>{await this.revogrEdit.cancel();this.closeEdit()},clearCell:()=>!this.readonly&&this.clearCell(),internalPaste:()=>!this.readonly&&this.internalPaste.emit(),getData:()=>this.getData(),selectAll:()=>this.selectAll.emit()});this.createAutoFillService();this.createClipboardService()}createAutoFillService(){this.autoFillService=new gf({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,clearRangeDataApply:t=>this.beforeRangeDataApply.emit(Object.assign(Object.assign({},t),this.types)),setTempRange:t=>this.setTempRange.emit(t),selectionChanged:t=>this.internalSelectionChanged.emit(t),rangeCopy:t=>this.beforeRangeCopyApply.emit(t),rangeDataApply:t=>this.internalRangeDataApply.emit(t),setRange:t=>this.triggerRangeEvent(t),getData:()=>this.getData()})}columnServiceSet(){var t;(t=this.columnService)===null||t===void 0?void 0:t.destroy();this.columnService=new Vl(this.dataStore,this.colData);this.createAutoFillService();this.createClipboardService()}createClipboardService(){this.clipboardService=new pf({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,rangeApply:(t,e)=>this.autoFillService.onRangeApply(t,e),rangeCopy:t=>{if(!t){return undefined}const{data:e,mapping:r}=this.columnService.copyRangeArray(t,this.dataStore);const n=this.rangeClipboardCopy.emit(Object.assign({range:t,data:e,mapping:r},this.types));if(n.defaultPrevented){return undefined}return n.detail.data},rangeClear:()=>!this.readonly&&this.clearCell(),beforeCopy:t=>this.internalCopy.emit(t),beforePaste:(t,e)=>this.rangeClipboardPaste.emit(Object.assign({data:t,range:e},this.types))})}connectedCallback(){this.columnServiceSet();this.selectionServiceSet(this.selectionStore)}disconnectedCallback(){var t;(t=this.columnService)===null||t===void 0?void 0:t.destroy()}renderRange(t){const e=Fh(t,this.dimensionRow.state,this.dimensionCol.state);return[r("div",{class:Pa,style:e})]}renderEditCell(){const t=this.selectionStore.get("edit");if(this.readonly||!t){return null}const e=t.val||this.columnService.getCellData(t.y,t.x);const n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,e));const i=this.beforeEditRender.emit(Object.assign({range:Object.assign(Object.assign({},t),{x1:t.x,y1:t.y})},this.types));if(i.defaultPrevented){return null}const{detail:{range:o}}=i;const s=Fh(o,this.dimensionRow.state,this.dimensionCol.state);return r("revogr-edit",{ref:t=>{this.revogrEdit=t},onCellEdit:t=>{const e=this.beforeCellSave.emit(t.detail);if(!e.defaultPrevented){this.cellEdit(e.detail)}if(!e.detail.preventFocus){this.focusNext()}},onCloseEdit:t=>this.closeEdit(t),editCell:n,saveOnClose:this.applyChangesOnClose,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:s})}render(){const t=[];const e=this.renderEditCell();if(e){t.push(e)}else{const e=this.selectionStoreService.ranged;const n=this.selectionStoreService.focused;if((e||n)&&this.useClipboard){t.push(this.clipboardService.renderClipboard())}if(e){t.push(...this.renderRange(e))}if(n&&!this.readonly&&this.range){t.push(this.autoFillService.renderAutofill(e,n))}if(this.canDrag){t.push(r("revogr-order-editor",{ref:t=>this.orderEditor=t,dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:t=>this.onRowDragStart(t)}))}}return r(o,{onDblClick:()=>this.doEdit(),onMouseDown:t=>this.onElementMouseDown(t)},t,r("slot",{name:"data"}))}doFocus(t,e,r){const{defaultPrevented:n}=this.beforeFocusCell.emit(this.columnService.getSaveData(t.y,t.x));if(n){return false}const i=Object.assign({range:Object.assign(Object.assign({},t),{x1:e.x,y1:e.y}),next:r},this.types);const o=this.applyFocus.emit(i);if(o.defaultPrevented){return false}const{range:s}=o.detail;return!this.focusCell.emit(Object.assign({focus:{x:s.x,y:s.y},end:{x:s.x1,y:s.y1}},o.detail)).defaultPrevented}triggerRangeEvent(t){const e=this.types.rowType;const r=this.beforeApplyRange.emit(Object.assign({range:Object.assign({},t)},this.types));if(r.defaultPrevented){return false}const n=this.columnService.getRangeTransformedToProps(r.detail.range,this.dataStore);let i=this.beforeSetRange.emit(n);i=this.setRange.emit(Object.assign(Object.assign({},r.detail.range),{type:e}));if(i.defaultPrevented){return false}return!i.defaultPrevented}onElementMouseDown(t){if(hf(t.target)){return}const e=this.getData();if(t.defaultPrevented){return}const r=Sh({x:t.x,y:t.y},e);this.selectionStoreService.focus(r,this.range&&t.shiftKey);if(this.range){this.autoFillService.selectionStart(t,e)}}doEdit(t=""){var e;if(this.canEdit()){const r=this.selectionStore.get("focus");const n=this.columnService.getSaveData(r.y,r.x);(e=this.setEdit)===null||e===void 0?void 0:e.emit(Object.assign(Object.assign({},n),{val:t}))}}closeEdit(t){this.cancelEdit.emit();if(t===null||t===void 0?void 0:t.detail){this.focusNext()}}cellEdit(t){const e=this.columnService.getSaveData(t.rgRow,t.rgCol,t.val);this.internalCellEdit.emit(e)}async focusNext(){const t=await this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:eh.ARROW_DOWN}),this.range);if(!t){this.closeEdit()}}clearCell(){if(this.selectionStoreService.ranged&&!fl(this.selectionStoreService.ranged)){const t=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(t,this.selectionStoreService.ranged)}else if(this.canEdit()){const t=this.selectionStoreService.focused;this.cellEdit({rgRow:t.y,rgCol:t.x,val:""})}}onRowDragStart({detail:t}){t.text=this.columnService.getCellData(t.cell.y,t.cell.x)}canEdit(){var t;if(this.readonly){return false}const e=this.selectionStoreService.focused;return e&&!((t=this.columnService)===null||t===void 0?void 0:t.isReadOnly(e.y,e.x))}get types(){return{rowType:this.dataStore.get("type"),colType:this.columnService.type}}getData(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}}get element(){return s(this)}static get watchers(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}}};wf.style=Cf;const mf=t=>(e,{rowIndex:r})=>t+r;const bf=class{constructor(t){n(this,t);this.scrollViewport=i(this,"scrollViewport",3);this.elementToScroll=i(this,"elementToScroll",3);this.height=undefined;this.dataPorts=undefined;this.headerProp=undefined;this.uiid=undefined;this.rowClass=undefined;this.resize=undefined;this.rowHeaderColumn=undefined;this.additionalData=undefined}render(){const t=[];const e=new iu("colPinStart");let n=1;for(let i of this.dataPorts){const o=i.dataStore.get("items").length;const s=new Ts(i.type);s.updateData(i.dataStore.get("source"));const a=new Ts("colPinStart");const u=Object.assign({cellTemplate:mf(n)},this.rowHeaderColumn);a.updateData([u]);const c=Object.assign(Object.assign({},i),{rowClass:this.rowClass,dataStore:s.store,colData:a.store,viewportCol:e.store,readonly:true,range:false});t.push(r("revogr-data",Object.assign({},c)));n+=o}const i=Sl(n,this.rowHeaderColumn);e.setViewport({realCount:1,virtualSize:0,items:[{size:i,start:0,end:i,itemIndex:0}]});const s=`${this.uiid}-rowHeaders`;const a={[ja]:s,contentHeight:this.height,contentWidth:0,style:{minWidth:`${i}px`},ref:t=>this.elementToScroll.emit(t),onScrollViewport:t=>this.scrollViewport.emit(t.detail)};const u=Object.assign(Object.assign({},this.headerProp),{colData:typeof this.rowHeaderColumn==="object"?[this.rowHeaderColumn]:[],viewportCol:e.store,canResize:false,type:za,parent:s,slot:Cl});return r(o,{class:{[za]:true},key:za},r("revogr-viewport-scroll",Object.assign({},a),r("revogr-header",Object.assign({},u)),t))}};const Lf={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};const xf=-1;class yf{constructor(t){this.cfg=t;this.preventArtificialScroll={rgRow:null,rgCol:null};this.previousScroll={rgRow:xf,rgCol:xf};this.params={rgRow:Object.assign({},Lf),rgCol:Object.assign({},Lf)}}static getVirtualContentSize(t,e,r=0){return t+(r?e-r:0)}setParams(t,e){const r=yf.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[e]=Object.assign(Object.assign({},t),{maxSize:r-t.clientSize,virtualContentSize:r})}async setScroll(t){this.cancelScroll(t.dimension);const e=new Promise(((e,r)=>{const n=window.requestAnimationFrame((()=>{e(true)}));this.preventArtificialScroll[t.dimension]=r.bind(null,n)}));try{await e;const r=this.getParams(t.dimension);t.coordinate=Math.ceil(t.coordinate);this.previousScroll[t.dimension]=this.wrapCoordinate(t.coordinate,r);this.preventArtificialScroll[t.dimension]=null;this.cfg.afterScroll(Object.assign(Object.assign({},t),{coordinate:r.virtualSize?this.convert(t.coordinate,r,false):t.coordinate}))}catch(t){window.cancelAnimationFrame(t)}}scroll(t,e,r=false,n,i=false){this.cancelScroll(e);if(!r&&this.previousScroll[e]===t){this.previousScroll[e]=xf;return}const o=this.getParams(e);this.cfg.beforeScroll({dimension:e,coordinate:o.virtualSize?this.convert(t,o):t,delta:n,outside:i})}getParams(t){return this.params[t]}wrapCoordinate(t,e){if(t<0){return xf}if(t>e.maxSize){return e.maxSize}return t}cancelScroll(t){const e=this.preventArtificialScroll[t];if(e){e();this.preventArtificialScroll[t]=null}}convert(t,e,r=true){const n=e.clientSize;const i=[0,e.virtualContentSize-n];const o=[0,e.contentSize-e.virtualSize];if(r){return au(t,i,o)}return au(t,o,i)}}const kf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";const Ef=class{constructor(t){n(this,t);this.scrollVirtual=i(this,"scrollVirtual",7);this.scrollSize=0;this.isAutoHide=false;this.autoHideTimeout=0;this.dimension="rgRow";this.viewportStore=undefined;this.dimensionStore=undefined}async setScroll(t){var e;if(this.dimension!==t.dimension){return}(e=this.scrollService)===null||e===void 0?void 0:e.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.element.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.element.scrollTop+t.delta;break}this.setScroll(t)}return t}set size(t){if(this.dimension==="rgRow"){this.element.style.minWidth=`${t}px`;return}this.element.style.minHeight=`${t}px`}get size(){if(this.dimension==="rgRow"){return this.element.clientHeight}return this.element.clientWidth}connectedCallback(){this.scrollService=new yf({beforeScroll:t=>this.scrollVirtual.emit(t),afterScroll:t=>{const e=t.dimension==="rgRow"?"scrollTop":"scrollLeft";this.element[e]=t.coordinate}})}disconnectedCallback(){clearTimeout(this.autoHideTimeout)}componentWillLoad(){this.scrollSize=su(document);this.isAutoHide=!this.scrollSize}componentDidRender(){const t=this.dimension==="rgRow"?"scrollHeight":"scrollWidth";if(this.element[t]>this.size){this.size=this.scrollSize}else{this.size=0}this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)}onScroll(t){var e;let r="scrollLeft";if(this.dimension==="rgRow"){r="scrollTop"}if(this.isAutoHide){this.size=20;this.autoHideTimeout=this.autoHide(this.autoHideTimeout)}const n=t.target;(e=this.scrollService)===null||e===void 0?void 0:e.scroll(n[r]||0,this.dimension)}autoHide(t){clearTimeout(t);return setTimeout((()=>{this.size=0}),6e3)}render(){const t=this.dimension==="rgRow"?"height":"width";return r(o,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:t=>this.onScroll(t)}),r("div",{style:{[t]:`${this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize"))}px`}}))}extContentSize(t,e){return yf.getVirtualContentSize(e,this.size,t)}get element(){return s(this)}};Ef.style=kf;const Sf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block !important;position:absolute;pointer-events:none;z-index:9;border:1px solid rgb(255, 94, 0);box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";const jf=class{constructor(t){n(this,t);this.onChange=ra.throttle((t=>this.doChange(t)),300);this.selectionStore=undefined;this.dimensionRow=undefined;this.dimensionCol=undefined}doChange(t){t===null||t===void 0?void 0:t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){if(this.el){this.onChange(this.el)}}render(){const t=this.selectionStore.get("tempRange");const e=this.selectionStore.get("tempRangeType");if(!t){return}let n="bottom";let i="right";const s=this.getRange();if(!s){return}if(t.y<s.y){n="top"}if(t.x<s.x){i="left"}const a=`${i} ${n}`;const u=Fh(t,this.dimensionRow.state,this.dimensionCol.state);return r(o,{class:{[$a]:true,[e||""]:true},style:u,hidden:false},r("div",{class:a,ref:t=>this.el=t}))}getRange(){const t=this.selectionStore.get("range");if(t){return t}const e=this.selectionStore.get("focus");if(!e){return null}return Object.assign(Object.assign({},e),{x1:e.x,y1:e.y})}};jf.style=Sf;var Rf="Expected a function";function Of(t,e,r){var n=true,i=true;if(typeof t!="function"){throw new TypeError(Rf)}if(f(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return m(t,e,{leading:n,maxWait:e,trailing:i})}var zf=Of;async function Mf(){if(!("ResizeObserver"in window)){const t=await import("./resize-observer-d817c4b6.js");window.ResizeObserver=t.ResizeObserver}}class Ff{constructor(t,e){this.events=e;this.resizeObserver=null;this.resize=zf(((t,e)=>{var r;return(r=this.events)===null||r===void 0?void 0:r.resize(t,e)}),10);this.init(t)}async init(t){var e;await Mf();this.resizeObserver=new ResizeObserver(this.resize);(e=this.resizeObserver)===null||e===void 0?void 0:e.observe(t)}destroy(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();this.resizeObserver=null}}const Af=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}";const _f=class{constructor(t){n(this,t);this.scrollViewport=i(this,"scrollViewport",7);this.resizeViewport=i(this,"resizeViewport",7);this.scrollchange=i(this,"scrollchange",7);this.scrollThrottling=10;this.oldValY=this.contentHeight;this.oldValX=this.contentWidth;this.mouseWheelScroll={rgCol:0,rgRow:0};this.contentWidth=0;this.contentHeight=0}async setScroll(t){var e;this.latestScrollUpdate(t.dimension);(e=this.scrollService)===null||e===void 0?void 0:e.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.horizontalScroll.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.verticalScroll.scrollTop+t.delta;break}this.setScroll(t)}return t}mousewheelVertical({detail:t}){this.verticalMouseWheel(t)}mousewheelHorizontal({detail:t}){this.horizontalMouseWheel(t)}scrollApply({detail:{type:t,coordinate:e}}){this.applyOnScroll(t,e,true)}connectedCallback(){if("ontouchstart"in document.documentElement){this.scrollThrottling=0}else{this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY");this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")}this.scrollService=new yf({beforeScroll:t=>this.scrollViewport.emit(t),afterScroll:t=>{switch(t.dimension){case"rgCol":this.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":this.verticalScroll.scrollTop=t.coordinate;break}}})}componentDidLoad(){this.resizeService=new Ff(this.horizontalScroll,{resize:t=>{var e,r;let n=((e=t[0])===null||e===void 0?void 0:e.contentRect.height)||0;if(n){n-=this.header.clientHeight+this.footer.clientHeight}const i={rgRow:{size:n,contentSize:this.contentHeight,scroll:this.verticalScroll.scrollTop},rgCol:{size:((r=t[0])===null||r===void 0?void 0:r.contentRect.width)||0,contentSize:this.contentWidth,scroll:this.horizontalScroll.scrollLeft}};Ce(i,((t,e)=>{var r;this.resizeViewport.emit({dimension:e,size:t.size});(r=this.scrollService)===null||r===void 0?void 0:r.scroll(t.scroll,e,true);this.setScrollVisibility(e,t.size,t.contentSize)}))}})}setScrollVisibility(t,e,r){const n=e<r;let i;switch(t){case"rgCol":i=this.horizontalScroll;break;case"rgRow":i=this.verticalScroll;break}if(n){i.classList.add(`scroll-${t}`)}else{i.classList.remove(`scroll-${t}`)}this.scrollchange.emit({type:t,hasScroll:n})}disconnectedCallback(){this.resizeService.destroy()}async componentDidRender(){if(this.contentHeight<this.oldValY&&this.verticalScroll){this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY}this.oldValY=this.contentHeight;if(this.contentWidth<this.oldValX){this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX}this.oldValX=this.contentWidth;this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow");this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol");this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight);this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth)}render(){return r(o,{onWheel:this.horizontalMouseWheel,onScroll:t=>this.onScroll("rgCol",t)},r("div",{class:"inner-content-table",style:{width:`${this.contentWidth}px`}},r("div",{class:"header-wrapper",ref:t=>this.header=t},r("slot",{name:Cl})),r("div",{class:"vertical-inner",ref:t=>this.verticalScroll=t,onWheel:this.verticalMouseWheel,onScroll:t=>this.onScroll("rgRow",t)},r("div",{class:"content-wrapper",style:{height:`${this.contentHeight}px`}},r("slot",{name:ml}))),r("div",{class:"footer-wrapper",ref:t=>this.footer=t},r("slot",{name:wl}))))}onScroll(t,e){const r=e.target;let n=0;switch(t){case"rgCol":n=r===null||r===void 0?void 0:r.scrollLeft;break;case"rgRow":n=r===null||r===void 0?void 0:r.scrollTop;break}this.applyOnScroll(t,n)}applyOnScroll(t,e,r=false){var n;const i=(new Date).getTime()-this.mouseWheelScroll[t];if(i>this.scrollThrottling){(n=this.scrollService)===null||n===void 0?void 0:n.scroll(e,t,undefined,undefined,r)}}latestScrollUpdate(t){this.mouseWheelScroll[t]=(new Date).getTime()}onVerticalMouseWheel(t,e,r){var n;r.preventDefault&&r.preventDefault();const i=this.verticalScroll.scrollTop+r[e];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,t,undefined,r[e]);this.latestScrollUpdate(t)}onHorizontalMouseWheel(t,e,r){var n;r.preventDefault&&r.preventDefault();const i=this.horizontalScroll.scrollLeft+r[e];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,t,undefined,r[e]);this.latestScrollUpdate(t)}get horizontalScroll(){return s(this)}};_f.style=Af;export{Nl as revo_grid,Ql as revogr_data,Eh as revogr_edit,_h as revogr_focus,af as revogr_header,cf as revogr_order_editor,wf as revogr_overlay_selection,bf as revogr_row_headers,Ef as revogr_scroll_virtual,jf as revogr_temp_range,_f as revogr_viewport_scroll};
|
|
5
|
-
//# sourceMappingURL=revo-grid_11.entry.js.map
|