@revolist/revogrid 3.2.10 → 3.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-element/index.js +6 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/revo-grid.cjs.js +1 -1
- package/dist/cjs/revo-grid_11.cjs.entry.js +5 -3
- package/dist/collection/components/revo-grid/revo-grid.js +8 -3
- package/dist/collection/components/revo-grid/viewport.section.js +1 -1
- package/dist/collection/components/selection-focus/revogr-focus.js +32 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/revo-grid.js +1 -1
- package/dist/esm/revo-grid_11.entry.js +5 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/revo-grid.js +1 -1
- package/dist/esm-es5/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.system.js +1 -1
- package/dist/revo-grid/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +1 -1
- package/dist/types/components/revo-grid/revo-grid.d.ts +1 -0
- package/dist/types/components/selection-focus/revogr-focus.d.ts +3 -1
- package/dist/types/components.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};
|
|
2
2
|
/*!
|
|
3
3
|
* Built by Revolist
|
|
4
|
-
*/import{g as getRenderingRef,f as forceUpdate,h,r as registerInstance,c as createEvent,H as Host,e as getElement}from"./index-6f753b3c.js";import{i as isObjectLike_1,_ as _baseGetTag,c as createCommonjsModule,a as _root,b as _freeGlobal,d as isObject_1,e as _Symbol,f as isSymbol_1,t as toNumber_1,g as isFilterBtn,F as FILTER_PROP,h as commonjsGlobal,j as debounce_1,k as FilterButton}from"./debounce-e4e6dd45.js";var ThemeCompact=function(){function e(){this.defaultRowSize=32}return e}();var ThemeDefault=function(){function e(){this.defaultRowSize=27}return e}();var ThemeMaterial=function(){function e(){this.defaultRowSize=42}return e}();var DEFAULT_THEME="default";var allowedThemes=[DEFAULT_THEME,"material","compact","darkMaterial","darkCompact"];var ThemeService=function(){function e(e){this.customRowSize=0;this.customRowSize=e.rowSize;this.register("default")}Object.defineProperty(e.prototype,"theme",{get:function(){return this.currentTheme},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"rowSize",{get:function(){return this.customRowSize||this.currentTheme.defaultRowSize},set:function(e){this.customRowSize=e},enumerable:false,configurable:true});e.prototype.register=function(t){var r=e.getTheme(t);switch(r){case"material":case"darkMaterial":this.currentTheme=new ThemeMaterial;break;case"compact":case"darkCompact":this.currentTheme=new ThemeCompact;break;default:this.currentTheme=new ThemeDefault;break}};e.getTheme=function(e){if(allowedThemes.indexOf(e)>-1){return e}return DEFAULT_THEME};return e}();function arrayReduce(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}var _arrayReduce=arrayReduce;function createBaseFor(e){return function(t,r,n){var i=-1,o=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}var _createBaseFor=createBaseFor;var baseFor=_createBaseFor();var _baseFor=baseFor;function baseTimes(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var _baseTimes=baseTimes;var argsTag$2="[object Arguments]";function baseIsArguments(e){return isObjectLike_1(e)&&_baseGetTag(e)==argsTag$2}var _baseIsArguments=baseIsArguments;var objectProto$9=Object.prototype;var hasOwnProperty$7=objectProto$9.hasOwnProperty;var propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable;var isArguments=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(e){return isObjectLike_1(e)&&hasOwnProperty$7.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")};var isArguments_1=isArguments;var isArray$1=Array.isArray;var isArray_1=isArray$1;function stubFalse(){return false}var stubFalse_1=stubFalse;var isBuffer_1=createCommonjsModule((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i?_root.Buffer:undefined;var a=o?o.isBuffer:undefined;var s=a||stubFalse_1;e.exports=s}));var MAX_SAFE_INTEGER$1=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;t=t==null?MAX_SAFE_INTEGER$1:t;return!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&(e>-1&&e%1==0&&e<t)}var _isIndex=isIndex;var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$3="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",weakMapTag$1="[object WeakMap]";var arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$3]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$3]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$1]=false;function baseIsTypedArray(e){return isObjectLike_1(e)&&isLength_1(e.length)&&!!typedArrayTags[_baseGetTag(e)]}var _baseIsTypedArray=baseIsTypedArray;function baseUnary(e){return function(t){return e(t)}}var _baseUnary=baseUnary;var _nodeUtil=createCommonjsModule((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i&&_freeGlobal.process;var a=function(){try{var e=n&&n.require&&n.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}));var nodeIsTypedArray=_nodeUtil&&_nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray;var isTypedArray_1=isTypedArray;var objectProto$8=Object.prototype;var hasOwnProperty$6=objectProto$8.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray_1(e),n=!r&&isArguments_1(e),i=!r&&!n&&isBuffer_1(e),o=!r&&!n&&!i&&isTypedArray_1(e),a=r||n||i||o,s=a?_baseTimes(e.length,String):[],u=s.length;for(var l in e){if((t||hasOwnProperty$6.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||_isIndex(l,u)))){s.push(l)}}return s}var _arrayLikeKeys=arrayLikeKeys;var objectProto$7=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$7;return e===r}var _isPrototype=isPrototype;function overArg(e,t){return function(r){return e(t(r))}}var _overArg=overArg;var nativeKeys=_overArg(Object.keys,Object);var _nativeKeys=nativeKeys;var objectProto$6=Object.prototype;var hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeys(e){if(!_isPrototype(e)){return _nativeKeys(e)}var t=[];for(var r in Object(e)){if(hasOwnProperty$5.call(e,r)&&r!="constructor"){t.push(r)}}return t}var _baseKeys=baseKeys;var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_1(e)){return false}var t=_baseGetTag(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction;function isArrayLike(e){return e!=null&&isLength_1(e.length)&&!isFunction_1(e)}var isArrayLike_1=isArrayLike;function keys(e){return isArrayLike_1(e)?_arrayLikeKeys(e):_baseKeys(e)}var keys_1=keys;function baseForOwn(e,t){return e&&_baseFor(e,t,keys_1)}var _baseForOwn=baseForOwn;function createBaseEach(e,t){return function(r,n){if(r==null){return r}if(!isArrayLike_1(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=Object(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}var _createBaseEach=createBaseEach;var baseEach=_createBaseEach(_baseForOwn);var _baseEach=baseEach;function listCacheClear(){this.__data__=[];this.size=0}var _listCacheClear=listCacheClear;function eq$1(e,t){return e===t||e!==e&&t!==t}var eq_1=eq$1;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq_1(e[r][0],t)){return r}}return-1}var _assocIndexOf=assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=_assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{splice.call(t,r,1)}--this.size;return true}var _listCacheDelete=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=_assocIndexOf(t,e);return r<0?undefined:t[r][1]}var _listCacheGet=listCacheGet;function listCacheHas(e){return _assocIndexOf(this.__data__,e)>-1}var _listCacheHas=listCacheHas;function listCacheSet(e,t){var r=this.__data__,n=_assocIndexOf(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}var _listCacheSet=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=_listCacheClear;ListCache.prototype["delete"]=_listCacheDelete;ListCache.prototype.get=_listCacheGet;ListCache.prototype.has=_listCacheHas;ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache;function stackClear(){this.__data__=new _ListCache;this.size=0}var _stackClear=stackClear;function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}var _stackDelete=stackDelete;function stackGet(e){return this.__data__.get(e)}var _stackGet=stackGet;function stackHas(e){return this.__data__.has(e)}var _stackHas=stackHas;var coreJsData=_root["__core-js_shared__"];var _coreJsData=coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked;var funcProto$1=Function.prototype;var funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto$5=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$4=objectProto$5.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$4).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_1(e)||_isMasked(e)){return false}var t=isFunction_1(e)?reIsNative:reIsHostCtor;return t.test(_toSource(e))}var _baseIsNative=baseIsNative;function getValue(e,t){return e==null?undefined:e[t]}var _getValue=getValue;function getNative(e,t){var r=_getValue(e,t);return _baseIsNative(r)?r:undefined}var _getNative=getNative;var Map$1=_getNative(_root,"Map");var _Map=Map$1;var nativeCreate=_getNative(Object,"create");var _nativeCreate=nativeCreate;function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{};this.size=0}var _hashClear=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}var _hashDelete=hashDelete;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$4=Object.prototype;var hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(_nativeCreate){var r=t[e];return r===HASH_UNDEFINED$2?undefined:r}return hasOwnProperty$3.call(t,e)?t[e]:undefined}var _hashGet=hashGet;var objectProto$3=Object.prototype;var hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas(e){var t=this.__data__;return _nativeCreate?t[e]!==undefined:hasOwnProperty$2.call(t,e)}var _hashHas=hashHas;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=_nativeCreate&&t===undefined?HASH_UNDEFINED$1:t;return this}var _hashSet=hashSet;function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=_hashClear;Hash.prototype["delete"]=_hashDelete;Hash.prototype.get=_hashGet;Hash.prototype.has=_hashHas;Hash.prototype.set=_hashSet;var _Hash=Hash;function mapCacheClear(){this.size=0;this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}var _mapCacheClear=mapCacheClear;function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable;function getMapData(e,t){var r=e.__data__;return _isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _getMapData=getMapData;function mapCacheDelete(e){var t=_getMapData(this,e)["delete"](e);this.size-=t?1:0;return t}var _mapCacheDelete=mapCacheDelete;function mapCacheGet(e){return _getMapData(this,e).get(e)}var _mapCacheGet=mapCacheGet;function mapCacheHas(e){return _getMapData(this,e).has(e)}var _mapCacheHas=mapCacheHas;function mapCacheSet(e,t){var r=_getMapData(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}var _mapCacheSet=mapCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=_mapCacheClear;MapCache.prototype["delete"]=_mapCacheDelete;MapCache.prototype.get=_mapCacheGet;MapCache.prototype.has=_mapCacheHas;MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache;var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof _ListCache){var n=r.__data__;if(!_Map||n.length<LARGE_ARRAY_SIZE-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new _MapCache(n)}r.set(e,t);this.size=r.size;return this}var _stackSet=stackSet;function Stack(e){var t=this.__data__=new _ListCache(e);this.size=t.size}Stack.prototype.clear=_stackClear;Stack.prototype["delete"]=_stackDelete;Stack.prototype.get=_stackGet;Stack.prototype.has=_stackHas;Stack.prototype.set=_stackSet;var _Stack=Stack;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){this.__data__.set(e,HASH_UNDEFINED);return this}var _setCacheAdd=setCacheAdd;function setCacheHas(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas;function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new _MapCache;while(++t<r){this.add(e[t])}}SetCache.prototype.add=SetCache.prototype.push=_setCacheAdd;SetCache.prototype.has=_setCacheHas;var _SetCache=SetCache;function arraySome(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var _arraySome=arraySome;function cacheHas(e,t){return e.has(t)}var _cacheHas=cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(e,t,r,n,i,o){var a=r&COMPARE_PARTIAL_FLAG$5,s=e.length,u=t.length;if(s!=u&&!(a&&u>s)){return false}var l=o.get(e);var c=o.get(t);if(l&&c){return l==t&&c==e}var f=-1,d=true,v=r&COMPARE_UNORDERED_FLAG$3?new _SetCache:undefined;o.set(e,t);o.set(t,e);while(++f<s){var h=e[f],p=t[f];if(n){var g=a?n(p,h,f,t,e,o):n(h,p,f,e,t,o)}if(g!==undefined){if(g){continue}d=false;break}if(v){if(!_arraySome(t,(function(e,t){if(!_cacheHas(v,t)&&(h===e||i(h,e,r,n,o))){return v.push(t)}}))){d=false;break}}else if(!(h===p||i(h,p,r,n,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}var _equalArrays=equalArrays;var Uint8Array=_root.Uint8Array;var _Uint8Array=Uint8Array;function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}var _mapToArray=mapToArray;function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var _setToArray=setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$2="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]";var symbolProto$1=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:undefined;function equalByTag(e,t,r,n,i,o,a){switch(r){case dataViewTag$1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case arrayBufferTag:if(e.byteLength!=t.byteLength||!o(new _Uint8Array(e),new _Uint8Array(t))){return false}return true;case boolTag:case dateTag:case numberTag:return eq_1(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag$1:return e==t+"";case mapTag$2:var s=_mapToArray;case setTag$2:var u=n&COMPARE_PARTIAL_FLAG$4;s||(s=_setToArray);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=COMPARE_UNORDERED_FLAG$2;a.set(e,t);var c=_equalArrays(s(e),s(t),n,i,o,a);a["delete"](e);return c;case symbolTag:if(symbolValueOf){return symbolValueOf.call(e)==symbolValueOf.call(t)}}return false}var _equalByTag=equalByTag;function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var _arrayPush=arrayPush;function baseGetAllKeys(e,t,r){var n=t(e);return isArray_1(e)?n:_arrayPush(n,r(e))}var _baseGetAllKeys=baseGetAllKeys;function arrayFilter(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}var _arrayFilter=arrayFilter;function stubArray(){return[]}var stubArray_1=stubArray;var objectProto$2=Object.prototype;var propertyIsEnumerable=objectProto$2.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols=!nativeGetSymbols?stubArray_1:function(e){if(e==null){return[]}e=Object(e);return _arrayFilter(nativeGetSymbols(e),(function(t){return propertyIsEnumerable.call(e,t)}))};var _getSymbols=getSymbols;function getAllKeys(e){return _baseGetAllKeys(e,keys_1,_getSymbols)}var _getAllKeys=getAllKeys;var COMPARE_PARTIAL_FLAG$3=1;var objectProto$1=Object.prototype;var hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,n,i,o){var a=r&COMPARE_PARTIAL_FLAG$3,s=_getAllKeys(e),u=s.length,l=_getAllKeys(t),c=l.length;if(u!=c&&!a){return false}var f=u;while(f--){var d=s[f];if(!(a?d in t:hasOwnProperty$1.call(t,d))){return false}}var v=o.get(e);var h=o.get(t);if(v&&h){return v==t&&h==e}var p=true;o.set(e,t);o.set(t,e);var g=a;while(++f<u){d=s[f];var m=e[d],C=t[d];if(n){var y=a?n(C,m,d,t,e,o):n(m,C,d,e,t,o)}if(!(y===undefined?m===C||i(m,C,r,n,o):y)){p=false;break}g||(g=d=="constructor")}if(p&&!g){var _=e.constructor,b=t.constructor;if(_!=b&&("constructor"in e&&"constructor"in t)&&!(typeof _=="function"&&_ instanceof _&&typeof b=="function"&&b instanceof b)){p=false}}o["delete"](e);o["delete"](t);return p}var _equalObjects=equalObjects;var DataView=_getNative(_root,"DataView");var _DataView=DataView;var Promise$1=_getNative(_root,"Promise");var _Promise=Promise$1;var Set=_getNative(_root,"Set");var _Set=Set;var WeakMap=_getNative(_root,"WeakMap");var _WeakMap=WeakMap;var mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]";var dataViewTag="[object DataView]";var dataViewCtorString=_toSource(_DataView),mapCtorString=_toSource(_Map),promiseCtorString=_toSource(_Promise),setCtorString=_toSource(_Set),weakMapCtorString=_toSource(_WeakMap);var getTag=_baseGetTag;if(_DataView&&getTag(new _DataView(new ArrayBuffer(1)))!=dataViewTag||_Map&&getTag(new _Map)!=mapTag$1||_Promise&&getTag(_Promise.resolve())!=promiseTag||_Set&&getTag(new _Set)!=setTag$1||_WeakMap&&getTag(new _WeakMap)!=weakMapTag){getTag=function(e){var t=_baseGetTag(e),r=t==objectTag$1?e.constructor:undefined,n=r?_toSource(r):"";if(n){switch(n){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}}return t}}var _getTag=getTag;var COMPARE_PARTIAL_FLAG$2=1;var argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]";var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,n,i,o){var a=isArray_1(e),s=isArray_1(t),u=a?arrayTag:_getTag(e),l=s?arrayTag:_getTag(t);u=u==argsTag?objectTag:u;l=l==argsTag?objectTag:l;var c=u==objectTag,f=l==objectTag,d=u==l;if(d&&isBuffer_1(e)){if(!isBuffer_1(t)){return false}a=true;c=false}if(d&&!c){o||(o=new _Stack);return a||isTypedArray_1(e)?_equalArrays(e,t,r,n,i,o):_equalByTag(e,t,u,r,n,i,o)}if(!(r&COMPARE_PARTIAL_FLAG$2)){var v=c&&hasOwnProperty.call(e,"__wrapped__"),h=f&&hasOwnProperty.call(t,"__wrapped__");if(v||h){var p=v?e.value():e,g=h?t.value():t;o||(o=new _Stack);return i(p,g,r,n,o)}}if(!d){return false}o||(o=new _Stack);return _equalObjects(e,t,r,n,i,o)}var _baseIsEqualDeep=baseIsEqualDeep;function baseIsEqual(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!isObjectLike_1(e)&&!isObjectLike_1(t)){return e!==e&&t!==t}return _baseIsEqualDeep(e,t,r,n,baseIsEqual,i)}var _baseIsEqual=baseIsEqual;var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null){return!o}e=Object(e);while(i--){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e)){return false}}while(++i<o){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===undefined&&!(u in e)){return false}}else{var f=new _Stack;if(n){var d=n(l,c,u,e,t,f)}if(!(d===undefined?_baseIsEqual(c,l,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,n,f):d)){return false}}}return true}var _baseIsMatch=baseIsMatch;function isStrictComparable(e){return e===e&&!isObject_1(e)}var _isStrictComparable=isStrictComparable;function getMatchData(e){var t=keys_1(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,_isStrictComparable(i)]}return t}var _getMatchData=getMatchData;function matchesStrictComparable(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var _matchesStrictComparable=matchesStrictComparable;function baseMatches(e){var t=_getMatchData(e);if(t.length==1&&t[0][2]){return _matchesStrictComparable(t[0][0],t[0][1])}return function(r){return r===e||_baseIsMatch(r,e,t)}}var _baseMatches=baseMatches;var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray_1(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol_1(e)){return true}return reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}var _isKey=isKey;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(FUNC_ERROR_TEXT$1)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(memoize.Cache||_MapCache);return r}memoize.Cache=_MapCache;var memoize_1=memoize;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize_1(e,(function(e){if(r.size===MAX_MEMOIZE_SIZE){r.clear()}return e}));var r=t.cache;return t}var _memoizeCapped=memoizeCapped;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=_memoizeCapped((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(rePropName,(function(e,r,n,i){t.push(n?i.replace(reEscapeChar,"$1"):r||e)}));return t}));var _stringToPath=stringToPath;function arrayMap(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}var _arrayMap=arrayMap;var INFINITY$2=1/0;var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(isArray_1(e)){return _arrayMap(e,baseToString)+""}if(isSymbol_1(e)){return symbolToString?symbolToString.call(e):""}var t=e+"";return t=="0"&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString;function toString(e){return e==null?"":_baseToString(e)}var toString_1=toString;function castPath(e,t){if(isArray_1(e)){return e}return _isKey(e,t)?[e]:_stringToPath(toString_1(e))}var _castPath=castPath;var INFINITY$1=1/0;function toKey(e){if(typeof e=="string"||isSymbol_1(e)){return e}var t=e+"";return t=="0"&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey;function baseGet(e,t){t=_castPath(t,e);var r=0,n=t.length;while(e!=null&&r<n){e=e[_toKey(t[r++])]}return r&&r==n?e:undefined}var _baseGet=baseGet;function get(e,t,r){var n=e==null?undefined:_baseGet(e,t);return n===undefined?r:n}var get_1=get;function baseHasIn(e,t){return e!=null&&t in Object(e)}var _baseHasIn=baseHasIn;function hasPath(e,t,r){t=_castPath(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=_toKey(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&isLength_1(i)&&_isIndex(a,i)&&(isArray_1(e)||isArguments_1(e))}var _hasPath=hasPath;function hasIn(e,t){return e!=null&&_hasPath(e,t,_baseHasIn)}var hasIn_1=hasIn;var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,t){if(_isKey(e)&&_isStrictComparable(t)){return _matchesStrictComparable(_toKey(e),t)}return function(r){var n=get_1(r,e);return n===undefined&&n===t?hasIn_1(r,e):_baseIsEqual(t,n,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty;function identity(e){return e}var identity_1=identity;function baseProperty(e){return function(t){return t==null?undefined:t[e]}}var _baseProperty=baseProperty;function basePropertyDeep(e){return function(t){return _baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep;function property(e){return _isKey(e)?_baseProperty(_toKey(e)):_basePropertyDeep(e)}var property_1=property;function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return identity_1}if(typeof e=="object"){return isArray_1(e)?_baseMatchesProperty(e[0],e[1]):_baseMatches(e)}return property_1(e)}var _baseIteratee=baseIteratee;function baseReduce(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}var _baseReduce=baseReduce;function reduce(e,t,r){var n=isArray_1(e)?_arrayReduce:_baseReduce,i=arguments.length<3;return n(e,_baseIteratee(t),r,i,_baseEach)}var reduce_1=reduce;function arrayEach(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}var _arrayEach=arrayEach;function castFunction(e){return typeof e=="function"?e:identity_1}var _castFunction=castFunction;function forEach(e,t){var r=isArray_1(e)?_arrayEach:_baseEach;return r(e,_castFunction(t))}var forEach_1=forEach;var each=forEach_1;function createFind(e){return function(t,r,n){var i=Object(t);if(!isArrayLike_1(t)){var o=_baseIteratee(r);t=keys_1(t);r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:undefined}}var _createFind=createFind;function baseFindIndex(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}var _baseFindIndex=baseFindIndex;var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(e){if(!e){return e===0?e:0}e=toNumber_1(e);if(e===INFINITY||e===-INFINITY){var t=e<0?-1:1;return t*MAX_INTEGER}return e===e?e:0}var toFinite_1=toFinite;function toInteger(e){var t=toFinite_1(e),r=t%1;return t===t?r?t-r:t:0}var toInteger_1=toInteger;var nativeMax$2=Math.max;function findIndex(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:toInteger_1(r);if(i<0){i=nativeMax$2(n+i,0)}return _baseFindIndex(e,_baseIteratee(t),i)}var findIndex_1=findIndex;var find=_createFind(findIndex_1);var find_1=find;var appendToMap=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var debounce=function(e,t){var r;return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(isConnected))}}),2e3);var stencilSubscription=function(e){var t=e.on;var r=new Map;if(typeof getRenderingRef==="function"){t("dispose",(function(){r.clear()}));t("get",(function(e){var t=getRenderingRef();if(t){appendToMap(r,e,t)}}));t("set",(function(e){var t=r.get(e);if(t){r.set(e,t.filter(forceUpdate))}cleanupElements(r)}));t("reset",(function(){r.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(r)}))}};var createObservableMap=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var i=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var o=function(){n.dispose.forEach((function(e){return e()}));i()};var a=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,i){var o=r.get(e);if(t(i,o,e)){r.set(e,i);n.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var l=function(e,t){n[e].push(t);return function(){removeFromArray(n[e],t)}};var c=function(t,r){var n=l("set",(function(e,n){if(e===t){r(n)}}));var i=l("reset",(function(){return r(e[t])}));return function(){n();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:a,set:s,on:l,onChange:c,use:f,dispose:o,reset:i}};var removeFromArray=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var createStore=function(e,t){var r=createObservableMap(e,t);stencilSubscription(r);return r};var nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(e,t,r,n){var i=-1,o=nativeMax$1(nativeCeil((t-e)/(r||1)),0),a=Array(o);while(o--){a[n?o:++i]=e;e+=r}return a}var _baseRange=baseRange;function isIterateeCall(e,t,r){if(!isObject_1(r)){return false}var n=typeof t;if(n=="number"?isArrayLike_1(r)&&_isIndex(t,r.length):n=="string"&&t in r){return eq_1(r[t],e)}return false}var _isIterateeCall=isIterateeCall;function createRange(e){return function(t,r,n){if(n&&typeof n!="number"&&_isIterateeCall(t,r,n)){r=n=undefined}t=toFinite_1(t);if(r===undefined){r=t;t=0}else{r=toFinite_1(r)}n=n===undefined?t<r?1:-1:toFinite_1(n);return _baseRange(t,r,n,e)}}var _createRange=createRange;var range=_createRange();var range_1=range;var trimmedPlugin=function(e){return{set:function(t,r){switch(t){case"trimmed":var n=e.get("proxyItems");var i=gatherTrimmedItems(r);var o=n.reduce((function(e,t){if(!i[t]){e.push(t)}return e}),[]);e.set("items",o);break}}}};function gatherTrimmedItems(e){var t={};for(var r in e){for(var n in e[r]){t[n]=t[n]||e[r][n]}}return t}function setStore(e,t){for(var r in t){e.set(r,t[r])}}var proxyPlugin=function(e){return{set:function(t,r){if(!isProxy(t)){return}var n=e.get("items").reduce((function(e,t){e[t]=true;return e}),{});var i=r.reduce((function(e,t){if(n[t]){e.push(t)}return e}),[]);e.set("items",i)}}};function isProxy(e){return e==="proxyItems"}var DataStore=function(){function e(e){var t=this.dataStore=createStore({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:e,trimmed:{}});t.use(proxyPlugin(t));t.use(trimmedPlugin(t))}Object.defineProperty(e.prototype,"store",{get:function(){return this.dataStore},enumerable:false,configurable:true});e.prototype.updateData=function(e,t,r){if(r===void 0){r=false}if(!r){this.store.set("trimmed",{})}this.store.set("items",[]);var n=range_1(0,(e===null||e===void 0?void 0:e.length)||0);setStore(this.store,{source:e,proxyItems:__spreadArray([],n,true)});this.store.set("items",n);if(t){setStore(this.store,{groupingDepth:t.depth,groups:t.groups})}};e.prototype.addTrimmed=function(e){var t=this.store.get("trimmed");t=Object.assign(Object.assign({},t),e);setStore(this.store,{trimmed:t})};e.prototype.setData=function(e){var t=Object.assign({},e);setStore(this.store,t)};e.prototype.refresh=function(){var e=this.store.get("source");this.store.set("source",__spreadArray([],e,true))};return e}();function getPhysical(e,t){var r=e.get("items");return r[t]}function getVisibleSourceItem(e){var t=e.get("source");return e.get("items").map((function(e){return t[e]}))}function getSourceItem(e,t){var r=e.get("items");var n=e.get("source");return n[r[t]]}function setSourceByVirtualIndex(e,t){var r=e.get("items");var n=e.get("source");for(var i in t){var o=r[i];n[o]=t[i]}e.set("source",__spreadArray([],n,true))}function setItems(e,t){e.set("items",t)}function getSourceItemVirtualIndexByProp(e,t){var r=e.get("items");var n=e.get("source");var i=findIndex_1(n,{prop:t});return r.indexOf(i)}var rowTypes=["rowPinStart","rgRow","rowPinEnd"];var columnTypes=["colPinStart","rgCol","colPinEnd"];function isRowType(e){return rowTypes.indexOf(e)>-1}function baseMap(e,t){var r=-1,n=isArrayLike_1(e)?Array(e.length):[];_baseEach(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}var _baseMap=baseMap;function map(e,t){var r=isArray_1(e)?_arrayMap:_baseMap;return r(e,_baseIteratee(t))}var map_1=map;var BasePlugin=function(){function e(e){this.revogrid=e;this.subscriptions={}}e.prototype.addEventListener=function(e,t){this.revogrid.addEventListener(e,t);this.subscriptions[e]=t};e.prototype.removeEventListener=function(e){this.revogrid.removeEventListener(e,this.subscriptions[e]);delete this.subscriptions[e]};e.prototype.emit=function(e,t){var r=new CustomEvent(e,{detail:t,cancelable:true});this.revogrid.dispatchEvent(r);return r};e.prototype.clearSubscriptions=function(){for(var e in this.subscriptions){this.removeEventListener(e)}};e.prototype.destroy=function(){this.clearSubscriptions()};return e}();var GroupingColumnPlugin=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.gatherGroup=function(e,t,r,n){var i;if(n===void 0){n=0}var o=Object.assign(Object.assign({},t),{level:n,ids:[]});for(var a in r.columns){var s=a;var u=e.columns[s];var l=r.columns[s];if(isArray_1(u)&&isArray_1(l)){u.push.apply(u,l);if(l.length){e.columnGrouping[s].push(Object.assign(Object.assign({},o),{ids:map_1(l,"prop")}))}}}for(var a in r.columnGrouping){var s=a;var l=r.columnGrouping[s];(i=e.columnGrouping[s]).push.apply(i,l)}e.maxLevel=Math.max(e.maxLevel,r.maxLevel);e.sort=Object.assign(Object.assign({},e.sort),r.sort);return e};return t}(BasePlugin);function isColGrouping(e){return!!e.children}var ColumnDataProvider=function(){function e(){this.sorting=null;this.dataSources=reduce_1(columnTypes,(function(e,t){e[t]=new DataStore(t);return e}),{})}Object.defineProperty(e.prototype,"order",{get:function(){return reduce_1(this.sorting,(function(e,t,r){e[r]=t.order;return e}),{})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"stores",{get:function(){return this.dataSources},enumerable:false,configurable:true});e.prototype.column=function(e,t){return this.getColumn(e,t||"rgCol")};e.prototype.getColumn=function(e,t){return getSourceItem(this.dataSources[t].store,e)};e.prototype.getRawColumns=function(){return reduce_1(this.dataSources,(function(e,t,r){e[r]=t.store.get("source");return e}),{rgCol:[],colPinStart:[],colPinEnd:[]})};e.prototype.getColumns=function(e){var t=this;if(e===void 0){e="all"}if(e!=="all"){return this.dataSources[e].store.get("source")}return columnTypes.reduce((function(e,r){e.push.apply(e,t.dataSources[r].store.get("source"));return e}),[])};e.prototype.getColumnIndexByProp=function(e,t){return getSourceItemVirtualIndexByProp(this.dataSources[t].store,e)};e.prototype.getColumnByProp=function(e,t){var r=this.dataSources[t].store.get("source");return find_1(r,{prop:e})};e.prototype.refreshByType=function(e){this.dataSources[e].refresh()};e.prototype.setColumns=function(e){var t=this;each(columnTypes,(function(r){t.dataSources[r].updateData(e.columns[r],{depth:e.maxLevel,groups:reduce_1(e.columnGrouping[r],(function(e,t){if(!e[t.level]){e[t.level]=[]}e[t.level].push(t);return e}),{})})}));this.sorting=e.sort;return e};e.prototype.updateColumns=function(t){var r=this;var n=t.reduce((function(t,r){var n=e.getColumnType(r);if(!t[n]){t[n]={}}t[n][r.prop]=r;return t}),{});var i={};each(n,(function(e,t){var n=r.dataSources[t].store.get("source");i[t]=n.reduce((function(t,r,n){var i=e[r.prop];if(i){t[n]=i}return t}),{})}));each(i,(function(e,t){return setSourceByVirtualIndex(r.dataSources[t].store,e)}))};e.prototype.updateColumn=function(t,r){var n;var i=e.getColumnType(t);setSourceByVirtualIndex(this.dataSources[i].store,(n={},n[r]=t,n))};e.prototype.updateColumnSorting=function(e,t,r,n){if(!n){this.clearSorting()}e.order=r;this.sorting[e.prop]=e;this.updateColumn(e,t);return e};e.prototype.clearSorting=function(){var t=this;var r=reduce_1(this.sorting,(function(t,r){var n=e.getColumnType(r);t[n]=true;return t}),{});each(r,(function(e,r){var n=t.dataSources[r].store.get("source");each(n,(function(e){return e.order=undefined}));t.dataSources[r].setData({source:__spreadArray([],n,true)})}));this.sorting={}};e.getSizes=function(e){return reduce_1(e,(function(e,t,r){if(t.size){e[r]=t.size}return e}),{})};e.getColumnByProp=function(t,r){return find_1(t,(function(t){if(isColGrouping(t)){return e.getColumnByProp(t.children,r)}return t.prop===r}))};e.getColumns=function(t,r,n){if(r===void 0){r=0}return reduce_1(t,(function(t,i){if(isColGrouping(i)){return GroupingColumnPlugin.gatherGroup(t,i,e.getColumns(i.children,r+1,n),r)}var o=Object.assign(Object.assign({},i.columnType&&n&&n[i.columnType]),i);if(!o.pin){t.columns.rgCol.push(o)}else{t.columns[o.pin].push(o)}if(o.order){t.sort[o.prop]=o}o.beforeSetup&&o.beforeSetup(o);return t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})};e.getColumnType=function(e){if(e.pin){return e.pin}return"rgCol"};return e}();var DataProvider=function(){function e(e){this.dimensionProvider=e;this.stores=reduce_1(rowTypes,(function(e,t){e[t]=new DataStore(t);return e}),{})}e.prototype.setData=function(e,t,r,n){if(t===void 0){t="rgRow"}if(n===void 0){n=false}this.stores[t].updateData(__spreadArray([],e,true),r,n);this.dimensionProvider.setData(e,t,t!=="rgRow");return e};e.prototype.getModel=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t].store;return getSourceItem(r,e)};e.prototype.setCellData=function(e){var t;var r=e.type,n=e.rowIndex,i=e.prop,o=e.val;var a=this.getModel(n,r);a[i]=o;setSourceByVirtualIndex(this.stores[r].store,(t={},t[n]=a,t))};e.prototype.refresh=function(e){var t=this;if(e===void 0){e="all"}if(isRowType(e)){this.refreshItems(e)}rowTypes.forEach((function(e){return t.refreshItems(e)}))};e.prototype.refreshItems=function(e){if(e===void 0){e="rgRow"}var t=this.stores[e].store.get("items");this.stores[e].setData({items:__spreadArray([],t,true)})};e.prototype.setGrouping=function(e,t){var r=e.depth;if(t===void 0){t="rgRow"}this.stores[t].setData({groupingDepth:r})};e.prototype.setTrimmed=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t];r.addTrimmed(e);if(t==="rgRow"){this.dimensionProvider.setData(getVisibleSourceItem(r.store),t)}};return e}();var MAX_ARRAY_LENGTH$2=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH$2-1;var nativeFloor=Math.floor,nativeMin=Math.min;function baseSortedIndexBy(e,t,r,n){var i=0,o=e==null?0:e.length;if(o===0){return 0}t=r(t);var a=t!==t,s=t===null,u=isSymbol_1(t),l=t===undefined;while(i<o){var c=nativeFloor((i+o)/2),f=r(e[c]),d=f!==undefined,v=f===null,h=f===f,p=isSymbol_1(f);if(a){var g=n||h}else if(l){g=h&&(n||d)}else if(s){g=h&&d&&(n||!v)}else if(u){g=h&&d&&!v&&(n||!p)}else if(v||p){g=false}else{g=n?f<=t:f<t}if(g){i=c+1}else{o=c}}return nativeMin(o,MAX_ARRAY_INDEX)}var _baseSortedIndexBy=baseSortedIndexBy;var MAX_ARRAY_LENGTH$1=4294967295,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH$1>>>1;function baseSortedIndex(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=HALF_MAX_ARRAY_LENGTH){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!isSymbol_1(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return _baseSortedIndexBy(e,t,identity_1,r)}var _baseSortedIndex=baseSortedIndex;function sortedIndex(e,t){return _baseSortedIndex(e,t)}var sortedIndex_1=sortedIndex;function simpleCompare(e,t){return e<t}function mergeSortedArray(e,t,r){if(r===void 0){r=simpleCompare}var n=[];var i=0;var o=0;var a=0;while(a<e.length+t.length){var s=i>=e.length;var u=o>=t.length;if(!s&&(u||r(e[i],t[o]))){n[a]=e[i];i++}else{n[a]=t[o];o++}a++}return n}function getScrollbarWidth(e){var t=e.createElement("div");var r=t.style;r.visibility="hidden";r.overflow="scroll";r.msOverflowStyle="scrollbar";e.body.appendChild(t);var n=e.createElement("div");t.appendChild(n);var i=t.offsetWidth-n.offsetWidth;t.parentNode.removeChild(t);return i}function scaleValue(e,t,r){return(r[1]-r[0])*(e-t[0])/(t[1]-t[0])+r[0]}function timeout(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){setTimeout((function(){return t()}),e)}))];case 1:t.sent();return[2]}}))}))}function calculateDimensionData(e,t){var r=[];var n={};var i={};var o=0;var a=Object.assign(Object.assign({},e.sizes),t);var s=[];each(t,(function(t,r){if(!e.sizes[r]){o+=t-(e.realSize?e.originItemSize:0);s.splice(sortedIndex_1(s,parseInt(r,10)),0,parseInt(r,10))}else{o+=t-e.sizes[r]}}));var u=mergeSortedArray(e.indexes,s);reduce_1(u,(function(t,o,s){var u={itemIndex:o,start:0,end:0};if(t){u.start=(o-t.itemIndex-1)*e.originItemSize+t.end}else{u.start=o*e.originItemSize}u.end=u.start+a[o];r.push(u.start);i[o]=n[s]=u;return u}),undefined);return{indexes:u,positionIndexes:__spreadArray([],r,true),positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:e.realSize+o,sizes:a}}function getItemByPosition(e,t){var r=e.indexes,n=e.positionIndexes,i=e.originItemSize,o=e.positionIndexToItem;var a={itemIndex:0,start:0,end:0};var s=r.length?sortedIndex_1(n,t):0;if(!s){a.itemIndex=Math.floor(t/i);a.start=a.itemIndex*i;a.end=a.start+i;return a}var u=o[s-1];if(u.end>t){return u}var l=t-u.end;var c=Math.floor(l/i);a.itemIndex=u.itemIndex+1+c;a.start=u.end+c*i;a.end=a.start+i;return a}function getItemByIndex(e,t){var r={itemIndex:t,start:0,end:0};if(e.indexToItem[t]){return e.indexToItem[t]}var n=e.indexes.length?sortedIndex_1(e.indexes,t):0;if(!n){r.start=r.itemIndex*e.originItemSize;r.end=r.start+e.originItemSize;return r}var i=e.indexToItem[e.indexes[n-1]];r.start=i.end+(t-i.itemIndex-1)*e.originItemSize;r.end=r.start+e.originItemSize;return r}function initialBase(){return{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function initialState$1(){return Object.assign(Object.assign({},initialBase()),{realSize:0,originItemSize:0,frameOffset:0})}var DimensionStore=function(){function e(){this.store=createStore(initialState$1())}e.prototype.getCurrentState=function(){var e=this;var t=initialState$1();var r=Object.keys(t);return reduce_1(r,(function(t,r){var n=e.store.get(r);t[r]=n;return t}),t)};e.prototype.setRealSize=function(e){var t=0;for(var r=0;r<e;r++){t+=this.store.get("sizes")[r]||this.store.get("originItemSize")}setStore(this.store,{realSize:t})};e.prototype.setStore=function(e){setStore(this.store,e)};e.prototype.drop=function(){setStore(this.store,initialBase())};e.prototype.setDimensionSize=function(e){var t=calculateDimensionData(this.getCurrentState(),e);setStore(this.store,t);return t};return e}();var DimensionProvider=function(){function e(e){this.viewports=e;this.stores=reduce_1(__spreadArray(__spreadArray([],rowTypes,true),columnTypes,true),(function(e,t){e[t]=new DimensionStore;return e}),{})}e.prototype.setDimensionSize=function(e,t){this.stores[e].setDimensionSize(t);this.viewports.stores[e].setViewPortDimension(t)};e.prototype.setRealSize=function(e,t){this.viewports.stores[t].setViewport({realCount:e});this.stores[t].setRealSize(e)};e.prototype.setData=function(e,t,r){if(r===void 0){r=false}this.setRealSize(e.length,t);if(r){this.setNoVirtual(t)}this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})};e.prototype.setNoVirtual=function(e){var t=this.stores[e].getCurrentState();this.viewports.stores[e].setViewport({virtualSize:t.realSize})};e.prototype.drop=function(){for(var e=0,t=columnTypes;e<t.length;e++){var r=t[e];this.stores[r].drop()}};e.prototype.setColumns=function(e,t,r){if(r===void 0){r=false}this.stores[e].setDimensionSize(t);if(r){this.setNoVirtual(e)}this.setViewPortCoordinate({coordinate:this.viewports.stores[e].store.get("lastCoordinate"),type:e})};e.prototype.setViewPortCoordinate=function(e){var t=e.coordinate,r=e.type;var n=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,n)};e.prototype.getViewPortPos=function(e){var t=this.stores[e.dimension].getCurrentState();var r=getItemByIndex(t,e.coordinate);return r.start};e.prototype.setSettings=function(e,t){var r=[];switch(t){case"rgCol":r=columnTypes;break;case"rgRow":r=rowTypes;break}for(var n=0,i=r;n<i.length;n++){var o=i[n];this.stores[o].setStore(e)}};return e}();function getUpdatedItemsByPosition(e,t,r,n,i){var o=getItemByPosition(i,e);var a=getFirstItem(t);var s;if(a){var u=o.itemIndex-(a.itemIndex||0);if(u){var l=recombineByOffset(Math.abs(u),Object.assign(Object.assign({positiveDirection:u>-1},i),t));if(l){s=l}if(s){var c=addMissingItems(o,r,n,s,i);if(c.length){updateMissingAndRange(s.items,c,s)}}}}if(!s){var f=getItems({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:r,sizes:i.sizes});s={items:f,start:0,end:f.length-1}}return s}function updateMissingAndRange(e,t,r){e.splice.apply(e,__spreadArray([r.end+1,0],t,false));if(r.start>=r.end&&!(r.start===r.end&&r.start===0)){r.start+=t.length}r.end+=t.length}function addMissingItems(e,t,r,n,i){var o=getLastItem(n);var a=getItems({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:r-(o.end-e.start),maxCount:t});return a}function getItems(e,t){if(t===void 0){t=0}var r=[];var n=e.startIndex;var i=t;while(i<=e.maxSize&&n<e.maxCount){var o=getItemSize(n,e.sizes,e.origSize);r.push({start:e.start+i,end:e.start+i+o,itemIndex:n,size:o});i+=o;n++}return r}function recombineByOffset(e,t){var r=__spreadArray([],t.items,true);var n=r.length;var i={start:t.start,end:t.end};if(e>n){return null}if(t.positiveDirection){var o=getLastItem(t);var a=i.start;var s=a+e;for(;a<s;a++){var u=o.itemIndex+1;var l=getItemSize(u,t.sizes,t.originItemSize);if(o.end+l>t.realSize){break}var c=a%n;if(!r[c]){throw new Error("incorrect index")}r[c]=o={start:o.end,end:o.end+l,itemIndex:u,size:l};i.start++;i.end=c}}else{var f=getFirstItem(t);var d=i.end;for(var a=0;a<e;a++){var u=f.itemIndex-1;var v=getItemSize(u,t.sizes,t.originItemSize);var h=d-a;h=(h<0?n+h:h)%n;if(!r[h]){throw new Error("incorrect index")}r[h]=f={start:f.start-v,end:f.start,itemIndex:u,size:v};i.start=h;i.end--}}var p={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},p)}function getItemSize(e,t,r){if(r===void 0){r=0}if(t&&t[e]){return t[e]}return r}function isActiveRange(e,t){return t&&e>=t.start&&e<=t.end}function getFirstItem(e){return e.items[e.start]}function getLastItem(e){return e.items[e.end]}function initialState(){return{items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}}var ViewportStore=function(){function e(){var e=this;this.store=createStore(initialState());this.store.onChange("realCount",(function(){return e.clear()}))}e.prototype.setViewPortCoordinate=function(e,t){var r=this.store.get("virtualSize");if(!r){return}var n=t.frameOffset;var i=n*2*t.originItemSize;r+=i;var o=r;if(t.realSize>r){o=t.realSize-r}var a={lastCoordinate:e};var s=e;s-=n*t.originItemSize;s=s<0?0:s<o?s:o;var u=getFirstItem(this.getItems());var l=getLastItem(this.getItems());if(!isActiveRange(s,u)){a=Object.assign(Object.assign({},a),getUpdatedItemsByPosition(s,this.getItems(),this.store.get("realCount"),r,t));setStore(this.store,Object.assign({},a))}else if(u&&this.store.get("virtualSize")+s>(l===null||l===void 0?void 0:l.end)){var c=addMissingItems(u,this.store.get("realCount"),r+s-u.start,this.getItems(),t);if(c.length){var f=__spreadArray([],this.store.get("items"),true);var d={start:this.store.get("start"),end:this.store.get("end")};updateMissingAndRange(f,c,d);a=Object.assign(Object.assign(Object.assign({},a),{items:__spreadArray([],f,true)}),d);setStore(this.store,Object.assign({},a))}}};e.prototype.setViewPortDimension=function(e){var t=this.store.get("items");var r=t.length;if(!r){return}var n=0;var i=0;var o=this.store.get("start");while(i<r){var a=t[o];if(n){a.start+=n;a.end+=n}var s=e[a.itemIndex];if(s){var u=s-a.size;n+=u;a.size=s;a.end=a.start+s}o++;i++;if(o===r){o=0}}setStore(this.store,{items:__spreadArray([],t,true)})};e.prototype.getItems=function(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}};e.prototype.setViewport=function(e){setStore(this.store,e)};e.prototype.clear=function(){this.store.set("items",[])};return e}();var ViewportProvider=function(){function e(){this.stores=reduce_1(__spreadArray(__spreadArray([],rowTypes,true),columnTypes,true),(function(e,t){e[t]=new ViewportStore;return e}),{})}e.prototype.setViewport=function(e,t){this.stores[e].setViewport(t)};return e}();var LETTER_BLOCK_SIZE$1=7;var ColumnAutoSizeMode;(function(e){e["headerClickAutosize"]="headerClickAutoSize";e["autoSizeOnTextOverlap"]="autoSizeOnTextOverlap";e["autoSizeAll"]="autoSizeAll"})(ColumnAutoSizeMode||(ColumnAutoSizeMode={}));var AutoSizeColumn=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.providers=r;i.config=n;i.autoSizeColumns=null;i.dataResolve=null;i.dataReject=null;i.letterBlockSize=(n===null||n===void 0?void 0:n.letterBlockSize)||LETTER_BLOCK_SIZE$1;if(n===null||n===void 0?void 0:n.preciseSize){i.precsizeCalculationArea=i.initiatePresizeElement();t.appendChild(i.precsizeCalculationArea)}var o=function(e){var t=e.detail.source;i.setSource(t)};var a=function(e){var t=e.detail;i.afteredit(t)};var s=function(e){var t=e.detail;i.afterEditAll(t)};var u=function(e){var t=e.detail.columns;i.columnSet(t)};var l=function(e){var t;var r=e.detail;var n=ColumnDataProvider.getColumnType(r);var o=i.getColumnSize(r.index,n);if(o){i.providers.dimensionProvider.setDimensionSize(n,(t={},t[r.index]=o,t))}};i.addEventListener("beforecolumnsset",u);switch(n===null||n===void 0?void 0:n.mode){case ColumnAutoSizeMode.autoSizeOnTextOverlap:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",a);break;case ColumnAutoSizeMode.autoSizeAll:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",s);break;default:i.addEventListener("headerdblClick",l);break}return i}t.prototype.setSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;var i=this;return __generator(this,(function(o){switch(o.label){case 0:t=this.autoSizeColumns;if(this.dataReject){this.dataReject();this.clearPromise()}if(!!t)return[3,4];r=new Promise((function(e,t){i.dataResolve=e;i.dataReject=t}));o.label=1;case 1:o.trys.push([1,3,,4]);return[4,r];case 2:t=o.sent();return[3,4];case 3:n=o.sent();return[2];case 4:each(t,(function(r,n){var o={};each(t[n],(function(t){t.size=o[t.index]=e.reduce((function(e,r){return Math.max(e,i.getLength(r[t.prop]))}),i.getLength(t.name||""))}));i.providers.dimensionProvider.setDimensionSize(n,o)}));return[2]}}))}))};t.prototype.getLength=function(e){var t;var r=15;if(!e){return 0}try{var n=e.toString();if((t=this.config)===null||t===void 0?void 0:t.preciseSize){this.precsizeCalculationArea.innerText=n;return this.precsizeCalculationArea.scrollWidth+r*2}return n.length*this.letterBlockSize+r*2}catch(e){return 0}};t.prototype.afteredit=function(e){var t;var r=this;var n;if(this.isRangeEdit(e)){n=e.data}else{n={0:(t={},t[e.prop]=e.val,t)}}each(this.autoSizeColumns,(function(e,t){var i={};each(e,(function(e){var t=reduce_1(n,(function(t,n){if(typeof n[e.prop]==="undefined"){return t}return Math.max(t||0,r.getLength(n[e.prop]))}),undefined);if(t&&e.size<t){e.size=i[e.index]=t}}));r.providers.dimensionProvider.setDimensionSize(t,i)}))};t.prototype.afterEditAll=function(e){var t=this;var r={};if(this.isRangeEdit(e)){each(e.data,(function(e){return each(e,(function(e,t){return r[t]=true}))}))}else{r[e.prop]=true}each(this.autoSizeColumns,(function(e,n){var i={};each(e,(function(e){if(r[e.prop]){var o=t.getColumnSize(e.index,n);if(o){i[e.index]=o}}}));t.providers.dimensionProvider.setDimensionSize(n,i)}))};t.prototype.getColumnSize=function(e,t){var r=this;var n=this.autoSizeColumns[t][e];if(!n){return 0}return reduce_1(this.providers.dataProvider.stores,(function(e,t){var i=reduce_1(t.store.get("items"),(function(e,i,o){var a=getSourceItem(t.store,o);return Math.max(e||0,r.getLength(a[n.prop]))}),0);return Math.max(e,i)}),n.size||0)};t.prototype.columnSet=function(e){var t;for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];var o=i;var a=e[o];for(var s in a){if(a[s].autoSize||((t=this.config)===null||t===void 0?void 0:t.allColumns)){if(!this.autoSizeColumns){this.autoSizeColumns={}}if(!this.autoSizeColumns[o]){this.autoSizeColumns[o]={}}this.autoSizeColumns[o][s]=Object.assign(Object.assign({},a[s]),{index:parseInt(s,10)})}}}if(this.dataResolve){this.dataResolve(this.autoSizeColumns);this.clearPromise()}};t.prototype.clearPromise=function(){this.dataResolve=null;this.dataReject=null};t.prototype.isRangeEdit=function(e){return!!e.data};t.prototype.initiatePresizeElement=function(){var e={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"};var t=document.createElement("div");for(var r in e){t.style[r]=e[r]}t.classList.add("revo-test-container");return t};t.prototype.destroy=function(){var t;e.prototype.destroy.call(this);(t=this.precsizeCalculationArea)===null||t===void 0?void 0:t.remove()};return t}(BasePlugin);var eq=function(e,t){if(typeof e==="undefined"||e===null&&!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}var r=t.toString().toLocaleLowerCase();if(r.length===0){return true}return e.toLocaleLowerCase()===r};var notEq=function(e,t){return!eq(e,t)};notEq.extra="input";eq.extra="input";var gtThan=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e>r}return false};gtThan.extra="input";var gtThanEq=function(e,t){return eq(e,t)||gtThan(e,t)};gtThanEq.extra="input";var lt=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e<r}else{return false}};lt.extra="input";var lsEq=function(e,t){return eq(e,t)||lt(e,t)};lsEq.extra="input";var set=function(e){return!(e===""||e===null||e===void 0)};var notSet=function(e){return!set(e)};var beginsWith=function(e,t){if(!e){return false}if(!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}if(typeof t!=="string"){t=JSON.stringify(t)}return e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())===0};beginsWith.extra="input";var contains=function(e,t){if(!e){return false}if(t){if(typeof e!=="string"){e=JSON.stringify(e)}return e.toLocaleLowerCase().indexOf(t.toString().toLowerCase())>-1}return true};var notContains=function(e,t){return!contains(e,t)};notContains.extra="input";contains.extra="input";var filterNames={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:"<="};var filterEntities={none:function(){return true},empty:notSet,notEmpty:set,eq:eq,notEq:notEq,begins:beginsWith,contains:contains,notContains:notContains,eqN:eq,neqN:notEq,gt:gtThan,gte:gtThanEq,lt:lt,lte:lsEq};var filterTypes={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};var FILTER_TRIMMED_TYPE="filter";var FilterPlugin=function(e){__extends(t,e);function t(t,r,n){var i=this;var o;i=e.call(this,t)||this;i.revogrid=t;i.filterCollection={};i.multiFilterItems={};i.possibleFilters=Object.assign({},filterTypes);i.possibleFilterNames=Object.assign({},filterNames);i.possibleFilterEntities=Object.assign({},filterEntities);if(n){i.initConfig(n)}var a=function(e){return i.headerclick(e)};var s=function(){return __awaiter(i,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(r){switch(r.label){case 0:e=Object.keys(this.filterCollection);if(e.length>0){e.forEach((function(e,r){if(!t.multiFilterItems[e]){t.multiFilterItems[e]=[{id:r,type:t.filterCollection[e].type,value:t.filterCollection[e].value,relation:"and"}]}}))}return[4,this.runFiltering()];case 1:r.sent();return[2]}}))}))};i.addEventListener("headerclick",a);i.addEventListener("aftersourceset",s);i.revogrid.registerVNode([h("revogr-filter-panel",{uuid:"filter-".concat(r),filterItems:i.multiFilterItems,filterNames:i.possibleFilterNames,filterEntities:i.possibleFilterEntities,filterCaptions:(o=n===null||n===void 0?void 0:n.localization)===null||o===void 0?void 0:o.captions,onFilterChange:function(e){return i.onFilterChange(e.detail)},disableDynamicFiltering:n===null||n===void 0?void 0:n.disableDynamicFiltering,ref:function(e){return i.pop=e}})]);return i}t.prototype.initConfig=function(e){var t=this;if(e.collection){this.filterCollection=Object.assign({},e.collection)}if(e.multiFilterItems){this.multiFilterItems=Object.assign({},e.multiFilterItems)}if(e.customFilters){for(var r in e.customFilters){var n=e.customFilters[r];if(!this.possibleFilters[n.columnFilterType]){this.possibleFilters[n.columnFilterType]=[]}this.possibleFilters[n.columnFilterType].push(r);this.possibleFilterEntities[r]=n.func;this.possibleFilterNames[r]=n.name}}if(e.include){var i={};for(var o in this.possibleFilters){var a=this.possibleFilters[o].filter((function(t){return e.include.indexOf(t)>-1}));if(a.length){i[o]=a}}if(Object.keys(i).length>0){this.possibleFilters=i}}if(e.localization){if(e.localization.filterNames){Object.entries(e.localization.filterNames).forEach((function(e){var r=e[0],n=e[1];if(t.possibleFilterNames[r]!=void 0){t.possibleFilterNames[r]=n}}))}}};t.prototype.headerclick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a;return __generator(this,(function(s){switch(s.label){case 0:r=(t=e.detail.originalEvent)===null||t===void 0?void 0:t.target;if(!isFilterBtn(r)){return[2]}e.preventDefault();return[4,this.pop.getChanges()];case 1:n=s.sent();if(n&&(n===null||n===void 0?void 0:n.prop)===e.detail.prop){this.pop.show();return[2]}i=this.revogrid.getBoundingClientRect();o=r.getBoundingClientRect();a=e.detail.prop;this.pop.filterTypes=this.getColumnFilter(e.detail.filter);this.pop.show(Object.assign(Object.assign({},this.filterCollection[a]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:a}));return[2]}}))}))};t.prototype.getColumnFilter=function(e){var t,r;var n=this;var i="string";if(!e){return t={},t[i]=this.possibleFilters[i],t}if(this.isValidType(e)){i=e}else if(typeof e==="object"&&e.length){return e.reduce((function(e,t){if(n.isValidType(t)){e[t]=n.possibleFilters[t]}return e}),{})}return r={},r[i]=this.possibleFilters[i],r};t.prototype.isValidType=function(e){return!!(typeof e==="string"&&this.possibleFilters[e])};t.prototype.onFilterChange=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.multiFilterItems=e;this.runFiltering();return[2]}))}))};t.prototype.doFiltering=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:i=[];r.forEach((function(e){var t=Object.assign({},e);var r=n[t.prop];if(t[FILTER_PROP]&&!r){delete t[FILTER_PROP];i.push(t)}if(!t[FILTER_PROP]&&r){i.push(t);t[FILTER_PROP]=true}}));o=this.getRowFilter(t,n);a=this.emit("beforefiltertrimmed",{collection:e,itemsToFilter:o,source:t,filterItems:n}),s=a.defaultPrevented,u=a.detail;if(s){return[2]}return[4,this.revogrid.addTrimmed(u.itemsToFilter,FILTER_TRIMMED_TYPE)];case 1:l=c.sent();if(l.defaultPrevented){return[2]}return[4,this.revogrid.updateColumns(i)];case 2:c.sent();this.emit("afterFilterApply");return[2]}}))}))};t.prototype.clearFiltering=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.multiFilterItems={};return[4,this.runFiltering()];case 1:e.sent();return[2]}}))}))};t.prototype.runFiltering=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s,u,l,c,f;return __generator(this,(function(d){switch(d.label){case 0:e={};t=Object.keys(this.multiFilterItems);for(r=0,n=t;r<n.length;r++){i=n[r];if(this.multiFilterItems[i].length>0){o=this.multiFilterItems[i][0];e[i]={filter:filterEntities[o.type],type:o.type,value:o.value}}}this.filterCollection=e;return[4,this.getData()];case 1:a=d.sent(),s=a.source,u=a.columns;l=this.emit("beforefilterapply",{collection:this.filterCollection,source:s,columns:u,filterItems:this.multiFilterItems}),c=l.defaultPrevented,f=l.detail;if(c){return[2]}this.doFiltering(f.collection,f.source,f.columns,f.filterItems);return[2]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.revogrid.getSource()];case 1:e=r.sent();return[4,this.revogrid.getColumns()];case 2:t=r.sent();return[2,{source:e,columns:t}]}}))}))};t.prototype.getRowFilter=function(e,t){var r=Object.keys(t);var n={};var i=0;var o=[];e.forEach((function(e,a){for(var s=0,u=r;s<u.length;s++){var l=u[s];var c=t[l];i=0;o=[];for(var f=0,d=c.entries();f<d.length;f++){var v=d[f],h=v[0],p=v[1];var g=filterEntities[p.type];if(p.relation==="or"){o=[];if(g(e[l],p.value)){continue}i++}else{o.push(!g(e[l],p.value));var m=c[h+1];if(!m||m.relation!=="and"){if(o.indexOf(true)===-1){o=[];continue}i+=o.length;o=[]}}}if(i===c.length)n[a]=true}}));return n};return t}(BasePlugin);var stringTag="[object String]";function isString(e){return typeof e=="string"||!isArray_1(e)&&isObjectLike_1(e)&&_baseGetTag(e)==stringTag}var isString_1=isString;var asciiSize=_baseProperty("length");var _asciiSize=asciiSize;var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f";var rsZWJ$1="\\u200d";var reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode(e){return reHasUnicode.test(e)}var _hasUnicode=hasUnicode;var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f";var rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d";var reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")";var reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeSize(e){var t=reUnicode.lastIndex=0;while(reUnicode.test(e)){++t}return t}var _unicodeSize=unicodeSize;function stringSize(e){return _hasUnicode(e)?_unicodeSize(e):_asciiSize(e)}var _stringSize=stringSize;var mapTag="[object Map]",setTag="[object Set]";function size(e){if(e==null){return 0}if(isArrayLike_1(e)){return isString_1(e)?_stringSize(e):e.length}var t=_getTag(e);if(t==mapTag||t==setTag){return e.size}return _baseKeys(e).length}var size_1=size;var SortingPlugin=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.revogrid=t;r.sorting=null;r.sortingFunc=null;var n=function(e){var t=e.detail;if(r.hasSorting){var n=r.emit("beforesourcesortingapply");if(n.defaultPrevented){return}}var i=r.setData(t.source,t.type);if(i){t.source=i}};var i=function(e){var t=e.detail.order;return __awaiter(r,void 0,void 0,(function(){var e,r,n,i,o;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.revogrid.getColumns()];case 1:e=a.sent();r={};for(n in t){i=ColumnDataProvider.getColumnByProp(e,n);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);return[2]}}))}))};var o=function(e){return __awaiter(r,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){if(e.defaultPrevented){return[2]}if(!e.detail.column.sortable){return[2]}this.headerclick(e.detail.column,e.detail.index,(r=(t=e.detail)===null||t===void 0?void 0:t.originalEvent)===null||r===void 0?void 0:r.shiftKey);return[2]}))}))};r.addEventListener("beforesourceset",n);r.addEventListener("aftercolumnsset",i);r.addEventListener("initialHeaderClick",o);return r}Object.defineProperty(t.prototype,"hasSorting",{get:function(){return!!this.sorting},enumerable:false,configurable:true});t.prototype.headerclick=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l,c;var f,d;return __generator(this,(function(v){switch(v.label){case 0:n=this.getNextOrder(e.order);i=this.emit("beforesorting",{column:e,order:n,additive:r});if(i.defaultPrevented){return[2]}n=i.detail.order;return[4,this.revogrid.updateColumnSorting(i.detail.column,t,n,r)];case 1:o=v.sent();a=this.emit("beforesortingapply",{column:o,order:n,additive:r});if(a.defaultPrevented){return[2]}n=a.detail.order;s=(e===null||e===void 0?void 0:e.cellCompare)||this.defaultCellCompare;u=n=="asc"?s:n=="desc"?this.descCellCompare(s):undefined;if(r&&this.sorting){l={};c={};Object.assign(l,this.sorting);Object.assign(c,this.sortingFunc);if(e.prop in l&&size_1(l)>1&&n===undefined){delete l[e.prop];delete c[e.prop]}else{l[e.prop]=n;c[e.prop]=u}this.sort(l,c)}else{this.sort((f={},f[e.prop]=n,f),(d={},d[e.prop]=u,d))}return[2]}}))}))};t.prototype.setData=function(e,t){if(t==="rgRow"&&this.sortingFunc){return this.sortItems(e,this.sortingFunc)}};t.prototype.sort=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!size_1(e)){this.sorting=null;this.sortingFunc=null;return[2]}this.sorting=e;this.sortingFunc=t;return[4,this.revogrid.getSourceStore()];case 1:r=o.sent();n=r.get("source");i=this.sortIndexByItems(__spreadArray([],r.get("proxyItems"),true),n,this.sortingFunc);setStore(r,{proxyItems:i,source:__spreadArray([],n,true)});this.emit("afterSortingApply");return[2]}}))}))};t.prototype.defaultCellCompare=function(e,t,r){var n,i;var o=(n=t[e])===null||n===void 0?void 0:n.toString().toLowerCase();var a=(i=r[e])===null||i===void 0?void 0:i.toString().toLowerCase();return o==a?0:o>a?1:-1};t.prototype.descCellCompare=function(e){return function(t,r,n){return-1*e(t,r,n)}};t.prototype.sortIndexByItems=function(e,t,r){for(var n in r){if(typeof r[n]==="undefined"){return __spreadArray([],Array(e.length).keys(),true)}}return e.sort((function(e,n){var i=0;for(var o in r){var a=r[o];var s=t[e];var u=t[n];i=a(o,s,u);if(i){break}}return i}))};t.prototype.sortItems=function(e,t){return e.sort((function(e,r){var n=0;for(var i in t){var o=t[i];if(!o){continue}n=o(i,e,r);if(n){break}}return n}))};t.prototype.getNextOrder=function(e){switch(e){case undefined:return"asc";case"asc":return"desc";case"desc":return undefined}};return t}(BasePlugin);function baseClamp(e,t,r){if(e===e){if(r!==undefined){e=e<=r?e:r}if(t!==undefined){e=e>=t?e:t}}return e}var _baseClamp=baseClamp;var MAX_ARRAY_LENGTH=4294967295;function toLength(e){return e?_baseClamp(toInteger_1(e),0,MAX_ARRAY_LENGTH):0}var toLength_1=toLength;function baseFill(e,t,r,n){var i=e.length;r=toInteger_1(r);if(r<0){r=-r>i?0:i+r}n=n===undefined||n>i?i:toInteger_1(n);if(n<0){n+=i}n=r>n?0:toLength_1(n);while(r<n){e[r++]=t}return e}var _baseFill=baseFill;function fill(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&_isIterateeCall(e,t,r)){r=0;n=i}return _baseFill(e,t,r,n)}var fill_1=fill;var MIN_COL_SIZE=30;var DATA_COL="data-rgCol";var DATA_ROW="data-rgRow";var UUID="grid-uuid";var DISABLED_CLASS="disabled";var CELL_CLASS="rgCell";var HEADER_CLASS="rgHeaderCell";var HEADER_SORTABLE_CLASS="sortable";var HEADER_ROW_CLASS="header-rgRow";var HEADER_ACTUAL_ROW_CLASS="actual-rgRow";var DRAG_ICON_CLASS="revo-drag-icon";var DRAGGABLE_CLASS="revo-draggable";var FOCUS_CLASS="focused-cell";var SELECTION_BORDER_CLASS="selection-border-range";var TMP_SELECTION_BG_CLASS="temp-bg-range";var CELL_HANDLER_CLASS="autofill-handle";var EDIT_INPUT_WR="edit-input-wrapper";var DRAGG_TEXT="Draggable item";var GRID_INTERNALS="__rvgr";var GROUP_DEPTH="".concat(GRID_INTERNALS,"-depth");var PSEUDO_GROUP_ITEM="".concat(GRID_INTERNALS,"-name");var PSEUDO_GROUP_ITEM_ID="".concat(GRID_INTERNALS,"-id");var PSEUDO_GROUP_ITEM_VALUE="".concat(GRID_INTERNALS,"-value");var PSEUDO_GROUP_COLUMN="".concat(GRID_INTERNALS,"-column");var GROUP_EXPANDED="".concat(GRID_INTERNALS,"-expanded");var GROUP_EXPAND_BTN="group-expand";var GROUP_EXPAND_EVENT="groupExpandClick";var GROUPING_ROW_TYPE="rgRow";function groupBy(e,t){var r=[];var n={};e.forEach((function(e,i){var o=JSON.stringify(t(e));if(!n[o]){n[o]=new Map;r.push({children:n[o],id:o})}n[o].set(i,e)}));return r}function gatherGrouping(e,t,r){var n=r.prevExpanded,i=r.expandedAll;var o=groupBy(e,t);var a=[];var s={};var u=0;var l=0;var c={};var f={};o.forEach((function(e){var t=getParsedGroup(e.id);if(!t){return}var r=0;var o=!!i;var d=o;var v=[];t.reduce((function(t,f){t.push(f);var h=t.join(",");if(!s[h]){d=i||n&&n[h];a.push(getPseudoGroup(f,h,r,e.id,d));if(r&&!d&&!o){var p=t.slice(0,t.length-1);if(!(n&&p.length&&n[p.join(",")])){c[u]=true}}u++;s[h]=v}r++;l=r;return t}),[]);e.children.forEach((function(e,t){if(!d&&!o){c[u]=true}a.push(e);f[t]=u;v.push(u);u++}))}));return{sourceWithGroups:a,depth:l,trimmed:c,oldNewIndexMap:f,childrenByGroup:s}}function getPseudoGroup(e,t,r,n,i){var o;if(i===void 0){i=false}return o={},o[PSEUDO_GROUP_ITEM]=e,o[GROUP_DEPTH]=r,o[PSEUDO_GROUP_ITEM_ID]=n,o[PSEUDO_GROUP_ITEM_VALUE]=t,o[GROUP_EXPANDED]=i,o}function getGroupingName(e){return e&&e[PSEUDO_GROUP_ITEM]}function isGrouping(e){return e&&typeof e[PSEUDO_GROUP_ITEM]!=="undefined"}function isGroupingColumn(e){return e&&typeof e[PSEUDO_GROUP_COLUMN]!=="undefined"}function isArray(e){return typeof e.push!=="undefined"}function measureEqualDepth(e,t){var r=e.length;var n=0;for(;n<r;n++){if(e[n]!==t[n]){return n}}return n}function getParsedGroup(e){var t=JSON.parse(e);if(!isArray(t)){return null}return t}function isSameGroup(e,t,r){var n=getParsedGroup(r[PSEUDO_GROUP_ITEM_ID]);if(!n){return false}var i=measureEqualDepth(e,n);return t[GROUP_DEPTH]<i}var INITIAL={mime:"text/csv",fileKind:"csv",bom:true,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""};var CARRIAGE_RETURN=String.fromCharCode(13);var LINE_FEED=String.fromCharCode(10);var DOUBLE_QT=String.fromCharCode(34);var NO_BREAK_SPACE=String.fromCharCode(65279);var escapeRegex=new RegExp('"',"g");var ExportCsv=function(){function e(e){if(e===void 0){e={}}this.options=Object.assign(Object.assign({},INITIAL),e)}e.prototype.doExport=function(e){var t=this;var r=e.data,n=e.headers,i=e.props;var o=this.options.bom?NO_BREAK_SPACE:"";if((n===null||n===void 0?void 0:n.length)>0){n.forEach((function(e){if(!e.length){return}o+=t.prepareHeader(e,t.options.columnDelimiter);o+=t.options.rowDelimiter}))}r.forEach((function(e,r){if(r>0){o+=t.options.rowDelimiter}if(isGrouping(e)){o+=t.parseCell(getGroupingName(e),t.options.columnDelimiter);return}o+=i.map((function(r){return t.parseCell(e[r],t.options.columnDelimiter)})).join(t.options.columnDelimiter)}));return o};e.prototype.prepareHeader=function(e,t){var r=this;var n="";var i=e.map((function(e){return r.parseCell(e,t,true)}));n+=i.join(t);return n};e.prototype.parseCell=function(e,t,r){if(r===void 0){r=false}var n=e;if(typeof e!=="string"){n=JSON.stringify(e)}var i=[CARRIAGE_RETURN,DOUBLE_QT,LINE_FEED,t];if(typeof n==="undefined"){return""}if(n!==""&&(r||i.some((function(e){return n.indexOf(e)>=0})))){return'"'.concat(n.replace(escapeRegex,'""'),'"')}return n};return e}();var ExportTypes;(function(e){e["csv"]="csv"})(ExportTypes||(ExportTypes={}));var ExportFilePlugin=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.exportString=function(e,t){if(e===void 0){e={}}if(t===void 0){t=ExportTypes.csv}return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,this.formatter(t,e).doExport(r)]}}))}))};t.prototype.exportBlob=function(e,t){if(e===void 0){e={}}if(t===void 0){t=ExportTypes.csv}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getBlob(this.formatter(t,e))];case 1:return[2,r.sent()]}}))}))};t.prototype.exportFile=function(e,t){if(e===void 0){e={}}if(t===void 0){t=ExportTypes.csv}return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,l,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.formatter(t,e);return[4,this.getBlob(r)];case 1:n=f.sent();i=window.URL||window.webkitURL;o=document.createElement("a");a=r.options,s=a.filename,u=a.fileKind;l="".concat(s,".").concat(u);c=i.createObjectURL(n);o.style.display="none";o.setAttribute("href",c);o.setAttribute("download",l);this.revogrid.appendChild(o);o.dispatchEvent(new MouseEvent("click"));this.revogrid.removeChild(o);return[4,timeout(120)];case 2:f.sent();i.revokeObjectURL(c);return[2]}}))}))};t.prototype.getBlob=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t="".concat(e.options.mime,";charset=").concat(e.options.encoding);if(!(typeof Blob!=="undefined"))return[3,2];return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,new Blob([e.doExport(r)],{type:t})];case 2:return[2,null]}}))}))};t.prototype.beforeexport=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getData()];case 1:e=r.sent();t=this.emit("beforeexport",{data:e});if(t.defaultPrevented){return[2,null]}return[2,t.detail.data]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a;var s;var u=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getSource()];case 1:e=l.sent();t=[];r=[];columnTypes.forEach((function(e,n){r.push(u.getColPerSource(e).then((function(e){return t[n]=e})))}));return[4,Promise.all(r)];case 2:l.sent();n={headers:[],props:[]};for(i=0,o=t;i<o.length;i++){a=o[i];a.headers.forEach((function(e,t){var r;if(!n.headers[t]){n.headers[t]=[]}(r=n.headers[t]).push.apply(r,e)}));(s=n.props).push.apply(s,a.props)}return[2,Object.assign({data:e},n)]}}))}))};t.prototype.getColPerSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.revogrid.getColumnStore(e)];case 1:t=c.sent();r=t.get("source");n=t.get("items");i=t.get("groupingDepth");o=t.get("groups");a=[];s=[];u=n.reduce((function(e,t,n){var i=r[t].prop;a.push(r[t].name||"");s.push(i);e[i]=n;return e}),{});l=this.getGroupHeaders(i,o,n,u);l.push(a);return[2,{headers:l,props:s}]}}))}))};t.prototype.getGroupHeaders=function(e,t,r,n){var i=this;var o=[];var a=fill_1(new Array(r.length),"");var s=function(e){var r=__spreadArray([],a,true);o.push(r);if(!t[e]){return"continue"}var s=t[e];s.forEach((function(e){var t=i.findGroupStartIndex(e.ids,n);if(typeof t==="number"){r[t]=e.name}}))};for(var u=0;u<e;u++){s(u)}return o};t.prototype.findGroupStartIndex=function(e,t){var r;e.forEach((function(e){var n=t[e];if(typeof n==="number"){if(typeof r!=="number"||r>n){r=n}}}));return r};t.prototype.getSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e=[];t=[];rowTypes.forEach((function(n){var i=[];e.push(i);var o=r.revogrid.getVisibleSource(n).then((function(e){return i.push.apply(i,e)}));t.push(o)}));return[4,Promise.all(t)];case 1:n.sent();return[2,e.reduce((function(e,t){e.push.apply(e,t);return e}),[])]}}))}))};t.prototype.formatter=function(e,t){if(t===void 0){t={}}switch(e){case ExportTypes.csv:return new ExportCsv(t);default:throw new Error("Unknown format")}};return t}(BasePlugin);function doCollapse(e,t){var r=t[e];var n=r[PSEUDO_GROUP_ITEM_ID];var i={};var o=e+1;var a=t.length;while(o<a){var s=t[o];if(isGrouping(s)){if(n!==s[PSEUDO_GROUP_ITEM_ID]){break}else{s[GROUP_EXPANDED]=false}}i[o++]=true}r[GROUP_EXPANDED]=false;return{trimmed:i}}function doExpand(e,t,r){var n=r[e];var i=t[n];var o=getParsedGroup(i[PSEUDO_GROUP_ITEM_ID]);var a={};if(!o){return{trimmed:a}}var s=[];i[GROUP_EXPANDED]=true;var u=n+1;var l=t.length;var c=0;while(u<l){var f=t[u];var d=isGrouping(f);if(d){if(!isSameGroup(o,i,f)){break}else if(!c){c=f[GROUP_DEPTH]}}if(!c||d&&c===f[GROUP_DEPTH]){a[u]=false;s.push(u)}u++}var v={trimmed:a};if(s.length){var h=__spreadArray([],r,true);h.splice.apply(h,__spreadArray([e+1,0],s,false));v.items=h}return v}var TRIMMED_GROUPING="grouping";function processDoubleConversionTrimmed(e,t,r){var n={};for(var i in e){if(i===TRIMMED_GROUPING){continue}var o=e[i];var a={};for(var s in o){var u=t[s];if(r){u=r[u]}if(o[s]){a[u]=true;if(u!==parseInt(s,10)){n[i]=a}}}}return n}var GroupingRowPlugin=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;return n}Object.defineProperty(t.prototype,"hasProps",{get:function(){var e,t,r;return((e=this.options)===null||e===void 0?void 0:e.props)&&((r=(t=this.options)===null||t===void 0?void 0:t.props)===null||r===void 0?void 0:r.length)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"store",{get:function(){return this.providers.dataProvider.stores[GROUPING_ROW_TYPE].store},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rowItems",{get:function(){return this.store.get("items")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"trimmed",{get:function(){return this.store.get("trimmed")},enumerable:false,configurable:true});t.prototype.onFocus=function(e){if(isGrouping(e.detail.model)){e.preventDefault()}};t.prototype.onExpand=function(e){var t=e.virtualIndex;var r=this.getSource().source;var n=this.trimmed[TRIMMED_GROUPING];var i=getPhysical(this.store,t);var o=r[i];var a=o[GROUP_EXPANDED];if(!a){var s=doExpand(t,r,this.rowItems),u=s.trimmed,l=s.items;n=Object.assign(Object.assign({},n),u);if(l){setItems(this.store,l)}}else{var u=doCollapse(i,r).trimmed;n=Object.assign(Object.assign({},n),u);this.revogrid.clearFocus()}this.store.set("source",r);this.revogrid.addTrimmed(n,TRIMMED_GROUPING)};t.prototype.getSource=function(e){if(e===void 0){e=false}var t=this.store.get("source");var r=this.store.get("proxyItems");var n=0;return r.reduce((function(r,i){var o=t[i];if(!e){r.source.push(o);return r}if(!isGrouping(o)){r.source.push(o);r.oldNewIndexes[i]=n;n++}else{if(o[GROUP_EXPANDED]){r.prevExpanded[o[PSEUDO_GROUP_ITEM_VALUE]]=true}}return r}),{source:[],prevExpanded:{},oldNewIndexes:{}})};t.prototype.setColumnGrouping=function(e){if(e===null||e===void 0?void 0:e.length){e[0][PSEUDO_GROUP_COLUMN]=true;return true}return false};t.prototype.setColumns=function(e){var t=e.columns;for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(t[i])){break}}};t.prototype.onDrag=function(e){var t=e.detail,r=t.from,n=t.to;var i=n-r>=0;var o=this.getSource().source;var a=this.rowItems;var s=i?r:n;var u=i?n:r;for(;s<u;s++){var l=o[a[s]];var c=isGrouping(l);if(c){e.preventDefault();return}}};t.prototype.beforeTrimmedApply=function(e,t){if(t===FILTER_TRIMMED_TYPE){var r=this.store.get("source");for(var n in e){if(e[n]&&isGrouping(r[n])){e[n]=false}}}};t.prototype.subscribe=function(){var e=this;this.addEventListener("beforesourceset",(function(t){var r=t.detail;return e.onDataSet(r)}));this.addEventListener("beforecolumnsset",(function(t){var r=t.detail;return e.setColumns(r)}));this.addEventListener("beforetrimmed",(function(t){var r=t.detail,n=r.trimmed,i=r.trimmedType;return e.beforeTrimmedApply(n,i)}));this.addEventListener("afterSortingApply",(function(){return e.doSourceUpdate()}));this.addEventListener("beforecellfocus",(function(t){return e.onFocus(t)}));this.addEventListener("roworderchanged",(function(t){return e.onDrag(t)}));this.addEventListener(GROUP_EXPAND_EVENT,(function(t){var r=t.detail;return e.onExpand(r)}))};t.prototype.doSourceUpdate=function(e){var t=this;if(!this.hasProps){return}var r=this.getSource(true),n=r.source,i=r.prevExpanded,o=r.oldNewIndexes;var a=gatherGrouping(n,(function(e){var r;return(r=t.options)===null||r===void 0?void 0:r.props.map((function(t){return e[t]}))}),Object.assign({prevExpanded:i},e)),s=a.sourceWithGroups,u=a.depth,l=a.trimmed,c=a.oldNewIndexMap,f=a.childrenByGroup;this.providers.dataProvider.setData(s,GROUPING_ROW_TYPE,{depth:u},true);this.updateTrimmed(l,f,o,c)};t.prototype.onDataSet=function(e){var t=this;if(!this.hasProps||!(e===null||e===void 0?void 0:e.source)||!e.source.length){return}var r=e.source.filter((function(e){return!isGrouping(e)}));var n=this.revogrid.grouping||{};var i=gatherGrouping(r,(function(e){var r;return(r=t.options)===null||r===void 0?void 0:r.props.map((function(t){return e[t]}))}),Object.assign({},n||{})),o=i.sourceWithGroups,a=i.depth,s=i.trimmed,u=i.oldNewIndexMap,l=i.childrenByGroup;e.source=o;this.providers.dataProvider.setGrouping({depth:a});this.updateTrimmed(s,l,u)};t.prototype.setGrouping=function(e){this.clearSubscriptions();this.options=e;if(!e.props||!Object.keys(e.props).length){this.clearGrouping();return}var t=this.getSource().source;if(t.length){this.doSourceUpdate(Object.assign({},e))}for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(this.providers.columnProvider.getColumns(i))){this.providers.columnProvider.refreshByType(i);break}}this.subscribe()};t.prototype.clearGrouping=function(){var e=this;columnTypes.forEach((function(t){var r=e.providers.columnProvider.getColumns(t);var n=false;r.forEach((function(e){if(isGroupingColumn(e)){delete e[PSEUDO_GROUP_COLUMN];n=true}}));if(n){e.providers.columnProvider.refreshByType(t)}}));var t=this.getSource(true),r=t.source,n=t.oldNewIndexes;this.providers.dataProvider.setData(r,GROUPING_ROW_TYPE,undefined,true);this.updateTrimmed(undefined,undefined,n)};t.prototype.updateTrimmed=function(e,t,r,n){if(e===void 0){e={}}if(t===void 0){t={}}var i=processDoubleConversionTrimmed(this.trimmed,r,n);for(var o in i){this.revogrid.addTrimmed(i[o],o)}this.revogrid.addTrimmed(Object.assign({},e),TRIMMED_GROUPING)};return t}(BasePlugin);var OrdererService=function(){function e(){this.parentY=0}e.prototype.start=function(e,t){var r=t.pos,n=t.text,i=t.event;var o;var a=e.getBoundingClientRect().top;this.parentY=a;if(this.text){this.text.innerText=n}this.move(r);this.moveTip({x:i.x,y:i.y});(o=this.el)===null||o===void 0?void 0:o.classList.remove("hidden")};e.prototype.end=function(){var e;(e=this.el)===null||e===void 0?void 0:e.classList.add("hidden")};e.prototype.move=function(e){this.moveElement(e.end-this.parentY)};e.prototype.moveTip=function(e){var t=e.x,r=e.y;if(!this.draggable){return}this.draggable.style.left="".concat(t,"px");this.draggable.style.top="".concat(r,"px")};e.prototype.moveElement=function(e){if(!this.rgRow){return}this.rgRow.style.transform="translateY(".concat(e,"px)")};return e}();var OrderRenderer=function(e){var t=e.ref;var r=new OrdererService;t(r);return h("div",{class:"draggable-wrapper hidden",ref:function(e){return r.el=e}},h("div",{class:"draggable",ref:function(e){return r.draggable=e}},h("span",{class:"revo-alt-icon"}),h("span",{ref:function(e){return r.text=e}})),h("div",{class:"drag-position",ref:function(e){return r.rgRow=e}}))};var RevoViewPort=function(e,t){var r=e.viewports,n=e.dimensions,i=e.orderRef,o=e.nakedClick,a=e.registerElement,s=e.onScroll;var u=function(e,t){if(t===e.target){o(e)}};var l;return[h("div",{class:"main-viewport",ref:function(e){return l=e},onClick:function(e){return u(e,l)}},h("div",{class:"viewports"},t,h("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:r["rgRow"].store,dimensionStore:n["rgRow"].store,ref:function(e){return a(e,"rowScroll")},onScrollVirtual:function(e){return s(e.detail)}}),h(OrderRenderer,{ref:i}))),h("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:r["rgCol"].store,dimensionStore:n["rgCol"].store,ref:function(e){return a(e,"colScroll")},onScrollVirtual:function(e){return s(e.detail)}})]};function isHiddenStore(e){return e===EMPTY_INDEX}function nextCell(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=e[a];return r}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=e[a]-t[a];return r}}return null}function cropCellToMax(e,t){var r=Object.assign({},e);var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=0}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=t[a]-1}}return r}function getRange(e,t){return e&&t?{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x1:Math.max(e.x,t.x),y1:Math.max(e.y,t.y)}:null}function isRangeSingleCell(e){return e.x===e.x1&&e.y===e.y1}function defaultState(){return{range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}}var SelectionStore=function(){function e(){var e=this;this.unsubscribe=[];this.store=createStore(defaultState());this.store.on("set",(function(t,r){if(t==="tempRange"&&!r){e.store.set("tempRangeType",null)}}))}e.prototype.onChange=function(e,t){this.unsubscribe.push(this.store.onChange(e,t))};e.prototype.clearFocus=function(){setStore(this.store,{focus:null,range:null,edit:null,tempRange:null})};e.prototype.setFocus=function(e,t){setStore(this.store,{focus:e,range:getRange(e,t),edit:null,tempRange:null})};e.prototype.setTempArea=function(e){setStore(this.store,{tempRange:e===null||e===void 0?void 0:e.area,tempRangeType:e===null||e===void 0?void 0:e.type,edit:null})};e.prototype.clearTemp=function(){setStore(this.store,{tempRange:null})};e.prototype.setRangeArea=function(e){setStore(this.store,{range:e,edit:null,tempRange:null})};e.prototype.setRange=function(e,t){this.setRangeArea(getRange(e,t))};e.prototype.setLastCell=function(e){setStore(this.store,{lastCell:e})};e.prototype.setEdit=function(e){var t=this.store.get("focus");if(t&&typeof e==="string"){setStore(this.store,{edit:{x:t.x,y:t.y,val:e}});return}setStore(this.store,{edit:null})};e.prototype.dispose=function(){this.unsubscribe.forEach((function(e){return e()}));this.store.dispose()};return e}();var EMPTY_INDEX=-1;var SelectionStoreConnector=function(){function e(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.sections=[]}Object.defineProperty(e.prototype,"focusedStore",{get:function(){var e;for(var t in this.stores){for(var r in this.stores[t]){var n=(e=this.stores[t][r])===null||e===void 0?void 0:e.store.get("focus");if(n){return{entity:this.stores[t][r],cell:n,position:{x:parseInt(r,10),y:parseInt(t,10)}}}}}return null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"edit",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedRange",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("range")},enumerable:false,configurable:true});e.prototype.registerSection=function(e){if(!e){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(e)===-1){this.sections.push(e)}};e.prototype.beforeUpdate=function(){if(this.dirty){for(var e in this.stores){for(var t in this.stores[e]){this.stores[e][t].dispose()}}this.dirty=false}};e.prototype.registerColumn=function(e){if(isHiddenStore(e)){return new SelectionStore}if(this.columnStores[e]){return this.columnStores[e]}this.columnStores[e]=new SelectionStore;return this.columnStores[e]};e.prototype.registerRow=function(e){if(isHiddenStore(e)){return new SelectionStore}if(this.rowStores[e]){return this.rowStores[e]}this.rowStores[e]=new SelectionStore;return this.rowStores[e]};e.prototype.register=function(e){var t=this;var r=e.x,n=e.y;var i,o;if(isHiddenStore(r)||isHiddenStore(n)){return new SelectionStore}if(!this.stores[n]){this.stores[n]={}}if(this.stores[n][r]){return this.stores[n][r]}this.stores[n][r]=new SelectionStore;(i=this.stores[n][r])===null||i===void 0?void 0:i.onChange("range",(function(e){t.columnStores[r].setRangeArea(e);t.rowStores[n].setRangeArea(e)}));(o=this.stores[n][r])===null||o===void 0?void 0:o.store.on("dispose",(function(){var e,i;(e=t.columnStores[r])===null||e===void 0?void 0:e.dispose();(i=t.rowStores[n])===null||i===void 0?void 0:i.dispose();delete t.rowStores[n];delete t.columnStores[r];if(t.stores[n]){delete t.stores[n][r]}if(!Object.keys(t.stores[n]||{}).length){delete t.stores[n]}}));return this.stores[n][r]};e.prototype.setEditByCell=function(e,t){var r=e.x,n=e.y;var i=this.stores[n][r];this.focus(i,{focus:t,end:t});this.setEdit("")};e.prototype.focus=function(e,t){var r=t.focus,n=t.end;var i;for(var o in this.stores){for(var a in this.stores[o]){var s=this.stores[o][a];if(s!==e){s.clearFocus()}else{i={x:parseInt(a,10),y:parseInt(o,10)}}}}if(!i){return}var u=e.store.get("lastCell");var l=nextCell(r,u);var c;if(l){for(var f in l){var d=f;var v=void 0;switch(d){case"x":v=this.getXStores(i.y);break;case"y":v=this.getYStores(i.x);break}if(l[d]>=0){c=v[++i[d]]}else{c=v[--i[d]];var h=c===null||c===void 0?void 0:c.store.get("lastCell");if(h){l[d]=h[d]+l[d]}}}}if(c){var p=Object.assign(Object.assign({},r),l);this.focus(c,{focus:p,end:p});return}r=cropCellToMax(r,u);n=cropCellToMax(r,u);e.setFocus(r,n)};e.prototype.clearAll=function(){var e;for(var t in this.stores){for(var r in this.stores[t]){(e=this.stores[t][r])===null||e===void 0?void 0:e.clearFocus()}}};e.prototype.setEdit=function(e){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(e)};e.prototype.getXStores=function(e){return this.stores[e]};e.prototype.getYStores=function(e){var t={};for(var r in this.stores){t[r]=this.stores[r][e]}return t};return e}();var HEADER_SLOT="header";var FOOTER_SLOT="footer";var CONTENT_SLOT="content";var DATA_SLOT="data";function getLastCell(e,t){return{x:e.viewports[e.colType].store.get("realCount"),y:e.viewports[t].store.get("realCount")}}var lodash=createCommonjsModule((function(e,t){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var l=500;var c="__lodash_placeholder__";var f=1,d=2,v=4;var h=1,p=2;var g=1,m=2,C=4,y=8,_=16,b=32,w=64,L=128,S=256,x=512;var E=30,R="...";var A=800,T=16;var P=1,I=2,O=3;var k=1/0,D=9007199254740991,z=17976931348623157e292,F=0/0;var M=4294967295,j=M-1,U=M>>>1;var N=[["ary",L],["bind",g],["bindKey",m],["curry",y],["curryRight",_],["flip",x],["partial",b],["partialRight",w],["rearg",S]];var H="[object Arguments]",G="[object Array]",B="[object AsyncFunction]",$="[object Boolean]",V="[object Date]",W="[object DOMException]",K="[object Error]",Z="[object Function]",q="[object GeneratorFunction]",X="[object Map]",Y="[object Number]",J="[object Null]",Q="[object Object]",ee="[object Promise]",te="[object Proxy]",re="[object RegExp]",ne="[object Set]",ie="[object String]",oe="[object Symbol]",ae="[object Undefined]",se="[object WeakMap]",ue="[object WeakSet]";var le="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",de="[object Float64Array]",ve="[object Int8Array]",he="[object Int16Array]",pe="[object Int32Array]",ge="[object Uint8Array]",me="[object Uint8ClampedArray]",Ce="[object Uint16Array]",ye="[object Uint32Array]";var _e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var Le=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,xe=RegExp(Le.source),Ee=RegExp(Se.source);var Re=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g;var Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var ke=/[\\^$.*+?()[\]{}|]/g,De=RegExp(ke.source);var ze=/^\s+/;var Fe=/\s/;var Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /;var Ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var He=/[()=,{}\[\]\/\s]/;var Ge=/\\(\\)?/g;var Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var $e=/\w*$/;var Ve=/^[-+]0x[0-9a-f]+$/i;var We=/^0b[01]+$/i;var Ke=/^\[object .+?Constructor\]$/;var Ze=/^0o[0-7]+$/i;var qe=/^(?:0|[1-9]\d*)$/;var Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Ye=/($^)/;var Je=/['\n\r\u2028\u2029\\]/g;var Qe="\\ud800-\\udfff",et="\\u0300-\\u036f",tt="\\ufe20-\\ufe2f",rt="\\u20d0-\\u20ff",nt=et+tt+rt,it="\\u2700-\\u27bf",ot="a-z\\xdf-\\xf6\\xf8-\\xff",at="\\xac\\xb1\\xd7\\xf7",st="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",lt=" \\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",ct="A-Z\\xc0-\\xd6\\xd8-\\xde",ft="\\ufe0e\\ufe0f",dt=at+st+ut+lt;var vt="['’]",ht="["+Qe+"]",pt="["+dt+"]",gt="["+nt+"]",mt="\\d+",Ct="["+it+"]",yt="["+ot+"]",_t="[^"+Qe+dt+mt+it+ot+ct+"]",bt="\\ud83c[\\udffb-\\udfff]",wt="(?:"+gt+"|"+bt+")",Lt="[^"+Qe+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+ct+"]",Rt="\\u200d";var At="(?:"+yt+"|"+_t+")",Tt="(?:"+Et+"|"+_t+")",Pt="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",It="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",Ot=wt+"?",kt="["+ft+"]?",Dt="(?:"+Rt+"(?:"+[Lt,St,xt].join("|")+")"+kt+Ot+")*",zt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ft="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mt=kt+Ot+Dt,jt="(?:"+[Ct,St,xt].join("|")+")"+Mt,Ut="(?:"+[Lt+gt+"?",gt,St,xt,ht].join("|")+")";var Nt=RegExp(vt,"g");var Ht=RegExp(gt,"g");var Gt=RegExp(bt+"(?="+bt+")|"+Ut+Mt,"g");var Bt=RegExp([Et+"?"+yt+"+"+Pt+"(?="+[pt,Et,"$"].join("|")+")",Tt+"+"+It+"(?="+[pt,Et+At,"$"].join("|")+")",Et+"?"+At+"+"+Pt,Et+"+"+It,Ft,zt,mt,jt].join("|"),"g");var $t=RegExp("["+Rt+Qe+nt+ft+"]");var Vt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Wt=["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 Kt=-1;var Zt={};Zt[fe]=Zt[de]=Zt[ve]=Zt[he]=Zt[pe]=Zt[ge]=Zt[me]=Zt[Ce]=Zt[ye]=true;Zt[H]=Zt[G]=Zt[le]=Zt[$]=Zt[ce]=Zt[V]=Zt[K]=Zt[Z]=Zt[X]=Zt[Y]=Zt[Q]=Zt[re]=Zt[ne]=Zt[ie]=Zt[se]=false;var qt={};qt[H]=qt[G]=qt[le]=qt[ce]=qt[$]=qt[V]=qt[fe]=qt[de]=qt[ve]=qt[he]=qt[pe]=qt[X]=qt[Y]=qt[Q]=qt[re]=qt[ne]=qt[ie]=qt[oe]=qt[ge]=qt[me]=qt[Ce]=qt[ye]=true;qt[K]=qt[Z]=qt[se]=false;var Xt={"À":"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 Yt={"&":"&","<":"<",">":">",'"':""","'":"'"};var Jt={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var er=parseFloat,tr=parseInt;var rr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var nr=typeof self=="object"&&self&&self.Object===Object&&self;var ir=rr||nr||Function("return this")();var or=t&&!t.nodeType&&t;var ar=or&&"object"=="object"&&e&&!e.nodeType&&e;var sr=ar&&ar.exports===or;var ur=sr&&rr.process;var lr=function(){try{var e=ar&&ar.require&&ar.require("util").types;if(e){return e}return ur&&ur.binding&&ur.binding("util")}catch(e){}}();var cr=lr&&lr.isArrayBuffer,fr=lr&&lr.isDate,dr=lr&&lr.isMap,vr=lr&&lr.isRegExp,hr=lr&&lr.isSet,pr=lr&&lr.isTypedArray;function gr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function mr(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}function Cr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function yr(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function _r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function br(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}function wr(e,t){var r=e==null?0:e.length;return!!r&&Dr(e,t,0)>-1}function Lr(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function Sr(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function xr(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function Er(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}function Rr(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function Ar(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var Tr=jr("length");function Pr(e){return e.split("")}function Ir(e){return e.match(Ne)||[]}function Or(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function kr(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}function Dr(e,t,r){return t===t?fn(e,t,r):kr(e,Fr,r)}function zr(e,t,r,n){var i=r-1,o=e.length;while(++i<o){if(n(e[i],t)){return i}}return-1}function Fr(e){return e!==e}function Mr(e,t){var r=e==null?0:e.length;return r?Gr(e,t)/r:F}function jr(e){return function(t){return t==null?r:t[e]}}function Ur(e){return function(t){return e==null?r:e[t]}}function Nr(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}function Hr(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function Gr(e,t){var n,i=-1,o=e.length;while(++i<o){var a=t(e[i]);if(a!==r){n=n===r?a:n+a}}return n}function Br(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function $r(e,t){return Sr(t,(function(t){return[t,e[t]]}))}function Vr(e){return e?e.slice(0,pn(e)+1).replace(ze,""):e}function Wr(e){return function(t){return e(t)}}function Kr(e,t){return Sr(t,(function(t){return e[t]}))}function Zr(e,t){return e.has(t)}function qr(e,t){var r=-1,n=e.length;while(++r<n&&Dr(t,e[r],0)>-1){}return r}function Xr(e,t){var r=e.length;while(r--&&Dr(t,e[r],0)>-1){}return r}function Yr(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Jr=Ur(Xt);var Qr=Ur(Yt);function en(e){return"\\"+Qt[e]}function tn(e,t){return e==null?r:e[t]}function rn(e){return $t.test(e)}function nn(e){return Vt.test(e)}function on(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function an(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function sn(e,t){return function(r){return e(t(r))}}function un(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r];if(a===t||a===c){e[r]=c;o[i++]=r}}return o}function ln(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function cn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function fn(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function dn(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function vn(e){return rn(e)?mn(e):Tr(e)}function hn(e){return rn(e)?Cn(e):Pr(e)}function pn(e){var t=e.length;while(t--&&Fe.test(e.charAt(t))){}return t}var gn=Ur(Jt);function mn(e){var t=Gt.lastIndex=0;while(Gt.test(e)){++t}return t}function Cn(e){return e.match(Gt)||[]}function yn(e){return e.match(Bt)||[]}var _n=function e(t){t=t==null?ir:bn.defaults(ir.Object(),t,bn.pick(ir,Wt));var Fe=t.Array,Ne=t.Date,Qe=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError;var at=Fe.prototype,st=et.prototype,ut=rt.prototype;var lt=t["__core-js_shared__"];var ct=st.toString;var ft=ut.hasOwnProperty;var dt=0;var vt=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ht=ut.toString;var pt=ct.call(rt);var gt=ir._;var mt=nt("^"+ct.call(ft).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=sr?t.Buffer:r,yt=t.Symbol,_t=t.Uint8Array,bt=Ct?Ct.allocUnsafe:r,wt=sn(rt.getPrototypeOf,rt),Lt=rt.create,St=ut.propertyIsEnumerable,xt=at.splice,Et=yt?yt.isConcatSpreadable:r,Rt=yt?yt.iterator:r,At=yt?yt.toStringTag:r;var Tt=function(){try{var e=Ka(rt,"defineProperty");e({},"",{});return e}catch(e){}}();var Pt=t.clearTimeout!==ir.clearTimeout&&t.clearTimeout,It=Ne&&Ne.now!==ir.Date.now&&Ne.now,Ot=t.setTimeout!==ir.setTimeout&&t.setTimeout;var kt=tt.ceil,Dt=tt.floor,zt=rt.getOwnPropertySymbols,Ft=Ct?Ct.isBuffer:r,Mt=t.isFinite,jt=at.join,Ut=sn(rt.keys,rt),Gt=tt.max,Bt=tt.min,$t=Ne.now,Vt=t.parseInt,Xt=tt.random,Yt=at.reverse;var Jt=Ka(t,"DataView"),Qt=Ka(t,"Map"),rr=Ka(t,"Promise"),nr=Ka(t,"Set"),or=Ka(t,"WeakMap"),ar=Ka(rt,"create");var ur=or&&new or;var lr={};var Tr=Os(Jt),Pr=Os(Qt),Ur=Os(rr),fn=Os(nr),mn=Os(or);var Cn=yt?yt.prototype:r,_n=Cn?Cn.valueOf:r,wn=Cn?Cn.toString:r;function Ln(e){if(xc(e)&&!uc(e)&&!(e instanceof Rn)){if(e instanceof En){return e}if(ft.call(e,"__wrapped__")){return Ds(e)}}return new En(e)}var Sn=function(){function e(){}return function(t){if(!Sc(t)){return{}}if(Lt){return Lt(t)}e.prototype=t;var n=new e;e.prototype=r;return n}}();function xn(){}function En(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}Ln.templateSettings={escape:Re,evaluate:Ae,interpolate:Te,variable:"",imports:{_:Ln}};Ln.prototype=xn.prototype;Ln.prototype.constructor=Ln;En.prototype=Sn(xn.prototype);En.prototype.constructor=En;function Rn(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=M;this.__views__=[]}function An(){var e=new Rn(this.__wrapped__);e.__actions__=ia(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ia(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ia(this.__views__);return e}function Tn(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function Pn(){var e=this.__wrapped__.value(),t=this.__dir__,r=uc(e),n=t<0,i=r?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,f=c.length,d=0,v=Bt(u,this.__takeCount__);if(!r||!n&&i==u&&v==u){return Uo(e,this.__actions__)}var h=[];e:while(u--&&d<v){l+=t;var p=-1,g=e[l];while(++p<f){var m=c[p],C=m.iteratee,y=m.type,_=C(g);if(y==I){g=_}else if(!_){if(y==P){continue e}else{break e}}}h[d++]=g}return h}Rn.prototype=Sn(xn.prototype);Rn.prototype.constructor=Rn;function In(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function On(){this.__data__=ar?ar(null):{};this.size=0}function kn(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Dn(e){var t=this.__data__;if(ar){var n=t[e];return n===u?r:n}return ft.call(t,e)?t[e]:r}function zn(e){var t=this.__data__;return ar?t[e]!==r:ft.call(t,e)}function Fn(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=ar&&t===r?u:t;return this}In.prototype.clear=On;In.prototype["delete"]=kn;In.prototype.get=Dn;In.prototype.has=zn;In.prototype.set=Fn;function Mn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function jn(){this.__data__=[];this.size=0}function Un(e){var t=this.__data__,r=ci(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{xt.call(t,r,1)}--this.size;return true}function Nn(e){var t=this.__data__,n=ci(t,e);return n<0?r:t[n][1]}function Hn(e){return ci(this.__data__,e)>-1}function Gn(e,t){var r=this.__data__,n=ci(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}Mn.prototype.clear=jn;Mn.prototype["delete"]=Un;Mn.prototype.get=Nn;Mn.prototype.has=Hn;Mn.prototype.set=Gn;function Bn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function $n(){this.size=0;this.__data__={hash:new In,map:new(Qt||Mn),string:new In}}function Vn(e){var t=Va(this,e)["delete"](e);this.size-=t?1:0;return t}function Wn(e){return Va(this,e).get(e)}function Kn(e){return Va(this,e).has(e)}function Zn(e,t){var r=Va(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}Bn.prototype.clear=$n;Bn.prototype["delete"]=Vn;Bn.prototype.get=Wn;Bn.prototype.has=Kn;Bn.prototype.set=Zn;function qn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Bn;while(++t<r){this.add(e[t])}}function Xn(e){this.__data__.set(e,u);return this}function Yn(e){return this.__data__.has(e)}qn.prototype.add=qn.prototype.push=Xn;qn.prototype.has=Yn;function Jn(e){var t=this.__data__=new Mn(e);this.size=t.size}function Qn(){this.__data__=new Mn;this.size=0}function ei(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function ti(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ni(e,t){var r=this.__data__;if(r instanceof Mn){var n=r.__data__;if(!Qt||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Bn(n)}r.set(e,t);this.size=r.size;return this}Jn.prototype.clear=Qn;Jn.prototype["delete"]=ei;Jn.prototype.get=ti;Jn.prototype.has=ri;Jn.prototype.set=ni;function ii(e,t){var r=uc(e),n=!r&&sc(e),i=!r&&!n&&vc(e),o=!r&&!n&&!i&&Nc(e),a=r||n||i||o,s=a?Br(e.length,it):[],u=s.length;for(var l in e){if((t||ft.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||as(l,u)))){s.push(l)}}return s}function oi(e){var t=e.length;return t?e[Co(0,t-1)]:r}function ai(e,t){return Ts(ia(e),gi(t,0,e.length))}function si(e){return Ts(ia(e))}function ui(e,t,n){if(n!==r&&!ic(e[t],n)||n===r&&!(t in e)){hi(e,t,n)}}function li(e,t,n){var i=e[t];if(!(ft.call(e,t)&&ic(i,n))||n===r&&!(t in e)){hi(e,t,n)}}function ci(e,t){var r=e.length;while(r--){if(ic(e[r][0],t)){return r}}return-1}function fi(e,t,r,n){wi(e,(function(e,i,o){t(n,e,r(e),o)}));return n}function di(e,t){return e&&oa(t,Lf(t),e)}function vi(e,t){return e&&oa(t,Sf(t),e)}function hi(e,t,r){if(t=="__proto__"&&Tt){Tt(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function pi(e,t){var n=-1,i=t.length,o=Fe(i),a=e==null;while(++n<i){o[n]=a?r:mf(e,t[n])}return o}function gi(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function mi(e,t,n,i,o,a){var s,u=t&f,l=t&d,c=t&v;if(n){s=o?n(e,i,o,a):n(e)}if(s!==r){return s}if(!Sc(e)){return e}var h=uc(e);if(h){s=ts(e);if(!u){return ia(e,s)}}else{var p=Ya(e),g=p==Z||p==q;if(vc(e)){return Zo(e,u)}if(p==Q||p==H||g&&!o){s=l||g?{}:rs(e);if(!u){return l?sa(e,vi(s,e)):aa(e,di(s,e))}}else{if(!qt[p]){return o?e:{}}s=ns(e,p,u)}}a||(a=new Jn);var m=a.get(e);if(m){return m}a.set(e,s);if(Mc(e)){e.forEach((function(r){s.add(mi(r,t,n,r,e,a))}))}else if(Ec(e)){e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}))}var C=c?l?Na:Ua:l?Sf:Lf;var y=h?r:C(e);Cr(y||e,(function(r,i){if(y){i=r;r=e[i]}li(s,i,mi(r,t,n,i,e,a))}));return s}function Ci(e){var t=Lf(e);return function(r){return yi(r,e,t)}}function yi(e,t,n){var i=n.length;if(e==null){return!i}e=rt(e);while(i--){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s)){return false}}return true}function _i(e,t,n){if(typeof e!="function"){throw new ot(a)}return xs((function(){e.apply(r,n)}),t)}function bi(e,t,r,n){var o=-1,a=wr,s=true,u=e.length,l=[],c=t.length;if(!u){return l}if(r){t=Sr(t,Wr(r))}if(n){a=Lr;s=false}else if(t.length>=i){a=Zr;s=false;t=new qn(t)}e:while(++o<u){var f=e[o],d=r==null?f:r(f);f=n||f!==0?f:0;if(s&&d===d){var v=c;while(v--){if(t[v]===d){continue e}}l.push(f)}else if(!a(t,d,n)){l.push(f)}}return l}var wi=ca(Ii);var Li=ca(Oi,true);function Si(e,t){var r=true;wi(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function xi(e,t,n){var i=-1,o=e.length;while(++i<o){var a=e[i],s=t(a);if(s!=null&&(u===r?s===s&&!Uc(s):n(s,u))){var u=s,l=a}}return l}function Ei(e,t,n,i){var o=e.length;n=Zc(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:Zc(i);if(i<0){i+=o}i=n>i?0:qc(i);while(n<i){e[n++]=t}return e}function Ri(e,t){var r=[];wi(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function Ai(e,t,r,n,i){var o=-1,a=e.length;r||(r=os);i||(i=[]);while(++o<a){var s=e[o];if(t>0&&r(s)){if(t>1){Ai(s,t-1,r,n,i)}else{xr(i,s)}}else if(!n){i[i.length]=s}}return i}var Ti=fa();var Pi=fa(true);function Ii(e,t){return e&&Ti(e,t,Lf)}function Oi(e,t){return e&&Pi(e,t,Lf)}function ki(e,t){return br(t,(function(t){return bc(e[t])}))}function Di(e,t){t=$o(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[Is(t[n++])]}return n&&n==i?e:r}function zi(e,t,r){var n=t(e);return uc(e)?n:xr(n,r(e))}function Fi(e){if(e==null){return e===r?ae:J}return At&&At in rt(e)?Za(e):ys(e)}function Mi(e,t){return e>t}function ji(e,t){return e!=null&&ft.call(e,t)}function Ui(e,t){return e!=null&&t in rt(e)}function Ni(e,t,r){return e>=Bt(t,r)&&e<Gt(t,r)}function Hi(e,t,n){var i=n?Lr:wr,o=e[0].length,a=e.length,s=a,u=Fe(a),l=Infinity,c=[];while(s--){var f=e[s];if(s&&t){f=Sr(f,Wr(t))}l=Bt(f.length,l);u[s]=!n&&(t||o>=120&&f.length>=120)?new qn(s&&f):r}f=e[0];var d=-1,v=u[0];e:while(++d<o&&c.length<l){var h=f[d],p=t?t(h):h;h=n||h!==0?h:0;if(!(v?Zr(v,p):i(c,p,n))){s=a;while(--s){var g=u[s];if(!(g?Zr(g,p):i(e[s],p,n))){continue e}}if(v){v.push(p)}c.push(h)}}return c}function Gi(e,t,r,n){Ii(e,(function(e,i,o){t(n,r(e),i,o)}));return n}function Bi(e,t,n){t=$o(t,e);e=bs(e,t);var i=e==null?e:e[Is(ou(t))];return i==null?r:gr(i,e,n)}function $i(e){return xc(e)&&Fi(e)==H}function Vi(e){return xc(e)&&Fi(e)==le}function Wi(e){return xc(e)&&Fi(e)==V}function Ki(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!xc(e)&&!xc(t)){return e!==e&&t!==t}return Zi(e,t,r,n,Ki,i)}function Zi(e,t,r,n,i,o){var a=uc(e),s=uc(t),u=a?G:Ya(e),l=s?G:Ya(t);u=u==H?Q:u;l=l==H?Q:l;var c=u==Q,f=l==Q,d=u==l;if(d&&vc(e)){if(!vc(t)){return false}a=true;c=false}if(d&&!c){o||(o=new Jn);return a||Nc(e)?za(e,t,r,n,i,o):Fa(e,t,u,r,n,i,o)}if(!(r&h)){var v=c&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(v||p){var g=v?e.value():e,m=p?t.value():t;o||(o=new Jn);return i(g,m,r,n,o)}}if(!d){return false}o||(o=new Jn);return Ma(e,t,r,n,i,o)}function qi(e){return xc(e)&&Ya(e)==X}function Xi(e,t,n,i){var o=n.length,a=o,s=!i;if(e==null){return!a}e=rt(e);while(o--){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++o<a){u=n[o];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e)){return false}}else{var d=new Jn;if(i){var v=i(c,f,l,e,t,d)}if(!(v===r?Ki(f,c,h|p,i,d):v)){return false}}}return true}function Yi(e){if(!Sc(e)||fs(e)){return false}var t=bc(e)?mt:Ke;return t.test(Os(e))}function Ji(e){return xc(e)&&Fi(e)==re}function Qi(e){return xc(e)&&Ya(e)==ne}function eo(e){return xc(e)&&Lc(e.length)&&!!Zt[Fi(e)]}function to(e){if(typeof e=="function"){return e}if(e==null){return Id}if(typeof e=="object"){return uc(e)?so(e[0],e[1]):ao(e)}return $d(e)}function ro(e){if(!vs(e)){return Ut(e)}var t=[];for(var r in rt(e)){if(ft.call(e,r)&&r!="constructor"){t.push(r)}}return t}function no(e){if(!Sc(e)){return Cs(e)}var t=vs(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!ft.call(e,n)))){r.push(n)}}return r}function io(e,t){return e<t}function oo(e,t){var r=-1,n=cc(e)?Fe(e.length):[];wi(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}function ao(e){var t=Wa(e);if(t.length==1&&t[0][2]){return ps(t[0][0],t[0][1])}return function(r){return r===e||Xi(r,e,t)}}function so(e,t){if(us(e)&&hs(t)){return ps(Is(e),t)}return function(n){var i=mf(n,e);return i===r&&i===t?yf(n,e):Ki(t,i,h|p)}}function uo(e,t,n,i,o){if(e===t){return}Ti(t,(function(a,s){o||(o=new Jn);if(Sc(a)){lo(e,t,s,n,uo,i,o)}else{var u=i?i(Ls(e,s),a,s+"",e,t,o):r;if(u===r){u=a}ui(e,s,u)}}),Sf)}function lo(e,t,n,i,o,a,s){var u=Ls(e,n),l=Ls(t,n),c=s.get(l);if(c){ui(e,n,c);return}var f=a?a(u,l,n+"",e,t,s):r;var d=f===r;if(d){var v=uc(l),h=!v&&vc(l),p=!v&&!h&&Nc(l);f=l;if(v||h||p){if(uc(u)){f=u}else if(fc(u)){f=ia(u)}else if(h){d=false;f=Zo(l,true)}else if(p){d=false;f=Qo(l,true)}else{f=[]}}else if(Dc(l)||sc(l)){f=u;if(sc(u)){f=Yc(u)}else if(!Sc(u)||bc(u)){f=rs(l)}}else{d=false}}if(d){s.set(l,f);o(f,l,i,a,s);s["delete"](l)}ui(e,n,f)}function co(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return as(t,n)?e[t]:r}function fo(e,t,r){if(t.length){t=Sr(t,(function(e){if(uc(e)){return function(t){return Di(t,e.length===1?e[0]:e)}}return e}))}else{t=[Id]}var n=-1;t=Sr(t,Wr($a()));var i=oo(e,(function(e,r,i){var o=Sr(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return Hr(i,(function(e,t){return ta(e,t,r)}))}function vo(e,t){return ho(e,t,(function(t,r){return yf(e,r)}))}function ho(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var a=t[n],s=Di(e,a);if(r(s,a)){So(o,$o(a,e),s)}}return o}function po(e){return function(t){return Di(t,e)}}function go(e,t,r,n){var i=n?zr:Dr,o=-1,a=t.length,s=e;if(e===t){t=ia(t)}if(r){s=Sr(e,Wr(r))}while(++o<a){var u=0,l=t[o],c=r?r(l):l;while((u=i(s,c,u,n))>-1){if(s!==e){xt.call(s,u,1)}xt.call(e,u,1)}}return e}function mo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(as(i)){xt.call(e,i,1)}else{Fo(e,i)}}}return e}function Co(e,t){return e+Dt(Xt()*(t-e+1))}function yo(e,t,r,n){var i=-1,o=Gt(kt((t-e)/(r||1)),0),a=Fe(o);while(o--){a[n?o:++i]=e;e+=r}return a}function _o(e,t){var r="";if(!e||t<1||t>D){return r}do{if(t%2){r+=e}t=Dt(t/2);if(t){e+=e}}while(t);return r}function bo(e,t){return Es(_s(e,t,Id),e+"")}function wo(e){return oi(Gf(e))}function Lo(e,t){var r=Gf(e);return Ts(r,gi(t,0,r.length))}function So(e,t,n,i){if(!Sc(e)){return e}t=$o(t,e);var o=-1,a=t.length,s=a-1,u=e;while(u!=null&&++o<a){var l=Is(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype"){return e}if(o!=s){var f=u[l];c=i?i(f,l,u):r;if(c===r){c=Sc(f)?f:as(t[o+1])?[]:{}}}li(u,l,c);u=u[l]}return e}var xo=!ur?Id:function(e,t){ur.set(e,t);return e};var Eo=!Tt?Id:function(e,t){return Tt(e,"toString",{configurable:true,enumerable:false,value:Rd(t),writable:true})};function Ro(e){return Ts(Gf(e))}function Ao(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Fe(i);while(++n<i){o[n]=e[n+t]}return o}function To(e,t){var r;wi(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function Po(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=U){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!Uc(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return Io(e,t,Id,r)}function Io(e,t,n,i){var o=0,a=e==null?0:e.length;if(a===0){return 0}t=n(t);var s=t!==t,u=t===null,l=Uc(t),c=t===r;while(o<a){var f=Dt((o+a)/2),d=n(e[f]),v=d!==r,h=d===null,p=d===d,g=Uc(d);if(s){var m=i||p}else if(c){m=p&&(i||v)}else if(u){m=p&&v&&(i||!h)}else if(l){m=p&&v&&!h&&(i||!g)}else if(h||g){m=false}else{m=i?d<=t:d<t}if(m){o=f+1}else{a=f}}return Bt(a,j)}function Oo(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r],s=t?t(a):a;if(!r||!ic(s,u)){var u=s;o[i++]=a===0?0:a}}return o}function ko(e){if(typeof e=="number"){return e}if(Uc(e)){return F}return+e}function Do(e){if(typeof e=="string"){return e}if(uc(e)){return Sr(e,Do)+""}if(Uc(e)){return wn?wn.call(e):""}var t=e+"";return t=="0"&&1/e==-k?"-0":t}function zo(e,t,r){var n=-1,o=wr,a=e.length,s=true,u=[],l=u;if(r){s=false;o=Lr}else if(a>=i){var c=t?null:Ta(e);if(c){return ln(c)}s=false;o=Zr;l=new qn}else{l=t?[]:u}e:while(++n<a){var f=e[n],d=t?t(f):f;f=r||f!==0?f:0;if(s&&d===d){var v=l.length;while(v--){if(l[v]===d){continue e}}if(t){l.push(d)}u.push(f)}else if(!o(l,d,r)){if(l!==u){l.push(d)}u.push(f)}}return u}function Fo(e,t){t=$o(t,e);e=bs(e,t);return e==null||delete e[Is(ou(t))]}function Mo(e,t,r,n){return So(e,t,r(Di(e,t)),n)}function jo(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e)){}return r?Ao(e,n?0:o,n?o+1:i):Ao(e,n?o+1:0,n?i:o)}function Uo(e,t){var r=e;if(r instanceof Rn){r=r.value()}return Er(t,(function(e,t){return t.func.apply(t.thisArg,xr([e],t.args))}),r)}function No(e,t,r){var n=e.length;if(n<2){return n?zo(e[0]):[]}var i=-1,o=Fe(n);while(++i<n){var a=e[i],s=-1;while(++s<n){if(s!=i){o[i]=bi(o[i]||a,e[s],t,r)}}}return zo(Ai(o,1),t,r)}function Ho(e,t,n){var i=-1,o=e.length,a=t.length,s={};while(++i<o){var u=i<a?t[i]:r;n(s,e[i],u)}return s}function Go(e){return fc(e)?e:[]}function Bo(e){return typeof e=="function"?e:Id}function $o(e,t){if(uc(e)){return e}return us(e,t)?[e]:Ps(Qc(e))}var Vo=bo;function Wo(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:Ao(e,t,n)}var Ko=Pt||function(e){return ir.clearTimeout(e)};function Zo(e,t){if(t){return e.slice()}var r=e.length,n=bt?bt(r):new e.constructor(r);e.copy(n);return n}function qo(e){var t=new e.constructor(e.byteLength);new _t(t).set(new _t(e));return t}function Xo(e,t){var r=t?qo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Yo(e){var t=new e.constructor(e.source,$e.exec(e));t.lastIndex=e.lastIndex;return t}function Jo(e){return _n?rt(_n.call(e)):{}}function Qo(e,t){var r=t?qo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=e===null,o=e===e,a=Uc(e);var s=t!==r,u=t===null,l=t===t,c=Uc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o){return 1}if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l){return-1}}return 0}function ta(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;while(++n<a){var u=ea(i[n],o[n]);if(u){if(n>=s){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,r,n){var i=-1,o=e.length,a=r.length,s=-1,u=t.length,l=Gt(o-a,0),c=Fe(u+l),f=!n;while(++s<u){c[s]=t[s]}while(++i<a){if(f||i<o){c[r[i]]=e[i]}}while(l--){c[s++]=e[i++]}return c}function na(e,t,r,n){var i=-1,o=e.length,a=-1,s=r.length,u=-1,l=t.length,c=Gt(o-s,0),f=Fe(c+l),d=!n;while(++i<c){f[i]=e[i]}var v=i;while(++u<l){f[v+u]=t[u]}while(++a<s){if(d||i<o){f[v+r[a]]=e[i++]}}return f}function ia(e,t){var r=-1,n=e.length;t||(t=Fe(n));while(++r<n){t[r]=e[r]}return t}function oa(e,t,n,i){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a];var l=i?i(n[u],e[u],u,n,e):r;if(l===r){l=e[u]}if(o){hi(n,u,l)}else{li(n,u,l)}}return n}function aa(e,t){return oa(e,qa(e),t)}function sa(e,t){return oa(e,Xa(e),t)}function ua(e,t){return function(r,n){var i=uc(r)?mr:fi,o=t?t():{};return i(r,e,$a(n,2),o)}}function la(e){return bo((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;a=e.length>3&&typeof a=="function"?(o--,a):r;if(s&&ss(n[0],n[1],s)){a=o<3?r:a;o=1}t=rt(t);while(++i<o){var u=n[i];if(u){e(t,u,i,a)}}return t}))}function ca(e,t){return function(r,n){if(r==null){return r}if(!cc(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=rt(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}function fa(e){return function(t,r,n){var i=-1,o=rt(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}function da(e,t,r){var n=t&g,i=pa(e);function o(){var t=this&&this!==ir&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function va(e){return function(t){t=Qc(t);var n=rn(t)?hn(t):r;var i=n?n[0]:t.charAt(0);var o=n?Wo(n,1).join(""):t.slice(1);return i[e]()+o}}function ha(e){return function(t){return Er(wd(qf(t).replace(Nt,"")),e,"")}}function pa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Sn(e.prototype),n=e.apply(r,t);return Sc(n)?n:r}}function ga(e,t,n){var i=pa(e);function o(){var a=arguments.length,s=Fe(a),u=a,l=Ba(o);while(u--){s[u]=arguments[u]}var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:un(s,l);a-=c.length;if(a<n){return Ra(e,t,ya,o.placeholder,r,s,c,r,r,n-a)}var f=this&&this!==ir&&this instanceof o?i:e;return gr(f,this,s)}return o}function ma(e){return function(t,n,i){var o=rt(t);if(!cc(t)){var a=$a(n,3);t=Lf(t);n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Ca(e){return ja((function(t){var n=t.length,i=n,o=En.prototype.thru;if(e){t.reverse()}while(i--){var s=t[i];if(typeof s!="function"){throw new ot(a)}if(o&&!u&&Ga(s)=="wrapper"){var u=new En([],true)}}i=u?i:n;while(++i<n){s=t[i];var l=Ga(s),c=l=="wrapper"?Ha(s):r;if(c&&cs(c[0])&&c[1]==(L|y|b|S)&&!c[4].length&&c[9]==1){u=u[Ga(c[0])].apply(u,c[3])}else{u=s.length==1&&cs(s)?u[l]():u.thru(s)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&uc(r)){return u.plant(r).value()}var i=0,o=n?t[i].apply(this,e):r;while(++i<n){o=t[i].call(this,o)}return o}}))}function ya(e,t,n,i,o,a,s,u,l,c){var f=t&L,d=t&g,v=t&m,h=t&(y|_),p=t&x,C=v?r:pa(e);function b(){var r=arguments.length,g=Fe(r),m=r;while(m--){g[m]=arguments[m]}if(h){var y=Ba(b),_=Yr(g,y)}if(i){g=ra(g,i,o,h)}if(a){g=na(g,a,s,h)}r-=_;if(h&&r<c){var w=un(g,y);return Ra(e,t,ya,b.placeholder,n,g,w,u,l,c-r)}var L=d?n:this,S=v?L[e]:e;r=g.length;if(u){g=ws(g,u)}else if(p&&r>1){g.reverse()}if(f&&l<r){g.length=l}if(this&&this!==ir&&this instanceof b){S=C||pa(S)}return S.apply(L,g)}return b}function _a(e,t){return function(r,n){return Gi(r,e,t(n),{})}}function ba(e,t){return function(n,i){var o;if(n===r&&i===r){return t}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=Do(n);i=Do(i)}else{n=ko(n);i=ko(i)}o=e(n,i)}return o}}function wa(e){return ja((function(t){t=Sr(t,Wr($a()));return bo((function(r){var n=this;return e(t,(function(e){return gr(e,n,r)}))}))}))}function La(e,t){t=t===r?" ":Do(t);var n=t.length;if(n<2){return n?_o(t,e):t}var i=_o(t,kt(e/vn(t)));return rn(t)?Wo(hn(i),0,e).join(""):i.slice(0,e)}function Sa(e,t,r,n){var i=t&g,o=pa(e);function a(){var t=-1,s=arguments.length,u=-1,l=n.length,c=Fe(l+s),f=this&&this!==ir&&this instanceof a?o:e;while(++u<l){c[u]=n[u]}while(s--){c[u++]=arguments[++t]}return gr(f,i?r:this,c)}return a}function xa(e){return function(t,n,i){if(i&&typeof i!="number"&&ss(t,n,i)){n=i=r}t=Kc(t);if(n===r){n=t;t=0}else{n=Kc(n)}i=i===r?t<n?1:-1:Kc(i);return yo(t,n,i,e)}}function Ea(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=Xc(t);r=Xc(r)}return e(t,r)}}function Ra(e,t,n,i,o,a,s,u,l,c){var f=t&y,d=f?s:r,v=f?r:s,h=f?a:r,p=f?r:a;t|=f?b:w;t&=~(f?w:b);if(!(t&C)){t&=~(g|m)}var _=[e,t,o,h,d,p,v,u,l,c];var L=n.apply(r,_);if(cs(e)){Ss(L,_)}L.placeholder=i;return Rs(L,e,t)}function Aa(e){var t=tt[e];return function(e,r){e=Xc(e);r=r==null?0:Bt(Zc(r),292);if(r&&Mt(e)){var n=(Qc(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(Qc(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Ta=!(nr&&1/ln(new nr([,-0]))[1]==k)?Ud:function(e){return new nr(e)};function Pa(e){return function(t){var r=Ya(t);if(r==X){return an(t)}if(r==ne){return cn(t)}return $r(t,e(t))}}function Ia(e,t,n,i,o,s,u,l){var c=t&m;if(!c&&typeof e!="function"){throw new ot(a)}var f=i?i.length:0;if(!f){t&=~(b|w);i=o=r}u=u===r?u:Gt(Zc(u),0);l=l===r?l:Zc(l);f-=o?o.length:0;if(t&w){var d=i,v=o;i=o=r}var h=c?r:Ha(e);var p=[e,t,n,i,o,d,v,s,u,l];if(h){ms(p,h)}e=p[0];t=p[1];n=p[2];i=p[3];o=p[4];l=p[9]=p[9]===r?c?0:e.length:Gt(p[9]-f,0);if(!l&&t&(y|_)){t&=~(y|_)}if(!t||t==g){var C=da(e,t,n)}else if(t==y||t==_){C=ga(e,t,l)}else if((t==b||t==(g|b))&&!o.length){C=Sa(e,t,n,i)}else{C=ya.apply(r,p)}var L=h?xo:Ss;return Rs(L(C,p),e,t)}function Oa(e,t,n,i){if(e===r||ic(e,ut[n])&&!ft.call(i,n)){return t}return e}function ka(e,t,n,i,o,a){if(Sc(e)&&Sc(t)){a.set(t,e);uo(e,t,r,ka,a);a["delete"](t)}return e}function Da(e){return Dc(e)?r:e}function za(e,t,n,i,o,a){var s=n&h,u=e.length,l=t.length;if(u!=l&&!(s&&l>u)){return false}var c=a.get(e);var f=a.get(t);if(c&&f){return c==t&&f==e}var d=-1,v=true,g=n&p?new qn:r;a.set(e,t);a.set(t,e);while(++d<u){var m=e[d],C=t[d];if(i){var y=s?i(C,m,d,t,e,a):i(m,C,d,e,t,a)}if(y!==r){if(y){continue}v=false;break}if(g){if(!Ar(t,(function(e,t){if(!Zr(g,t)&&(m===e||o(m,e,n,i,a))){return g.push(t)}}))){v=false;break}}else if(!(m===C||o(m,C,n,i,a))){v=false;break}}a["delete"](e);a["delete"](t);return v}function Fa(e,t,r,n,i,o,a){switch(r){case ce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case le:if(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t))){return false}return true;case $:case V:case Y:return ic(+e,+t);case K:return e.name==t.name&&e.message==t.message;case re:case ie:return e==t+"";case X:var s=an;case ne:var u=n&h;s||(s=ln);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=p;a.set(e,t);var c=za(s(e),s(t),n,i,o,a);a["delete"](e);return c;case oe:if(_n){return _n.call(e)==_n.call(t)}}return false}function Ma(e,t,n,i,o,a){var s=n&h,u=Ua(e),l=u.length,c=Ua(t),f=c.length;if(l!=f&&!s){return false}var d=l;while(d--){var v=u[d];if(!(s?v in t:ft.call(t,v))){return false}}var p=a.get(e);var g=a.get(t);if(p&&g){return p==t&&g==e}var m=true;a.set(e,t);a.set(t,e);var C=s;while(++d<l){v=u[d];var y=e[v],_=t[v];if(i){var b=s?i(_,y,v,t,e,a):i(y,_,v,e,t,a)}if(!(b===r?y===_||o(y,_,n,i,a):b)){m=false;break}C||(C=v=="constructor")}if(m&&!C){var w=e.constructor,L=t.constructor;if(w!=L&&("constructor"in e&&"constructor"in t)&&!(typeof w=="function"&&w instanceof w&&typeof L=="function"&&L instanceof L)){m=false}}a["delete"](e);a["delete"](t);return m}function ja(e){return Es(_s(e,r,Zs),e+"")}function Ua(e){return zi(e,Lf,qa)}function Na(e){return zi(e,Sf,Xa)}var Ha=!ur?Ud:function(e){return ur.get(e)};function Ga(e){var t=e.name+"",r=lr[t],n=ft.call(lr,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==e){return i.name}}return t}function Ba(e){var t=ft.call(Ln,"placeholder")?Ln:e;return t.placeholder}function $a(){var e=Ln.iteratee||Od;e=e===Od?to:e;return arguments.length?e(arguments[0],arguments[1]):e}function Va(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wa(e){var t=Lf(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,hs(i)]}return t}function Ka(e,t){var n=tn(e,t);return Yi(n)?n:r}function Za(e){var t=ft.call(e,At),n=e[At];try{e[At]=r;var i=true}catch(e){}var o=ht.call(e);if(i){if(t){e[At]=n}else{delete e[At]}}return o}var qa=!zt?Zd:function(e){if(e==null){return[]}e=rt(e);return br(zt(e),(function(t){return St.call(e,t)}))};var Xa=!zt?Zd:function(e){var t=[];while(e){xr(t,qa(e));e=wt(e)}return t};var Ya=Fi;if(Jt&&Ya(new Jt(new ArrayBuffer(1)))!=ce||Qt&&Ya(new Qt)!=X||rr&&Ya(rr.resolve())!=ee||nr&&Ya(new nr)!=ne||or&&Ya(new or)!=se){Ya=function(e){var t=Fi(e),n=t==Q?e.constructor:r,i=n?Os(n):"";if(i){switch(i){case Tr:return ce;case Pr:return X;case Ur:return ee;case fn:return ne;case mn:return se}}return t}}function Ja(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Bt(t,e+a);break;case"takeRight":e=Gt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(je);return t?t[1].split(Ue):[]}function es(e,t,r){t=$o(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Is(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&Lc(i)&&as(a,i)&&(uc(e)||sc(e))}function ts(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&ft.call(e,"index")){r.index=e.index;r.input=e.input}return r}function rs(e){return typeof e.constructor=="function"&&!vs(e)?Sn(wt(e)):{}}function ns(e,t,r){var n=e.constructor;switch(t){case le:return qo(e);case $:case V:return new n(+e);case ce:return Xo(e,r);case fe:case de:case ve:case he:case pe:case ge:case me:case Ce:case ye:return Qo(e,r);case X:return new n;case Y:case ie:return new n(e);case re:return Yo(e);case ne:return new n;case oe:return Jo(e)}}function is(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Me,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Et&&e&&e[Et])}function as(e,t){var r=typeof e;t=t==null?D:t;return!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&(e>-1&&e%1==0&&e<t)}function ss(e,t,r){if(!Sc(r)){return false}var n=typeof t;if(n=="number"?cc(r)&&as(t,r.length):n=="string"&&t in r){return ic(r[t],e)}return false}function us(e,t){if(uc(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||Uc(e)){return true}return Ie.test(e)||!Pe.test(e)||t!=null&&e in rt(t)}function ls(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e){var t=Ga(e),r=Ln[t];if(typeof r!="function"||!(t in Rn.prototype)){return false}if(e===r){return true}var n=Ha(r);return!!n&&e===n[0]}function fs(e){return!!vt&&vt in e}var ds=lt?bc:qd;function vs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ut;return e===r}function hs(e){return e===e&&!Sc(e)}function ps(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in rt(n))}}function gs(e){var t=Nl(e,(function(e){if(r.size===l){r.clear()}return e}));var r=t.cache;return t}function ms(e,t){var r=e[1],n=t[1],i=r|n,o=i<(g|m|L);var a=n==L&&r==y||n==L&&r==S&&e[7].length<=t[8]||n==(L|S)&&t[7].length<=t[8]&&r==y;if(!(o||a)){return e}if(n&g){e[2]=t[2];i|=r&g?0:C}var s=t[3];if(s){var u=e[3];e[3]=u?ra(u,s,t[4]):s;e[4]=u?un(e[3],c):t[4]}s=t[5];if(s){u=e[5];e[5]=u?na(u,s,t[6]):s;e[6]=u?un(e[5],c):t[6]}s=t[7];if(s){e[7]=s}if(n&L){e[8]=e[8]==null?t[8]:Bt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function Cs(e){var t=[];if(e!=null){for(var r in rt(e)){t.push(r)}}return t}function ys(e){return ht.call(e)}function _s(e,t,n){t=Gt(t===r?e.length-1:t,0);return function(){var r=arguments,i=-1,o=Gt(r.length-t,0),a=Fe(o);while(++i<o){a[i]=r[t+i]}i=-1;var s=Fe(t+1);while(++i<t){s[i]=r[i]}s[t]=n(a);return gr(e,this,s)}}function bs(e,t){return t.length<2?e:Di(e,Ao(t,0,-1))}function ws(e,t){var n=e.length,i=Bt(t.length,n),o=ia(e);while(i--){var a=t[i];e[i]=as(a,n)?o[a]:r}return e}function Ls(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var Ss=As(xo);var xs=Ot||function(e,t){return ir.setTimeout(e,t)};var Es=As(Eo);function Rs(e,t,r){var n=t+"";return Es(e,is(n,ks(Qa(n),r)))}function As(e){var t=0,n=0;return function(){var i=$t(),o=T-(i-n);n=i;if(o>0){if(++t>=A){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function Ts(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var a=Co(n,o),s=e[a];e[a]=e[n];e[n]=s}e.length=t;return e}var Ps=gs((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Oe,(function(e,r,n,i){t.push(n?i.replace(Ge,"$1"):r||e)}));return t}));function Is(e){if(typeof e=="string"||Uc(e)){return e}var t=e+"";return t=="0"&&1/e==-k?"-0":t}function Os(e){if(e!=null){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ks(e,t){Cr(N,(function(r){var n="_."+r[0];if(t&r[1]&&!wr(e,n)){e.push(n)}}));return e.sort()}function Ds(e){if(e instanceof Rn){return e.clone()}var t=new En(e.__wrapped__,e.__chain__);t.__actions__=ia(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function zs(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Gt(Zc(t),0)}var i=e==null?0:e.length;if(!i||t<1){return[]}var o=0,a=0,s=Fe(kt(i/t));while(o<i){s[a++]=Ao(e,o,o+=t)}return s}function Fs(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o){i[n++]=o}}return i}function Ms(){var e=arguments.length;if(!e){return[]}var t=Fe(e-1),r=arguments[0],n=e;while(n--){t[n-1]=arguments[n]}return xr(uc(r)?ia(r):[r],Ai(t,1))}var js=bo((function(e,t){return fc(e)?bi(e,Ai(t,1,fc,true)):[]}));var Us=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,Ai(t,1,fc,true),$a(n,2)):[]}));var Ns=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,Ai(t,1,fc,true),r,n):[]}));function Hs(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Zc(t);return Ao(e,t<0?0:t,i)}function Gs(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Zc(t);t=i-t;return Ao(e,0,t<0?0:t)}function Bs(e,t){return e&&e.length?jo(e,$a(t,3),true,true):[]}function $s(e,t){return e&&e.length?jo(e,$a(t,3),true):[]}function Vs(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&ss(e,t,r)){r=0;n=i}return Ei(e,t,r,n)}function Ws(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Zc(r);if(i<0){i=Gt(n+i,0)}return kr(e,$a(t,3),i)}function Ks(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i-1;if(n!==r){o=Zc(n);o=n<0?Gt(i+o,0):Bt(o,i-1)}return kr(e,$a(t,3),o,true)}function Zs(e){var t=e==null?0:e.length;return t?Ai(e,1):[]}function qs(e){var t=e==null?0:e.length;return t?Ai(e,k):[]}function Xs(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:Zc(t);return Ai(e,t)}function Ys(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function Js(e){return e&&e.length?e[0]:r}function Qs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Zc(r);if(i<0){i=Gt(n+i,0)}return Dr(e,t,i)}function eu(e){var t=e==null?0:e.length;return t?Ao(e,0,-1):[]}var tu=bo((function(e){var t=Sr(e,Go);return t.length&&t[0]===e[0]?Hi(t):[]}));var ru=bo((function(e){var t=ou(e),n=Sr(e,Go);if(t===ou(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?Hi(n,$a(t,2)):[]}));var nu=bo((function(e){var t=ou(e),n=Sr(e,Go);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?Hi(n,r,t):[]}));function iu(e,t){return e==null?"":jt.call(e,t)}function ou(e){var t=e==null?0:e.length;return t?e[t-1]:r}function au(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i;if(n!==r){o=Zc(n);o=o<0?Gt(i+o,0):Bt(o,i-1)}return t===t?dn(e,t,o):kr(e,Fr,o,true)}function su(e,t){return e&&e.length?co(e,Zc(t)):r}var uu=bo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,r){return e&&e.length&&t&&t.length?go(e,t,$a(r,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var du=ja((function(e,t){var r=e==null?0:e.length,n=pi(e,t);mo(e,Sr(t,(function(e){return as(e,r)?+e:e})).sort(ea));return n}));function vu(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],o=e.length;t=$a(t,3);while(++n<o){var a=e[n];if(t(a,n,e)){r.push(a);i.push(n)}}mo(e,i);return r}function hu(e){return e==null?e:Yt.call(e)}function pu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&ss(e,t,n)){t=0;n=i}else{t=t==null?0:Zc(t);n=n===r?i:Zc(n)}return Ao(e,t,n)}function gu(e,t){return Po(e,t)}function mu(e,t,r){return Io(e,t,$a(r,2))}function Cu(e,t){var r=e==null?0:e.length;if(r){var n=Po(e,t);if(n<r&&ic(e[n],t)){return n}}return-1}function yu(e,t){return Po(e,t,true)}function _u(e,t,r){return Io(e,t,$a(r,2),true)}function bu(e,t){var r=e==null?0:e.length;if(r){var n=Po(e,t,true)-1;if(ic(e[n],t)){return n}}return-1}function wu(e){return e&&e.length?Oo(e):[]}function Lu(e,t){return e&&e.length?Oo(e,$a(t,2)):[]}function Su(e){var t=e==null?0:e.length;return t?Ao(e,1,t):[]}function xu(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:Zc(t);return Ao(e,0,t<0?0:t)}function Eu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Zc(t);t=i-t;return Ao(e,t<0?0:t,i)}function Ru(e,t){return e&&e.length?jo(e,$a(t,3),false,true):[]}function Au(e,t){return e&&e.length?jo(e,$a(t,3)):[]}var Tu=bo((function(e){return zo(Ai(e,1,fc,true))}));var Pu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return zo(Ai(e,1,fc,true),$a(t,2))}));var Iu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return zo(Ai(e,1,fc,true),r,t)}));function Ou(e){return e&&e.length?zo(e):[]}function ku(e,t){return e&&e.length?zo(e,$a(t,2)):[]}function Du(e,t){t=typeof t=="function"?t:r;return e&&e.length?zo(e,r,t):[]}function zu(e){if(!(e&&e.length)){return[]}var t=0;e=br(e,(function(e){if(fc(e)){t=Gt(e.length,t);return true}}));return Br(t,(function(t){return Sr(e,jr(t))}))}function Fu(e,t){if(!(e&&e.length)){return[]}var n=zu(e);if(t==null){return n}return Sr(n,(function(e){return gr(t,r,e)}))}var Mu=bo((function(e,t){return fc(e)?bi(e,t):[]}));var ju=bo((function(e){return No(br(e,fc))}));var Uu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return No(br(e,fc),$a(t,2))}));var Nu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return No(br(e,fc),r,t)}));var Hu=bo(zu);function Gu(e,t){return Ho(e||[],t||[],li)}function Bu(e,t){return Ho(e||[],t||[],So)}var $u=bo((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return Fu(e,n)}));function Vu(e){var t=Ln(e);t.__chain__=true;return t}function Wu(e,t){t(e);return e}function Ku(e,t){return t(e)}var Zu=ja((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return pi(t,e)};if(t>1||this.__actions__.length||!(i instanceof Rn)||!as(n)){return this.thru(o)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:Ku,args:[o],thisArg:r});return new En(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function qu(){return Vu(this)}function Xu(){return new En(this.value(),this.__chain__)}function Yu(){if(this.__values__===r){this.__values__=Wc(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Ju(){return this}function Qu(e){var t,n=this;while(n instanceof xn){var i=Ds(n);i.__index__=0;i.__values__=r;if(t){o.__wrapped__=i}else{t=i}var o=i;n=n.__wrapped__}o.__wrapped__=e;return t}function el(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;if(this.__actions__.length){t=new Rn(this)}t=t.reverse();t.__actions__.push({func:Ku,args:[hu],thisArg:r});return new En(t,this.__chain__)}return this.thru(hu)}function tl(){return Uo(this.__wrapped__,this.__actions__)}var rl=ua((function(e,t,r){if(ft.call(e,r)){++e[r]}else{hi(e,r,1)}}));function nl(e,t,n){var i=uc(e)?_r:Si;if(n&&ss(e,t,n)){t=r}return i(e,$a(t,3))}function il(e,t){var r=uc(e)?br:Ri;return r(e,$a(t,3))}var ol=ma(Ws);var al=ma(Ks);function sl(e,t){return Ai(gl(e,t),1)}function ul(e,t){return Ai(gl(e,t),k)}function ll(e,t,n){n=n===r?1:Zc(n);return Ai(gl(e,t),n)}function cl(e,t){var r=uc(e)?Cr:wi;return r(e,$a(t,3))}function fl(e,t){var r=uc(e)?yr:Li;return r(e,$a(t,3))}var dl=ua((function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{hi(e,r,[t])}}));function vl(e,t,r,n){e=cc(e)?e:Gf(e);r=r&&!n?Zc(r):0;var i=e.length;if(r<0){r=Gt(i+r,0)}return jc(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Dr(e,t,r)>-1}var hl=bo((function(e,t,r){var n=-1,i=typeof t=="function",o=cc(e)?Fe(e.length):[];wi(e,(function(e){o[++n]=i?gr(t,e,r):Bi(e,t,r)}));return o}));var pl=ua((function(e,t,r){hi(e,r,t)}));function gl(e,t){var r=uc(e)?Sr:oo;return r(e,$a(t,3))}function ml(e,t,n,i){if(e==null){return[]}if(!uc(t)){t=t==null?[]:[t]}n=i?r:n;if(!uc(n)){n=n==null?[]:[n]}return fo(e,t,n)}var Cl=ua((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function yl(e,t,r){var n=uc(e)?Er:Nr,i=arguments.length<3;return n(e,$a(t,4),r,i,wi)}function _l(e,t,r){var n=uc(e)?Rr:Nr,i=arguments.length<3;return n(e,$a(t,4),r,i,Li)}function bl(e,t){var r=uc(e)?br:Ri;return r(e,Hl($a(t,3)))}function wl(e){var t=uc(e)?oi:wo;return t(e)}function Ll(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Zc(t)}var i=uc(e)?ai:Lo;return i(e,t)}function Sl(e){var t=uc(e)?si:Ro;return t(e)}function xl(e){if(e==null){return 0}if(cc(e)){return jc(e)?vn(e):e.length}var t=Ya(e);if(t==X||t==ne){return e.size}return ro(e).length}function El(e,t,n){var i=uc(e)?Ar:To;if(n&&ss(e,t,n)){t=r}return i(e,$a(t,3))}var Rl=bo((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&ss(e,t[0],t[1])){t=[]}else if(r>2&&ss(t[0],t[1],t[2])){t=[t[0]]}return fo(e,Ai(t,1),[])}));var Al=It||function(){return ir.Date.now()};function Tl(e,t){if(typeof t!="function"){throw new ot(a)}e=Zc(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Pl(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return Ia(e,L,r,r,r,r,t)}function Il(e,t){var n;if(typeof t!="function"){throw new ot(a)}e=Zc(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var Ol=bo((function(e,t,r){var n=g;if(r.length){var i=un(r,Ba(Ol));n|=b}return Ia(e,n,t,r,i)}));var kl=bo((function(e,t,r){var n=g|m;if(r.length){var i=un(r,Ba(kl));n|=b}return Ia(t,n,e,r,i)}));function Dl(e,t,n){t=n?r:t;var i=Ia(e,y,r,r,r,r,r,t);i.placeholder=Dl.placeholder;return i}function zl(e,t,n){t=n?r:t;var i=Ia(e,_,r,r,r,r,r,t);i.placeholder=zl.placeholder;return i}function Fl(e,t,n){var i,o,s,u,l,c,f=0,d=false,v=false,h=true;if(typeof e!="function"){throw new ot(a)}t=Xc(t)||0;if(Sc(n)){d=!!n.leading;v="maxWait"in n;s=v?Gt(Xc(n.maxWait)||0,t):s;h="trailing"in n?!!n.trailing:h}function p(t){var n=i,a=o;i=o=r;f=t;u=e.apply(a,n);return u}function g(e){f=e;l=xs(y,t);return d?p(e):u}function m(e){var r=e-c,n=e-f,i=t-r;return v?Bt(i,s-n):i}function C(e){var n=e-c,i=e-f;return c===r||n>=t||n<0||v&&i>=s}function y(){var e=Al();if(C(e)){return _(e)}l=xs(y,m(e))}function _(e){l=r;if(h&&i){return p(e)}i=o=r;return u}function b(){if(l!==r){Ko(l)}f=0;i=c=o=l=r}function w(){return l===r?u:_(Al())}function L(){var e=Al(),n=C(e);i=arguments;o=this;c=e;if(n){if(l===r){return g(c)}if(v){Ko(l);l=xs(y,t);return p(c)}}if(l===r){l=xs(y,t)}return u}L.cancel=b;L.flush=w;return L}var Ml=bo((function(e,t){return _i(e,1,t)}));var jl=bo((function(e,t,r){return _i(e,Xc(t)||0,r)}));function Ul(e){return Ia(e,x)}function Nl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ot(a)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Nl.Cache||Bn);return r}Nl.Cache=Bn;function Hl(e){if(typeof e!="function"){throw new ot(a)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Gl(e){return Il(2,e)}var Bl=Vo((function(e,t){t=t.length==1&&uc(t[0])?Sr(t[0],Wr($a())):Sr(Ai(t,1),Wr($a()));var r=t.length;return bo((function(n){var i=-1,o=Bt(n.length,r);while(++i<o){n[i]=t[i].call(this,n[i])}return gr(e,this,n)}))}));var $l=bo((function(e,t){var n=un(t,Ba($l));return Ia(e,b,r,t,n)}));var Vl=bo((function(e,t){var n=un(t,Ba(Vl));return Ia(e,w,r,t,n)}));var Wl=ja((function(e,t){return Ia(e,S,r,r,r,t)}));function Kl(e,t){if(typeof e!="function"){throw new ot(a)}t=t===r?t:Zc(t);return bo(e,t)}function Zl(e,t){if(typeof e!="function"){throw new ot(a)}t=t==null?0:Gt(Zc(t),0);return bo((function(r){var n=r[t],i=Wo(r,0,t);if(n){xr(i,n)}return gr(e,this,i)}))}function ql(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ot(a)}if(Sc(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Fl(e,t,{leading:n,maxWait:t,trailing:i})}function Xl(e){return Pl(e,1)}function Yl(e,t){return $l(Bo(t),e)}function Jl(){if(!arguments.length){return[]}var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return mi(e,v)}function ec(e,t){t=typeof t=="function"?t:r;return mi(e,v,t)}function tc(e){return mi(e,f|v)}function rc(e,t){t=typeof t=="function"?t:r;return mi(e,f|v,t)}function nc(e,t){return t==null||yi(e,t,Lf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Ea(Mi);var ac=Ea((function(e,t){return e>=t}));var sc=$i(function(){return arguments}())?$i:function(e){return xc(e)&&ft.call(e,"callee")&&!St.call(e,"callee")};var uc=Fe.isArray;var lc=cr?Wr(cr):Vi;function cc(e){return e!=null&&Lc(e.length)&&!bc(e)}function fc(e){return xc(e)&&cc(e)}function dc(e){return e===true||e===false||xc(e)&&Fi(e)==$}var vc=Ft||qd;var hc=fr?Wr(fr):Wi;function pc(e){return xc(e)&&e.nodeType===1&&!Dc(e)}function gc(e){if(e==null){return true}if(cc(e)&&(uc(e)||typeof e=="string"||typeof e.splice=="function"||vc(e)||Nc(e)||sc(e))){return!e.length}var t=Ya(e);if(t==X||t==ne){return!e.size}if(vs(e)){return!ro(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function mc(e,t){return Ki(e,t)}function Cc(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?Ki(e,t,r,n):!!i}function yc(e){if(!xc(e)){return false}var t=Fi(e);return t==K||t==W||typeof e.message=="string"&&typeof e.name=="string"&&!Dc(e)}function _c(e){return typeof e=="number"&&Mt(e)}function bc(e){if(!Sc(e)){return false}var t=Fi(e);return t==Z||t==q||t==B||t==te}function wc(e){return typeof e=="number"&&e==Zc(e)}function Lc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D}function Sc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xc(e){return e!=null&&typeof e=="object"}var Ec=dr?Wr(dr):qi;function Rc(e,t){return e===t||Xi(e,t,Wa(t))}function Ac(e,t,n){n=typeof n=="function"?n:r;return Xi(e,t,Wa(t),n)}function Tc(e){return kc(e)&&e!=+e}function Pc(e){if(ds(e)){throw new Qe(o)}return Yi(e)}function Ic(e){return e===null}function Oc(e){return e==null}function kc(e){return typeof e=="number"||xc(e)&&Fi(e)==Y}function Dc(e){if(!xc(e)||Fi(e)!=Q){return false}var t=wt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==pt}var zc=vr?Wr(vr):Ji;function Fc(e){return wc(e)&&e>=-D&&e<=D}var Mc=hr?Wr(hr):Qi;function jc(e){return typeof e=="string"||!uc(e)&&xc(e)&&Fi(e)==ie}function Uc(e){return typeof e=="symbol"||xc(e)&&Fi(e)==oe}var Nc=pr?Wr(pr):eo;function Hc(e){return e===r}function Gc(e){return xc(e)&&Ya(e)==se}function Bc(e){return xc(e)&&Fi(e)==ue}var $c=Ea(io);var Vc=Ea((function(e,t){return e<=t}));function Wc(e){if(!e){return[]}if(cc(e)){return jc(e)?hn(e):ia(e)}if(Rt&&e[Rt]){return on(e[Rt]())}var t=Ya(e),r=t==X?an:t==ne?ln:Gf;return r(e)}function Kc(e){if(!e){return e===0?e:0}e=Xc(e);if(e===k||e===-k){var t=e<0?-1:1;return t*z}return e===e?e:0}function Zc(e){var t=Kc(e),r=t%1;return t===t?r?t-r:t:0}function qc(e){return e?gi(Zc(e),0,M):0}function Xc(e){if(typeof e=="number"){return e}if(Uc(e)){return F}if(Sc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sc(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Vr(e);var r=We.test(e);return r||Ze.test(e)?tr(e.slice(2),r?2:8):Ve.test(e)?F:+e}function Yc(e){return oa(e,Sf(e))}function Jc(e){return e?gi(Zc(e),-D,D):e===0?e:0}function Qc(e){return e==null?"":Do(e)}var ef=la((function(e,t){if(vs(t)||cc(t)){oa(t,Lf(t),e);return}for(var r in t){if(ft.call(t,r)){li(e,r,t[r])}}}));var tf=la((function(e,t){oa(t,Sf(t),e)}));var rf=la((function(e,t,r,n){oa(t,Sf(t),e,n)}));var nf=la((function(e,t,r,n){oa(t,Lf(t),e,n)}));var of=ja(pi);function af(e,t){var r=Sn(e);return t==null?r:di(r,t)}var sf=bo((function(e,t){e=rt(e);var n=-1;var i=t.length;var o=i>2?t[2]:r;if(o&&ss(t[0],t[1],o)){i=1}while(++n<i){var a=t[n];var s=Sf(a);var u=-1;var l=s.length;while(++u<l){var c=s[u];var f=e[c];if(f===r||ic(f,ut[c])&&!ft.call(e,c)){e[c]=a[c]}}}return e}));var uf=bo((function(e){e.push(r,ka);return gr(Af,r,e)}));function lf(e,t){return Or(e,$a(t,3),Ii)}function cf(e,t){return Or(e,$a(t,3),Oi)}function ff(e,t){return e==null?e:Ti(e,$a(t,3),Sf)}function df(e,t){return e==null?e:Pi(e,$a(t,3),Sf)}function vf(e,t){return e&&Ii(e,$a(t,3))}function hf(e,t){return e&&Oi(e,$a(t,3))}function pf(e){return e==null?[]:ki(e,Lf(e))}function gf(e){return e==null?[]:ki(e,Sf(e))}function mf(e,t,n){var i=e==null?r:Di(e,t);return i===r?n:i}function Cf(e,t){return e!=null&&es(e,t,ji)}function yf(e,t){return e!=null&&es(e,t,Ui)}var _f=_a((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}e[t]=r}),Rd(Id));var bf=_a((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}if(ft.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),$a);var wf=bo(Bi);function Lf(e){return cc(e)?ii(e):ro(e)}function Sf(e){return cc(e)?ii(e,true):no(e)}function xf(e,t){var r={};t=$a(t,3);Ii(e,(function(e,n,i){hi(r,t(e,n,i),e)}));return r}function Ef(e,t){var r={};t=$a(t,3);Ii(e,(function(e,n,i){hi(r,n,t(e,n,i))}));return r}var Rf=la((function(e,t,r){uo(e,t,r)}));var Af=la((function(e,t,r,n){uo(e,t,r,n)}));var Tf=ja((function(e,t){var r={};if(e==null){return r}var n=false;t=Sr(t,(function(t){t=$o(t,e);n||(n=t.length>1);return t}));oa(e,Na(e),r);if(n){r=mi(r,f|d|v,Da)}var i=t.length;while(i--){Fo(r,t[i])}return r}));function Pf(e,t){return Of(e,Hl($a(t)))}var If=ja((function(e,t){return e==null?{}:vo(e,t)}));function Of(e,t){if(e==null){return{}}var r=Sr(Na(e),(function(e){return[e]}));t=$a(t);return ho(e,r,(function(e,r){return t(e,r[0])}))}function kf(e,t,n){t=$o(t,e);var i=-1,o=t.length;if(!o){o=1;e=r}while(++i<o){var a=e==null?r:e[Is(t[i])];if(a===r){i=o;a=n}e=bc(a)?a.call(e):a}return e}function Df(e,t,r){return e==null?e:So(e,t,r)}function zf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:So(e,t,n,i)}var Ff=Pa(Lf);var Mf=Pa(Sf);function jf(e,t,r){var n=uc(e),i=n||vc(e)||Nc(e);t=$a(t,4);if(r==null){var o=e&&e.constructor;if(i){r=n?new o:[]}else if(Sc(e)){r=bc(o)?Sn(wt(e)):{}}else{r={}}}(i?Cr:Ii)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function Uf(e,t){return e==null?true:Fo(e,t)}function Nf(e,t,r){return e==null?e:Mo(e,t,Bo(r))}function Hf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:Mo(e,t,Bo(n),i)}function Gf(e){return e==null?[]:Kr(e,Lf(e))}function Bf(e){return e==null?[]:Kr(e,Sf(e))}function $f(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=Xc(n);n=n===n?n:0}if(t!==r){t=Xc(t);t=t===t?t:0}return gi(Xc(e),t,n)}function Vf(e,t,n){t=Kc(t);if(n===r){n=t;t=0}else{n=Kc(n)}e=Xc(e);return Ni(e,t,n)}function Wf(e,t,n){if(n&&typeof n!="boolean"&&ss(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=Kc(e);if(t===r){t=e;e=0}else{t=Kc(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var o=Xt();return Bt(e+o*(t-e+er("1e-"+((o+"").length-1))),t)}return Co(e,t)}var Kf=ha((function(e,t,r){t=t.toLowerCase();return e+(r?Zf(t):t)}));function Zf(e){return bd(Qc(e).toLowerCase())}function qf(e){e=Qc(e);return e&&e.replace(Xe,Jr).replace(Ht,"")}function Xf(e,t,n){e=Qc(e);t=Do(t);var i=e.length;n=n===r?i:gi(Zc(n),0,i);var o=n;n-=t.length;return n>=0&&e.slice(n,o)==t}function Yf(e){e=Qc(e);return e&&Ee.test(e)?e.replace(Se,Qr):e}function Jf(e){e=Qc(e);return e&&De.test(e)?e.replace(ke,"\\$&"):e}var Qf=ha((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var ed=ha((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var td=va("toLowerCase");function rd(e,t,r){e=Qc(e);t=Zc(t);var n=t?vn(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return La(Dt(i),r)+e+La(kt(i),r)}function nd(e,t,r){e=Qc(e);t=Zc(t);var n=t?vn(e):0;return t&&n<t?e+La(t-n,r):e}function id(e,t,r){e=Qc(e);t=Zc(t);var n=t?vn(e):0;return t&&n<t?La(t-n,r)+e:e}function od(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Vt(Qc(e).replace(ze,""),t||0)}function ad(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Zc(t)}return _o(Qc(e),t)}function sd(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ud=ha((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function ld(e,t,n){if(n&&typeof n!="number"&&ss(e,t,n)){t=n=r}n=n===r?M:n>>>0;if(!n){return[]}e=Qc(e);if(e&&(typeof t=="string"||t!=null&&!zc(t))){t=Do(t);if(!t&&rn(e)){return Wo(hn(e),0,n)}}return e.split(t,n)}var cd=ha((function(e,t,r){return e+(r?" ":"")+bd(t)}));function fd(e,t,r){e=Qc(e);r=r==null?0:gi(Zc(r),0,e.length);t=Do(t);return e.slice(r,r+t.length)==t}function dd(e,t,n){var i=Ln.templateSettings;if(n&&ss(e,t,n)){t=r}e=Qc(e);t=rf({},t,i,Oa);var o=rf({},t.imports,i.imports,Oa),a=Lf(o),u=Kr(o,a);var l,c,f=0,d=t.interpolate||Ye,v="__p += '";var h=nt((t.escape||Ye).source+"|"+d.source+"|"+(d===Te?Be:Ye).source+"|"+(t.evaluate||Ye).source+"|$","g");var p="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kt+"]")+"\n";e.replace(h,(function(t,r,n,i,o,a){n||(n=i);v+=e.slice(f,a).replace(Je,en);if(r){l=true;v+="' +\n__e("+r+") +\n'"}if(o){c=true;v+="';\n"+o+";\n__p += '"}if(n){v+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=a+t.length;return t}));v+="';\n";var g=ft.call(t,"variable")&&t.variable;if(!g){v="with (obj) {\n"+v+"\n}\n"}else if(He.test(g)){throw new Qe(s)}v=(c?v.replace(_e,""):v).replace(be,"$1").replace(we,"$1;");v="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+v+"return __p\n}";var m=Ld((function(){return et(a,p+"return "+v).apply(r,u)}));m.source=v;if(yc(m)){throw m}return m}function vd(e){return Qc(e).toLowerCase()}function hd(e){return Qc(e).toUpperCase()}function pd(e,t,n){e=Qc(e);if(e&&(n||t===r)){return Vr(e)}if(!e||!(t=Do(t))){return e}var i=hn(e),o=hn(t),a=qr(i,o),s=Xr(i,o)+1;return Wo(i,a,s).join("")}function gd(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.slice(0,pn(e)+1)}if(!e||!(t=Do(t))){return e}var i=hn(e),o=Xr(i,hn(t))+1;return Wo(i,0,o).join("")}function md(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.replace(ze,"")}if(!e||!(t=Do(t))){return e}var i=hn(e),o=qr(i,hn(t));return Wo(i,o).join("")}function Cd(e,t){var n=E,i=R;if(Sc(t)){var o="separator"in t?t.separator:o;n="length"in t?Zc(t.length):n;i="omission"in t?Do(t.omission):i}e=Qc(e);var a=e.length;if(rn(e)){var s=hn(e);a=s.length}if(n>=a){return e}var u=n-vn(i);if(u<1){return i}var l=s?Wo(s,0,u).join(""):e.slice(0,u);if(o===r){return l+i}if(s){u+=l.length-u}if(zc(o)){if(e.slice(u).search(o)){var c,f=l;if(!o.global){o=nt(o.source,Qc($e.exec(o))+"g")}o.lastIndex=0;while(c=o.exec(f)){var d=c.index}l=l.slice(0,d===r?u:d)}}else if(e.indexOf(Do(o),u)!=u){var v=l.lastIndexOf(o);if(v>-1){l=l.slice(0,v)}}return l+i}function yd(e){e=Qc(e);return e&&xe.test(e)?e.replace(Le,gn):e}var _d=ha((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var bd=va("toUpperCase");function wd(e,t,n){e=Qc(e);t=n?r:t;if(t===r){return nn(e)?yn(e):Ir(e)}return e.match(t)||[]}var Ld=bo((function(e,t){try{return gr(e,r,t)}catch(e){return yc(e)?e:new Qe(e)}}));var Sd=ja((function(e,t){Cr(t,(function(t){t=Is(t);hi(e,t,Ol(e[t],e))}));return e}));function xd(e){var t=e==null?0:e.length,r=$a();e=!t?[]:Sr(e,(function(e){if(typeof e[1]!="function"){throw new ot(a)}return[r(e[0]),e[1]]}));return bo((function(r){var n=-1;while(++n<t){var i=e[n];if(gr(i[0],this,r)){return gr(i[1],this,r)}}}))}function Ed(e){return Ci(mi(e,f))}function Rd(e){return function(){return e}}function Ad(e,t){return e==null||e!==e?t:e}var Td=Ca();var Pd=Ca(true);function Id(e){return e}function Od(e){return to(typeof e=="function"?e:mi(e,f))}function kd(e){return ao(mi(e,f))}function Dd(e,t){return so(e,mi(t,f))}var zd=bo((function(e,t){return function(r){return Bi(r,e,t)}}));var Fd=bo((function(e,t){return function(r){return Bi(e,r,t)}}));function Md(e,t,r){var n=Lf(t),i=ki(t,n);if(r==null&&!(Sc(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=ki(t,Lf(t))}var o=!(Sc(r)&&"chain"in r)||!!r.chain,a=bc(e);Cr(i,(function(r){var n=t[r];e[r]=n;if(a){e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=ia(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,xr([this.value()],arguments))}}}));return e}function jd(){if(ir._===this){ir._=gt}return this}function Ud(){}function Nd(e){e=Zc(e);return bo((function(t){return co(t,e)}))}var Hd=wa(Sr);var Gd=wa(_r);var Bd=wa(Ar);function $d(e){return us(e)?jr(Is(e)):po(e)}function Vd(e){return function(t){return e==null?r:Di(e,t)}}var Wd=xa();var Kd=xa(true);function Zd(){return[]}function qd(){return false}function Xd(){return{}}function Yd(){return""}function Jd(){return true}function Qd(e,t){e=Zc(e);if(e<1||e>D){return[]}var r=M,n=Bt(e,M);t=$a(t);e-=M;var i=Br(n,t);while(++r<e){t(r)}return i}function ev(e){if(uc(e)){return Sr(e,Is)}return Uc(e)?[e]:ia(Ps(Qc(e)))}function tv(e){var t=++dt;return Qc(e)+t}var rv=ba((function(e,t){return e+t}),0);var nv=Aa("ceil");var iv=ba((function(e,t){return e/t}),1);var ov=Aa("floor");function av(e){return e&&e.length?xi(e,Id,Mi):r}function sv(e,t){return e&&e.length?xi(e,$a(t,2),Mi):r}function uv(e){return Mr(e,Id)}function lv(e,t){return Mr(e,$a(t,2))}function cv(e){return e&&e.length?xi(e,Id,io):r}function fv(e,t){return e&&e.length?xi(e,$a(t,2),io):r}var dv=ba((function(e,t){return e*t}),1);var vv=Aa("round");var hv=ba((function(e,t){return e-t}),0);function pv(e){return e&&e.length?Gr(e,Id):0}function gv(e,t){return e&&e.length?Gr(e,$a(t,2)):0}Ln.after=Tl;Ln.ary=Pl;Ln.assign=ef;Ln.assignIn=tf;Ln.assignInWith=rf;Ln.assignWith=nf;Ln.at=of;Ln.before=Il;Ln.bind=Ol;Ln.bindAll=Sd;Ln.bindKey=kl;Ln.castArray=Jl;Ln.chain=Vu;Ln.chunk=zs;Ln.compact=Fs;Ln.concat=Ms;Ln.cond=xd;Ln.conforms=Ed;Ln.constant=Rd;Ln.countBy=rl;Ln.create=af;Ln.curry=Dl;Ln.curryRight=zl;Ln.debounce=Fl;Ln.defaults=sf;Ln.defaultsDeep=uf;Ln.defer=Ml;Ln.delay=jl;Ln.difference=js;Ln.differenceBy=Us;Ln.differenceWith=Ns;Ln.drop=Hs;Ln.dropRight=Gs;Ln.dropRightWhile=Bs;Ln.dropWhile=$s;Ln.fill=Vs;Ln.filter=il;Ln.flatMap=sl;Ln.flatMapDeep=ul;Ln.flatMapDepth=ll;Ln.flatten=Zs;Ln.flattenDeep=qs;Ln.flattenDepth=Xs;Ln.flip=Ul;Ln.flow=Td;Ln.flowRight=Pd;Ln.fromPairs=Ys;Ln.functions=pf;Ln.functionsIn=gf;Ln.groupBy=dl;Ln.initial=eu;Ln.intersection=tu;Ln.intersectionBy=ru;Ln.intersectionWith=nu;Ln.invert=_f;Ln.invertBy=bf;Ln.invokeMap=hl;Ln.iteratee=Od;Ln.keyBy=pl;Ln.keys=Lf;Ln.keysIn=Sf;Ln.map=gl;Ln.mapKeys=xf;Ln.mapValues=Ef;Ln.matches=kd;Ln.matchesProperty=Dd;Ln.memoize=Nl;Ln.merge=Rf;Ln.mergeWith=Af;Ln.method=zd;Ln.methodOf=Fd;Ln.mixin=Md;Ln.negate=Hl;Ln.nthArg=Nd;Ln.omit=Tf;Ln.omitBy=Pf;Ln.once=Gl;Ln.orderBy=ml;Ln.over=Hd;Ln.overArgs=Bl;Ln.overEvery=Gd;Ln.overSome=Bd;Ln.partial=$l;Ln.partialRight=Vl;Ln.partition=Cl;Ln.pick=If;Ln.pickBy=Of;Ln.property=$d;Ln.propertyOf=Vd;Ln.pull=uu;Ln.pullAll=lu;Ln.pullAllBy=cu;Ln.pullAllWith=fu;Ln.pullAt=du;Ln.range=Wd;Ln.rangeRight=Kd;Ln.rearg=Wl;Ln.reject=bl;Ln.remove=vu;Ln.rest=Kl;Ln.reverse=hu;Ln.sampleSize=Ll;Ln.set=Df;Ln.setWith=zf;Ln.shuffle=Sl;Ln.slice=pu;Ln.sortBy=Rl;Ln.sortedUniq=wu;Ln.sortedUniqBy=Lu;Ln.split=ld;Ln.spread=Zl;Ln.tail=Su;Ln.take=xu;Ln.takeRight=Eu;Ln.takeRightWhile=Ru;Ln.takeWhile=Au;Ln.tap=Wu;Ln.throttle=ql;Ln.thru=Ku;Ln.toArray=Wc;Ln.toPairs=Ff;Ln.toPairsIn=Mf;Ln.toPath=ev;Ln.toPlainObject=Yc;Ln.transform=jf;Ln.unary=Xl;Ln.union=Tu;Ln.unionBy=Pu;Ln.unionWith=Iu;Ln.uniq=Ou;Ln.uniqBy=ku;Ln.uniqWith=Du;Ln.unset=Uf;Ln.unzip=zu;Ln.unzipWith=Fu;Ln.update=Nf;Ln.updateWith=Hf;Ln.values=Gf;Ln.valuesIn=Bf;Ln.without=Mu;Ln.words=wd;Ln.wrap=Yl;Ln.xor=ju;Ln.xorBy=Uu;Ln.xorWith=Nu;Ln.zip=Hu;Ln.zipObject=Gu;Ln.zipObjectDeep=Bu;Ln.zipWith=$u;Ln.entries=Ff;Ln.entriesIn=Mf;Ln.extend=tf;Ln.extendWith=rf;Md(Ln,Ln);Ln.add=rv;Ln.attempt=Ld;Ln.camelCase=Kf;Ln.capitalize=Zf;Ln.ceil=nv;Ln.clamp=$f;Ln.clone=Ql;Ln.cloneDeep=tc;Ln.cloneDeepWith=rc;Ln.cloneWith=ec;Ln.conformsTo=nc;Ln.deburr=qf;Ln.defaultTo=Ad;Ln.divide=iv;Ln.endsWith=Xf;Ln.eq=ic;Ln.escape=Yf;Ln.escapeRegExp=Jf;Ln.every=nl;Ln.find=ol;Ln.findIndex=Ws;Ln.findKey=lf;Ln.findLast=al;Ln.findLastIndex=Ks;Ln.findLastKey=cf;Ln.floor=ov;Ln.forEach=cl;Ln.forEachRight=fl;Ln.forIn=ff;Ln.forInRight=df;Ln.forOwn=vf;Ln.forOwnRight=hf;Ln.get=mf;Ln.gt=oc;Ln.gte=ac;Ln.has=Cf;Ln.hasIn=yf;Ln.head=Js;Ln.identity=Id;Ln.includes=vl;Ln.indexOf=Qs;Ln.inRange=Vf;Ln.invoke=wf;Ln.isArguments=sc;Ln.isArray=uc;Ln.isArrayBuffer=lc;Ln.isArrayLike=cc;Ln.isArrayLikeObject=fc;Ln.isBoolean=dc;Ln.isBuffer=vc;Ln.isDate=hc;Ln.isElement=pc;Ln.isEmpty=gc;Ln.isEqual=mc;Ln.isEqualWith=Cc;Ln.isError=yc;Ln.isFinite=_c;Ln.isFunction=bc;Ln.isInteger=wc;Ln.isLength=Lc;Ln.isMap=Ec;Ln.isMatch=Rc;Ln.isMatchWith=Ac;Ln.isNaN=Tc;Ln.isNative=Pc;Ln.isNil=Oc;Ln.isNull=Ic;Ln.isNumber=kc;Ln.isObject=Sc;Ln.isObjectLike=xc;Ln.isPlainObject=Dc;Ln.isRegExp=zc;Ln.isSafeInteger=Fc;Ln.isSet=Mc;Ln.isString=jc;Ln.isSymbol=Uc;Ln.isTypedArray=Nc;Ln.isUndefined=Hc;Ln.isWeakMap=Gc;Ln.isWeakSet=Bc;Ln.join=iu;Ln.kebabCase=Qf;Ln.last=ou;Ln.lastIndexOf=au;Ln.lowerCase=ed;Ln.lowerFirst=td;Ln.lt=$c;Ln.lte=Vc;Ln.max=av;Ln.maxBy=sv;Ln.mean=uv;Ln.meanBy=lv;Ln.min=cv;Ln.minBy=fv;Ln.stubArray=Zd;Ln.stubFalse=qd;Ln.stubObject=Xd;Ln.stubString=Yd;Ln.stubTrue=Jd;Ln.multiply=dv;Ln.nth=su;Ln.noConflict=jd;Ln.noop=Ud;Ln.now=Al;Ln.pad=rd;Ln.padEnd=nd;Ln.padStart=id;Ln.parseInt=od;Ln.random=Wf;Ln.reduce=yl;Ln.reduceRight=_l;Ln.repeat=ad;Ln.replace=sd;Ln.result=kf;Ln.round=vv;Ln.runInContext=e;Ln.sample=wl;Ln.size=xl;Ln.snakeCase=ud;Ln.some=El;Ln.sortedIndex=gu;Ln.sortedIndexBy=mu;Ln.sortedIndexOf=Cu;Ln.sortedLastIndex=yu;Ln.sortedLastIndexBy=_u;Ln.sortedLastIndexOf=bu;Ln.startCase=cd;Ln.startsWith=fd;Ln.subtract=hv;Ln.sum=pv;Ln.sumBy=gv;Ln.template=dd;Ln.times=Qd;Ln.toFinite=Kc;Ln.toInteger=Zc;Ln.toLength=qc;Ln.toLower=vd;Ln.toNumber=Xc;Ln.toSafeInteger=Jc;Ln.toString=Qc;Ln.toUpper=hd;Ln.trim=pd;Ln.trimEnd=gd;Ln.trimStart=md;Ln.truncate=Cd;Ln.unescape=yd;Ln.uniqueId=tv;Ln.upperCase=_d;Ln.upperFirst=bd;Ln.each=cl;Ln.eachRight=fl;Ln.first=Js;Md(Ln,function(){var e={};Ii(Ln,(function(t,r){if(!ft.call(Ln.prototype,r)){e[r]=t}}));return e}(),{chain:false});Ln.VERSION=n;Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln}));Cr(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=n===r?1:Gt(Zc(n),0);var i=this.__filtered__&&!t?new Rn(this):this.clone();if(i.__filtered__){i.__takeCount__=Bt(n,i.__takeCount__)}else{i.__views__.push({size:Bt(n,M),type:e+(i.__dir__<0?"Right":"")})}return i};Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));Cr(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==P||r==O;Rn.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:$a(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));Cr(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[r](1).value()[0]}}));Cr(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[r](1)}}));Rn.prototype.compact=function(){return this.filter(Id)};Rn.prototype.find=function(e){return this.filter(e).head()};Rn.prototype.findLast=function(e){return this.reverse().find(e)};Rn.prototype.invokeMap=bo((function(e,t){if(typeof e=="function"){return new Rn(this)}return this.map((function(r){return Bi(r,e,t)}))}));Rn.prototype.reject=function(e){return this.filter(Hl($a(e)))};Rn.prototype.slice=function(e,t){e=Zc(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new Rn(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=Zc(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Rn.prototype.toArray=function(){return this.take(M)};Ii(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Ln[i?"take"+(t=="last"?"Right":""):t],a=i||/^find/.test(t);if(!o){return}Ln.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Rn,l=s[0],c=u||uc(t);var f=function(e){var t=o.apply(Ln,xr([e],s));return i&&d?t[0]:t};if(c&&n&&typeof l=="function"&&l.length!=1){u=c=false}var d=this.__chain__,v=!!this.__actions__.length,h=a&&!d,p=u&&!v;if(!a&&c){t=p?t:new Rn(this);var g=e.apply(t,s);g.__actions__.push({func:Ku,args:[f],thisArg:r});return new En(g,d)}if(h&&p){return e.apply(this,s)}g=this.thru(f);return h?i?g.value()[0]:g.value():g}}));Cr(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[r]((function(r){return t.apply(uc(r)?r:[],e)}))}}));Ii(Rn.prototype,(function(e,t){var r=Ln[t];if(r){var n=r.name+"";if(!ft.call(lr,n)){lr[n]=[]}lr[n].push({name:t,func:r})}}));lr[ya(r,m).name]=[{name:"wrapper",func:r}];Rn.prototype.clone=An;Rn.prototype.reverse=Tn;Rn.prototype.value=Pn;Ln.prototype.at=Zu;Ln.prototype.chain=qu;Ln.prototype.commit=Xu;Ln.prototype.next=Yu;Ln.prototype.plant=Qu;Ln.prototype.reverse=el;Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=tl;Ln.prototype.first=Ln.prototype.head;if(Rt){Ln.prototype[Rt]=Ju}return Ln};var bn=_n();if(ar){(ar.exports=bn)._=bn;or._=bn}else{ir._=bn}}).call(commonjsGlobal)}));var ViewportService=function(){function e(e,t){var r,n;this.sv=e;this.storesByType={};this.storesXToType={};this.storesYToType={};(r=this.sv.selectionStoreConnector)===null||r===void 0?void 0:r.beforeUpdate();this.columns=this.getViewportColumnData(t);(n=this.sv.scrollingService)===null||n===void 0?void 0:n.unregister()}e.prototype.onColumnResize=function(e,t,r){var n;(n=this.sv.dimensionProvider)===null||n===void 0?void 0:n.setDimensionSize(e,t.detail);var i=lodash.reduce(t.detail||{},(function(e,t,n){var i=getSourceItem(r,parseInt(n,10));if(i){e[i.prop]=Object.assign(Object.assign({},i),{size:t})}return e}),{});this.sv.resize(i)};e.prototype.getViewportColumnData=function(e){var t=this;var r=[];var n=0;columnTypes.forEach((function(i){var o=t.sv.columnProvider.stores[i].store;if(!o.get("items").length){return}var a={colType:i,position:{x:n,y:1},contentHeight:e,fixWidth:i!=="rgCol",uuid:"".concat(t.sv.uuid,"-").concat(n),viewports:t.sv.viewportProvider.stores,dimensions:t.sv.dimensionProvider.stores,rowStores:t.sv.dataProvider.stores,colStore:o,onHeaderresize:function(e){return t.onColumnResize(i,e,o)}};if(i==="rgCol"){a.onResizeViewport=function(e){var r;return(r=t.sv.viewportProvider)===null||r===void 0?void 0:r.setViewport(e.detail.dimension,{virtualSize:e.detail.size})}}var s=t.gatherColumnData(a);var u=t.registerCol(s.position.x,i);var l=t.dataViewPort(a).reduce((function(e,r){var n=t.registerSegment(r.position);n.setLastCell(r.lastCell);var i=t.registerRow(r.position.y,r.type);var o=Object.assign(Object.assign({},r),{rowSelectionStore:i,segmentSelectionStore:n.store,ref:function(e){return t.sv.selectionStoreConnector.registerSection(e)},onSetRange:function(e){return n.setRangeArea(e.detail)},onSetTempRange:function(e){return n.setTempArea(e.detail)},onFocusCell:function(e){n.clearFocus();t.sv.selectionStoreConnector.focus(n,e.detail)}});e.push(o);return e}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:l}));n++}));return r};e.prototype.registerSegment=function(e){return this.sv.selectionStoreConnector.register(e)};e.prototype.registerRow=function(e,t){this.storesByType[t]=e;this.storesYToType[e]=t;return this.sv.selectionStoreConnector.registerRow(e).store};e.prototype.registerCol=function(e,t){this.storesByType[t]=e;this.storesXToType[e]=t;return this.sv.selectionStoreConnector.registerColumn(e).store};e.prototype.gatherColumnData=function(e){var t;var r=e.uuid;var n=e.dimensions[e.colType].store.get("realSize");var i=(t={contentWidth:n,class:e.colType},t["".concat(UUID)]=e.uuid,t.contentHeight=e.contentHeight,t.key=e.colType,t.onResizeViewport=e.onResizeViewport,t);if(e.fixWidth){i.style={minWidth:"".concat(n,"px")}}var o={parent:r,colData:getVisibleSourceItem(e.colStore),dimensionCol:e.dimensions[e.colType].store,groups:e.colStore.get("groups"),groupingDepth:e.colStore.get("groupingDepth"),onHeaderresize:e.onHeaderresize};return{prop:i,position:e.position,headerProp:o,parent:r,viewportCol:e.viewports[e.colType].store}};e.prototype.dataViewPort=function(e){var t=this;var r={rowPinStart:HEADER_SLOT,rgRow:CONTENT_SLOT,rowPinEnd:FOOTER_SLOT};var n=0;return rowTypes.reduce((function(i,o){var a=e.viewports[o].store.get("realCount")||o==="rgRow";var s=Object.assign(Object.assign({},e),{position:Object.assign(Object.assign({},e.position),{y:a?n:EMPTY_INDEX})});i.push(t.dataPartition(s,o,r[o],o!=="rgRow"));if(a){n++}return i}),[])};e.prototype.dataPartition=function(e,t,r,n){return{colData:e.colStore,viewportCol:e.viewports[e.colType].store,viewportRow:e.viewports[t].store,lastCell:getLastCell(e,t),slot:r,type:t,canDrag:!n,position:e.position,uuid:"".concat(e.uuid,"-").concat(e.position.x,"-").concat(e.position.y),dataStore:e.rowStores[t].store,dimensionCol:e.dimensions[e.colType].store,dimensionRow:e.dimensions[t].store,style:n?{height:"".concat(e.dimensions[t].store.get("realSize"),"px")}:undefined}};e.prototype.scrollToCell=function(e){for(var t in e){var r=e[t];this.sv.scrollingService.onScroll({dimension:t==="x"?"rgCol":"rgRow",coordinate:r})}};e.prototype.clearFocused=function(){this.sv.selectionStoreConnector.clearAll()};e.prototype.clearEdit=function(){this.sv.selectionStoreConnector.setEdit(false)};e.prototype.getFocused=function(){var e=this.sv.selectionStoreConnector.focusedStore;if(!e){return null}var t=this.storesXToType[e.position.x];var r=this.sv.columnProvider.getColumn(e.cell.x,t);var n=this.storesYToType[e.position.x];var i=this.sv.dataProvider.getModel(e.cell.x,n);return{column:r,model:i,cell:e.cell,colType:t,rowType:n}};e.prototype.getSelectedRange=function(){return this.sv.selectionStoreConnector.selectedRange};e.prototype.setEdit=function(e,t,r,n){var i;var o=this.storesByType;var a={x:o[r],y:o[n]};(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.setEditByCell(a,{x:t,y:e})};return e}();var ViewPortSections=function(e){var t=e.resize,r=e.editors,n=e.rowClass,i=e.readonly,o=e.range,a=e.columns,s=e.useClipboard,u=e.columnFilter,l=e.registerElement,c=e.onEdit,f=e.onScroll;var d=[];var v=function(e){var a=[h("revogr-header",Object.assign({viewportCol:e.viewportCol},e.headerProp,{selectionStore:e.columnSelectionStore,slot:HEADER_SLOT,columnFilter:u,canResize:t}))];e.dataPorts.forEach((function(t,u){var l;var f=e.prop.key+(u+1);var d=h("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:s,onSetEdit:function(e){var t=e.detail;return c(t)}}),h("revogr-data",Object.assign({},t,(l={},l[UUID]=t.uuid,l),{key:f,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:DATA_SLOT})),h("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),h("revogr-focus",{dataStore:t.dataStore,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));a.push(d)}));d.push(h("revogr-viewport-scroll",Object.assign({},e.prop,{ref:function(t){return l(t,e.prop.key)},onScrollViewport:function(t){return f(t.detail,e.prop.key)}}),a))};for(var p=0,g=a;p<g.length;p++){var m=g[p];v(m)}return d};var GridScrollingService=function(){function e(e){this.setViewport=e;this.elements={}}e.prototype.onScroll=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,a,l;return __generator(this,(function(c){switch(c.label){case 0:for(n in this.elements){if(this.isPinnedColumn(t)&&e.dimension==="rgCol"){if(n===t||!e.delta){continue}for(i=0,o=this.elements[n];i<o.length;i++){a=o[i];a.changeScroll&&(r=a.changeScroll(e))}}else if(e.dimension==="rgCol"&&n==="headerRow"){continue}else{for(s=0,u=this.elements[n];s<u.length;s++){a=u[s];a.setScroll(e)}}}l=e;if(!r)return[3,2];return[4,r];case 1:l=c.sent();c.label=2;case 2:this.setViewport(l);return[2]}}))}))};e.prototype.isPinnedColumn=function(e){return["colPinStart","colPinEnd"].indexOf(e)>-1};e.prototype.registerElements=function(e){this.elements=e};e.prototype.registerElement=function(e,t){if(!this.elements[t]){this.elements[t]=[]}if(e){this.elements[t].push(e)}else if(this.elements[t]){delete this.elements[t]}};e.prototype.unregister=function(){delete this.elements;this.elements={}};return e}();var StretchColumn=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.dimensionProvider=r;n.stretchedColumn=null;n.scrollSize=getScrollbarWidth(document);var i=function(e){var t=e.detail.columns;return n.applyStretch(t)};n.addEventListener("beforecolumnapplied",i);return n}t.prototype.setScroll=function(e){var t=e.type,r=e.hasScroll;var n;if(t==="rgRow"&&this.stretchedColumn&&((n=this.stretchedColumn)===null||n===void 0?void 0:n.initialSize)===this.stretchedColumn.size){if(r){this.stretchedColumn.size-=this.scrollSize;this.apply();this.dropChanges()}}};t.prototype.activateChanges=function(){var e=this;var t=function(t){var r=t.detail;return e.setScroll(r)};this.addEventListener("scrollchange",t)};t.prototype.dropChanges=function(){this.stretchedColumn=null;this.removeEventListener("scrollchange")};t.prototype.apply=function(){var e;if(!this.stretchedColumn){return}var t="rgCol";this.dimensionProvider.setDimensionSize(t,(e={},e[this.stretchedColumn.index]=this.stretchedColumn.size,e))};t.prototype.applyStretch=function(e){var t=this;this.dropChanges();var r=this.revogrid.clientWidth-1;lodash.each(e,(function(e,n){var i=t.dimensionProvider.stores[n].store.get("realSize");r-=i}));if(r>0){var n=e.rgCol.length-1;var i=e.rgCol[n];var o=(i===null||i===void 0?void 0:i.size)||this.revogrid.colSize||0;var a=r+o-1;if(i&&!i.autoSize&&o<a){this.stretchedColumn={initialSize:a,index:n,size:a};this.apply();this.activateChanges()}}};return t}(BasePlugin);function isStretchPlugin(e){return!!e.applyStretch}var ColumnOrderHandler=function(){function e(){this.offset=0}e.prototype.renderAutoscroll=function(e,t){if(!t){return}this.autoscrollEl=document.createElement("div");this.autoscrollEl.classList.add("drag-auto-scroll-y");t.appendChild(this.autoscrollEl)};e.prototype.autoscroll=function(e,t,r){if(r===void 0){r="translateX"}if(!this.autoscrollEl){return}var n=10;var i=Math.min(e+n,t-3);this.autoscrollEl.style.transform="".concat(r,"(").concat(i,"px)");this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.start=function(e,t,r){var n=t.dataEl,i=t.gridRect,o=t.scrollEl;if(r===void 0){r="left"}var a=o.getBoundingClientRect();if(a){this.offset=a[r]-i[r]}this.renderAutoscroll(e,n)};e.prototype.stop=function(){var e;if(this.element){this.element.hidden=true}this.offset=0;(e=this.autoscrollEl)===null||e===void 0?void 0:e.remove();this.autoscrollEl=undefined};e.prototype.showHandler=function(e,t,r){if(r===void 0){r="translateX"}if(!this.element){return}if(this.offset){e=Math.max(e,this.offset)}e=Math.min(e,t);this.element.style.transform="".concat(r,"(").concat(e,"px)");this.element.hidden=false};e.prototype.render=function(){var e=this;return h("div",{class:"drag-position-y",hidden:true,ref:function(t){return e.element=t}})};return e}();function dispatch(e,t,r){var n=new CustomEvent(t,{detail:r,cancelable:true,bubbles:true});e===null||e===void 0?void 0:e.dispatchEvent(n);return n}var COLUMN_CLICK="column-click";var MOVE="column-mouse-move";var DRAG_END="column-drag-end";var BEFORE_DRAG_END="before-column-drag-end";var DRAG_START="column-drag-start";var ColumnPlugin=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;n.moveFunc=debounce_1((function(e){return n.doMove(e)}),5);n.staticDragData=null;n.dragData=null;n.localSubscriptions={};n.orderUi=new ColumnOrderHandler;t.registerVNode([n.orderUi.render()]);n.localSubscriptions["mouseleave"]={target:document,callback:function(e){return n.onMouseOut(e)}};n.localSubscriptions["mouseup"]={target:document,callback:function(e){return n.onMouseUp(e)}};n.localSubscriptions["mousemove"]={target:document,callback:function(e){return n.move(e)}};n.addEventListener(COLUMN_CLICK,(function(e){var t=e.detail;return n.dragStart(t)}));return n}t.prototype.dragStart=function(e){var t=e.event,r=e.data;if(t.defaultPrevented){return}var n=dispatch(this.revogrid,DRAG_START,r).defaultPrevented;if(n){return}this.clearOrder();var i=this.localSubscriptions,o=i.mouseleave,a=i.mouseup,s=i.mousemove;o.target.addEventListener("mouseleave",o.callback);a.target.addEventListener("mouseup",a.callback);var u=t.target.closest("revogr-header");var l=t.target.closest("revogr-viewport-scroll");if(!u||!l){return}if(isColGrouping(r)){return}var c=this.getDimension(r.pin||"rgCol");var f=this.revogrid.getBoundingClientRect();var d=u.getBoundingClientRect();var v=getItemByPosition(c,getLeftRelative(t.x,f.left,d.left-f.left));this.staticDragData={startPos:t.x,startItem:v,data:r,dataEl:u,scrollEl:l,gridEl:this.revogrid,cols:c};this.dragData=this.getData(this.staticDragData);s.target.addEventListener("mousemove",s.callback);this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))};t.prototype.doMove=function(e){if(!this.staticDragData){return}var t=this.dragData=this.getData(this.staticDragData);if(!t){return}var r=this.staticDragData.startPos;if(Math.abs(r-e.x)>10){var n=getLeftRelative(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);var i=getItemByPosition(this.staticDragData.cols,n);this.orderUi.autoscroll(n,t.elRect.width);this.orderUi.showHandler(i.end+t.scrollOffset,t.gridRect.width)}};t.prototype.move=function(e){dispatch(this.revogrid,MOVE,Object.assign({},e));this.moveFunc(e)};t.prototype.onMouseOut=function(e){this.clearOrder()};t.prototype.onMouseUp=function(e){if(this.dragData){var t=getLeftRelative(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);if(t<0){t=0}var r=getItemByPosition(this.staticDragData.cols,t);var n=this.providers.column.stores[this.dragData.type].store;var i=__spreadArray([],n.get("items"),true);var o=dispatch(this.revogrid,BEFORE_DRAG_END,Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:r,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]})).defaultPrevented;if(!o){var a=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice.apply(i,__spreadArray([r.itemIndex,0],a,false));n.set("items",i)}dispatch(this.revogrid,DRAG_END,this.dragData)}this.clearOrder()};t.prototype.clearLocalSubscriptions=function(){each(this.localSubscriptions,(function(e,t){var r=e.target,n=e.callback;return r.removeEventListener(t,n)}))};t.prototype.clearOrder=function(){this.staticDragData=null;this.dragData=null;this.clearLocalSubscriptions();this.orderUi.stop()};t.prototype.clearSubscriptions=function(){e.prototype.clearSubscriptions.call(this);this.clearLocalSubscriptions()};t.prototype.getData=function(e){var t=e.gridEl,r=e.dataEl,n=e.data;var i=t.getBoundingClientRect();var o=r.getBoundingClientRect();var a=o.left-i.left;return{elRect:o,gridRect:i,type:n.pin||"rgCol",scrollOffset:a}};t.prototype.getDimension=function(e){return this.providers.dimension.stores[e].getCurrentState()};return t}(BasePlugin);function getLeftRelative(e,t,r){return e-t-r}var revoGridStyleCss=".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 .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}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:gray}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}";var RevoGridComponent=function(){function e(e){registerInstance(this,e);this.beforeedit=createEvent(this,"beforeedit",7);this.beforerangeedit=createEvent(this,"beforerangeedit",7);this.afteredit=createEvent(this,"afteredit",7);this.beforeautofill=createEvent(this,"beforeautofill",7);this.beforeaange=createEvent(this,"beforeaange",7);this.afterfocus=createEvent(this,"afterfocus",7);this.roworderchanged=createEvent(this,"roworderchanged",7);this.beforesourcesortingapply=createEvent(this,"beforesourcesortingapply",7);this.beforesortingapply=createEvent(this,"beforesortingapply",7);this.beforesorting=createEvent(this,"beforesorting",7);this.rowdragstart=createEvent(this,"rowdragstart",7);this.headerclick=createEvent(this,"headerclick",7);this.beforecellfocus=createEvent(this,"beforecellfocus",7);this.beforefocuslost=createEvent(this,"beforefocuslost",7);this.beforesourceset=createEvent(this,"beforesourceset",7);this.aftersourceset=createEvent(this,"aftersourceset",7);this.beforecolumnsset=createEvent(this,"beforecolumnsset",7);this.beforecolumnapplied=createEvent(this,"beforecolumnapplied",7);this.aftercolumnsset=createEvent(this,"aftercolumnsset",7);this.beforefilterapply=createEvent(this,"beforefilterapply",7);this.beforefiltertrimmed=createEvent(this,"beforefiltertrimmed",7);this.beforetrimmed=createEvent(this,"beforetrimmed",7);this.aftertrimmed=createEvent(this,"aftertrimmed",7);this.viewportscroll=createEvent(this,"viewportscroll",7);this.beforeexport=createEvent(this,"beforeexport",7);this.beforeeditstart=createEvent(this,"beforeeditstart",7);this.aftercolumnresize=createEvent(this,"aftercolumnresize",7);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.columnTypes={};this.theme="default";this.rowClass="";this.autoSizeColumn=false;this.filter=false;this.canMoveColumns=false;this.trimmedRows={};this.exporting=false;this.stretch=true;this.extraElements=[];this.uuid=null;this.viewport=null;this.internalPlugins=[];this.subscribers={}}e.prototype.refresh=function(e){if(e===void 0){e="all"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.dataProvider.refresh(e);return[2]}))}))};e.prototype.scrollToRow=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgRow"});return[4,this.scrollToCoordinate({y:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnIndex=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnProp=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t=this.columnProvider.getColumnIndexByProp(e,"rgCol");if(t<0){return[2]}r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:r})];case 1:n.sent();return[2]}}))}))};e.prototype.updateColumns=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.columnProvider.updateColumns(e);return[2]}))}))};e.prototype.addTrimmed=function(e,t,r){if(t===void 0){t="external"}if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n;var i;return __generator(this,(function(o){n=this.beforetrimmed.emit({trimmed:e,trimmedType:t,type:r});if(n.defaultPrevented){return[2,n]}this.dataProvider.setTrimmed((i={},i[t]=n.detail.trimmed,i),r);this.aftertrimmed.emit();return[2,n]}))}))};e.prototype.scrollToCoordinate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.viewport)===null||t===void 0?void 0:t.scrollToCell(e);return[2]}))}))};e.prototype.setCellEdit=function(e,t,r){if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n,i;return __generator(this,(function(o){switch(o.label){case 0:i=ColumnDataProvider.getColumnByProp(this.columns,t);if(!i){return[2]}return[4,timeout()];case 1:o.sent();(n=this.viewport)===null||n===void 0?void 0:n.setEdit(e,this.columnProvider.getColumnIndexByProp(t,"rgCol"),i.pin||"rgCol",r);return[2]}}))}))};e.prototype.registerVNode=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.extraElements).push.apply(t,e);this.extraElements=__spreadArray([],this.extraElements,true);return[2]}))}))};e.prototype.getSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store.get("source")]}))}))};e.prototype.getVisibleSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getVisibleSourceItem(this.dataProvider.stores[e].store)]}))}))};e.prototype.getSourceStore=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store]}))}))};e.prototype.getColumnStore=function(e){if(e===void 0){e="rgCol"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnProvider.stores[e].store]}))}))};e.prototype.updateColumnSorting=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.columnProvider.updateColumnSorting(e,t,r,n)]}))}))};e.prototype.clearSorting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.columnProvider.clearSorting();return[2]}))}))};e.prototype.getColumns=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnProvider.getColumns()]}))}))};e.prototype.clearFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getFocused()];case 1:t=n.sent();r=this.beforefocuslost.emit(t);if(r.defaultPrevented){return[2]}this.selectionStoreConnector.clearAll();(e=this.viewport)===null||e===void 0?void 0:e.clearFocused();return[2]}}))}))};e.prototype.getPlugins=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,__spreadArray([],this.internalPlugins,true)]}))}))};e.prototype.getFocused=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getFocused()]}))}))};e.prototype.getSelectedRange=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getSelectedRange()]}))}))};e.prototype.handleOutsideClick=function(e){var t=e.target;if(!(t===null||t===void 0?void 0:t.closest("[".concat(UUID,'="').concat(this.uuid,'"]')))){this.clearFocus()}};e.prototype.onRowDragStarted=function(e){var t;e.cancelBubble=true;var r=this.rowdragstart.emit(e.detail);if(r.defaultPrevented){e.preventDefault();return}(t=this.orderService)===null||t===void 0?void 0:t.start(this.element,Object.assign(Object.assign({},e.detail),r.detail))};e.prototype.onRowDragEnd=function(){var e;(e=this.orderService)===null||e===void 0?void 0:e.end()};e.prototype.onRowDrag=function(e){var t=e.detail;var r;(r=this.orderService)===null||r===void 0?void 0:r.move(t)};e.prototype.onRowMouseMove=function(e){var t;e.cancelBubble=true;(t=this.orderService)===null||t===void 0?void 0:t.moveTip(e.detail)};e.prototype.onBeforeEdit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:e.cancelBubble=true;t=this.beforeedit.emit(e.detail),r=t.defaultPrevented,n=t.detail;return[4,timeout()];case 1:i.sent();if(!r){this.dataProvider.setCellData(n);this.afteredit.emit(n)}return[2]}}))}))};e.prototype.onBeforeRangeEdit=function(e){e.cancelBubble=true;var t=this.beforerangeedit.emit(e.detail).defaultPrevented;if(t){e.preventDefault();return}this.afteredit.emit(e.detail)};e.prototype.onRangeChanged=function(e){e.cancelBubble=true;var t=this.beforeaange.emit(e.detail);if(t.defaultPrevented){e.preventDefault()}var r=this.beforeautofill.emit(e.detail);if(r.defaultPrevented){return}};e.prototype.onRowDropped=function(e){e.cancelBubble=true;var t=this.roworderchanged.emit(e.detail).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onHeaderClick=function(e){var t=this.headerclick.emit(Object.assign(Object.assign({},e.detail.column),{originalEvent:e.detail.originalEvent})).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onCellFocus=function(e){e.cancelBubble=true;var t=this.beforecellfocus.emit(e.detail).defaultPrevented;if(!this.canFocus||t){e.preventDefault()}};e.prototype.columnChanged=function(e){if(e===void 0){e=[]}this.dimensionProvider.drop();var t=ColumnDataProvider.getColumns(e,0,this.columnTypes);this.beforecolumnsset.emit(t);for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];var o=t.columns[i];this.dimensionProvider.setRealSize(o.length,i);this.dimensionProvider.setColumns(i,ColumnDataProvider.getSizes(o),i!=="rgCol")}this.beforecolumnapplied.emit(t);var a=this.columnProvider.setColumns(t);this.aftercolumnsset.emit({columns:a,order:this.columnProvider.order})};e.prototype.themeChanged=function(e){this.themeService.register(e);this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow");this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")};e.prototype.dataChanged=function(e){if(e===void 0){e=[]}var t=__spreadArray([],e,true);var r=this.beforesourceset.emit({type:"rgRow",source:t});t=r.detail.source;t=this.dataProvider.setData(t,"rgRow");this.aftersourceset.emit({type:"rgRow",source:t})};e.prototype.dataBottomChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinEnd")};e.prototype.dataTopChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinStart")};e.prototype.rowDefChanged=function(e){var t=this;if(e===void 0){e=[]}if(!e.length){return}var r=reduce_1(e,(function(e,t){if(!e[t.type]){e[t.type]={}}if(t.size){if(!e[t.type].sizes){e[t.type].sizes={}}e[t.type].sizes[t.index]=t.size}return e}),{});each(r,(function(e,r){if(e.sizes){t.dimensionProvider.setDimensionSize(r,e.sizes)}}))};e.prototype.trimmedRowsChanged=function(e){if(e===void 0){e={}}this.addTrimmed(e)};e.prototype.groupingChanged=function(e){if(e===void 0){e={}}var t;for(var r=0,n=this.internalPlugins;r<n.length;r++){var i=n[r];var o=i;if(o.setGrouping){t=o;break}}if(!t){return}t.setGrouping(e||{})};e.prototype.applyStretch=function(e){if(e==="false"){e=false}var t=this.internalPlugins.filter((function(e){return isStretchPlugin(e)}))[0];if(e){if(!t){this.internalPlugins.push(new StretchColumn(this.element,this.dimensionProvider))}else{t.applyStretch(this.columnProvider.getRawColumns())}}else if(t){var r=this.internalPlugins.indexOf(t);this.internalPlugins.splice(r,1)}};e.prototype.connectedCallback=function(){var e=this;this.viewportProvider=new ViewportProvider;this.themeService=new ThemeService({rowSize:this.rowSize});this.dimensionProvider=new DimensionProvider(this.viewportProvider);this.columnProvider=new ColumnDataProvider;this.dataProvider=new DataProvider(this.dimensionProvider);this.uuid="".concat((new Date).getTime(),"-rvgrid");var t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};if(this.autoSizeColumn){this.internalPlugins.push(new AutoSizeColumn(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 FilterPlugin(this.element,this.uuid,typeof this.filter==="object"?this.filter:undefined))}if(this.exporting){this.internalPlugins.push(new ExportFilePlugin(this.element))}this.internalPlugins.push(new SortingPlugin(this.element));if(this.plugins){this.plugins.forEach((function(r){e.internalPlugins.push(new r(e.element,t))}))}if(this.canMoveColumns){this.internalPlugins.push(new ColumnPlugin(this.element,t))}this.internalPlugins.push(new GroupingRowPlugin(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider}));this.applyStretch(this.stretch);this.themeChanged(this.theme);this.columnChanged(this.columns);this.dataChanged(this.source);this.dataTopChanged(this.pinnedTopSource);this.dataBottomChanged(this.pinnedBottomSource);this.trimmedRowsChanged(this.trimmedRows);this.rowDefChanged(this.rowDefinitions);this.groupingChanged(this.grouping);this.selectionStoreConnector=new SelectionStoreConnector;this.scrollingService=new GridScrollingService((function(t){e.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension});e.viewportscroll.emit(t)}));this.subscribers={click:this.handleOutsideClick.bind(this)};for(var r in this.subscribers){document.addEventListener(r,this.subscribers[r])}};e.prototype.disconnectedCallback=function(){each(this.internalPlugins,(function(e){return e.destroy()}));this.internalPlugins=[];for(var e in this.subscribers){document.removeEventListener(e,this.subscribers[e]);delete this.subscribers[e]}};e.prototype.render=function(){var e;var t=this;var r=this.dimensionProvider.stores["rgRow"].store.get("realSize");this.viewport=new ViewportService({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:function(e){return t.aftercolumnresize.emit(e)}},r);var n=[];if(this.rowHeaders){var i=this.viewport.columns[0];n.push(h("revogr-row-headers",{height:r,resize:this.resize,dataPorts:i.dataPorts,headerProp:i.headerProp,uiid:i.prop[UUID],rowHeaderColumn:typeof this.rowHeaders==="object"?this.rowHeaders:undefined,onScrollViewport:function(e){var r=e.detail;return t.scrollingService.onScroll(r,"headerRow")},onElementToScroll:function(e){var r=e.detail;return t.scrollingService.registerElement(r,"headerRow")}}))}n.push(h(ViewPortSections,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onEdit:function(e){var r=t.beforeeditstart.emit(e);if(!r.defaultPrevented){t.selectionStoreConnector.setEdit(e.isCancel?false:e.val)}},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},onScroll:function(e){return t.scrollingService.onScroll(e)}}));return h(Host,Object.assign({},(e={},e["".concat(UUID)]=this.uuid,e)),h(RevoViewPort,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:function(e){return t.orderService=e},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},nakedClick:function(){return t.viewport.clearEdit()},onScroll:function(e){return t.scrollingService.onScroll(e)}},n),this.extraElements)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}},enumerable:false,configurable:true});return e}();RevoGridComponent.style=revoGridStyleCss;var ColumnService=function(){function e(e,t){var r=this;this.dataStore=e;this.source=t;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(t.onChange("source",(function(e){return r.checkGrouping(e)})));this.checkGrouping(t.get("source"))}Object.defineProperty(e.prototype,"columns",{get:function(){return getVisibleSourceItem(this.source)},enumerable:false,configurable:true});e.prototype.checkGrouping=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(isGroupingColumn(n)){this.hasGrouping=true;return}this.hasGrouping=false}};e.prototype.isReadOnly=function(e,t){var r;var n=(r=this.columns[t])===null||r===void 0?void 0:r.readonly;if(typeof n==="function"){var i=this.rowDataModel(e,t);return n(i)}return n};e.doMerge=function(e,t){var r=Object.assign(Object.assign({},t),e);if(t.class){if(typeof t.class==="object"&&typeof r.class==="object"){r.class=Object.assign(Object.assign({},t.class),r.class)}else if(typeof t.class==="string"&&typeof r.class==="object"){r.class[t.class]=true}else if(typeof r.class==="string"){r.class+=" "+t.class}}if(t.style){r.style=Object.assign(Object.assign({},t.style),r.style)}return r};e.prototype.mergeProperties=function(t,r,n){var i;var o;var a=(i={},i[CELL_CLASS]=true,i[DISABLED_CLASS]=this.isReadOnly(t,r),i);var s=Object.assign(Object.assign({},n),{class:a});var u=(o=this.columns[r])===null||o===void 0?void 0:o.cellProperties;if(u){var l=this.rowDataModel(t,r);var c=u(l);if(!c){return s}return e.doMerge(s,c)}return s};e.prototype.customRenderer=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.cellTemplate;if(i){return i(h,r)}return};e.prototype.getRowClass=function(e,t){var r=getSourceItem(this.dataStore,e)||{};return r[t]||""};e.prototype.getCellData=function(t,r){var n=this.rowDataModel(t,r);return e.getData(n.model[n.prop])};e.prototype.getSaveData=function(e,t,r){if(typeof r==="undefined"){r=this.getCellData(e,t)}var n=this.rowDataModel(e,t);return{prop:n.prop,rowIndex:e,val:r,model:n.model,type:this.dataStore.get("type")}};e.prototype.getCellEditor=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.editor;if(!i){return undefined}if(typeof i==="string"){return r[i]}return i};e.prototype.rowDataModel=function(e,t){var r=this.columns[t];var n=r===null||r===void 0?void 0:r.prop;var i=getSourceItem(this.dataStore,e)||{};return{prop:n,model:i,data:this.dataStore.get("source"),column:r,rowIndex:e}};e.prototype.getRangeData=function(e){var t={};var r=e.oldProps.length;var n=this.copyRangeArray(e.oldRange,e.oldProps,this.dataStore);var i=n.length;for(var o=e.newRange.y,a=0;o<e.newRange.y1+1;o++,a++){var s=n[a%i];for(var u=e.newRange.x,l=0;u<e.newRange.x1+1;u++,l++){if(o>=e.oldRange.y&&o<=e.oldRange.y1&&u>=e.oldRange.x&&u<=e.oldRange.x1){continue}var c=this.columns[u].prop;var f=l%r;if(!this.isReadOnly(o,u)){if(!t[o]){t[o]={}}t[o][c]=s[f]}}}return t};e.prototype.getTransformedDataToApply=function(e,t){var r={};var n=t.length;var i=this.columns.length;var o=this.dataStore.get("items").length;var a=e.y;var s=0;for(var u=0;a<o&&u<n;a++,u++){var l=t[u%n];var c=(l===null||l===void 0?void 0:l.length)||0;var f=e.x;for(var d=0;f<i&&d<c;f++,d++){var v=this.columns[f].prop;var h=d%i;if(!this.isReadOnly(a,f)){if(!r[a]){r[a]={}}r[a][v]=l[h]}}s=Math.max(s,f-1)}var p=getRange(e,{y:a-1,x:s});return{changed:r,range:p}};e.prototype.applyRangeData=function(e){var t={};for(var r in e){var n=t[r]=getSourceItem(this.dataStore,parseInt(r,10));for(var i in e[r]){n[i]=e[r][i]}}setSourceByVirtualIndex(this.dataStore,t)};e.prototype.getRangeStaticData=function(e,t){var r={};for(var n=e.y,i=0;n<e.y1+1;n++,i++){for(var o=e.x,a=0;o<e.x1+1;o++,a++){var s=this.columns[o].prop;if(!this.isReadOnly(n,o)){if(!r[n]){r[n]={}}r[n][s]=t}}}return r};e.prototype.copyRangeArray=function(e,t,r){var n=[];for(var i=e.y;i<e.y1+1;i++){var o=[];for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=getSourceItem(r,i);o.push(l[u])}n.push(o)}return n};e.getData=function(e){if(typeof e==="undefined"||e===null){return""}return e.toString()};e.prototype.destroy=function(){this.unsubscribe.forEach((function(e){return e()}))};return e}();var CellRenderer=function(e){var t=e.model,r=e.canDrag,n=e.onDragStart;var i=[];if(t.column.rowDrag&&isRowDragService(t.column.rowDrag,t)){if(r){i.push(h("span",{class:DRAGGABLE_CLASS,onMouseDown:function(e){return n(e)}},h("span",{class:DRAG_ICON_CLASS})))}else{i.push(h("span",{class:DRAGGABLE_CLASS}))}}i.push("".concat(ColumnService.getData(t.model[t.prop])));return i};function isRowDragService(e,t){if(typeof e==="function"){return e(t)}return!!e}var PADDING_DEPTH=10;var RowRenderer=function(e,t){var r=e.rowClass,n=e.size,i=e.start,o=e.style,a=e.depth;return h("div",{class:"rgRow ".concat(r||""),style:Object.assign(Object.assign({},o),{height:"".concat(n,"px"),transform:"translateY(".concat(i,"px)"),paddingLeft:a?"".concat(PADDING_DEPTH*a,"px"):undefined})},t)};function expandEvent(e,t,r){var n=new CustomEvent(GROUP_EXPAND_EVENT,{detail:{model:t,virtualIndex:r},cancelable:true,bubbles:true});e.target.dispatchEvent(n)}var GroupingRowRenderer=function(e){var t;var r=e.model,n=e.itemIndex,i=e.hasExpand;var o=r[PSEUDO_GROUP_ITEM];var a=r[GROUP_EXPANDED];var s=parseInt(r[GROUP_DEPTH],10)||0;if(!i){return h(RowRenderer,Object.assign({},e,{rowClass:"groupingRow",depth:s}))}return h(RowRenderer,Object.assign({},e,{rowClass:"groupingRow",depth:s}),h("button",{class:(t={},t[GROUP_EXPAND_BTN]=true,t),onClick:function(e){return expandEvent(e,r,n)}},h("svg",{"aria-hidden":"true",style:{transform:"rotate(".concat(!a?-90:0,"deg)")},focusable:"false",viewBox:"0 0 448 512"},h("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"}))),o)};var revogrDataStyleCss=".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}";var RevogrData=function(){function e(e){registerInstance(this,e);this.dragStartCell=createEvent(this,"dragStartCell",7)}e.prototype.onStoreChange=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new ColumnService(this.dataStore,this.colData)};e.prototype.connectedCallback=function(){this.onStoreChange()};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.render=function(){var e;var t=this.viewportRow.get("items");var r=this.viewportCol.get("items");if(!this.columnService.columns.length||!t.length||!r.length){return""}var n=(e=this.rowSelectionStore)===null||e===void 0?void 0:e.get("range");var i=[];var o=this.dataStore.get("groupingDepth");for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=getSourceItem(this.dataStore,u.itemIndex);if(isGrouping(l)){i.push(h(GroupingRowRenderer,Object.assign({},u,{model:l,hasExpand:this.columnService.hasGrouping})));continue}var c=[];var f=this.rowClass?this.columnService.getRowClass(u.itemIndex,this.rowClass):"";if(n&&u.itemIndex>=n.y&&u.itemIndex<=n.y1){f+=" focused-rgRow"}for(var d=0,v=r;d<v.length;d++){var p=v[d];c.push(this.getCellRenderer(u,p,this.canDrag,this.columnService.hasGrouping?o:0))}i.push(h(RowRenderer,{rowClass:f,size:u.size,start:u.start},c))}return i};e.prototype.getCellRenderer=function(e,t,r,n){var i;var o=this;if(r===void 0){r=false}if(n===void 0){n=0}var a=this.columnService.rowDataModel(e.itemIndex,t.itemIndex);var s=(i={},i[DATA_COL]=t.itemIndex,i[DATA_ROW]=e.itemIndex,i.style={width:"".concat(t.size,"px"),transform:"translateX(".concat(t.start,"px)")},i);if(n&&!t.itemIndex){s.style.paddingLeft="".concat(PADDING_DEPTH*n,"px")}var u=this.columnService.mergeProperties(e.itemIndex,t.itemIndex,s);var l=this.columnService.customRenderer(e.itemIndex,t.itemIndex,a);if(typeof l!=="undefined"){return h("div",Object.assign({},u),l)}if(!a.column){console.error("Investigate column problem");return}return h("div",Object.assign({},u),h(CellRenderer,{model:a,canDrag:r,onDragStart:function(e){return o.dragStartCell.emit(e)}}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}},enumerable:false,configurable:true});return e}();RevogrData.style=revogrDataStyleCss;var codes;(function(e){e[e["MOUSE_LEFT"]=1]="MOUSE_LEFT";e[e["MOUSE_RIGHT"]=3]="MOUSE_RIGHT";e[e["MOUSE_MIDDLE"]=2]="MOUSE_MIDDLE";e[e["BACKSPACE"]=8]="BACKSPACE";e[e["COMMA"]=188]="COMMA";e[e["INSERT"]=45]="INSERT";e[e["DELETE"]=46]="DELETE";e[e["END"]=35]="END";e[e["ENTER"]=13]="ENTER";e[e["ESCAPE"]=27]="ESCAPE";e[e["CONTROL"]=17]="CONTROL";e[e["COMMAND_LEFT"]=91]="COMMAND_LEFT";e[e["COMMAND_RIGHT"]=93]="COMMAND_RIGHT";e[e["COMMAND_FIREFOX"]=224]="COMMAND_FIREFOX";e[e["ALT"]=18]="ALT";e[e["HOME"]=36]="HOME";e[e["PAGE_DOWN"]=34]="PAGE_DOWN";e[e["PAGE_UP"]=33]="PAGE_UP";e[e["PERIOD"]=190]="PERIOD";e[e["SPACE"]=32]="SPACE";e[e["SHIFT"]=16]="SHIFT";e[e["CAPS_LOCK"]=20]="CAPS_LOCK";e[e["TAB"]=9]="TAB";e[e["ARROW_RIGHT"]=39]="ARROW_RIGHT";e[e["ARROW_LEFT"]=37]="ARROW_LEFT";e[e["ARROW_UP"]=38]="ARROW_UP";e[e["ARROW_DOWN"]=40]="ARROW_DOWN";e[e["F1"]=112]="F1";e[e["F2"]=113]="F2";e[e["F3"]=114]="F3";e[e["F4"]=115]="F4";e[e["F5"]=116]="F5";e[e["F6"]=117]="F6";e[e["F7"]=118]="F7";e[e["F8"]=119]="F8";e[e["F9"]=120]="F9";e[e["F10"]=121]="F10";e[e["F11"]=122]="F11";e[e["F12"]=123]="F12";e[e["A"]=65]="A";e[e["C"]=67]="C";e[e["D"]=68]="D";e[e["F"]=70]="F";e[e["L"]=76]="L";e[e["O"]=79]="O";e[e["P"]=80]="P";e[e["S"]=83]="S";e[e["V"]=86]="V";e[e["X"]=88]="X"})(codes||(codes={}));var codesLetter;(function(e){e["ENTER"]="Enter";e["ENTER_NUM"]="NumpadEnter";e["V"]="KeyV";e["C"]="KeyC";e["ESCAPE"]="Escape";e["TAB"]="Tab";e["BACKSPACE"]="Backspace";e["DELETE"]="Delete";e["ARROW_RIGHT"]="ArrowRight";e["ARROW_LEFT"]="ArrowLeft";e["ARROW_UP"]="ArrowUp";e["ARROW_DOWN"]="ArrowDown";e["SHIFT"]="Shift"})(codesLetter||(codesLetter={}));var KeyCodesEnum=codes;var osPlatform;(function(e){e["mac"]="Mac"})(osPlatform||(osPlatform={}));var OsPlatform=osPlatform;function baseIsNaN(e){return e!==e}var _baseIsNaN=baseIsNaN;function strictIndexOf(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}var _strictIndexOf=strictIndexOf;function baseIndexOf(e,t,r){return t===t?_strictIndexOf(e,t,r):_baseFindIndex(e,_baseIsNaN,r)}var _baseIndexOf=baseIndexOf;function baseValues(e,t){return _arrayMap(t,(function(t){return e[t]}))}var _baseValues=baseValues;function values(e){return e==null?[]:_baseValues(e,keys_1(e))}var values_1=values;var nativeMax=Math.max;function includes(e,t,r,n){e=isArrayLike_1(e)?e:values_1(e);r=r&&!n?toInteger_1(r):0;var i=e.length;if(r<0){r=nativeMax(i+r,0)}return isString_1(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&_baseIndexOf(e,t,r)>-1}var includes_1=includes;function isLetterKey(e){return e===32||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function isCtrlKey(e,t){if(t.includes(OsPlatform.mac)){return includes_1([KeyCodesEnum.COMMAND_LEFT,KeyCodesEnum.COMMAND_RIGHT,KeyCodesEnum.COMMAND_FIREFOX],e)}return KeyCodesEnum.CONTROL===e}function isClear(e){return codesLetter.BACKSPACE===e||codesLetter.DELETE===e}function isTab(e){return codesLetter.TAB===e}function isEnterKey(e){return e===codesLetter.ENTER||e===codesLetter.ENTER_NUM}var TextEditor=function(){function e(e,t){this.column=e;this.saveCallback=t;this.element=null;this.editCell=null}e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.editInput)return[3,2];return[4,timeout()];case 1:t.sent();(e=this.editInput)===null||e===void 0?void 0:e.focus();t.label=2;case 2:return[2]}}))}))};e.prototype.onKeyDown=function(e){var t=isEnterKey(e.code);var r=isTab(e.code);if((r||t)&&e.target&&this.saveCallback&&!e.isComposing){this.editInput.blur();this.saveCallback(e.target.value,r)}};e.prototype.render=function(){var e=this;var t;return h("input",{type:"text",value:((t=this.editCell)===null||t===void 0?void 0:t.val)||"",ref:function(t){e.editInput=t},onKeyDown:function(t){return e.onKeyDown(t)}})};return e}();var revogrEditStyleCss=".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}";var Edit=function(){function e(e){registerInstance(this,e);this.cellEdit=createEvent(this,"cellEdit",3);this.closeEdit=createEvent(this,"closeEdit",3);this.currentEditor=null}e.prototype.onSave=function(e,t){if(this.editCell){this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:e,preventFocus:t})}};e.prototype.componentWillRender=function(){var e=this;if(!this.currentEditor){if(this.editor){this.currentEditor=new this.editor(this.column,(function(t,r){return e.onSave(t,r)}),(function(t){return e.closeEdit.emit(t)}))}else{this.currentEditor=new TextEditor(this.column,(function(t,r){return e.onSave(t,r)}))}}};e.prototype.componentDidRender=function(){if(!this.currentEditor){return}this.currentEditor.element=this.element.firstElementChild;this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender()};e.prototype.disconnectedCallback=function(){if(!this.currentEditor){return}this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback();if(this.currentEditor.element){this.currentEditor.element=null}this.currentEditor=null};e.prototype.render=function(){if(this.currentEditor){this.currentEditor.editCell=this.editCell;return h(Host,{class:EDIT_INPUT_WR},this.currentEditor.render(h))}return""};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Edit.style=revogrEditStyleCss;function getCurrentCell(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;var d=n-u;if(d>=c){d=c-1}var v=r-l;if(v>=f){v=f-1}var h=getItemByPosition(o,d);var p=getItemByPosition(a,v);if(p.itemIndex<0){p.itemIndex=0}if(h.itemIndex<0){h.itemIndex=0}return{x:p.itemIndex,y:h.itemIndex}}function getCoordinate(e,t,r,n){if(n===void 0){n=false}var i=function(i){var o={x:e.x,y:e.y};var a=n?{x:e.x1,y:e.y1}:o;var s=a[i]>t[i]?a:o;s[i]+=r[i];return{start:o,end:a}};if(r.x){return i("x")}if(r.y){return i("y")}return null}function isAfterLast(e,t){var r=e.x,n=e.y;var i=t.lastCell;return r>=i.x||n>=i.y}function isBeforeFirst(e){var t=e.x,r=e.y;return t<0||r<0}function getDirectionCoordinate(e,t){var r;var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]!==t[a]){return r={},r[a]=1,r}}return null}function getLargestAxis(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];r[a]=Math.abs(e[a]-t[a])}if(r.x>r.y){return{x:1}}if(r.y>r.x){return{y:1}}return null}function styleByCellProps(e){return{left:"".concat(e.left,"px"),top:"".concat(e.top,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}}function getCell(e,t,r){var n=e.x,i=e.y,o=e.x1,a=e.y1;var s=getItemByIndex(t,i).start;var u=getItemByIndex(r,n).start;var l=getItemByIndex(t,a).end;var c=getItemByIndex(r,o).end;return{left:u,right:c,top:s,bottom:l,width:c-u,height:l-s}}function getElStyle(e,t,r){var n=getCell(e,t,r);return styleByCellProps(n)}var revogrFocusStyleCss=".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}";var RevogrFocus$1=function(){function e(e){registerInstance(this,e);this.afterFocus=createEvent(this,"afterfocus",7)}e.prototype.changed=function(e,t){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"});var r=getSourceItem(this.dataStore,t.y)||{};this.afterFocus.emit({model:r})};e.prototype.componentDidRender=function(){var e=this.selectionStore.get("focus");e&&this.el&&this.changed(this.el,e)};e.prototype.render=function(){var e=this.selectionStore.get("focus");if(e){var t=getElStyle(Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),this.dimensionRow.state,this.dimensionCol.state);return h(Host,{class:FOCUS_CLASS,style:t})}};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrFocus$1.style=revogrFocusStyleCss;var defineProperty=function(){try{var e=_getNative(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var _defineProperty=defineProperty;function baseAssignValue(e,t,r){if(t=="__proto__"&&_defineProperty){_defineProperty(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}var _baseAssignValue=baseAssignValue;function arrayAggregator(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}var _arrayAggregator=arrayAggregator;function baseAggregator(e,t,r,n){_baseEach(e,(function(e,i,o){t(n,e,r(e),o)}));return n}var _baseAggregator=baseAggregator;function createAggregator(e,t){return function(r,n){var i=isArray_1(r)?_arrayAggregator:_baseAggregator,o=t?t():{};return i(r,e,_baseIteratee(n),o)}}var _createAggregator=createAggregator;var keyBy=_createAggregator((function(e,t,r){_baseAssignValue(e,r,t)}));var keyBy_1=keyBy;var SortingSign=function(e){var t=e.column;return h("i",{class:t.order})};var ResizeEvents;(function(e){e["start"]="resize:start";e["move"]="resize:move";e["end"]="resize:end"})(ResizeEvents||(ResizeEvents={}));var RESIZE_MASK={"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"}};var DISABLE_MASK={l:1,t:2,w:4,h:8};var defaultProps=function(e){return Object.assign(Object.assign({},e),{fitParent:e.fitParent||false,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})};var ResizeDirective=function(){function e(e,t){this.initialProps=e;this.$event=t;this.mouseX=0;this.mouseY=0;this.width=0;this.height=0;this.changeX=0;this.changeY=0;this.disableCalcMap=15;this.props=defaultProps(e);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}e.prototype.set=function(e){var t=this;this.$el=e;this.props.disableAttributes.forEach((function(e){switch(e){case"l":t.disableCalcMap&=~DISABLE_MASK.l;break;case"t":t.disableCalcMap&=~DISABLE_MASK.t;break;case"w":t.disableCalcMap&=~DISABLE_MASK.w;break;case"h":t.disableCalcMap&=~DISABLE_MASK.h}}))};e.prototype.emitEvent=function(e,t){if(!this.$event){return}this.$event(Object.assign({eventName:e,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},t))};e.isTouchEvent=function(e){var t;var r=e;return((t=r.touches)===null||t===void 0?void 0:t.length)>=0};e.prototype.handleMove=function(t){if(!this.resizeState){return}var r,n;if(e.isTouchEvent(t)){r=t.touches[0].clientY;n=t.touches[0].clientX}else{r=t.clientY;n=t.clientX}var i=this.resizeState&RESIZE_MASK["resizable-r"].bit||this.resizeState&RESIZE_MASK["resizable-l"].bit;var o=this.resizeState&RESIZE_MASK["resizable-t"].bit||this.resizeState&RESIZE_MASK["resizable-b"].bit;if(o&&this.disableCalcMap&DISABLE_MASK.h){var a=r-this.mouseY;var s=this.changeY+a;var u=this.height+s;if(u<this.minH){s=-(this.height-this.minH)}if(this.maxH&&u>this.maxH){s=this.maxH-this.height}this.changeY=s;this.mouseY=r;if(this.activeResizer){this.activeResizer.style.bottom="".concat(-this.changeY,"px")}}if(i&&this.disableCalcMap&DISABLE_MASK.w){var l=n-this.mouseX;var c=this.changeX+l;var f=this.width+c;if(f<this.minW){c=-(this.width-this.minW)}if(this.maxW&&f>this.maxW){c=this.maxW-this.width}this.changeX=c;this.mouseX=n;if(this.activeResizer){this.activeResizer.style.right="".concat(-this.changeX,"px")}}this.emitEvent(ResizeEvents.move)};e.prototype.handleDown=function(t){if(t.defaultPrevented){return}t.preventDefault();this.dropInitial();for(var r in RESIZE_MASK){var n=t.target;if(this.$el.contains(n)&&(n===null||n===void 0?void 0:n.classList.contains(r))){document.body.style.cursor=RESIZE_MASK[r].cursor;if(e.isTouchEvent(t)){this.setInitials(t.touches[0],n)}else{t.preventDefault&&t.preventDefault();this.setInitials(t,n)}this.resizeState=RESIZE_MASK[r].bit;var i=ResizeEvents.start;this.emitEvent(i);break}}this.bindMove()};e.prototype.handleUp=function(e){e.preventDefault();if(this.resizeState!==0){this.resizeState=0;document.body.style.cursor="";var t=ResizeEvents.end;this.emitEvent(t)}this.dropInitial();this.unbindMove()};e.prototype.setInitials=function(e,t){var r=e.clientX,n=e.clientY;var i=getComputedStyle(this.$el);this.$el.classList.add("active");this.activeResizer=t;if(this.disableCalcMap&DISABLE_MASK.w){this.mouseX=r;this.width=this.$el.clientWidth;this.parent.width=this.$el.parentElement.clientWidth;var o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight);this.minW=Math.max(o,this.initialProps.minWidth||0);if(this.initialProps.maxWidth){this.maxW=Math.max(this.width,this.initialProps.maxWidth)}}if(this.disableCalcMap&DISABLE_MASK.h){this.mouseY=n;this.height=this.$el.clientHeight;this.parent.height=this.$el.parentElement.clientHeight;var a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);this.minH=Math.max(a,this.initialProps.minHeight||0);if(this.initialProps.maxHeight){this.maxH=Math.max(this.height,this.initialProps.maxHeight)}}};e.prototype.dropInitial=function(){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};e.prototype.bindMove=function(){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)};e.prototype.unbindMove=function(){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)};return e}();var ResizableElement=function(e,t){var r=[];var n=e.canResize&&new ResizeDirective(e,(function(t){if(t.eventName===ResizeEvents.end){e.onResize&&e.onResize(t)}}))||null;if(e.canResize){if(e.active){for(var i in e.active){r.push(h("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},onMouseDown:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},onTouchStart:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},class:"resizable resizable-".concat(e.active[i])}))}}}else{if(e.active){for(var i in e.active){r.push(h("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},class:"no-resize resizable resizable-".concat(e.active[i])}))}}}return h("div",Object.assign({},e,{ref:function(e){return n===null||n===void 0?void 0:n.set(e)}}),t,r)};var ON_COLUMN_CLICK="column-click";var HeaderCellRenderer=function(e,t){var r=e.data,n=e.props;var i=(r===null||r===void 0?void 0:r.name)||"";var o=n;if(r===null||r===void 0?void 0:r.columnTemplate){i=r.columnTemplate(h,r)}if(r===null||r===void 0?void 0:r.columnProperties){var a=r.columnProperties(r);if(a&&typeof a==="object"){o=ColumnService.doMerge(n,a)}}return h(ResizableElement,Object.assign({},o,{onMouseDown:function(e){dispatch(e.currentTarget,ON_COLUMN_CLICK,{data:r,event:e})}}),h("div",{class:"header-content"},i),t)};var HeaderRenderer=function(e){var t,r;var n,i,o,a,s,u;var l=(t={},t[HEADER_CLASS]=true,t[HEADER_SORTABLE_CLASS]=!!((n=e.data)===null||n===void 0?void 0:n.sortable),t);if((i=e.data)===null||i===void 0?void 0:i.order){l[e.data.order]=true}var c=(r={},r[DATA_COL]=e.column.itemIndex,r.canResize=e.canResize,r.minWidth=((o=e.data)===null||o===void 0?void 0:o.minSize)||MIN_COL_SIZE,r.maxWidth=(a=e.data)===null||a===void 0?void 0:a.maxSize,r.active=["r"],r.class=l,r.style={width:"".concat(e.column.size,"px"),transform:"translateX(".concat(e.column.start,"px)")},r.onResize=e.onResize,r.onDoubleClick=function(t){e.onDoubleClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r.onClick=function(t){if(t.defaultPrevented||!e.onClick){return}e.onClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r);if(e.range){if(e.column.itemIndex>=e.range.x&&e.column.itemIndex<=e.range.x1){if(typeof c.class==="object"){c.class[FOCUS_CLASS]=true}}}return h(HeaderCellRenderer,{data:e.data,props:c},((s=e.data)===null||s===void 0?void 0:s.order)?h(SortingSign,{column:e.data}):"",e.canFilter&&((u=e.data)===null||u===void 0?void 0:u.filter)!==false?h(FilterButton,{column:e.data}):"")};var GroupHeaderRenderer=function(e){var t;var r={canResize:e.canResize,minWidth:e.group.ids.length*MIN_COL_SIZE,maxWidth:0,active:["r"],class:(t={},t[HEADER_CLASS]=true,t),style:{transform:"translateX(".concat(e.start,"px)"),width:"".concat(e.end-e.start,"px")},onResize:e.onResize};return h(HeaderCellRenderer,{data:e.group,props:r})};var ColumnGroupsRenderer=function(e){var t=e.depth,r=e.groups,n=e.visibleProps,i=e.dimensionCol,o=e.canResize,a=e.onResize;var s=[];for(var u=0;u<t;u++){if(r[u]){var l=function(e){var t=findIndex_1(e.ids,(function(e){return typeof n[e]==="number"}));if(t>-1){var r=n[e.ids[t]];var u=r-t;var l=u+e.ids.length-1;var c=getItemByIndex(i,u).start;var f=getItemByIndex(i,l).end;s.push(h(GroupHeaderRenderer,{start:c,end:f,group:e,canResize:o,onResize:function(e){return a(e.changedX,u,l)}}))}};for(var c=0,f=r[u];c<f.length;c++){var d=f[c];l(d)}}s.push(h("div",{class:"".concat(HEADER_ROW_CLASS," group")}))}return s};var revogrHeaderStyleCss="@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}";var RevogrHeaderComponent=function(){function e(e){registerInstance(this,e);this.initialHeaderClick=createEvent(this,"initialHeaderClick",7);this.headerresize=createEvent(this,"headerresize",7);this.headerdblClick=createEvent(this,"headerdblClick",7);this.parent="";this.groupingDepth=0}e.prototype.onResize=function(e,t){var r;var n=e.width;this.headerresize.emit((r={},r[t]=n||0,r))};e.prototype.onResizeGroup=function(e,t,r){var n={};var i=keyBy_1(this.viewportCol.get("items"),"itemIndex");var o=e/(r-t+1);for(var a=t;a<=r;a++){var s=i[a];if(s){n[a]=s.size+o}}this.headerresize.emit(n)};e.prototype.render=function(){var e=this;var t;var r=this.viewportCol.get("items");var n=(t=this.selectionStore)===null||t===void 0?void 0:t.get("range");var i=[];var o={};var a=function(t){var r=s.colData[t.itemIndex];i.push(h(HeaderRenderer,{range:n,column:t,data:r,canFilter:!!s.columnFilter,canResize:s.canResize,onResize:function(r){return e.onResize(r,t.itemIndex)},onDoubleClick:function(t){return e.headerdblClick.emit(t)},onClick:function(t){return e.initialHeaderClick.emit(t)}}));o[r===null||r===void 0?void 0:r.prop]=t.itemIndex};var s=this;for(var u=0,l=r;u<l.length;u++){var c=l[u];a(c)}return[h("div",{class:"group-rgRow"},h(ColumnGroupsRenderer,{canResize:this.canResize,visibleProps:o,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:function(t,r,n){return e.onResizeGroup(t,r,n)}})),h("div",{class:"".concat(HEADER_ROW_CLASS," ").concat(HEADER_ACTUAL_ROW_CLASS)},i)]};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrHeaderComponent.style=revogrHeaderStyleCss;var RowOrderService=function(){function e(e){this.config=e;this.currentCell=null;this.previousRow=null}e.prototype.endOrder=function(e,t){if(this.currentCell===null){return}var r=this.getCell(e,t);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()};e.prototype.startOrder=function(e,t){this.currentCell=this.getCell(e,t);return this.currentCell};e.prototype.move=function(e,t){var r=this.getRow(e,t);if(this.previousRow===r.itemIndex||r.itemIndex<-1){return null}this.previousRow=r.itemIndex;return r};e.prototype.clear=function(){this.currentCell=null;this.previousRow=null};e.prototype.getRow=function(e,t){var r=t.el,n=t.rows;var i=r.getBoundingClientRect().top;var o=e-i;var a=getItemByPosition(n,o);var s={itemIndex:a.itemIndex,start:a.start+i,end:a.end+i};return s};e.prototype.getCell=function(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left;var c=n-u;var f=r-l;var d=getItemByPosition(o,c);var v=getItemByPosition(a,f);return{x:v.itemIndex,y:d.itemIndex}};return e}();var OrderEditor=function(){function e(e){var t=this;registerInstance(this,e);this.internalRowDragStart=createEvent(this,"internalRowDragStart",7);this.internalRowDragEnd=createEvent(this,"internalRowDragEnd",7);this.internalRowDrag=createEvent(this,"internalRowDrag",7);this.internalRowMouseMove=createEvent(this,"internalRowMouseMove",7);this.initialRowDropped=createEvent(this,"initialRowDropped",7);this.rowMoveFunc=debounce_1((function(e){var r=t.rowOrderService.move(e,t.getData());if(r!==null){t.internalRowDrag.emit(r)}}),5)}e.prototype.onMouseOut=function(){this.clearOrder()};e.prototype.onMouseUp=function(e){this.endOrder(e)};e.prototype.dragStart=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;var o=this;return __generator(this,(function(a){e.preventDefault();if(this.moveFunc){this.clearOrder()}t=this.getData();r=this.rowOrderService.startOrder(e,t);n=this.rowOrderService.getRow(e.y,t);i=this.internalRowDragStart.emit({cell:r,text:DRAGG_TEXT,pos:n,event:e});if(i.defaultPrevented){return[2]}this.moveFunc=function(e){return o.move(e)};document.addEventListener("mousemove",this.moveFunc);return[2]}))}))};e.prototype.endOrder=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.rowOrderService.endOrder(e,this.getData());this.clearOrder();return[2]}))}))};e.prototype.clearOrder=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rowOrderService.clear();document.removeEventListener("mousemove",this.moveFunc);this.moveFunc=null;this.internalRowDragEnd.emit();return[2]}))}))};e.prototype.move=function(e){var t=e.x,r=e.y;this.internalRowMouseMove.emit({x:t,y:r});this.rowMoveFunc(r)};e.prototype.connectedCallback=function(){var e=this;this.rowOrderService=new RowOrderService({positionChanged:function(t,r){return e.onPositionChanged(t,r)}})};e.prototype.onPositionChanged=function(e,t){var r=this.initialRowDropped.emit({from:e,to:t});if(r.defaultPrevented){return}var n=__spreadArray([],this.dataStore.get("items"),true);var i=n.splice(e,1);n.splice.apply(n,__spreadArray([t,0],i,false));setItems(this.dataStore,n)};e.prototype.getData=function(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}};return e}();var SelectionStoreService=function(){function e(e,t){this.store=e;this.config=t;this.store=e}Object.defineProperty(e.prototype,"edited",{get:function(){return this.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){return this.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ranged",{get:function(){return this.store.get("range")},enumerable:false,configurable:true});e.prototype.changeRange=function(e){return this.config.changeRange(e)};e.prototype.focus=function(e,t){if(t===void 0){t=false}if(!e){return false}var r=e;if(t){var n=this.store.get("focus");if(n){return this.config.changeRange(getRange(n,r))}}return this.config.focus(e,r)};return e}();function isEditInput(e){return!!(e===null||e===void 0?void 0:e.closest(".".concat(EDIT_INPUT_WR)))}var KeyboardService=function(){function e(e){this.sv=e;this.ctrlDown=false}e.prototype.keyDown=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!this.sv.selectionStoreService.focused){return[2]}if(isCtrlKey(e.keyCode,navigator.platform)){this.ctrlDown=true}if(codesLetter.TAB===e.code){this.keyChangeSelection(e,t);return[2]}if(this.sv.selectionStoreService.edited){switch(e.code){case codesLetter.ESCAPE:this.sv.doEdit(undefined,true);break}return[2]}if(isClear(e.code)){this.sv.clearCell();return[2]}if(isEnterKey(e.code)){this.sv.doEdit();return[2]}if(this.isCopy(e)){return[2]}if(this.isPaste(e)){this.sv.internalPaste();return[2]}if(isLetterKey(e.keyCode)){this.sv.doEdit(e.key);return[2]}return[4,this.keyChangeSelection(e,t)];case 1:if(r.sent()){return[2]}return[2]}}))}))};e.prototype.keyChangeSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=this.changeDirectionKey(e,t);if(!r){return[2,false]}return[4,timeout()];case 1:o.sent();n=this.sv.selectionStore.get("range");i=this.sv.selectionStore.get("focus");return[2,this.keyPositionChange(r.changes,this.sv.getData(),n,i,r.isMulti)]}}))}))};e.prototype.keyPositionChange=function(e,t,r,n,i){if(i===void 0){i=false}if(!r||!n){return false}var o=getCoordinate(r,n,e,i);if(!o){return false}if(i){if(isAfterLast(o.end,t)||isBeforeFirst(o.start)){return false}var a=getRange(o.start,o.end);return this.sv.selectionStoreService.changeRange(a)}return this.sv.selectionStoreService.focus(o.start)};e.prototype.keyUp=function(e){if(isCtrlKey(e.keyCode,navigator.platform)){this.ctrlDown=false}};e.prototype.isCopy=function(e){return this.ctrlDown&&e.code==codesLetter.C};e.prototype.isPaste=function(e){return this.ctrlDown&&e.code==codesLetter.V};e.prototype.changeDirectionKey=function(e,t){var r=t&&e.shiftKey;switch(e.code){case codesLetter.TAB:case codesLetter.ARROW_UP:case codesLetter.ARROW_DOWN:case codesLetter.ARROW_LEFT:case codesLetter.ARROW_RIGHT:e.preventDefault();break}switch(e.code){case codesLetter.ARROW_UP:return{changes:{y:-1},isMulti:r};case codesLetter.ARROW_DOWN:return{changes:{y:1},isMulti:r};case codesLetter.ARROW_LEFT:return{changes:{x:-1},isMulti:r};case codesLetter.TAB:case codesLetter.ARROW_RIGHT:return{changes:{x:1},isMulti:r}}};return e}();function baseSlice(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Array(i);while(++n<i){o[n]=e[n+t]}return o}var _baseSlice=baseSlice;function slice(e,t,r){var n=e==null?0:e.length;if(!n){return[]}if(r&&typeof r!="number"&&_isIterateeCall(e,t,r)){t=0;r=n}else{t=t==null?0:toInteger_1(t);r=r===undefined?n:toInteger_1(r)}return _baseSlice(e,t,r)}var slice_1=slice;var AutoFillType;(function(e){e["selection"]="Selection";e["autoFill"]="AutoFill"})(AutoFillType||(AutoFillType={}));var AutoFillService=function(){function e(e){this.sv=e;this.autoFillType=null;this.autoFillInitial=null;this.autoFillStart=null;this.autoFillLast=null}e.prototype.renderAutofill=function(e,t){var r=this;var n;if(e){n=getCell(e,this.sv.dimensionRow.state,this.sv.dimensionCol.state)}else{n=getCell(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state)}return h("div",{class:CELL_HANDLER_CLASS,style:{left:"".concat(n.right,"px"),top:"".concat(n.bottom,"px")},onMouseDown:function(e){return r.selectionStart(e,r.sv.getData(),AutoFillType.autoFill)}})};Object.defineProperty(e.prototype,"isAutoFill",{get:function(){return!!this.autoFillType},enumerable:false,configurable:true});e.prototype.selectionMouseMove=function(e){var t=this;if(!this.onMouseMoveAutofill){this.onMouseMoveAutofill=debounce_1((function(e,r){return t.doAutofillMouseMove(e,r)}),5)}if(this.isAutoFill){this.onMouseMoveAutofill(e,this.sv.getData())}};e.prototype.getFocus=function(){var e=this.sv.selectionStoreService.focused;var t=this.sv.selectionStoreService.ranged;if(t){e={x:t.x,y:t.y}}if(!e&&!t){return null}return e};e.prototype.doAutofillMouseMove=function(e,t){var r=this;var n=e.x,i=e.y;if(!this.autoFillInitial){return}var o=getCurrentCell({x:n,y:i},t);var a;if(this.autoFillLast){a=getDirectionCoordinate(this.autoFillStart,this.autoFillLast)}if(!this.autoFillLast||!a){a=getLargestAxis(this.autoFillStart,o);if(!this.autoFillLast){this.autoFillLast=this.autoFillStart}}if(!a){return}each(a,(function(e,t){var n;if(e){o=Object.assign(Object.assign({},r.autoFillLast),(n={},n[t]=o[t],n))}}));if(isAfterLast(o,t)){return}this.autoFillLast=o;this.sv.setTempRange({area:getRange(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})};e.prototype.selectionStart=function(e,t,r){if(r===void 0){r=AutoFillType.selection}var n=e.target.getBoundingClientRect(),i=n.top,o=n.left;this.autoFillInitial=this.getFocus();this.autoFillType=r;this.autoFillStart=getCurrentCell({x:o,y:i},t);e.preventDefault()};e.prototype.clearAutoFillSelection=function(){if(this.autoFillInitial){this.autoFillInitial=this.getFocus();if(this.autoFillType===AutoFillType.autoFill){this.applyRangeWithData(this.autoFillInitial,this.autoFillLast)}else{this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)}}this.autoFillType=null;this.autoFillInitial=null;this.autoFillLast=null;this.autoFillStart=null};e.prototype.onRangeApply=function(e,t){var r={};for(var n in e){r[n]=getSourceItem(this.sv.dataStore,parseInt(n,10))}var i=this.sv.internalRangeDataApply({data:e,models:r,type:this.sv.dataStore.get("type")});if(!i.defaultPrevented){this.sv.columnService.applyRangeData(e)}this.sv.setRange(t)};e.prototype.applyRangeWithData=function(e,t){if(!e||!t){return}var r=this.sv.selectionStoreService.ranged;var n=getRange(e,t);var i=__spreadArray([],this.sv.columnService.columns,true);var o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:r,newProps:slice_1(i,n.x,n.x1+1).map((function(e){return e.prop})),oldProps:slice_1(i,r.x,r.x1+1).map((function(e){return e.prop}))};o.newData=this.sv.columnService.getRangeData(o);var a=this.sv.internalSelectionChanged(o);if(a.defaultPrevented){this.sv.setTempRange(null);return}this.onRangeApply(o.newData,n)};e.prototype.applyRangeOnly=function(e,t){if(!e||!t){return}var r=getRange(e,t);this.sv.setRange(r)};return e}();var ClipboardService=function(){function e(e){this.sv=e}e.prototype.onCopy=function(e){var t=this.sv.internalCopy();if(t.defaultPrevented){return false}var r=this.sv.selectionStoreService.focused;var n=this.sv.selectionStoreService.ranged;var i;if(!n){n=getRange(r,r)}if(n){var o=__spreadArray([],this.sv.columnService.columns,true);var a=slice_1(o,n.x,n.x1+1).map((function(e){return e.prop}));i=this.sv.columnService.copyRangeArray(n,a,this.sv.dataStore)}this.clipboard.doCopy(e,i);return true};e.prototype.renderClipboard=function(){var e=this;return h("revogr-clipboard",{onCopyRegion:function(t){return e.onCopy(t.detail)},ref:function(t){return e.clipboard=t},onPasteRegion:function(t){return e.onPaste(t.detail)}})};e.prototype.onPaste=function(e){var t=this.sv.selectionStoreService.focused;var r=this.sv.selectionStoreService.edited!==null;if(!t||r){return}var n=this.sv.columnService.getTransformedDataToApply(t,e),i=n.changed,o=n.range;this.sv.onRangeApply(i,o)};return e}();var revogrOverlayStyleCss=".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}";var OverlaySelection=function(){function e(e){registerInstance(this,e);this.internalCopy=createEvent(this,"internalCopy",7);this.internalPaste=createEvent(this,"internalPaste",7);this.internalCellEdit=createEvent(this,"internalCellEdit",7);this.internalFocusCell=createEvent(this,"internalFocusCell",7);this.setEdit=createEvent(this,"setEdit",3);this.setRange=createEvent(this,"setRange",7);this.setTempRange=createEvent(this,"setTempRange",7);this.focusCell=createEvent(this,"focusCell",3);this.internalSelectionChanged=createEvent(this,"internalSelectionChanged",7);this.internalRangeDataApply=createEvent(this,"internalRangeDataApply",7);this.keyboardService=null;this.autoFillService=null;this.clipboardService=null}e.prototype.onMouseMove=function(e){if(this.selectionStoreService.focused){this.autoFillService.selectionMouseMove(e)}};e.prototype.onMouseOut=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onMouseUp=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onCellDrag=function(e){var t;(t=this.orderEditor)===null||t===void 0?void 0:t.dragStart(e.detail)};e.prototype.onKeyUp=function(e){var t;(t=this.keyboardService)===null||t===void 0?void 0:t.keyUp(e)};e.prototype.onKeyDown=function(e){var t;if(e.defaultPrevented){return}(t=this.keyboardService)===null||t===void 0?void 0:t.keyDown(e,this.range)};e.prototype.selectionServiceSet=function(e){var t=this;this.selectionStoreService=new SelectionStoreService(e,{changeRange:function(e){var r;return!((r=t.setRange.emit(e))===null||r===void 0?void 0:r.defaultPrevented)},focus:function(e,r){var n;var i={focus:e,end:r};var o=t.internalFocusCell.emit(t.columnService.getSaveData(e.y,e.x)).defaultPrevented;if(o){return false}return!((n=t.focusCell.emit(i))===null||n===void 0?void 0:n.defaultPrevented)}});this.keyboardService=new KeyboardService({selectionStoreService:this.selectionStoreService,selectionStore:e,doEdit:function(e,r){return t.doEdit(e,r)},clearCell:function(){return t.clearCell()},getData:function(){return t.getData()},internalPaste:function(){return t.internalPaste.emit()}});this.createAutoFillService();this.createClipboardService()};e.prototype.createAutoFillService=function(){var e=this;this.autoFillService=new AutoFillService({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:function(t){return e.setTempRange.emit(t)},internalSelectionChanged:function(t){return e.internalSelectionChanged.emit(t)},internalRangeDataApply:function(t){return e.internalRangeDataApply.emit(t)},setRange:function(t){return e.setRange.emit(t)},getData:function(){return e.getData()}})};e.prototype.columnServiceSet=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new ColumnService(this.dataStore,this.colData);this.createAutoFillService();this.createClipboardService()};e.prototype.createClipboardService=function(){var e=this;this.clipboardService=new ClipboardService({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:function(t,r){return e.autoFillService.onRangeApply(t,r)},internalCopy:function(){return e.internalCopy.emit()}})};e.prototype.connectedCallback=function(){this.columnServiceSet();this.selectionServiceSet(this.selectionStore)};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.renderRange=function(e){var t=getElStyle(e,this.dimensionRow.state,this.dimensionCol.state);return[h("div",{class:SELECTION_BORDER_CLASS,style:t})]};e.prototype.renderEditCell=function(){var e=this;var t=this.selectionStore.get("edit");if(this.readonly||!t){return}var r=t.val||this.columnService.getCellData(t.y,t.x);var n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r));var i=getElStyle(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return h("revogr-edit",{onCellEdit:function(t){return e.onCellEdit(t.detail)},onCloseEdit:function(t){return e.closeEdit(t)},editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})};e.prototype.render=function(){var e=this;var t=this.selectionStoreService.ranged;var r=this.selectionStoreService.focused;var n=[];if((t||r)&&this.useClipboard){n.push(this.clipboardService.renderClipboard())}if(t){n.push.apply(n,this.renderRange(t))}var i=this.renderEditCell();if(i){n.push(i)}if(r&&!this.readonly&&!i&&this.range){n.push(this.autoFillService.renderAutofill(t,r))}if(this.canDrag){n.push(h("revogr-order-editor",{ref:function(t){return e.orderEditor=t},dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:function(t){return e.onRowDragStart(t)}}))}return h(Host,{onDblClick:function(){return e.doEdit()},onMouseDown:function(t){return e.onElementMouseDown(t)}},n,h("slot",{name:"data"}))};e.prototype.onElementMouseDown=function(e){if(isEditInput(e.target)){return}var t=this.getData();if(e.defaultPrevented){return}var r=getCurrentCell({x:e.x,y:e.y},t);this.selectionStoreService.focus(r,this.range&&e.shiftKey);if(this.range){this.autoFillService.selectionStart(e,t)}};e.prototype.doEdit=function(e,t){if(e===void 0){e=""}if(t===void 0){t=false}var r;if(this.canEdit()){var n=this.selectionStore.get("focus");var i=this.columnService.getSaveData(n.y,n.x);(r=this.setEdit)===null||r===void 0?void 0:r.emit(Object.assign(Object.assign({},i),{isCancel:t,val:e}))}};e.prototype.closeEdit=function(e){this.doEdit(undefined,true);if(e===null||e===void 0?void 0:e.detail){this.focusNext()}};e.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:codesLetter.ARROW_DOWN}),this.range)];case 1:e=t.sent();if(!e){this.closeEdit()}return[2]}}))}))};e.prototype.clearCell=function(){if(this.selectionStoreService.ranged&&!isRangeSingleCell(this.selectionStoreService.ranged)){var e=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(e,this.selectionStoreService.ranged)}else if(this.canEdit()){var t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},true)}};e.prototype.onCellEdit=function(e,t){if(t===void 0){t=false}var r=this.columnService.getSaveData(e.rgRow,e.rgCol,e.val);this.internalCellEdit.emit(r);if(!t&&!e.preventFocus){this.focusNext()}};e.prototype.onRowDragStart=function(e){var t=e.detail;t.text=this.columnService.getCellData(t.cell.y,t.cell.x)};e.prototype.canEdit=function(){var e;if(this.readonly){return false}var t=this.selectionStoreService.focused;return t&&!((e=this.columnService)===null||e===void 0?void 0:e.isReadOnly(t.y,t.x))};e.prototype.getData=function(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}},enumerable:false,configurable:true});return e}();OverlaySelection.style=revogrOverlayStyleCss;var RowHeaderRender=function(e){return function(t,r){var n=r.rowIndex;return e+n}};var LETTER_BLOCK_SIZE=10;var RevogrRowHeaders=function(){function e(e){registerInstance(this,e);this.scrollViewport=createEvent(this,"scrollViewport",3);this.elementToScroll=createEvent(this,"elementToScroll",3)}e.prototype.render=function(){var e;var t=this;var r;var n=[];var i=new ViewportStore;var o=1;for(var a=0,s=this.dataPorts;a<s.length;a++){var u=s[a];var l=u.dataStore.get("items").length;var c=new DataStore(u.type);c.updateData(u.dataStore.get("source"));var f=new DataStore("colPinStart");var d=Object.assign({cellTemplate:RowHeaderRender(o)},this.rowHeaderColumn);f.updateData([d]);var v=Object.assign(Object.assign({},u),{dataStore:c.store,colData:f.store,viewportCol:i.store,readonly:true,range:false});n.push(h("revogr-data",Object.assign({},v)));o+=l}var p=((r=this.rowHeaderColumn)===null||r===void 0?void 0:r.size)||(o.toString().length+1)*LETTER_BLOCK_SIZE;i.setViewport({realCount:1,virtualSize:0,items:[{size:p,start:0,end:p,itemIndex:0}]});var g="".concat(this.uiid,"-rowHeaders");var m=(e={},e[UUID]=g,e.contentHeight=this.height,e.contentWidth=0,e.style={minWidth:"".concat(p,"px")},e.ref=function(e){return t.elementToScroll.emit(e)},e.onScrollViewport=function(e){return t.scrollViewport.emit(e.detail)},e);var C=Object.assign(Object.assign({},this.headerProp),{colData:typeof this.rowHeaderColumn==="object"?[this.rowHeaderColumn]:[],viewportCol:i.store,canResize:false,parent:g,slot:"header"});return h(Host,{class:"rowHeaders",key:"rowHeaders"},h("revogr-viewport-scroll",Object.assign({},m),h("revogr-header",Object.assign({},C)),n))};return e}();var initialParams={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};var LocalScrollService=function(){function e(e){this.cfg=e;this.preventArtificialScroll={rgRow:null,rgCol:null};this.previousScroll={rgRow:0,rgCol:0};this.params={rgRow:Object.assign({},initialParams),rgCol:Object.assign({},initialParams)}}e.getVirtualContentSize=function(e,t,r){if(r===void 0){r=0}return e+(r?t-r:0)};e.prototype.setParams=function(t,r){var n=e.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:n-t.clientSize,virtualContentSize:n})};e.prototype.setScroll=function(e){var t=this;this.cancelScroll(e.dimension);this.preventArtificialScroll[e.dimension]=window.requestAnimationFrame((function(){var r=t.getParams(e.dimension);e.coordinate=Math.ceil(e.coordinate);t.previousScroll[e.dimension]=t.wrapCoordinate(e.coordinate,r);t.preventArtificialScroll[e.dimension]=null;t.cfg.afterScroll(Object.assign(Object.assign({},e),{coordinate:r.virtualSize?t.convert(e.coordinate,r,false):e.coordinate}))}))};e.prototype.scroll=function(e,t,r,n){if(r===void 0){r=false}this.cancelScroll(t);if(!r&&this.previousScroll[t]===e){this.previousScroll[t]=0;return}var i=this.getParams(t);this.cfg.beforeScroll({dimension:t,coordinate:i.virtualSize?this.convert(e,i):e,delta:n})};e.prototype.getParams=function(e){return this.params[e]};e.prototype.wrapCoordinate=function(e,t){if(e<0){return 0}if(e>t.maxSize){return t.maxSize}return e};e.prototype.cancelScroll=function(e){if(typeof this.preventArtificialScroll[e]==="number"){window.cancelAnimationFrame(this.preventArtificialScroll[e]);this.preventArtificialScroll[e]=null;return true}return false};e.prototype.convert=function(e,t,r){if(r===void 0){r=true}var n=t.clientSize;var i=[0,t.virtualContentSize-n];var o=[0,t.contentSize-t.virtualSize];if(r){return scaleValue(e,i,o)}return scaleValue(e,o,i)};return e}();var revogrScrollStyleCss=".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}";var RevogrScrollVirtual=function(){function e(e){registerInstance(this,e);this.scrollVirtual=createEvent(this,"scrollVirtual",7);this.scrollSize=0;this.isAutoHide=false;this.autoHideTimeout=0;this.dimension="rgRow"}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){if(this.dimension!==e.dimension){return[2]}(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.element.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.element.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};Object.defineProperty(e.prototype,"size",{get:function(){if(this.dimension==="rgRow"){return this.element.clientHeight}return this.element.clientWidth},set:function(e){if(this.dimension==="rgRow"){this.element.style.minWidth="".concat(e,"px");return}this.element.style.minHeight="".concat(e,"px")},enumerable:false,configurable:true});e.prototype.connectedCallback=function(){var e=this;this.scrollService=new LocalScrollService({beforeScroll:function(t){return e.scrollVirtual.emit(t)},afterScroll:function(t){var r=t.dimension==="rgRow"?"scrollTop":"scrollLeft";e.element[r]=t.coordinate}})};e.prototype.disconnectedCallback=function(){clearTimeout(this.autoHideTimeout)};e.prototype.componentWillLoad=function(){this.scrollSize=getScrollbarWidth(document);this.isAutoHide=!this.scrollSize};e.prototype.componentDidRender=function(){var e=this.dimension==="rgRow"?"scrollHeight":"scrollWidth";if(this.element[e]>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)};e.prototype.onScroll=function(e){var t;var r="scrollLeft";if(this.dimension==="rgRow"){r="scrollTop"}if(this.isAutoHide){this.size=20;this.autoHideTimeout=this.autoHide(this.autoHideTimeout)}var n=e.target;(t=this.scrollService)===null||t===void 0?void 0:t.scroll(n[r]||0,this.dimension)};e.prototype.autoHide=function(e){var t=this;clearTimeout(e);return setTimeout((function(){t.size=0}),6e3)};e.prototype.render=function(){var e;var t=this;var r=this.dimension==="rgRow"?"height":"width";return h(Host,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:function(e){return t.onScroll(e)}}),h("div",{style:(e={},e[r]="".concat(this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize")),"px"),e)}))};e.prototype.extContentSize=function(e,t){return LocalScrollService.getVirtualContentSize(t,this.size,e)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrScrollVirtual.style=revogrScrollStyleCss;var revogrTempRangeStyleCss=".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;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;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}";var RevogrFocus=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=lodash.throttle((function(e){return t.doChange(e)}),300)}e.prototype.doChange=function(e){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.componentDidRender=function(){if(this.el){this.onChange(this.el)}};e.prototype.render=function(){var e;var t=this;var r=this.selectionStore.get("tempRange");var n=this.selectionStore.get("tempRangeType");if(!r){return}var i="bottom";var o="right";var a=this.getRange();if(!a){return}if(r.y<a.y){i="top"}if(r.x<a.x){o="left"}var s="".concat(o," ").concat(i);var u=getElStyle(r,this.dimensionRow.state,this.dimensionCol.state);return h(Host,{class:(e={},e[TMP_SELECTION_BG_CLASS]=true,e[n||""]=true,e),style:u},h("div",{class:s,ref:function(e){return t.el=e}}))};e.prototype.getRange=function(){var e=this.selectionStore.get("range");if(e){return e}var t=this.selectionStore.get("focus");if(!t){return null}return Object.assign(Object.assign({},t),{x1:t.x,y1:t.y})};return e}();RevogrFocus.style=revogrTempRangeStyleCss;var FUNC_ERROR_TEXT="Expected a function";function throttle(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new TypeError(FUNC_ERROR_TEXT)}if(isObject_1(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return debounce_1(e,t,{leading:n,maxWait:t,trailing:i})}var throttle_1=throttle;function resizeObserver(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!!("ResizeObserver"in window))return[3,2];return[4,import("./resize-observer-00c48d78.js")];case 1:e=t.sent();window.ResizeObserver=e.ResizeObserver;t.label=2;case 2:return[2]}}))}))}var GridResizeService=function(){function e(e,t){var r=this;this.events=t;this.resizeObserver=null;this.resize=throttle_1((function(e,t){var n;return(n=r.events)===null||n===void 0?void 0:n.resize(e,t)}),10);this.init(e)}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,resizeObserver()];case 1:r.sent();this.resizeObserver=new ResizeObserver(this.resize);(t=this.resizeObserver)===null||t===void 0?void 0:t.observe(e);return[2]}}))}))};e.prototype.destroy=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=null};return e}();var revogrViewportScrollStyleCss=".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%}";var RevogrViewportScroll=function(){function e(e){registerInstance(this,e);this.scrollViewport=createEvent(this,"scrollViewport",3);this.resizeViewport=createEvent(this,"resizeViewport",7);this.scrollchange=createEvent(this,"scrollchange",7);this.scrollThrottling=30;this.contentWidth=0;this.contentHeight=0;this.oldValY=this.contentHeight;this.oldValX=this.contentWidth;this.mouseWheelScroll={rgCol:0,rgRow:0}}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){this.latestScrollUpdate(e.dimension);(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.horizontalScroll.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.verticalScroll.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};e.prototype.connectedCallback=function(){var e=this;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 LocalScrollService({beforeScroll:function(t){return e.scrollViewport.emit(t)},afterScroll:function(t){switch(t.dimension){case"rgCol":e.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":e.verticalScroll.scrollTop=t.coordinate;break}}})};e.prototype.componentDidLoad=function(){var e=this;this.horisontalResize=new GridResizeService(this.horizontalScroll,{resize:function(t){var r,n;var i=((r=t[0])===null||r===void 0?void 0:r.contentRect.height)||0;if(i){i-=e.header.clientHeight+e.footer.clientHeight}var o={rgRow:{size:i,contentSize:e.contentHeight,scroll:e.verticalScroll.scrollTop},rgCol:{size:((n=t[0])===null||n===void 0?void 0:n.contentRect.width)||0,contentSize:e.contentWidth,scroll:e.horizontalScroll.scrollLeft}};each(o,(function(t,r){var n;e.resizeViewport.emit({dimension:r,size:t.size});(n=e.scrollService)===null||n===void 0?void 0:n.scroll(t.scroll,r,true);e.setScrollVisibility(r,t.size,t.contentSize)}))}})};e.prototype.setScrollVisibility=function(e,t,r){var n=t<r;var i;var o;switch(e){case"rgCol":i=this.horizontalScroll;o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll;o=this.verticalMouseWheel;break}if(n){i.classList.add("scroll-".concat(e));i.addEventListener("mousewheel",o)}else{i.classList.remove("scroll-".concat(e));i.removeEventListener("mousewheel",o)}this.scrollchange.emit({type:e,hasScroll:n})};e.prototype.disconnectedCallback=function(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel);this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel);this.horisontalResize.destroy()};e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){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);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{onScroll:function(t){return e.onScroll("rgCol",t)}},h("div",{class:"inner-content-table",style:{width:"".concat(this.contentWidth,"px")}},h("div",{class:"header-wrapper",ref:function(t){return e.header=t}},h("slot",{name:HEADER_SLOT})),h("div",{class:"vertical-inner",ref:function(t){return e.verticalScroll=t},onScroll:function(t){return e.onScroll("rgRow",t)}},h("div",{class:"content-wrapper",style:{height:"".concat(this.contentHeight,"px")}},h("slot",{name:CONTENT_SLOT}))),h("div",{class:"footer-wrapper",ref:function(t){return e.footer=t}},h("slot",{name:FOOTER_SLOT}))))};e.prototype.onScroll=function(e,t){var r;var n=t.target;var i=0;switch(e){case"rgCol":i=n===null||n===void 0?void 0:n.scrollLeft;break;case"rgRow":i=n===null||n===void 0?void 0:n.scrollTop;break}var o=(new Date).getTime()-this.mouseWheelScroll[e];if(o>this.scrollThrottling){(r=this.scrollService)===null||r===void 0?void 0:r.scroll(i,e)}};e.prototype.latestScrollUpdate=function(e){this.mouseWheelScroll[e]=(new Date).getTime()};e.prototype.onVerticalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.verticalScroll.scrollTop+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};e.prototype.onHorizontalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.horizontalScroll.scrollLeft+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};Object.defineProperty(e.prototype,"horizontalScroll",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrViewportScroll.style=revogrViewportScrollStyleCss;export{RevoGridComponent as revo_grid,RevogrData as revogr_data,Edit as revogr_edit,RevogrFocus$1 as revogr_focus,RevogrHeaderComponent as revogr_header,OrderEditor as revogr_order_editor,OverlaySelection as revogr_overlay_selection,RevogrRowHeaders as revogr_row_headers,RevogrScrollVirtual as revogr_scroll_virtual,RevogrFocus as revogr_temp_range,RevogrViewportScroll as revogr_viewport_scroll};
|
|
4
|
+
*/import{g as getRenderingRef,f as forceUpdate,h,r as registerInstance,c as createEvent,H as Host,e as getElement}from"./index-6f753b3c.js";import{i as isObjectLike_1,_ as _baseGetTag,c as createCommonjsModule,a as _root,b as _freeGlobal,d as isObject_1,e as _Symbol,f as isSymbol_1,t as toNumber_1,g as isFilterBtn,F as FILTER_PROP,h as commonjsGlobal,j as debounce_1,k as FilterButton}from"./debounce-e4e6dd45.js";var ThemeCompact=function(){function e(){this.defaultRowSize=32}return e}();var ThemeDefault=function(){function e(){this.defaultRowSize=27}return e}();var ThemeMaterial=function(){function e(){this.defaultRowSize=42}return e}();var DEFAULT_THEME="default";var allowedThemes=[DEFAULT_THEME,"material","compact","darkMaterial","darkCompact"];var ThemeService=function(){function e(e){this.customRowSize=0;this.customRowSize=e.rowSize;this.register("default")}Object.defineProperty(e.prototype,"theme",{get:function(){return this.currentTheme},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"rowSize",{get:function(){return this.customRowSize||this.currentTheme.defaultRowSize},set:function(e){this.customRowSize=e},enumerable:false,configurable:true});e.prototype.register=function(t){var r=e.getTheme(t);switch(r){case"material":case"darkMaterial":this.currentTheme=new ThemeMaterial;break;case"compact":case"darkCompact":this.currentTheme=new ThemeCompact;break;default:this.currentTheme=new ThemeDefault;break}};e.getTheme=function(e){if(allowedThemes.indexOf(e)>-1){return e}return DEFAULT_THEME};return e}();function arrayReduce(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}var _arrayReduce=arrayReduce;function createBaseFor(e){return function(t,r,n){var i=-1,o=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}var _createBaseFor=createBaseFor;var baseFor=_createBaseFor();var _baseFor=baseFor;function baseTimes(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var _baseTimes=baseTimes;var argsTag$2="[object Arguments]";function baseIsArguments(e){return isObjectLike_1(e)&&_baseGetTag(e)==argsTag$2}var _baseIsArguments=baseIsArguments;var objectProto$9=Object.prototype;var hasOwnProperty$7=objectProto$9.hasOwnProperty;var propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable;var isArguments=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(e){return isObjectLike_1(e)&&hasOwnProperty$7.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")};var isArguments_1=isArguments;var isArray$1=Array.isArray;var isArray_1=isArray$1;function stubFalse(){return false}var stubFalse_1=stubFalse;var isBuffer_1=createCommonjsModule((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i?_root.Buffer:undefined;var a=o?o.isBuffer:undefined;var s=a||stubFalse_1;e.exports=s}));var MAX_SAFE_INTEGER$1=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;t=t==null?MAX_SAFE_INTEGER$1:t;return!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&(e>-1&&e%1==0&&e<t)}var _isIndex=isIndex;var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$3="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",weakMapTag$1="[object WeakMap]";var arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$3]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$3]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$1]=false;function baseIsTypedArray(e){return isObjectLike_1(e)&&isLength_1(e.length)&&!!typedArrayTags[_baseGetTag(e)]}var _baseIsTypedArray=baseIsTypedArray;function baseUnary(e){return function(t){return e(t)}}var _baseUnary=baseUnary;var _nodeUtil=createCommonjsModule((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i&&_freeGlobal.process;var a=function(){try{var e=n&&n.require&&n.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}));var nodeIsTypedArray=_nodeUtil&&_nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray;var isTypedArray_1=isTypedArray;var objectProto$8=Object.prototype;var hasOwnProperty$6=objectProto$8.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray_1(e),n=!r&&isArguments_1(e),i=!r&&!n&&isBuffer_1(e),o=!r&&!n&&!i&&isTypedArray_1(e),a=r||n||i||o,s=a?_baseTimes(e.length,String):[],u=s.length;for(var l in e){if((t||hasOwnProperty$6.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||_isIndex(l,u)))){s.push(l)}}return s}var _arrayLikeKeys=arrayLikeKeys;var objectProto$7=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$7;return e===r}var _isPrototype=isPrototype;function overArg(e,t){return function(r){return e(t(r))}}var _overArg=overArg;var nativeKeys=_overArg(Object.keys,Object);var _nativeKeys=nativeKeys;var objectProto$6=Object.prototype;var hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeys(e){if(!_isPrototype(e)){return _nativeKeys(e)}var t=[];for(var r in Object(e)){if(hasOwnProperty$5.call(e,r)&&r!="constructor"){t.push(r)}}return t}var _baseKeys=baseKeys;var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_1(e)){return false}var t=_baseGetTag(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction;function isArrayLike(e){return e!=null&&isLength_1(e.length)&&!isFunction_1(e)}var isArrayLike_1=isArrayLike;function keys(e){return isArrayLike_1(e)?_arrayLikeKeys(e):_baseKeys(e)}var keys_1=keys;function baseForOwn(e,t){return e&&_baseFor(e,t,keys_1)}var _baseForOwn=baseForOwn;function createBaseEach(e,t){return function(r,n){if(r==null){return r}if(!isArrayLike_1(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=Object(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}var _createBaseEach=createBaseEach;var baseEach=_createBaseEach(_baseForOwn);var _baseEach=baseEach;function listCacheClear(){this.__data__=[];this.size=0}var _listCacheClear=listCacheClear;function eq$1(e,t){return e===t||e!==e&&t!==t}var eq_1=eq$1;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq_1(e[r][0],t)){return r}}return-1}var _assocIndexOf=assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=_assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{splice.call(t,r,1)}--this.size;return true}var _listCacheDelete=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=_assocIndexOf(t,e);return r<0?undefined:t[r][1]}var _listCacheGet=listCacheGet;function listCacheHas(e){return _assocIndexOf(this.__data__,e)>-1}var _listCacheHas=listCacheHas;function listCacheSet(e,t){var r=this.__data__,n=_assocIndexOf(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}var _listCacheSet=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=_listCacheClear;ListCache.prototype["delete"]=_listCacheDelete;ListCache.prototype.get=_listCacheGet;ListCache.prototype.has=_listCacheHas;ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache;function stackClear(){this.__data__=new _ListCache;this.size=0}var _stackClear=stackClear;function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}var _stackDelete=stackDelete;function stackGet(e){return this.__data__.get(e)}var _stackGet=stackGet;function stackHas(e){return this.__data__.has(e)}var _stackHas=stackHas;var coreJsData=_root["__core-js_shared__"];var _coreJsData=coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked;var funcProto$1=Function.prototype;var funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto$5=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$4=objectProto$5.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$4).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject_1(e)||_isMasked(e)){return false}var t=isFunction_1(e)?reIsNative:reIsHostCtor;return t.test(_toSource(e))}var _baseIsNative=baseIsNative;function getValue(e,t){return e==null?undefined:e[t]}var _getValue=getValue;function getNative(e,t){var r=_getValue(e,t);return _baseIsNative(r)?r:undefined}var _getNative=getNative;var Map$1=_getNative(_root,"Map");var _Map=Map$1;var nativeCreate=_getNative(Object,"create");var _nativeCreate=nativeCreate;function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{};this.size=0}var _hashClear=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}var _hashDelete=hashDelete;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$4=Object.prototype;var hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashGet(e){var t=this.__data__;if(_nativeCreate){var r=t[e];return r===HASH_UNDEFINED$2?undefined:r}return hasOwnProperty$3.call(t,e)?t[e]:undefined}var _hashGet=hashGet;var objectProto$3=Object.prototype;var hasOwnProperty$2=objectProto$3.hasOwnProperty;function hashHas(e){var t=this.__data__;return _nativeCreate?t[e]!==undefined:hasOwnProperty$2.call(t,e)}var _hashHas=hashHas;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=_nativeCreate&&t===undefined?HASH_UNDEFINED$1:t;return this}var _hashSet=hashSet;function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=_hashClear;Hash.prototype["delete"]=_hashDelete;Hash.prototype.get=_hashGet;Hash.prototype.has=_hashHas;Hash.prototype.set=_hashSet;var _Hash=Hash;function mapCacheClear(){this.size=0;this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}var _mapCacheClear=mapCacheClear;function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable;function getMapData(e,t){var r=e.__data__;return _isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _getMapData=getMapData;function mapCacheDelete(e){var t=_getMapData(this,e)["delete"](e);this.size-=t?1:0;return t}var _mapCacheDelete=mapCacheDelete;function mapCacheGet(e){return _getMapData(this,e).get(e)}var _mapCacheGet=mapCacheGet;function mapCacheHas(e){return _getMapData(this,e).has(e)}var _mapCacheHas=mapCacheHas;function mapCacheSet(e,t){var r=_getMapData(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}var _mapCacheSet=mapCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=_mapCacheClear;MapCache.prototype["delete"]=_mapCacheDelete;MapCache.prototype.get=_mapCacheGet;MapCache.prototype.has=_mapCacheHas;MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache;var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof _ListCache){var n=r.__data__;if(!_Map||n.length<LARGE_ARRAY_SIZE-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new _MapCache(n)}r.set(e,t);this.size=r.size;return this}var _stackSet=stackSet;function Stack(e){var t=this.__data__=new _ListCache(e);this.size=t.size}Stack.prototype.clear=_stackClear;Stack.prototype["delete"]=_stackDelete;Stack.prototype.get=_stackGet;Stack.prototype.has=_stackHas;Stack.prototype.set=_stackSet;var _Stack=Stack;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){this.__data__.set(e,HASH_UNDEFINED);return this}var _setCacheAdd=setCacheAdd;function setCacheHas(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas;function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new _MapCache;while(++t<r){this.add(e[t])}}SetCache.prototype.add=SetCache.prototype.push=_setCacheAdd;SetCache.prototype.has=_setCacheHas;var _SetCache=SetCache;function arraySome(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var _arraySome=arraySome;function cacheHas(e,t){return e.has(t)}var _cacheHas=cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(e,t,r,n,i,o){var a=r&COMPARE_PARTIAL_FLAG$5,s=e.length,u=t.length;if(s!=u&&!(a&&u>s)){return false}var l=o.get(e);var c=o.get(t);if(l&&c){return l==t&&c==e}var f=-1,d=true,v=r&COMPARE_UNORDERED_FLAG$3?new _SetCache:undefined;o.set(e,t);o.set(t,e);while(++f<s){var h=e[f],p=t[f];if(n){var g=a?n(p,h,f,t,e,o):n(h,p,f,e,t,o)}if(g!==undefined){if(g){continue}d=false;break}if(v){if(!_arraySome(t,(function(e,t){if(!_cacheHas(v,t)&&(h===e||i(h,e,r,n,o))){return v.push(t)}}))){d=false;break}}else if(!(h===p||i(h,p,r,n,o))){d=false;break}}o["delete"](e);o["delete"](t);return d}var _equalArrays=equalArrays;var Uint8Array=_root.Uint8Array;var _Uint8Array=Uint8Array;function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}var _mapToArray=mapToArray;function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var _setToArray=setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$2="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]";var symbolProto$1=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:undefined;function equalByTag(e,t,r,n,i,o,a){switch(r){case dataViewTag$1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case arrayBufferTag:if(e.byteLength!=t.byteLength||!o(new _Uint8Array(e),new _Uint8Array(t))){return false}return true;case boolTag:case dateTag:case numberTag:return eq_1(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag$1:return e==t+"";case mapTag$2:var s=_mapToArray;case setTag$2:var u=n&COMPARE_PARTIAL_FLAG$4;s||(s=_setToArray);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=COMPARE_UNORDERED_FLAG$2;a.set(e,t);var c=_equalArrays(s(e),s(t),n,i,o,a);a["delete"](e);return c;case symbolTag:if(symbolValueOf){return symbolValueOf.call(e)==symbolValueOf.call(t)}}return false}var _equalByTag=equalByTag;function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var _arrayPush=arrayPush;function baseGetAllKeys(e,t,r){var n=t(e);return isArray_1(e)?n:_arrayPush(n,r(e))}var _baseGetAllKeys=baseGetAllKeys;function arrayFilter(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}var _arrayFilter=arrayFilter;function stubArray(){return[]}var stubArray_1=stubArray;var objectProto$2=Object.prototype;var propertyIsEnumerable=objectProto$2.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols=!nativeGetSymbols?stubArray_1:function(e){if(e==null){return[]}e=Object(e);return _arrayFilter(nativeGetSymbols(e),(function(t){return propertyIsEnumerable.call(e,t)}))};var _getSymbols=getSymbols;function getAllKeys(e){return _baseGetAllKeys(e,keys_1,_getSymbols)}var _getAllKeys=getAllKeys;var COMPARE_PARTIAL_FLAG$3=1;var objectProto$1=Object.prototype;var hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,n,i,o){var a=r&COMPARE_PARTIAL_FLAG$3,s=_getAllKeys(e),u=s.length,l=_getAllKeys(t),c=l.length;if(u!=c&&!a){return false}var f=u;while(f--){var d=s[f];if(!(a?d in t:hasOwnProperty$1.call(t,d))){return false}}var v=o.get(e);var h=o.get(t);if(v&&h){return v==t&&h==e}var p=true;o.set(e,t);o.set(t,e);var g=a;while(++f<u){d=s[f];var m=e[d],C=t[d];if(n){var y=a?n(C,m,d,t,e,o):n(m,C,d,e,t,o)}if(!(y===undefined?m===C||i(m,C,r,n,o):y)){p=false;break}g||(g=d=="constructor")}if(p&&!g){var _=e.constructor,b=t.constructor;if(_!=b&&("constructor"in e&&"constructor"in t)&&!(typeof _=="function"&&_ instanceof _&&typeof b=="function"&&b instanceof b)){p=false}}o["delete"](e);o["delete"](t);return p}var _equalObjects=equalObjects;var DataView=_getNative(_root,"DataView");var _DataView=DataView;var Promise$1=_getNative(_root,"Promise");var _Promise=Promise$1;var Set=_getNative(_root,"Set");var _Set=Set;var WeakMap=_getNative(_root,"WeakMap");var _WeakMap=WeakMap;var mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]";var dataViewTag="[object DataView]";var dataViewCtorString=_toSource(_DataView),mapCtorString=_toSource(_Map),promiseCtorString=_toSource(_Promise),setCtorString=_toSource(_Set),weakMapCtorString=_toSource(_WeakMap);var getTag=_baseGetTag;if(_DataView&&getTag(new _DataView(new ArrayBuffer(1)))!=dataViewTag||_Map&&getTag(new _Map)!=mapTag$1||_Promise&&getTag(_Promise.resolve())!=promiseTag||_Set&&getTag(new _Set)!=setTag$1||_WeakMap&&getTag(new _WeakMap)!=weakMapTag){getTag=function(e){var t=_baseGetTag(e),r=t==objectTag$1?e.constructor:undefined,n=r?_toSource(r):"";if(n){switch(n){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}}return t}}var _getTag=getTag;var COMPARE_PARTIAL_FLAG$2=1;var argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]";var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,n,i,o){var a=isArray_1(e),s=isArray_1(t),u=a?arrayTag:_getTag(e),l=s?arrayTag:_getTag(t);u=u==argsTag?objectTag:u;l=l==argsTag?objectTag:l;var c=u==objectTag,f=l==objectTag,d=u==l;if(d&&isBuffer_1(e)){if(!isBuffer_1(t)){return false}a=true;c=false}if(d&&!c){o||(o=new _Stack);return a||isTypedArray_1(e)?_equalArrays(e,t,r,n,i,o):_equalByTag(e,t,u,r,n,i,o)}if(!(r&COMPARE_PARTIAL_FLAG$2)){var v=c&&hasOwnProperty.call(e,"__wrapped__"),h=f&&hasOwnProperty.call(t,"__wrapped__");if(v||h){var p=v?e.value():e,g=h?t.value():t;o||(o=new _Stack);return i(p,g,r,n,o)}}if(!d){return false}o||(o=new _Stack);return _equalObjects(e,t,r,n,i,o)}var _baseIsEqualDeep=baseIsEqualDeep;function baseIsEqual(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!isObjectLike_1(e)&&!isObjectLike_1(t)){return e!==e&&t!==t}return _baseIsEqualDeep(e,t,r,n,baseIsEqual,i)}var _baseIsEqual=baseIsEqual;var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null){return!o}e=Object(e);while(i--){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e)){return false}}while(++i<o){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===undefined&&!(u in e)){return false}}else{var f=new _Stack;if(n){var d=n(l,c,u,e,t,f)}if(!(d===undefined?_baseIsEqual(c,l,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,n,f):d)){return false}}}return true}var _baseIsMatch=baseIsMatch;function isStrictComparable(e){return e===e&&!isObject_1(e)}var _isStrictComparable=isStrictComparable;function getMatchData(e){var t=keys_1(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,_isStrictComparable(i)]}return t}var _getMatchData=getMatchData;function matchesStrictComparable(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var _matchesStrictComparable=matchesStrictComparable;function baseMatches(e){var t=_getMatchData(e);if(t.length==1&&t[0][2]){return _matchesStrictComparable(t[0][0],t[0][1])}return function(r){return r===e||_baseIsMatch(r,e,t)}}var _baseMatches=baseMatches;var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray_1(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol_1(e)){return true}return reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}var _isKey=isKey;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(FUNC_ERROR_TEXT$1)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(memoize.Cache||_MapCache);return r}memoize.Cache=_MapCache;var memoize_1=memoize;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize_1(e,(function(e){if(r.size===MAX_MEMOIZE_SIZE){r.clear()}return e}));var r=t.cache;return t}var _memoizeCapped=memoizeCapped;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=_memoizeCapped((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(rePropName,(function(e,r,n,i){t.push(n?i.replace(reEscapeChar,"$1"):r||e)}));return t}));var _stringToPath=stringToPath;function arrayMap(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}var _arrayMap=arrayMap;var INFINITY$2=1/0;var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(isArray_1(e)){return _arrayMap(e,baseToString)+""}if(isSymbol_1(e)){return symbolToString?symbolToString.call(e):""}var t=e+"";return t=="0"&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString;function toString(e){return e==null?"":_baseToString(e)}var toString_1=toString;function castPath(e,t){if(isArray_1(e)){return e}return _isKey(e,t)?[e]:_stringToPath(toString_1(e))}var _castPath=castPath;var INFINITY$1=1/0;function toKey(e){if(typeof e=="string"||isSymbol_1(e)){return e}var t=e+"";return t=="0"&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey;function baseGet(e,t){t=_castPath(t,e);var r=0,n=t.length;while(e!=null&&r<n){e=e[_toKey(t[r++])]}return r&&r==n?e:undefined}var _baseGet=baseGet;function get(e,t,r){var n=e==null?undefined:_baseGet(e,t);return n===undefined?r:n}var get_1=get;function baseHasIn(e,t){return e!=null&&t in Object(e)}var _baseHasIn=baseHasIn;function hasPath(e,t,r){t=_castPath(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=_toKey(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&isLength_1(i)&&_isIndex(a,i)&&(isArray_1(e)||isArguments_1(e))}var _hasPath=hasPath;function hasIn(e,t){return e!=null&&_hasPath(e,t,_baseHasIn)}var hasIn_1=hasIn;var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,t){if(_isKey(e)&&_isStrictComparable(t)){return _matchesStrictComparable(_toKey(e),t)}return function(r){var n=get_1(r,e);return n===undefined&&n===t?hasIn_1(r,e):_baseIsEqual(t,n,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty;function identity(e){return e}var identity_1=identity;function baseProperty(e){return function(t){return t==null?undefined:t[e]}}var _baseProperty=baseProperty;function basePropertyDeep(e){return function(t){return _baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep;function property(e){return _isKey(e)?_baseProperty(_toKey(e)):_basePropertyDeep(e)}var property_1=property;function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return identity_1}if(typeof e=="object"){return isArray_1(e)?_baseMatchesProperty(e[0],e[1]):_baseMatches(e)}return property_1(e)}var _baseIteratee=baseIteratee;function baseReduce(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}var _baseReduce=baseReduce;function reduce(e,t,r){var n=isArray_1(e)?_arrayReduce:_baseReduce,i=arguments.length<3;return n(e,_baseIteratee(t),r,i,_baseEach)}var reduce_1=reduce;function arrayEach(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}var _arrayEach=arrayEach;function castFunction(e){return typeof e=="function"?e:identity_1}var _castFunction=castFunction;function forEach(e,t){var r=isArray_1(e)?_arrayEach:_baseEach;return r(e,_castFunction(t))}var forEach_1=forEach;var each=forEach_1;function createFind(e){return function(t,r,n){var i=Object(t);if(!isArrayLike_1(t)){var o=_baseIteratee(r);t=keys_1(t);r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:undefined}}var _createFind=createFind;function baseFindIndex(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}var _baseFindIndex=baseFindIndex;var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(e){if(!e){return e===0?e:0}e=toNumber_1(e);if(e===INFINITY||e===-INFINITY){var t=e<0?-1:1;return t*MAX_INTEGER}return e===e?e:0}var toFinite_1=toFinite;function toInteger(e){var t=toFinite_1(e),r=t%1;return t===t?r?t-r:t:0}var toInteger_1=toInteger;var nativeMax$2=Math.max;function findIndex(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:toInteger_1(r);if(i<0){i=nativeMax$2(n+i,0)}return _baseFindIndex(e,_baseIteratee(t),i)}var findIndex_1=findIndex;var find=_createFind(findIndex_1);var find_1=find;var appendToMap=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var debounce=function(e,t){var r;return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(isConnected))}}),2e3);var stencilSubscription=function(e){var t=e.on;var r=new Map;if(typeof getRenderingRef==="function"){t("dispose",(function(){r.clear()}));t("get",(function(e){var t=getRenderingRef();if(t){appendToMap(r,e,t)}}));t("set",(function(e){var t=r.get(e);if(t){r.set(e,t.filter(forceUpdate))}cleanupElements(r)}));t("reset",(function(){r.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(r)}))}};var createObservableMap=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var i=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var o=function(){n.dispose.forEach((function(e){return e()}));i()};var a=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,i){var o=r.get(e);if(t(i,o,e)){r.set(e,i);n.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var l=function(e,t){n[e].push(t);return function(){removeFromArray(n[e],t)}};var c=function(t,r){var n=l("set",(function(e,n){if(e===t){r(n)}}));var i=l("reset",(function(){return r(e[t])}));return function(){n();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:a,set:s,on:l,onChange:c,use:f,dispose:o,reset:i}};var removeFromArray=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var createStore=function(e,t){var r=createObservableMap(e,t);stencilSubscription(r);return r};var nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(e,t,r,n){var i=-1,o=nativeMax$1(nativeCeil((t-e)/(r||1)),0),a=Array(o);while(o--){a[n?o:++i]=e;e+=r}return a}var _baseRange=baseRange;function isIterateeCall(e,t,r){if(!isObject_1(r)){return false}var n=typeof t;if(n=="number"?isArrayLike_1(r)&&_isIndex(t,r.length):n=="string"&&t in r){return eq_1(r[t],e)}return false}var _isIterateeCall=isIterateeCall;function createRange(e){return function(t,r,n){if(n&&typeof n!="number"&&_isIterateeCall(t,r,n)){r=n=undefined}t=toFinite_1(t);if(r===undefined){r=t;t=0}else{r=toFinite_1(r)}n=n===undefined?t<r?1:-1:toFinite_1(n);return _baseRange(t,r,n,e)}}var _createRange=createRange;var range=_createRange();var range_1=range;var trimmedPlugin=function(e){return{set:function(t,r){switch(t){case"trimmed":var n=e.get("proxyItems");var i=gatherTrimmedItems(r);var o=n.reduce((function(e,t){if(!i[t]){e.push(t)}return e}),[]);e.set("items",o);break}}}};function gatherTrimmedItems(e){var t={};for(var r in e){for(var n in e[r]){t[n]=t[n]||e[r][n]}}return t}function setStore(e,t){for(var r in t){e.set(r,t[r])}}var proxyPlugin=function(e){return{set:function(t,r){if(!isProxy(t)){return}var n=e.get("items").reduce((function(e,t){e[t]=true;return e}),{});var i=r.reduce((function(e,t){if(n[t]){e.push(t)}return e}),[]);e.set("items",i)}}};function isProxy(e){return e==="proxyItems"}var DataStore=function(){function e(e){var t=this.dataStore=createStore({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:e,trimmed:{}});t.use(proxyPlugin(t));t.use(trimmedPlugin(t))}Object.defineProperty(e.prototype,"store",{get:function(){return this.dataStore},enumerable:false,configurable:true});e.prototype.updateData=function(e,t,r){if(r===void 0){r=false}if(!r){this.store.set("trimmed",{})}this.store.set("items",[]);var n=range_1(0,(e===null||e===void 0?void 0:e.length)||0);setStore(this.store,{source:e,proxyItems:__spreadArray([],n,true)});this.store.set("items",n);if(t){setStore(this.store,{groupingDepth:t.depth,groups:t.groups})}};e.prototype.addTrimmed=function(e){var t=this.store.get("trimmed");t=Object.assign(Object.assign({},t),e);setStore(this.store,{trimmed:t})};e.prototype.setData=function(e){var t=Object.assign({},e);setStore(this.store,t)};e.prototype.refresh=function(){var e=this.store.get("source");this.store.set("source",__spreadArray([],e,true))};return e}();function getPhysical(e,t){var r=e.get("items");return r[t]}function getVisibleSourceItem(e){var t=e.get("source");return e.get("items").map((function(e){return t[e]}))}function getSourceItem(e,t){var r=e.get("items");var n=e.get("source");return n[r[t]]}function setSourceByVirtualIndex(e,t){var r=e.get("items");var n=e.get("source");for(var i in t){var o=r[i];n[o]=t[i]}e.set("source",__spreadArray([],n,true))}function setItems(e,t){e.set("items",t)}function getSourceItemVirtualIndexByProp(e,t){var r=e.get("items");var n=e.get("source");var i=findIndex_1(n,{prop:t});return r.indexOf(i)}var rowTypes=["rowPinStart","rgRow","rowPinEnd"];var columnTypes=["colPinStart","rgCol","colPinEnd"];function isRowType(e){return rowTypes.indexOf(e)>-1}function baseMap(e,t){var r=-1,n=isArrayLike_1(e)?Array(e.length):[];_baseEach(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}var _baseMap=baseMap;function map(e,t){var r=isArray_1(e)?_arrayMap:_baseMap;return r(e,_baseIteratee(t))}var map_1=map;var BasePlugin=function(){function e(e){this.revogrid=e;this.subscriptions={}}e.prototype.addEventListener=function(e,t){this.revogrid.addEventListener(e,t);this.subscriptions[e]=t};e.prototype.removeEventListener=function(e){this.revogrid.removeEventListener(e,this.subscriptions[e]);delete this.subscriptions[e]};e.prototype.emit=function(e,t){var r=new CustomEvent(e,{detail:t,cancelable:true});this.revogrid.dispatchEvent(r);return r};e.prototype.clearSubscriptions=function(){for(var e in this.subscriptions){this.removeEventListener(e)}};e.prototype.destroy=function(){this.clearSubscriptions()};return e}();var GroupingColumnPlugin=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.gatherGroup=function(e,t,r,n){var i;if(n===void 0){n=0}var o=Object.assign(Object.assign({},t),{level:n,ids:[]});for(var a in r.columns){var s=a;var u=e.columns[s];var l=r.columns[s];if(isArray_1(u)&&isArray_1(l)){u.push.apply(u,l);if(l.length){e.columnGrouping[s].push(Object.assign(Object.assign({},o),{ids:map_1(l,"prop")}))}}}for(var a in r.columnGrouping){var s=a;var l=r.columnGrouping[s];(i=e.columnGrouping[s]).push.apply(i,l)}e.maxLevel=Math.max(e.maxLevel,r.maxLevel);e.sort=Object.assign(Object.assign({},e.sort),r.sort);return e};return t}(BasePlugin);function isColGrouping(e){return!!e.children}var ColumnDataProvider=function(){function e(){this.sorting=null;this.dataSources=reduce_1(columnTypes,(function(e,t){e[t]=new DataStore(t);return e}),{})}Object.defineProperty(e.prototype,"order",{get:function(){return reduce_1(this.sorting,(function(e,t,r){e[r]=t.order;return e}),{})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"stores",{get:function(){return this.dataSources},enumerable:false,configurable:true});e.prototype.column=function(e,t){return this.getColumn(e,t||"rgCol")};e.prototype.getColumn=function(e,t){return getSourceItem(this.dataSources[t].store,e)};e.prototype.getRawColumns=function(){return reduce_1(this.dataSources,(function(e,t,r){e[r]=t.store.get("source");return e}),{rgCol:[],colPinStart:[],colPinEnd:[]})};e.prototype.getColumns=function(e){var t=this;if(e===void 0){e="all"}if(e!=="all"){return this.dataSources[e].store.get("source")}return columnTypes.reduce((function(e,r){e.push.apply(e,t.dataSources[r].store.get("source"));return e}),[])};e.prototype.getColumnIndexByProp=function(e,t){return getSourceItemVirtualIndexByProp(this.dataSources[t].store,e)};e.prototype.getColumnByProp=function(e,t){var r=this.dataSources[t].store.get("source");return find_1(r,{prop:e})};e.prototype.refreshByType=function(e){this.dataSources[e].refresh()};e.prototype.setColumns=function(e){var t=this;each(columnTypes,(function(r){t.dataSources[r].updateData(e.columns[r],{depth:e.maxLevel,groups:reduce_1(e.columnGrouping[r],(function(e,t){if(!e[t.level]){e[t.level]=[]}e[t.level].push(t);return e}),{})})}));this.sorting=e.sort;return e};e.prototype.updateColumns=function(t){var r=this;var n=t.reduce((function(t,r){var n=e.getColumnType(r);if(!t[n]){t[n]={}}t[n][r.prop]=r;return t}),{});var i={};each(n,(function(e,t){var n=r.dataSources[t].store.get("source");i[t]=n.reduce((function(t,r,n){var i=e[r.prop];if(i){t[n]=i}return t}),{})}));each(i,(function(e,t){return setSourceByVirtualIndex(r.dataSources[t].store,e)}))};e.prototype.updateColumn=function(t,r){var n;var i=e.getColumnType(t);setSourceByVirtualIndex(this.dataSources[i].store,(n={},n[r]=t,n))};e.prototype.updateColumnSorting=function(e,t,r,n){if(!n){this.clearSorting()}e.order=r;this.sorting[e.prop]=e;this.updateColumn(e,t);return e};e.prototype.clearSorting=function(){var t=this;var r=reduce_1(this.sorting,(function(t,r){var n=e.getColumnType(r);t[n]=true;return t}),{});each(r,(function(e,r){var n=t.dataSources[r].store.get("source");each(n,(function(e){return e.order=undefined}));t.dataSources[r].setData({source:__spreadArray([],n,true)})}));this.sorting={}};e.getSizes=function(e){return reduce_1(e,(function(e,t,r){if(t.size){e[r]=t.size}return e}),{})};e.getColumnByProp=function(t,r){return find_1(t,(function(t){if(isColGrouping(t)){return e.getColumnByProp(t.children,r)}return t.prop===r}))};e.getColumns=function(t,r,n){if(r===void 0){r=0}return reduce_1(t,(function(t,i){if(isColGrouping(i)){return GroupingColumnPlugin.gatherGroup(t,i,e.getColumns(i.children,r+1,n),r)}var o=Object.assign(Object.assign({},i.columnType&&n&&n[i.columnType]),i);if(!o.pin){t.columns.rgCol.push(o)}else{t.columns[o.pin].push(o)}if(o.order){t.sort[o.prop]=o}o.beforeSetup&&o.beforeSetup(o);return t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})};e.getColumnType=function(e){if(e.pin){return e.pin}return"rgCol"};return e}();var DataProvider=function(){function e(e){this.dimensionProvider=e;this.stores=reduce_1(rowTypes,(function(e,t){e[t]=new DataStore(t);return e}),{})}e.prototype.setData=function(e,t,r,n){if(t===void 0){t="rgRow"}if(n===void 0){n=false}this.stores[t].updateData(__spreadArray([],e,true),r,n);this.dimensionProvider.setData(e,t,t!=="rgRow");return e};e.prototype.getModel=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t].store;return getSourceItem(r,e)};e.prototype.setCellData=function(e){var t;var r=e.type,n=e.rowIndex,i=e.prop,o=e.val;var a=this.getModel(n,r);a[i]=o;setSourceByVirtualIndex(this.stores[r].store,(t={},t[n]=a,t))};e.prototype.refresh=function(e){var t=this;if(e===void 0){e="all"}if(isRowType(e)){this.refreshItems(e)}rowTypes.forEach((function(e){return t.refreshItems(e)}))};e.prototype.refreshItems=function(e){if(e===void 0){e="rgRow"}var t=this.stores[e].store.get("items");this.stores[e].setData({items:__spreadArray([],t,true)})};e.prototype.setGrouping=function(e,t){var r=e.depth;if(t===void 0){t="rgRow"}this.stores[t].setData({groupingDepth:r})};e.prototype.setTrimmed=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t];r.addTrimmed(e);if(t==="rgRow"){this.dimensionProvider.setData(getVisibleSourceItem(r.store),t)}};return e}();var MAX_ARRAY_LENGTH$2=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH$2-1;var nativeFloor=Math.floor,nativeMin=Math.min;function baseSortedIndexBy(e,t,r,n){var i=0,o=e==null?0:e.length;if(o===0){return 0}t=r(t);var a=t!==t,s=t===null,u=isSymbol_1(t),l=t===undefined;while(i<o){var c=nativeFloor((i+o)/2),f=r(e[c]),d=f!==undefined,v=f===null,h=f===f,p=isSymbol_1(f);if(a){var g=n||h}else if(l){g=h&&(n||d)}else if(s){g=h&&d&&(n||!v)}else if(u){g=h&&d&&!v&&(n||!p)}else if(v||p){g=false}else{g=n?f<=t:f<t}if(g){i=c+1}else{o=c}}return nativeMin(o,MAX_ARRAY_INDEX)}var _baseSortedIndexBy=baseSortedIndexBy;var MAX_ARRAY_LENGTH$1=4294967295,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH$1>>>1;function baseSortedIndex(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=HALF_MAX_ARRAY_LENGTH){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!isSymbol_1(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return _baseSortedIndexBy(e,t,identity_1,r)}var _baseSortedIndex=baseSortedIndex;function sortedIndex(e,t){return _baseSortedIndex(e,t)}var sortedIndex_1=sortedIndex;function simpleCompare(e,t){return e<t}function mergeSortedArray(e,t,r){if(r===void 0){r=simpleCompare}var n=[];var i=0;var o=0;var a=0;while(a<e.length+t.length){var s=i>=e.length;var u=o>=t.length;if(!s&&(u||r(e[i],t[o]))){n[a]=e[i];i++}else{n[a]=t[o];o++}a++}return n}function getScrollbarWidth(e){var t=e.createElement("div");var r=t.style;r.visibility="hidden";r.overflow="scroll";r.msOverflowStyle="scrollbar";e.body.appendChild(t);var n=e.createElement("div");t.appendChild(n);var i=t.offsetWidth-n.offsetWidth;t.parentNode.removeChild(t);return i}function scaleValue(e,t,r){return(r[1]-r[0])*(e-t[0])/(t[1]-t[0])+r[0]}function timeout(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){setTimeout((function(){return t()}),e)}))];case 1:t.sent();return[2]}}))}))}function calculateDimensionData(e,t){var r=[];var n={};var i={};var o=0;var a=Object.assign(Object.assign({},e.sizes),t);var s=[];each(t,(function(t,r){if(!e.sizes[r]){o+=t-(e.realSize?e.originItemSize:0);s.splice(sortedIndex_1(s,parseInt(r,10)),0,parseInt(r,10))}else{o+=t-e.sizes[r]}}));var u=mergeSortedArray(e.indexes,s);reduce_1(u,(function(t,o,s){var u={itemIndex:o,start:0,end:0};if(t){u.start=(o-t.itemIndex-1)*e.originItemSize+t.end}else{u.start=o*e.originItemSize}u.end=u.start+a[o];r.push(u.start);i[o]=n[s]=u;return u}),undefined);return{indexes:u,positionIndexes:__spreadArray([],r,true),positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:e.realSize+o,sizes:a}}function getItemByPosition(e,t){var r=e.indexes,n=e.positionIndexes,i=e.originItemSize,o=e.positionIndexToItem;var a={itemIndex:0,start:0,end:0};var s=r.length?sortedIndex_1(n,t):0;if(!s){a.itemIndex=Math.floor(t/i);a.start=a.itemIndex*i;a.end=a.start+i;return a}var u=o[s-1];if(u.end>t){return u}var l=t-u.end;var c=Math.floor(l/i);a.itemIndex=u.itemIndex+1+c;a.start=u.end+c*i;a.end=a.start+i;return a}function getItemByIndex(e,t){var r={itemIndex:t,start:0,end:0};if(e.indexToItem[t]){return e.indexToItem[t]}var n=e.indexes.length?sortedIndex_1(e.indexes,t):0;if(!n){r.start=r.itemIndex*e.originItemSize;r.end=r.start+e.originItemSize;return r}var i=e.indexToItem[e.indexes[n-1]];r.start=i.end+(t-i.itemIndex-1)*e.originItemSize;r.end=r.start+e.originItemSize;return r}function initialBase(){return{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function initialState$1(){return Object.assign(Object.assign({},initialBase()),{realSize:0,originItemSize:0,frameOffset:0})}var DimensionStore=function(){function e(){this.store=createStore(initialState$1())}e.prototype.getCurrentState=function(){var e=this;var t=initialState$1();var r=Object.keys(t);return reduce_1(r,(function(t,r){var n=e.store.get(r);t[r]=n;return t}),t)};e.prototype.setRealSize=function(e){var t=0;for(var r=0;r<e;r++){t+=this.store.get("sizes")[r]||this.store.get("originItemSize")}setStore(this.store,{realSize:t})};e.prototype.setStore=function(e){setStore(this.store,e)};e.prototype.drop=function(){setStore(this.store,initialBase())};e.prototype.setDimensionSize=function(e){var t=calculateDimensionData(this.getCurrentState(),e);setStore(this.store,t);return t};return e}();var DimensionProvider=function(){function e(e){this.viewports=e;this.stores=reduce_1(__spreadArray(__spreadArray([],rowTypes,true),columnTypes,true),(function(e,t){e[t]=new DimensionStore;return e}),{})}e.prototype.setDimensionSize=function(e,t){this.stores[e].setDimensionSize(t);this.viewports.stores[e].setViewPortDimension(t)};e.prototype.setRealSize=function(e,t){this.viewports.stores[t].setViewport({realCount:e});this.stores[t].setRealSize(e)};e.prototype.setData=function(e,t,r){if(r===void 0){r=false}this.setRealSize(e.length,t);if(r){this.setNoVirtual(t)}this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})};e.prototype.setNoVirtual=function(e){var t=this.stores[e].getCurrentState();this.viewports.stores[e].setViewport({virtualSize:t.realSize})};e.prototype.drop=function(){for(var e=0,t=columnTypes;e<t.length;e++){var r=t[e];this.stores[r].drop()}};e.prototype.setColumns=function(e,t,r){if(r===void 0){r=false}this.stores[e].setDimensionSize(t);if(r){this.setNoVirtual(e)}this.setViewPortCoordinate({coordinate:this.viewports.stores[e].store.get("lastCoordinate"),type:e})};e.prototype.setViewPortCoordinate=function(e){var t=e.coordinate,r=e.type;var n=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,n)};e.prototype.getViewPortPos=function(e){var t=this.stores[e.dimension].getCurrentState();var r=getItemByIndex(t,e.coordinate);return r.start};e.prototype.setSettings=function(e,t){var r=[];switch(t){case"rgCol":r=columnTypes;break;case"rgRow":r=rowTypes;break}for(var n=0,i=r;n<i.length;n++){var o=i[n];this.stores[o].setStore(e)}};return e}();function getUpdatedItemsByPosition(e,t,r,n,i){var o=getItemByPosition(i,e);var a=getFirstItem(t);var s;if(a){var u=o.itemIndex-(a.itemIndex||0);if(u){var l=recombineByOffset(Math.abs(u),Object.assign(Object.assign({positiveDirection:u>-1},i),t));if(l){s=l}if(s){var c=addMissingItems(o,r,n,s,i);if(c.length){updateMissingAndRange(s.items,c,s)}}}}if(!s){var f=getItems({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:r,sizes:i.sizes});s={items:f,start:0,end:f.length-1}}return s}function updateMissingAndRange(e,t,r){e.splice.apply(e,__spreadArray([r.end+1,0],t,false));if(r.start>=r.end&&!(r.start===r.end&&r.start===0)){r.start+=t.length}r.end+=t.length}function addMissingItems(e,t,r,n,i){var o=getLastItem(n);var a=getItems({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:r-(o.end-e.start),maxCount:t});return a}function getItems(e,t){if(t===void 0){t=0}var r=[];var n=e.startIndex;var i=t;while(i<=e.maxSize&&n<e.maxCount){var o=getItemSize(n,e.sizes,e.origSize);r.push({start:e.start+i,end:e.start+i+o,itemIndex:n,size:o});i+=o;n++}return r}function recombineByOffset(e,t){var r=__spreadArray([],t.items,true);var n=r.length;var i={start:t.start,end:t.end};if(e>n){return null}if(t.positiveDirection){var o=getLastItem(t);var a=i.start;var s=a+e;for(;a<s;a++){var u=o.itemIndex+1;var l=getItemSize(u,t.sizes,t.originItemSize);if(o.end+l>t.realSize){break}var c=a%n;if(!r[c]){throw new Error("incorrect index")}r[c]=o={start:o.end,end:o.end+l,itemIndex:u,size:l};i.start++;i.end=c}}else{var f=getFirstItem(t);var d=i.end;for(var a=0;a<e;a++){var u=f.itemIndex-1;var v=getItemSize(u,t.sizes,t.originItemSize);var h=d-a;h=(h<0?n+h:h)%n;if(!r[h]){throw new Error("incorrect index")}r[h]=f={start:f.start-v,end:f.start,itemIndex:u,size:v};i.start=h;i.end--}}var p={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},p)}function getItemSize(e,t,r){if(r===void 0){r=0}if(t&&t[e]){return t[e]}return r}function isActiveRange(e,t){return t&&e>=t.start&&e<=t.end}function getFirstItem(e){return e.items[e.start]}function getLastItem(e){return e.items[e.end]}function initialState(){return{items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}}var ViewportStore=function(){function e(){var e=this;this.store=createStore(initialState());this.store.onChange("realCount",(function(){return e.clear()}))}e.prototype.setViewPortCoordinate=function(e,t){var r=this.store.get("virtualSize");if(!r){return}var n=t.frameOffset;var i=n*2*t.originItemSize;r+=i;var o=r;if(t.realSize>r){o=t.realSize-r}var a={lastCoordinate:e};var s=e;s-=n*t.originItemSize;s=s<0?0:s<o?s:o;var u=getFirstItem(this.getItems());var l=getLastItem(this.getItems());if(!isActiveRange(s,u)){a=Object.assign(Object.assign({},a),getUpdatedItemsByPosition(s,this.getItems(),this.store.get("realCount"),r,t));setStore(this.store,Object.assign({},a))}else if(u&&this.store.get("virtualSize")+s>(l===null||l===void 0?void 0:l.end)){var c=addMissingItems(u,this.store.get("realCount"),r+s-u.start,this.getItems(),t);if(c.length){var f=__spreadArray([],this.store.get("items"),true);var d={start:this.store.get("start"),end:this.store.get("end")};updateMissingAndRange(f,c,d);a=Object.assign(Object.assign(Object.assign({},a),{items:__spreadArray([],f,true)}),d);setStore(this.store,Object.assign({},a))}}};e.prototype.setViewPortDimension=function(e){var t=this.store.get("items");var r=t.length;if(!r){return}var n=0;var i=0;var o=this.store.get("start");while(i<r){var a=t[o];if(n){a.start+=n;a.end+=n}var s=e[a.itemIndex];if(s){var u=s-a.size;n+=u;a.size=s;a.end=a.start+s}o++;i++;if(o===r){o=0}}setStore(this.store,{items:__spreadArray([],t,true)})};e.prototype.getItems=function(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}};e.prototype.setViewport=function(e){setStore(this.store,e)};e.prototype.clear=function(){this.store.set("items",[])};return e}();var ViewportProvider=function(){function e(){this.stores=reduce_1(__spreadArray(__spreadArray([],rowTypes,true),columnTypes,true),(function(e,t){e[t]=new ViewportStore;return e}),{})}e.prototype.setViewport=function(e,t){this.stores[e].setViewport(t)};return e}();var LETTER_BLOCK_SIZE$1=7;var ColumnAutoSizeMode;(function(e){e["headerClickAutosize"]="headerClickAutoSize";e["autoSizeOnTextOverlap"]="autoSizeOnTextOverlap";e["autoSizeAll"]="autoSizeAll"})(ColumnAutoSizeMode||(ColumnAutoSizeMode={}));var AutoSizeColumn=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.providers=r;i.config=n;i.autoSizeColumns=null;i.dataResolve=null;i.dataReject=null;i.letterBlockSize=(n===null||n===void 0?void 0:n.letterBlockSize)||LETTER_BLOCK_SIZE$1;if(n===null||n===void 0?void 0:n.preciseSize){i.precsizeCalculationArea=i.initiatePresizeElement();t.appendChild(i.precsizeCalculationArea)}var o=function(e){var t=e.detail.source;i.setSource(t)};var a=function(e){var t=e.detail;i.afteredit(t)};var s=function(e){var t=e.detail;i.afterEditAll(t)};var u=function(e){var t=e.detail.columns;i.columnSet(t)};var l=function(e){var t;var r=e.detail;var n=ColumnDataProvider.getColumnType(r);var o=i.getColumnSize(r.index,n);if(o){i.providers.dimensionProvider.setDimensionSize(n,(t={},t[r.index]=o,t))}};i.addEventListener("beforecolumnsset",u);switch(n===null||n===void 0?void 0:n.mode){case ColumnAutoSizeMode.autoSizeOnTextOverlap:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",a);break;case ColumnAutoSizeMode.autoSizeAll:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",s);break;default:i.addEventListener("headerdblClick",l);break}return i}t.prototype.setSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;var i=this;return __generator(this,(function(o){switch(o.label){case 0:t=this.autoSizeColumns;if(this.dataReject){this.dataReject();this.clearPromise()}if(!!t)return[3,4];r=new Promise((function(e,t){i.dataResolve=e;i.dataReject=t}));o.label=1;case 1:o.trys.push([1,3,,4]);return[4,r];case 2:t=o.sent();return[3,4];case 3:n=o.sent();return[2];case 4:each(t,(function(r,n){var o={};each(t[n],(function(t){t.size=o[t.index]=e.reduce((function(e,r){return Math.max(e,i.getLength(r[t.prop]))}),i.getLength(t.name||""))}));i.providers.dimensionProvider.setDimensionSize(n,o)}));return[2]}}))}))};t.prototype.getLength=function(e){var t;var r=15;if(!e){return 0}try{var n=e.toString();if((t=this.config)===null||t===void 0?void 0:t.preciseSize){this.precsizeCalculationArea.innerText=n;return this.precsizeCalculationArea.scrollWidth+r*2}return n.length*this.letterBlockSize+r*2}catch(e){return 0}};t.prototype.afteredit=function(e){var t;var r=this;var n;if(this.isRangeEdit(e)){n=e.data}else{n={0:(t={},t[e.prop]=e.val,t)}}each(this.autoSizeColumns,(function(e,t){var i={};each(e,(function(e){var t=reduce_1(n,(function(t,n){if(typeof n[e.prop]==="undefined"){return t}return Math.max(t||0,r.getLength(n[e.prop]))}),undefined);if(t&&e.size<t){e.size=i[e.index]=t}}));r.providers.dimensionProvider.setDimensionSize(t,i)}))};t.prototype.afterEditAll=function(e){var t=this;var r={};if(this.isRangeEdit(e)){each(e.data,(function(e){return each(e,(function(e,t){return r[t]=true}))}))}else{r[e.prop]=true}each(this.autoSizeColumns,(function(e,n){var i={};each(e,(function(e){if(r[e.prop]){var o=t.getColumnSize(e.index,n);if(o){i[e.index]=o}}}));t.providers.dimensionProvider.setDimensionSize(n,i)}))};t.prototype.getColumnSize=function(e,t){var r=this;var n=this.autoSizeColumns[t][e];if(!n){return 0}return reduce_1(this.providers.dataProvider.stores,(function(e,t){var i=reduce_1(t.store.get("items"),(function(e,i,o){var a=getSourceItem(t.store,o);return Math.max(e||0,r.getLength(a[n.prop]))}),0);return Math.max(e,i)}),n.size||0)};t.prototype.columnSet=function(e){var t;for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];var o=i;var a=e[o];for(var s in a){if(a[s].autoSize||((t=this.config)===null||t===void 0?void 0:t.allColumns)){if(!this.autoSizeColumns){this.autoSizeColumns={}}if(!this.autoSizeColumns[o]){this.autoSizeColumns[o]={}}this.autoSizeColumns[o][s]=Object.assign(Object.assign({},a[s]),{index:parseInt(s,10)})}}}if(this.dataResolve){this.dataResolve(this.autoSizeColumns);this.clearPromise()}};t.prototype.clearPromise=function(){this.dataResolve=null;this.dataReject=null};t.prototype.isRangeEdit=function(e){return!!e.data};t.prototype.initiatePresizeElement=function(){var e={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"};var t=document.createElement("div");for(var r in e){t.style[r]=e[r]}t.classList.add("revo-test-container");return t};t.prototype.destroy=function(){var t;e.prototype.destroy.call(this);(t=this.precsizeCalculationArea)===null||t===void 0?void 0:t.remove()};return t}(BasePlugin);var eq=function(e,t){if(typeof e==="undefined"||e===null&&!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}var r=t.toString().toLocaleLowerCase();if(r.length===0){return true}return e.toLocaleLowerCase()===r};var notEq=function(e,t){return!eq(e,t)};notEq.extra="input";eq.extra="input";var gtThan=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e>r}return false};gtThan.extra="input";var gtThanEq=function(e,t){return eq(e,t)||gtThan(e,t)};gtThanEq.extra="input";var lt=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e<r}else{return false}};lt.extra="input";var lsEq=function(e,t){return eq(e,t)||lt(e,t)};lsEq.extra="input";var set=function(e){return!(e===""||e===null||e===void 0)};var notSet=function(e){return!set(e)};var beginsWith=function(e,t){if(!e){return false}if(!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}if(typeof t!=="string"){t=JSON.stringify(t)}return e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())===0};beginsWith.extra="input";var contains=function(e,t){if(!e){return false}if(t){if(typeof e!=="string"){e=JSON.stringify(e)}return e.toLocaleLowerCase().indexOf(t.toString().toLowerCase())>-1}return true};var notContains=function(e,t){return!contains(e,t)};notContains.extra="input";contains.extra="input";var filterNames={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:"<="};var filterEntities={none:function(){return true},empty:notSet,notEmpty:set,eq:eq,notEq:notEq,begins:beginsWith,contains:contains,notContains:notContains,eqN:eq,neqN:notEq,gt:gtThan,gte:gtThanEq,lt:lt,lte:lsEq};var filterTypes={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};var FILTER_TRIMMED_TYPE="filter";var FilterPlugin=function(e){__extends(t,e);function t(t,r,n){var i=this;var o;i=e.call(this,t)||this;i.revogrid=t;i.filterCollection={};i.multiFilterItems={};i.possibleFilters=Object.assign({},filterTypes);i.possibleFilterNames=Object.assign({},filterNames);i.possibleFilterEntities=Object.assign({},filterEntities);if(n){i.initConfig(n)}var a=function(e){return i.headerclick(e)};var s=function(){return __awaiter(i,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(r){switch(r.label){case 0:e=Object.keys(this.filterCollection);if(e.length>0){e.forEach((function(e,r){if(!t.multiFilterItems[e]){t.multiFilterItems[e]=[{id:r,type:t.filterCollection[e].type,value:t.filterCollection[e].value,relation:"and"}]}}))}return[4,this.runFiltering()];case 1:r.sent();return[2]}}))}))};i.addEventListener("headerclick",a);i.addEventListener("aftersourceset",s);i.revogrid.registerVNode([h("revogr-filter-panel",{uuid:"filter-".concat(r),filterItems:i.multiFilterItems,filterNames:i.possibleFilterNames,filterEntities:i.possibleFilterEntities,filterCaptions:(o=n===null||n===void 0?void 0:n.localization)===null||o===void 0?void 0:o.captions,onFilterChange:function(e){return i.onFilterChange(e.detail)},disableDynamicFiltering:n===null||n===void 0?void 0:n.disableDynamicFiltering,ref:function(e){return i.pop=e}})]);return i}t.prototype.initConfig=function(e){var t=this;if(e.collection){this.filterCollection=Object.assign({},e.collection)}if(e.multiFilterItems){this.multiFilterItems=Object.assign({},e.multiFilterItems)}if(e.customFilters){for(var r in e.customFilters){var n=e.customFilters[r];if(!this.possibleFilters[n.columnFilterType]){this.possibleFilters[n.columnFilterType]=[]}this.possibleFilters[n.columnFilterType].push(r);this.possibleFilterEntities[r]=n.func;this.possibleFilterNames[r]=n.name}}if(e.include){var i={};for(var o in this.possibleFilters){var a=this.possibleFilters[o].filter((function(t){return e.include.indexOf(t)>-1}));if(a.length){i[o]=a}}if(Object.keys(i).length>0){this.possibleFilters=i}}if(e.localization){if(e.localization.filterNames){Object.entries(e.localization.filterNames).forEach((function(e){var r=e[0],n=e[1];if(t.possibleFilterNames[r]!=void 0){t.possibleFilterNames[r]=n}}))}}};t.prototype.headerclick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a;return __generator(this,(function(s){switch(s.label){case 0:r=(t=e.detail.originalEvent)===null||t===void 0?void 0:t.target;if(!isFilterBtn(r)){return[2]}e.preventDefault();return[4,this.pop.getChanges()];case 1:n=s.sent();if(n&&(n===null||n===void 0?void 0:n.prop)===e.detail.prop){this.pop.show();return[2]}i=this.revogrid.getBoundingClientRect();o=r.getBoundingClientRect();a=e.detail.prop;this.pop.filterTypes=this.getColumnFilter(e.detail.filter);this.pop.show(Object.assign(Object.assign({},this.filterCollection[a]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:a}));return[2]}}))}))};t.prototype.getColumnFilter=function(e){var t,r;var n=this;var i="string";if(!e){return t={},t[i]=this.possibleFilters[i],t}if(this.isValidType(e)){i=e}else if(typeof e==="object"&&e.length){return e.reduce((function(e,t){if(n.isValidType(t)){e[t]=n.possibleFilters[t]}return e}),{})}return r={},r[i]=this.possibleFilters[i],r};t.prototype.isValidType=function(e){return!!(typeof e==="string"&&this.possibleFilters[e])};t.prototype.onFilterChange=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.multiFilterItems=e;this.runFiltering();return[2]}))}))};t.prototype.doFiltering=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:i=[];r.forEach((function(e){var t=Object.assign({},e);var r=n[t.prop];if(t[FILTER_PROP]&&!r){delete t[FILTER_PROP];i.push(t)}if(!t[FILTER_PROP]&&r){i.push(t);t[FILTER_PROP]=true}}));o=this.getRowFilter(t,n);a=this.emit("beforefiltertrimmed",{collection:e,itemsToFilter:o,source:t,filterItems:n}),s=a.defaultPrevented,u=a.detail;if(s){return[2]}return[4,this.revogrid.addTrimmed(u.itemsToFilter,FILTER_TRIMMED_TYPE)];case 1:l=c.sent();if(l.defaultPrevented){return[2]}return[4,this.revogrid.updateColumns(i)];case 2:c.sent();this.emit("afterFilterApply");return[2]}}))}))};t.prototype.clearFiltering=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.multiFilterItems={};return[4,this.runFiltering()];case 1:e.sent();return[2]}}))}))};t.prototype.runFiltering=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s,u,l,c,f;return __generator(this,(function(d){switch(d.label){case 0:e={};t=Object.keys(this.multiFilterItems);for(r=0,n=t;r<n.length;r++){i=n[r];if(this.multiFilterItems[i].length>0){o=this.multiFilterItems[i][0];e[i]={filter:filterEntities[o.type],type:o.type,value:o.value}}}this.filterCollection=e;return[4,this.getData()];case 1:a=d.sent(),s=a.source,u=a.columns;l=this.emit("beforefilterapply",{collection:this.filterCollection,source:s,columns:u,filterItems:this.multiFilterItems}),c=l.defaultPrevented,f=l.detail;if(c){return[2]}this.doFiltering(f.collection,f.source,f.columns,f.filterItems);return[2]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.revogrid.getSource()];case 1:e=r.sent();return[4,this.revogrid.getColumns()];case 2:t=r.sent();return[2,{source:e,columns:t}]}}))}))};t.prototype.getRowFilter=function(e,t){var r=Object.keys(t);var n={};var i=0;var o=[];e.forEach((function(e,a){for(var s=0,u=r;s<u.length;s++){var l=u[s];var c=t[l];i=0;o=[];for(var f=0,d=c.entries();f<d.length;f++){var v=d[f],h=v[0],p=v[1];var g=filterEntities[p.type];if(p.relation==="or"){o=[];if(g(e[l],p.value)){continue}i++}else{o.push(!g(e[l],p.value));var m=c[h+1];if(!m||m.relation!=="and"){if(o.indexOf(true)===-1){o=[];continue}i+=o.length;o=[]}}}if(i===c.length)n[a]=true}}));return n};return t}(BasePlugin);var stringTag="[object String]";function isString(e){return typeof e=="string"||!isArray_1(e)&&isObjectLike_1(e)&&_baseGetTag(e)==stringTag}var isString_1=isString;var asciiSize=_baseProperty("length");var _asciiSize=asciiSize;var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f";var rsZWJ$1="\\u200d";var reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode(e){return reHasUnicode.test(e)}var _hasUnicode=hasUnicode;var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f";var rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d";var reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")";var reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeSize(e){var t=reUnicode.lastIndex=0;while(reUnicode.test(e)){++t}return t}var _unicodeSize=unicodeSize;function stringSize(e){return _hasUnicode(e)?_unicodeSize(e):_asciiSize(e)}var _stringSize=stringSize;var mapTag="[object Map]",setTag="[object Set]";function size(e){if(e==null){return 0}if(isArrayLike_1(e)){return isString_1(e)?_stringSize(e):e.length}var t=_getTag(e);if(t==mapTag||t==setTag){return e.size}return _baseKeys(e).length}var size_1=size;var SortingPlugin=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.revogrid=t;r.sorting=null;r.sortingFunc=null;var n=function(e){var t=e.detail;if(r.hasSorting){var n=r.emit("beforesourcesortingapply");if(n.defaultPrevented){return}}var i=r.setData(t.source,t.type);if(i){t.source=i}};var i=function(e){var t=e.detail.order;return __awaiter(r,void 0,void 0,(function(){var e,r,n,i,o;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.revogrid.getColumns()];case 1:e=a.sent();r={};for(n in t){i=ColumnDataProvider.getColumnByProp(e,n);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);return[2]}}))}))};var o=function(e){return __awaiter(r,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){if(e.defaultPrevented){return[2]}if(!e.detail.column.sortable){return[2]}this.headerclick(e.detail.column,e.detail.index,(r=(t=e.detail)===null||t===void 0?void 0:t.originalEvent)===null||r===void 0?void 0:r.shiftKey);return[2]}))}))};r.addEventListener("beforesourceset",n);r.addEventListener("aftercolumnsset",i);r.addEventListener("initialHeaderClick",o);return r}Object.defineProperty(t.prototype,"hasSorting",{get:function(){return!!this.sorting},enumerable:false,configurable:true});t.prototype.headerclick=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l,c;var f,d;return __generator(this,(function(v){switch(v.label){case 0:n=this.getNextOrder(e.order);i=this.emit("beforesorting",{column:e,order:n,additive:r});if(i.defaultPrevented){return[2]}n=i.detail.order;return[4,this.revogrid.updateColumnSorting(i.detail.column,t,n,r)];case 1:o=v.sent();a=this.emit("beforesortingapply",{column:o,order:n,additive:r});if(a.defaultPrevented){return[2]}n=a.detail.order;s=(e===null||e===void 0?void 0:e.cellCompare)||this.defaultCellCompare;u=n=="asc"?s:n=="desc"?this.descCellCompare(s):undefined;if(r&&this.sorting){l={};c={};Object.assign(l,this.sorting);Object.assign(c,this.sortingFunc);if(e.prop in l&&size_1(l)>1&&n===undefined){delete l[e.prop];delete c[e.prop]}else{l[e.prop]=n;c[e.prop]=u}this.sort(l,c)}else{this.sort((f={},f[e.prop]=n,f),(d={},d[e.prop]=u,d))}return[2]}}))}))};t.prototype.setData=function(e,t){if(t==="rgRow"&&this.sortingFunc){return this.sortItems(e,this.sortingFunc)}};t.prototype.sort=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!size_1(e)){this.sorting=null;this.sortingFunc=null;return[2]}this.sorting=e;this.sortingFunc=t;return[4,this.revogrid.getSourceStore()];case 1:r=o.sent();n=r.get("source");i=this.sortIndexByItems(__spreadArray([],r.get("proxyItems"),true),n,this.sortingFunc);setStore(r,{proxyItems:i,source:__spreadArray([],n,true)});this.emit("afterSortingApply");return[2]}}))}))};t.prototype.defaultCellCompare=function(e,t,r){var n,i;var o=(n=t[e])===null||n===void 0?void 0:n.toString().toLowerCase();var a=(i=r[e])===null||i===void 0?void 0:i.toString().toLowerCase();return o==a?0:o>a?1:-1};t.prototype.descCellCompare=function(e){return function(t,r,n){return-1*e(t,r,n)}};t.prototype.sortIndexByItems=function(e,t,r){for(var n in r){if(typeof r[n]==="undefined"){return __spreadArray([],Array(e.length).keys(),true)}}return e.sort((function(e,n){var i=0;for(var o in r){var a=r[o];var s=t[e];var u=t[n];i=a(o,s,u);if(i){break}}return i}))};t.prototype.sortItems=function(e,t){return e.sort((function(e,r){var n=0;for(var i in t){var o=t[i];if(!o){continue}n=o(i,e,r);if(n){break}}return n}))};t.prototype.getNextOrder=function(e){switch(e){case undefined:return"asc";case"asc":return"desc";case"desc":return undefined}};return t}(BasePlugin);function baseClamp(e,t,r){if(e===e){if(r!==undefined){e=e<=r?e:r}if(t!==undefined){e=e>=t?e:t}}return e}var _baseClamp=baseClamp;var MAX_ARRAY_LENGTH=4294967295;function toLength(e){return e?_baseClamp(toInteger_1(e),0,MAX_ARRAY_LENGTH):0}var toLength_1=toLength;function baseFill(e,t,r,n){var i=e.length;r=toInteger_1(r);if(r<0){r=-r>i?0:i+r}n=n===undefined||n>i?i:toInteger_1(n);if(n<0){n+=i}n=r>n?0:toLength_1(n);while(r<n){e[r++]=t}return e}var _baseFill=baseFill;function fill(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&_isIterateeCall(e,t,r)){r=0;n=i}return _baseFill(e,t,r,n)}var fill_1=fill;var MIN_COL_SIZE=30;var DATA_COL="data-rgCol";var DATA_ROW="data-rgRow";var UUID="grid-uuid";var DISABLED_CLASS="disabled";var CELL_CLASS="rgCell";var HEADER_CLASS="rgHeaderCell";var HEADER_SORTABLE_CLASS="sortable";var HEADER_ROW_CLASS="header-rgRow";var HEADER_ACTUAL_ROW_CLASS="actual-rgRow";var DRAG_ICON_CLASS="revo-drag-icon";var DRAGGABLE_CLASS="revo-draggable";var FOCUS_CLASS="focused-cell";var SELECTION_BORDER_CLASS="selection-border-range";var TMP_SELECTION_BG_CLASS="temp-bg-range";var CELL_HANDLER_CLASS="autofill-handle";var EDIT_INPUT_WR="edit-input-wrapper";var DRAGG_TEXT="Draggable item";var GRID_INTERNALS="__rvgr";var GROUP_DEPTH="".concat(GRID_INTERNALS,"-depth");var PSEUDO_GROUP_ITEM="".concat(GRID_INTERNALS,"-name");var PSEUDO_GROUP_ITEM_ID="".concat(GRID_INTERNALS,"-id");var PSEUDO_GROUP_ITEM_VALUE="".concat(GRID_INTERNALS,"-value");var PSEUDO_GROUP_COLUMN="".concat(GRID_INTERNALS,"-column");var GROUP_EXPANDED="".concat(GRID_INTERNALS,"-expanded");var GROUP_EXPAND_BTN="group-expand";var GROUP_EXPAND_EVENT="groupExpandClick";var GROUPING_ROW_TYPE="rgRow";function groupBy(e,t){var r=[];var n={};e.forEach((function(e,i){var o=JSON.stringify(t(e));if(!n[o]){n[o]=new Map;r.push({children:n[o],id:o})}n[o].set(i,e)}));return r}function gatherGrouping(e,t,r){var n=r.prevExpanded,i=r.expandedAll;var o=groupBy(e,t);var a=[];var s={};var u=0;var l=0;var c={};var f={};o.forEach((function(e){var t=getParsedGroup(e.id);if(!t){return}var r=0;var o=!!i;var d=o;var v=[];t.reduce((function(t,f){t.push(f);var h=t.join(",");if(!s[h]){d=i||n&&n[h];a.push(getPseudoGroup(f,h,r,e.id,d));if(r&&!d&&!o){var p=t.slice(0,t.length-1);if(!(n&&p.length&&n[p.join(",")])){c[u]=true}}u++;s[h]=v}r++;l=r;return t}),[]);e.children.forEach((function(e,t){if(!d&&!o){c[u]=true}a.push(e);f[t]=u;v.push(u);u++}))}));return{sourceWithGroups:a,depth:l,trimmed:c,oldNewIndexMap:f,childrenByGroup:s}}function getPseudoGroup(e,t,r,n,i){var o;if(i===void 0){i=false}return o={},o[PSEUDO_GROUP_ITEM]=e,o[GROUP_DEPTH]=r,o[PSEUDO_GROUP_ITEM_ID]=n,o[PSEUDO_GROUP_ITEM_VALUE]=t,o[GROUP_EXPANDED]=i,o}function getGroupingName(e){return e&&e[PSEUDO_GROUP_ITEM]}function isGrouping(e){return e&&typeof e[PSEUDO_GROUP_ITEM]!=="undefined"}function isGroupingColumn(e){return e&&typeof e[PSEUDO_GROUP_COLUMN]!=="undefined"}function isArray(e){return typeof e.push!=="undefined"}function measureEqualDepth(e,t){var r=e.length;var n=0;for(;n<r;n++){if(e[n]!==t[n]){return n}}return n}function getParsedGroup(e){var t=JSON.parse(e);if(!isArray(t)){return null}return t}function isSameGroup(e,t,r){var n=getParsedGroup(r[PSEUDO_GROUP_ITEM_ID]);if(!n){return false}var i=measureEqualDepth(e,n);return t[GROUP_DEPTH]<i}var INITIAL={mime:"text/csv",fileKind:"csv",bom:true,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""};var CARRIAGE_RETURN=String.fromCharCode(13);var LINE_FEED=String.fromCharCode(10);var DOUBLE_QT=String.fromCharCode(34);var NO_BREAK_SPACE=String.fromCharCode(65279);var escapeRegex=new RegExp('"',"g");var ExportCsv=function(){function e(e){if(e===void 0){e={}}this.options=Object.assign(Object.assign({},INITIAL),e)}e.prototype.doExport=function(e){var t=this;var r=e.data,n=e.headers,i=e.props;var o=this.options.bom?NO_BREAK_SPACE:"";if((n===null||n===void 0?void 0:n.length)>0){n.forEach((function(e){if(!e.length){return}o+=t.prepareHeader(e,t.options.columnDelimiter);o+=t.options.rowDelimiter}))}r.forEach((function(e,r){if(r>0){o+=t.options.rowDelimiter}if(isGrouping(e)){o+=t.parseCell(getGroupingName(e),t.options.columnDelimiter);return}o+=i.map((function(r){return t.parseCell(e[r],t.options.columnDelimiter)})).join(t.options.columnDelimiter)}));return o};e.prototype.prepareHeader=function(e,t){var r=this;var n="";var i=e.map((function(e){return r.parseCell(e,t,true)}));n+=i.join(t);return n};e.prototype.parseCell=function(e,t,r){if(r===void 0){r=false}var n=e;if(typeof e!=="string"){n=JSON.stringify(e)}var i=[CARRIAGE_RETURN,DOUBLE_QT,LINE_FEED,t];if(typeof n==="undefined"){return""}if(n!==""&&(r||i.some((function(e){return n.indexOf(e)>=0})))){return'"'.concat(n.replace(escapeRegex,'""'),'"')}return n};return e}();var ExportTypes;(function(e){e["csv"]="csv"})(ExportTypes||(ExportTypes={}));var ExportFilePlugin=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.exportString=function(e,t){if(e===void 0){e={}}if(t===void 0){t=ExportTypes.csv}return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,this.formatter(t,e).doExport(r)]}}))}))};t.prototype.exportBlob=function(e,t){if(e===void 0){e={}}if(t===void 0){t=ExportTypes.csv}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getBlob(this.formatter(t,e))];case 1:return[2,r.sent()]}}))}))};t.prototype.exportFile=function(e,t){if(e===void 0){e={}}if(t===void 0){t=ExportTypes.csv}return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,l,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.formatter(t,e);return[4,this.getBlob(r)];case 1:n=f.sent();i=window.URL||window.webkitURL;o=document.createElement("a");a=r.options,s=a.filename,u=a.fileKind;l="".concat(s,".").concat(u);c=i.createObjectURL(n);o.style.display="none";o.setAttribute("href",c);o.setAttribute("download",l);this.revogrid.appendChild(o);o.dispatchEvent(new MouseEvent("click"));this.revogrid.removeChild(o);return[4,timeout(120)];case 2:f.sent();i.revokeObjectURL(c);return[2]}}))}))};t.prototype.getBlob=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t="".concat(e.options.mime,";charset=").concat(e.options.encoding);if(!(typeof Blob!=="undefined"))return[3,2];return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,new Blob([e.doExport(r)],{type:t})];case 2:return[2,null]}}))}))};t.prototype.beforeexport=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getData()];case 1:e=r.sent();t=this.emit("beforeexport",{data:e});if(t.defaultPrevented){return[2,null]}return[2,t.detail.data]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a;var s;var u=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getSource()];case 1:e=l.sent();t=[];r=[];columnTypes.forEach((function(e,n){r.push(u.getColPerSource(e).then((function(e){return t[n]=e})))}));return[4,Promise.all(r)];case 2:l.sent();n={headers:[],props:[]};for(i=0,o=t;i<o.length;i++){a=o[i];a.headers.forEach((function(e,t){var r;if(!n.headers[t]){n.headers[t]=[]}(r=n.headers[t]).push.apply(r,e)}));(s=n.props).push.apply(s,a.props)}return[2,Object.assign({data:e},n)]}}))}))};t.prototype.getColPerSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.revogrid.getColumnStore(e)];case 1:t=c.sent();r=t.get("source");n=t.get("items");i=t.get("groupingDepth");o=t.get("groups");a=[];s=[];u=n.reduce((function(e,t,n){var i=r[t].prop;a.push(r[t].name||"");s.push(i);e[i]=n;return e}),{});l=this.getGroupHeaders(i,o,n,u);l.push(a);return[2,{headers:l,props:s}]}}))}))};t.prototype.getGroupHeaders=function(e,t,r,n){var i=this;var o=[];var a=fill_1(new Array(r.length),"");var s=function(e){var r=__spreadArray([],a,true);o.push(r);if(!t[e]){return"continue"}var s=t[e];s.forEach((function(e){var t=i.findGroupStartIndex(e.ids,n);if(typeof t==="number"){r[t]=e.name}}))};for(var u=0;u<e;u++){s(u)}return o};t.prototype.findGroupStartIndex=function(e,t){var r;e.forEach((function(e){var n=t[e];if(typeof n==="number"){if(typeof r!=="number"||r>n){r=n}}}));return r};t.prototype.getSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e=[];t=[];rowTypes.forEach((function(n){var i=[];e.push(i);var o=r.revogrid.getVisibleSource(n).then((function(e){return i.push.apply(i,e)}));t.push(o)}));return[4,Promise.all(t)];case 1:n.sent();return[2,e.reduce((function(e,t){e.push.apply(e,t);return e}),[])]}}))}))};t.prototype.formatter=function(e,t){if(t===void 0){t={}}switch(e){case ExportTypes.csv:return new ExportCsv(t);default:throw new Error("Unknown format")}};return t}(BasePlugin);function doCollapse(e,t){var r=t[e];var n=r[PSEUDO_GROUP_ITEM_ID];var i={};var o=e+1;var a=t.length;while(o<a){var s=t[o];if(isGrouping(s)){if(n!==s[PSEUDO_GROUP_ITEM_ID]){break}else{s[GROUP_EXPANDED]=false}}i[o++]=true}r[GROUP_EXPANDED]=false;return{trimmed:i}}function doExpand(e,t,r){var n=r[e];var i=t[n];var o=getParsedGroup(i[PSEUDO_GROUP_ITEM_ID]);var a={};if(!o){return{trimmed:a}}var s=[];i[GROUP_EXPANDED]=true;var u=n+1;var l=t.length;var c=0;while(u<l){var f=t[u];var d=isGrouping(f);if(d){if(!isSameGroup(o,i,f)){break}else if(!c){c=f[GROUP_DEPTH]}}if(!c||d&&c===f[GROUP_DEPTH]){a[u]=false;s.push(u)}u++}var v={trimmed:a};if(s.length){var h=__spreadArray([],r,true);h.splice.apply(h,__spreadArray([e+1,0],s,false));v.items=h}return v}var TRIMMED_GROUPING="grouping";function processDoubleConversionTrimmed(e,t,r){var n={};for(var i in e){if(i===TRIMMED_GROUPING){continue}var o=e[i];var a={};for(var s in o){var u=t[s];if(r){u=r[u]}if(o[s]){a[u]=true;if(u!==parseInt(s,10)){n[i]=a}}}}return n}var GroupingRowPlugin=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;return n}Object.defineProperty(t.prototype,"hasProps",{get:function(){var e,t,r;return((e=this.options)===null||e===void 0?void 0:e.props)&&((r=(t=this.options)===null||t===void 0?void 0:t.props)===null||r===void 0?void 0:r.length)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"store",{get:function(){return this.providers.dataProvider.stores[GROUPING_ROW_TYPE].store},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rowItems",{get:function(){return this.store.get("items")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"trimmed",{get:function(){return this.store.get("trimmed")},enumerable:false,configurable:true});t.prototype.onFocus=function(e){if(isGrouping(e.detail.model)){e.preventDefault()}};t.prototype.onExpand=function(e){var t=e.virtualIndex;var r=this.getSource().source;var n=this.trimmed[TRIMMED_GROUPING];var i=getPhysical(this.store,t);var o=r[i];var a=o[GROUP_EXPANDED];if(!a){var s=doExpand(t,r,this.rowItems),u=s.trimmed,l=s.items;n=Object.assign(Object.assign({},n),u);if(l){setItems(this.store,l)}}else{var u=doCollapse(i,r).trimmed;n=Object.assign(Object.assign({},n),u);this.revogrid.clearFocus()}this.store.set("source",r);this.revogrid.addTrimmed(n,TRIMMED_GROUPING)};t.prototype.getSource=function(e){if(e===void 0){e=false}var t=this.store.get("source");var r=this.store.get("proxyItems");var n=0;return r.reduce((function(r,i){var o=t[i];if(!e){r.source.push(o);return r}if(!isGrouping(o)){r.source.push(o);r.oldNewIndexes[i]=n;n++}else{if(o[GROUP_EXPANDED]){r.prevExpanded[o[PSEUDO_GROUP_ITEM_VALUE]]=true}}return r}),{source:[],prevExpanded:{},oldNewIndexes:{}})};t.prototype.setColumnGrouping=function(e){if(e===null||e===void 0?void 0:e.length){e[0][PSEUDO_GROUP_COLUMN]=true;return true}return false};t.prototype.setColumns=function(e){var t=e.columns;for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(t[i])){break}}};t.prototype.onDrag=function(e){var t=e.detail,r=t.from,n=t.to;var i=n-r>=0;var o=this.getSource().source;var a=this.rowItems;var s=i?r:n;var u=i?n:r;for(;s<u;s++){var l=o[a[s]];var c=isGrouping(l);if(c){e.preventDefault();return}}};t.prototype.beforeTrimmedApply=function(e,t){if(t===FILTER_TRIMMED_TYPE){var r=this.store.get("source");for(var n in e){if(e[n]&&isGrouping(r[n])){e[n]=false}}}};t.prototype.subscribe=function(){var e=this;this.addEventListener("beforesourceset",(function(t){var r=t.detail;return e.onDataSet(r)}));this.addEventListener("beforecolumnsset",(function(t){var r=t.detail;return e.setColumns(r)}));this.addEventListener("beforetrimmed",(function(t){var r=t.detail,n=r.trimmed,i=r.trimmedType;return e.beforeTrimmedApply(n,i)}));this.addEventListener("afterSortingApply",(function(){return e.doSourceUpdate()}));this.addEventListener("beforecellfocus",(function(t){return e.onFocus(t)}));this.addEventListener("roworderchanged",(function(t){return e.onDrag(t)}));this.addEventListener(GROUP_EXPAND_EVENT,(function(t){var r=t.detail;return e.onExpand(r)}))};t.prototype.doSourceUpdate=function(e){var t=this;if(!this.hasProps){return}var r=this.getSource(true),n=r.source,i=r.prevExpanded,o=r.oldNewIndexes;var a=gatherGrouping(n,(function(e){var r;return(r=t.options)===null||r===void 0?void 0:r.props.map((function(t){return e[t]}))}),Object.assign({prevExpanded:i},e)),s=a.sourceWithGroups,u=a.depth,l=a.trimmed,c=a.oldNewIndexMap,f=a.childrenByGroup;this.providers.dataProvider.setData(s,GROUPING_ROW_TYPE,{depth:u},true);this.updateTrimmed(l,f,o,c)};t.prototype.onDataSet=function(e){var t=this;if(!this.hasProps||!(e===null||e===void 0?void 0:e.source)||!e.source.length){return}var r=e.source.filter((function(e){return!isGrouping(e)}));var n=this.revogrid.grouping||{};var i=gatherGrouping(r,(function(e){var r;return(r=t.options)===null||r===void 0?void 0:r.props.map((function(t){return e[t]}))}),Object.assign({},n||{})),o=i.sourceWithGroups,a=i.depth,s=i.trimmed,u=i.oldNewIndexMap,l=i.childrenByGroup;e.source=o;this.providers.dataProvider.setGrouping({depth:a});this.updateTrimmed(s,l,u)};t.prototype.setGrouping=function(e){this.clearSubscriptions();this.options=e;if(!e.props||!Object.keys(e.props).length){this.clearGrouping();return}var t=this.getSource().source;if(t.length){this.doSourceUpdate(Object.assign({},e))}for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(this.providers.columnProvider.getColumns(i))){this.providers.columnProvider.refreshByType(i);break}}this.subscribe()};t.prototype.clearGrouping=function(){var e=this;columnTypes.forEach((function(t){var r=e.providers.columnProvider.getColumns(t);var n=false;r.forEach((function(e){if(isGroupingColumn(e)){delete e[PSEUDO_GROUP_COLUMN];n=true}}));if(n){e.providers.columnProvider.refreshByType(t)}}));var t=this.getSource(true),r=t.source,n=t.oldNewIndexes;this.providers.dataProvider.setData(r,GROUPING_ROW_TYPE,undefined,true);this.updateTrimmed(undefined,undefined,n)};t.prototype.updateTrimmed=function(e,t,r,n){if(e===void 0){e={}}if(t===void 0){t={}}var i=processDoubleConversionTrimmed(this.trimmed,r,n);for(var o in i){this.revogrid.addTrimmed(i[o],o)}this.revogrid.addTrimmed(Object.assign({},e),TRIMMED_GROUPING)};return t}(BasePlugin);var OrdererService=function(){function e(){this.parentY=0}e.prototype.start=function(e,t){var r=t.pos,n=t.text,i=t.event;var o;var a=e.getBoundingClientRect().top;this.parentY=a;if(this.text){this.text.innerText=n}this.move(r);this.moveTip({x:i.x,y:i.y});(o=this.el)===null||o===void 0?void 0:o.classList.remove("hidden")};e.prototype.end=function(){var e;(e=this.el)===null||e===void 0?void 0:e.classList.add("hidden")};e.prototype.move=function(e){this.moveElement(e.end-this.parentY)};e.prototype.moveTip=function(e){var t=e.x,r=e.y;if(!this.draggable){return}this.draggable.style.left="".concat(t,"px");this.draggable.style.top="".concat(r,"px")};e.prototype.moveElement=function(e){if(!this.rgRow){return}this.rgRow.style.transform="translateY(".concat(e,"px)")};return e}();var OrderRenderer=function(e){var t=e.ref;var r=new OrdererService;t(r);return h("div",{class:"draggable-wrapper hidden",ref:function(e){return r.el=e}},h("div",{class:"draggable",ref:function(e){return r.draggable=e}},h("span",{class:"revo-alt-icon"}),h("span",{ref:function(e){return r.text=e}})),h("div",{class:"drag-position",ref:function(e){return r.rgRow=e}}))};var RevoViewPort=function(e,t){var r=e.viewports,n=e.dimensions,i=e.orderRef,o=e.nakedClick,a=e.registerElement,s=e.onScroll;var u=function(e,t){if(t===e.target){o(e)}};var l;return[h("div",{class:"main-viewport",ref:function(e){return l=e},onClick:function(e){return u(e,l)}},h("div",{class:"viewports"},t,h("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:r["rgRow"].store,dimensionStore:n["rgRow"].store,ref:function(e){return a(e,"rowScroll")},onScrollVirtual:function(e){return s(e.detail)}}),h(OrderRenderer,{ref:i}))),h("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:r["rgCol"].store,dimensionStore:n["rgCol"].store,ref:function(e){return a(e,"colScroll")},onScrollVirtual:function(e){return s(e.detail)}})]};function isHiddenStore(e){return e===EMPTY_INDEX}function nextCell(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=e[a];return r}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=e[a]-t[a];return r}}return null}function cropCellToMax(e,t){var r=Object.assign({},e);var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=0}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=t[a]-1}}return r}function getRange(e,t){return e&&t?{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x1:Math.max(e.x,t.x),y1:Math.max(e.y,t.y)}:null}function isRangeSingleCell(e){return e.x===e.x1&&e.y===e.y1}function defaultState(){return{range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}}var SelectionStore=function(){function e(){var e=this;this.unsubscribe=[];this.store=createStore(defaultState());this.store.on("set",(function(t,r){if(t==="tempRange"&&!r){e.store.set("tempRangeType",null)}}))}e.prototype.onChange=function(e,t){this.unsubscribe.push(this.store.onChange(e,t))};e.prototype.clearFocus=function(){setStore(this.store,{focus:null,range:null,edit:null,tempRange:null})};e.prototype.setFocus=function(e,t){setStore(this.store,{focus:e,range:getRange(e,t),edit:null,tempRange:null})};e.prototype.setTempArea=function(e){setStore(this.store,{tempRange:e===null||e===void 0?void 0:e.area,tempRangeType:e===null||e===void 0?void 0:e.type,edit:null})};e.prototype.clearTemp=function(){setStore(this.store,{tempRange:null})};e.prototype.setRangeArea=function(e){setStore(this.store,{range:e,edit:null,tempRange:null})};e.prototype.setRange=function(e,t){this.setRangeArea(getRange(e,t))};e.prototype.setLastCell=function(e){setStore(this.store,{lastCell:e})};e.prototype.setEdit=function(e){var t=this.store.get("focus");if(t&&typeof e==="string"){setStore(this.store,{edit:{x:t.x,y:t.y,val:e}});return}setStore(this.store,{edit:null})};e.prototype.dispose=function(){this.unsubscribe.forEach((function(e){return e()}));this.store.dispose()};return e}();var EMPTY_INDEX=-1;var SelectionStoreConnector=function(){function e(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.sections=[]}Object.defineProperty(e.prototype,"focusedStore",{get:function(){var e;for(var t in this.stores){for(var r in this.stores[t]){var n=(e=this.stores[t][r])===null||e===void 0?void 0:e.store.get("focus");if(n){return{entity:this.stores[t][r],cell:n,position:{x:parseInt(r,10),y:parseInt(t,10)}}}}}return null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"edit",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedRange",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("range")},enumerable:false,configurable:true});e.prototype.registerSection=function(e){if(!e){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(e)===-1){this.sections.push(e)}};e.prototype.beforeUpdate=function(){if(this.dirty){for(var e in this.stores){for(var t in this.stores[e]){this.stores[e][t].dispose()}}this.dirty=false}};e.prototype.registerColumn=function(e){if(isHiddenStore(e)){return new SelectionStore}if(this.columnStores[e]){return this.columnStores[e]}this.columnStores[e]=new SelectionStore;return this.columnStores[e]};e.prototype.registerRow=function(e){if(isHiddenStore(e)){return new SelectionStore}if(this.rowStores[e]){return this.rowStores[e]}this.rowStores[e]=new SelectionStore;return this.rowStores[e]};e.prototype.register=function(e){var t=this;var r=e.x,n=e.y;var i,o;if(isHiddenStore(r)||isHiddenStore(n)){return new SelectionStore}if(!this.stores[n]){this.stores[n]={}}if(this.stores[n][r]){return this.stores[n][r]}this.stores[n][r]=new SelectionStore;(i=this.stores[n][r])===null||i===void 0?void 0:i.onChange("range",(function(e){t.columnStores[r].setRangeArea(e);t.rowStores[n].setRangeArea(e)}));(o=this.stores[n][r])===null||o===void 0?void 0:o.store.on("dispose",(function(){var e,i;(e=t.columnStores[r])===null||e===void 0?void 0:e.dispose();(i=t.rowStores[n])===null||i===void 0?void 0:i.dispose();delete t.rowStores[n];delete t.columnStores[r];if(t.stores[n]){delete t.stores[n][r]}if(!Object.keys(t.stores[n]||{}).length){delete t.stores[n]}}));return this.stores[n][r]};e.prototype.setEditByCell=function(e,t){var r=e.x,n=e.y;var i=this.stores[n][r];this.focus(i,{focus:t,end:t});this.setEdit("")};e.prototype.focus=function(e,t){var r=t.focus,n=t.end;var i;for(var o in this.stores){for(var a in this.stores[o]){var s=this.stores[o][a];if(s!==e){s.clearFocus()}else{i={x:parseInt(a,10),y:parseInt(o,10)}}}}if(!i){return}var u=e.store.get("lastCell");var l=nextCell(r,u);var c;if(l){for(var f in l){var d=f;var v=void 0;switch(d){case"x":v=this.getXStores(i.y);break;case"y":v=this.getYStores(i.x);break}if(l[d]>=0){c=v[++i[d]]}else{c=v[--i[d]];var h=c===null||c===void 0?void 0:c.store.get("lastCell");if(h){l[d]=h[d]+l[d]}}}}if(c){var p=Object.assign(Object.assign({},r),l);this.focus(c,{focus:p,end:p});return}r=cropCellToMax(r,u);n=cropCellToMax(r,u);e.setFocus(r,n)};e.prototype.clearAll=function(){var e;for(var t in this.stores){for(var r in this.stores[t]){(e=this.stores[t][r])===null||e===void 0?void 0:e.clearFocus()}}};e.prototype.setEdit=function(e){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(e)};e.prototype.getXStores=function(e){return this.stores[e]};e.prototype.getYStores=function(e){var t={};for(var r in this.stores){t[r]=this.stores[r][e]}return t};return e}();var HEADER_SLOT="header";var FOOTER_SLOT="footer";var CONTENT_SLOT="content";var DATA_SLOT="data";function getLastCell(e,t){return{x:e.viewports[e.colType].store.get("realCount"),y:e.viewports[t].store.get("realCount")}}var lodash=createCommonjsModule((function(e,t){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var l=500;var c="__lodash_placeholder__";var f=1,d=2,v=4;var h=1,p=2;var g=1,m=2,C=4,y=8,_=16,b=32,w=64,L=128,S=256,x=512;var E=30,R="...";var A=800,T=16;var P=1,I=2,O=3;var k=1/0,D=9007199254740991,z=17976931348623157e292,F=0/0;var M=4294967295,j=M-1,U=M>>>1;var N=[["ary",L],["bind",g],["bindKey",m],["curry",y],["curryRight",_],["flip",x],["partial",b],["partialRight",w],["rearg",S]];var H="[object Arguments]",G="[object Array]",B="[object AsyncFunction]",$="[object Boolean]",V="[object Date]",W="[object DOMException]",K="[object Error]",Z="[object Function]",q="[object GeneratorFunction]",X="[object Map]",Y="[object Number]",J="[object Null]",Q="[object Object]",ee="[object Promise]",te="[object Proxy]",re="[object RegExp]",ne="[object Set]",ie="[object String]",oe="[object Symbol]",ae="[object Undefined]",se="[object WeakMap]",ue="[object WeakSet]";var le="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",de="[object Float64Array]",ve="[object Int8Array]",he="[object Int16Array]",pe="[object Int32Array]",ge="[object Uint8Array]",me="[object Uint8ClampedArray]",Ce="[object Uint16Array]",ye="[object Uint32Array]";var _e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var Le=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,xe=RegExp(Le.source),Ee=RegExp(Se.source);var Re=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g;var Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var ke=/[\\^$.*+?()[\]{}|]/g,De=RegExp(ke.source);var ze=/^\s+/;var Fe=/\s/;var Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /;var Ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var He=/[()=,{}\[\]\/\s]/;var Ge=/\\(\\)?/g;var Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var $e=/\w*$/;var Ve=/^[-+]0x[0-9a-f]+$/i;var We=/^0b[01]+$/i;var Ke=/^\[object .+?Constructor\]$/;var Ze=/^0o[0-7]+$/i;var qe=/^(?:0|[1-9]\d*)$/;var Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Ye=/($^)/;var Je=/['\n\r\u2028\u2029\\]/g;var Qe="\\ud800-\\udfff",et="\\u0300-\\u036f",tt="\\ufe20-\\ufe2f",rt="\\u20d0-\\u20ff",nt=et+tt+rt,it="\\u2700-\\u27bf",ot="a-z\\xdf-\\xf6\\xf8-\\xff",at="\\xac\\xb1\\xd7\\xf7",st="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",lt=" \\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",ct="A-Z\\xc0-\\xd6\\xd8-\\xde",ft="\\ufe0e\\ufe0f",dt=at+st+ut+lt;var vt="['’]",ht="["+Qe+"]",pt="["+dt+"]",gt="["+nt+"]",mt="\\d+",Ct="["+it+"]",yt="["+ot+"]",_t="[^"+Qe+dt+mt+it+ot+ct+"]",bt="\\ud83c[\\udffb-\\udfff]",wt="(?:"+gt+"|"+bt+")",Lt="[^"+Qe+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+ct+"]",Rt="\\u200d";var At="(?:"+yt+"|"+_t+")",Tt="(?:"+Et+"|"+_t+")",Pt="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",It="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",Ot=wt+"?",kt="["+ft+"]?",Dt="(?:"+Rt+"(?:"+[Lt,St,xt].join("|")+")"+kt+Ot+")*",zt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ft="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mt=kt+Ot+Dt,jt="(?:"+[Ct,St,xt].join("|")+")"+Mt,Ut="(?:"+[Lt+gt+"?",gt,St,xt,ht].join("|")+")";var Nt=RegExp(vt,"g");var Ht=RegExp(gt,"g");var Gt=RegExp(bt+"(?="+bt+")|"+Ut+Mt,"g");var Bt=RegExp([Et+"?"+yt+"+"+Pt+"(?="+[pt,Et,"$"].join("|")+")",Tt+"+"+It+"(?="+[pt,Et+At,"$"].join("|")+")",Et+"?"+At+"+"+Pt,Et+"+"+It,Ft,zt,mt,jt].join("|"),"g");var $t=RegExp("["+Rt+Qe+nt+ft+"]");var Vt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Wt=["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 Kt=-1;var Zt={};Zt[fe]=Zt[de]=Zt[ve]=Zt[he]=Zt[pe]=Zt[ge]=Zt[me]=Zt[Ce]=Zt[ye]=true;Zt[H]=Zt[G]=Zt[le]=Zt[$]=Zt[ce]=Zt[V]=Zt[K]=Zt[Z]=Zt[X]=Zt[Y]=Zt[Q]=Zt[re]=Zt[ne]=Zt[ie]=Zt[se]=false;var qt={};qt[H]=qt[G]=qt[le]=qt[ce]=qt[$]=qt[V]=qt[fe]=qt[de]=qt[ve]=qt[he]=qt[pe]=qt[X]=qt[Y]=qt[Q]=qt[re]=qt[ne]=qt[ie]=qt[oe]=qt[ge]=qt[me]=qt[Ce]=qt[ye]=true;qt[K]=qt[Z]=qt[se]=false;var Xt={"À":"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 Yt={"&":"&","<":"<",">":">",'"':""","'":"'"};var Jt={"&":"&","<":"<",">":">",""":'"',"'":"'"};var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var er=parseFloat,tr=parseInt;var rr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var nr=typeof self=="object"&&self&&self.Object===Object&&self;var ir=rr||nr||Function("return this")();var or=t&&!t.nodeType&&t;var ar=or&&"object"=="object"&&e&&!e.nodeType&&e;var sr=ar&&ar.exports===or;var ur=sr&&rr.process;var lr=function(){try{var e=ar&&ar.require&&ar.require("util").types;if(e){return e}return ur&&ur.binding&&ur.binding("util")}catch(e){}}();var cr=lr&&lr.isArrayBuffer,fr=lr&&lr.isDate,dr=lr&&lr.isMap,vr=lr&&lr.isRegExp,hr=lr&&lr.isSet,pr=lr&&lr.isTypedArray;function gr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function mr(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}function Cr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function yr(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function _r(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function br(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}function wr(e,t){var r=e==null?0:e.length;return!!r&&Dr(e,t,0)>-1}function Lr(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function Sr(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function xr(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function Er(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}function Rr(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function Ar(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var Tr=jr("length");function Pr(e){return e.split("")}function Ir(e){return e.match(Ne)||[]}function Or(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function kr(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}function Dr(e,t,r){return t===t?fn(e,t,r):kr(e,Fr,r)}function zr(e,t,r,n){var i=r-1,o=e.length;while(++i<o){if(n(e[i],t)){return i}}return-1}function Fr(e){return e!==e}function Mr(e,t){var r=e==null?0:e.length;return r?Gr(e,t)/r:F}function jr(e){return function(t){return t==null?r:t[e]}}function Ur(e){return function(t){return e==null?r:e[t]}}function Nr(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}function Hr(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function Gr(e,t){var n,i=-1,o=e.length;while(++i<o){var a=t(e[i]);if(a!==r){n=n===r?a:n+a}}return n}function Br(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function $r(e,t){return Sr(t,(function(t){return[t,e[t]]}))}function Vr(e){return e?e.slice(0,pn(e)+1).replace(ze,""):e}function Wr(e){return function(t){return e(t)}}function Kr(e,t){return Sr(t,(function(t){return e[t]}))}function Zr(e,t){return e.has(t)}function qr(e,t){var r=-1,n=e.length;while(++r<n&&Dr(t,e[r],0)>-1){}return r}function Xr(e,t){var r=e.length;while(r--&&Dr(t,e[r],0)>-1){}return r}function Yr(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Jr=Ur(Xt);var Qr=Ur(Yt);function en(e){return"\\"+Qt[e]}function tn(e,t){return e==null?r:e[t]}function rn(e){return $t.test(e)}function nn(e){return Vt.test(e)}function on(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function an(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function sn(e,t){return function(r){return e(t(r))}}function un(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r];if(a===t||a===c){e[r]=c;o[i++]=r}}return o}function ln(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function cn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function fn(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function dn(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function vn(e){return rn(e)?mn(e):Tr(e)}function hn(e){return rn(e)?Cn(e):Pr(e)}function pn(e){var t=e.length;while(t--&&Fe.test(e.charAt(t))){}return t}var gn=Ur(Jt);function mn(e){var t=Gt.lastIndex=0;while(Gt.test(e)){++t}return t}function Cn(e){return e.match(Gt)||[]}function yn(e){return e.match(Bt)||[]}var _n=function e(t){t=t==null?ir:bn.defaults(ir.Object(),t,bn.pick(ir,Wt));var Fe=t.Array,Ne=t.Date,Qe=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError;var at=Fe.prototype,st=et.prototype,ut=rt.prototype;var lt=t["__core-js_shared__"];var ct=st.toString;var ft=ut.hasOwnProperty;var dt=0;var vt=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ht=ut.toString;var pt=ct.call(rt);var gt=ir._;var mt=nt("^"+ct.call(ft).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=sr?t.Buffer:r,yt=t.Symbol,_t=t.Uint8Array,bt=Ct?Ct.allocUnsafe:r,wt=sn(rt.getPrototypeOf,rt),Lt=rt.create,St=ut.propertyIsEnumerable,xt=at.splice,Et=yt?yt.isConcatSpreadable:r,Rt=yt?yt.iterator:r,At=yt?yt.toStringTag:r;var Tt=function(){try{var e=Ka(rt,"defineProperty");e({},"",{});return e}catch(e){}}();var Pt=t.clearTimeout!==ir.clearTimeout&&t.clearTimeout,It=Ne&&Ne.now!==ir.Date.now&&Ne.now,Ot=t.setTimeout!==ir.setTimeout&&t.setTimeout;var kt=tt.ceil,Dt=tt.floor,zt=rt.getOwnPropertySymbols,Ft=Ct?Ct.isBuffer:r,Mt=t.isFinite,jt=at.join,Ut=sn(rt.keys,rt),Gt=tt.max,Bt=tt.min,$t=Ne.now,Vt=t.parseInt,Xt=tt.random,Yt=at.reverse;var Jt=Ka(t,"DataView"),Qt=Ka(t,"Map"),rr=Ka(t,"Promise"),nr=Ka(t,"Set"),or=Ka(t,"WeakMap"),ar=Ka(rt,"create");var ur=or&&new or;var lr={};var Tr=Os(Jt),Pr=Os(Qt),Ur=Os(rr),fn=Os(nr),mn=Os(or);var Cn=yt?yt.prototype:r,_n=Cn?Cn.valueOf:r,wn=Cn?Cn.toString:r;function Ln(e){if(xc(e)&&!uc(e)&&!(e instanceof Rn)){if(e instanceof En){return e}if(ft.call(e,"__wrapped__")){return Ds(e)}}return new En(e)}var Sn=function(){function e(){}return function(t){if(!Sc(t)){return{}}if(Lt){return Lt(t)}e.prototype=t;var n=new e;e.prototype=r;return n}}();function xn(){}function En(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}Ln.templateSettings={escape:Re,evaluate:Ae,interpolate:Te,variable:"",imports:{_:Ln}};Ln.prototype=xn.prototype;Ln.prototype.constructor=Ln;En.prototype=Sn(xn.prototype);En.prototype.constructor=En;function Rn(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=M;this.__views__=[]}function An(){var e=new Rn(this.__wrapped__);e.__actions__=ia(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ia(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ia(this.__views__);return e}function Tn(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function Pn(){var e=this.__wrapped__.value(),t=this.__dir__,r=uc(e),n=t<0,i=r?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,f=c.length,d=0,v=Bt(u,this.__takeCount__);if(!r||!n&&i==u&&v==u){return Uo(e,this.__actions__)}var h=[];e:while(u--&&d<v){l+=t;var p=-1,g=e[l];while(++p<f){var m=c[p],C=m.iteratee,y=m.type,_=C(g);if(y==I){g=_}else if(!_){if(y==P){continue e}else{break e}}}h[d++]=g}return h}Rn.prototype=Sn(xn.prototype);Rn.prototype.constructor=Rn;function In(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function On(){this.__data__=ar?ar(null):{};this.size=0}function kn(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Dn(e){var t=this.__data__;if(ar){var n=t[e];return n===u?r:n}return ft.call(t,e)?t[e]:r}function zn(e){var t=this.__data__;return ar?t[e]!==r:ft.call(t,e)}function Fn(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=ar&&t===r?u:t;return this}In.prototype.clear=On;In.prototype["delete"]=kn;In.prototype.get=Dn;In.prototype.has=zn;In.prototype.set=Fn;function Mn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function jn(){this.__data__=[];this.size=0}function Un(e){var t=this.__data__,r=ci(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{xt.call(t,r,1)}--this.size;return true}function Nn(e){var t=this.__data__,n=ci(t,e);return n<0?r:t[n][1]}function Hn(e){return ci(this.__data__,e)>-1}function Gn(e,t){var r=this.__data__,n=ci(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}Mn.prototype.clear=jn;Mn.prototype["delete"]=Un;Mn.prototype.get=Nn;Mn.prototype.has=Hn;Mn.prototype.set=Gn;function Bn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function $n(){this.size=0;this.__data__={hash:new In,map:new(Qt||Mn),string:new In}}function Vn(e){var t=Va(this,e)["delete"](e);this.size-=t?1:0;return t}function Wn(e){return Va(this,e).get(e)}function Kn(e){return Va(this,e).has(e)}function Zn(e,t){var r=Va(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}Bn.prototype.clear=$n;Bn.prototype["delete"]=Vn;Bn.prototype.get=Wn;Bn.prototype.has=Kn;Bn.prototype.set=Zn;function qn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Bn;while(++t<r){this.add(e[t])}}function Xn(e){this.__data__.set(e,u);return this}function Yn(e){return this.__data__.has(e)}qn.prototype.add=qn.prototype.push=Xn;qn.prototype.has=Yn;function Jn(e){var t=this.__data__=new Mn(e);this.size=t.size}function Qn(){this.__data__=new Mn;this.size=0}function ei(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function ti(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ni(e,t){var r=this.__data__;if(r instanceof Mn){var n=r.__data__;if(!Qt||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Bn(n)}r.set(e,t);this.size=r.size;return this}Jn.prototype.clear=Qn;Jn.prototype["delete"]=ei;Jn.prototype.get=ti;Jn.prototype.has=ri;Jn.prototype.set=ni;function ii(e,t){var r=uc(e),n=!r&&sc(e),i=!r&&!n&&vc(e),o=!r&&!n&&!i&&Nc(e),a=r||n||i||o,s=a?Br(e.length,it):[],u=s.length;for(var l in e){if((t||ft.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||as(l,u)))){s.push(l)}}return s}function oi(e){var t=e.length;return t?e[Co(0,t-1)]:r}function ai(e,t){return Ts(ia(e),gi(t,0,e.length))}function si(e){return Ts(ia(e))}function ui(e,t,n){if(n!==r&&!ic(e[t],n)||n===r&&!(t in e)){hi(e,t,n)}}function li(e,t,n){var i=e[t];if(!(ft.call(e,t)&&ic(i,n))||n===r&&!(t in e)){hi(e,t,n)}}function ci(e,t){var r=e.length;while(r--){if(ic(e[r][0],t)){return r}}return-1}function fi(e,t,r,n){wi(e,(function(e,i,o){t(n,e,r(e),o)}));return n}function di(e,t){return e&&oa(t,Lf(t),e)}function vi(e,t){return e&&oa(t,Sf(t),e)}function hi(e,t,r){if(t=="__proto__"&&Tt){Tt(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function pi(e,t){var n=-1,i=t.length,o=Fe(i),a=e==null;while(++n<i){o[n]=a?r:mf(e,t[n])}return o}function gi(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function mi(e,t,n,i,o,a){var s,u=t&f,l=t&d,c=t&v;if(n){s=o?n(e,i,o,a):n(e)}if(s!==r){return s}if(!Sc(e)){return e}var h=uc(e);if(h){s=ts(e);if(!u){return ia(e,s)}}else{var p=Ya(e),g=p==Z||p==q;if(vc(e)){return Zo(e,u)}if(p==Q||p==H||g&&!o){s=l||g?{}:rs(e);if(!u){return l?sa(e,vi(s,e)):aa(e,di(s,e))}}else{if(!qt[p]){return o?e:{}}s=ns(e,p,u)}}a||(a=new Jn);var m=a.get(e);if(m){return m}a.set(e,s);if(Mc(e)){e.forEach((function(r){s.add(mi(r,t,n,r,e,a))}))}else if(Ec(e)){e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}))}var C=c?l?Na:Ua:l?Sf:Lf;var y=h?r:C(e);Cr(y||e,(function(r,i){if(y){i=r;r=e[i]}li(s,i,mi(r,t,n,i,e,a))}));return s}function Ci(e){var t=Lf(e);return function(r){return yi(r,e,t)}}function yi(e,t,n){var i=n.length;if(e==null){return!i}e=rt(e);while(i--){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s)){return false}}return true}function _i(e,t,n){if(typeof e!="function"){throw new ot(a)}return xs((function(){e.apply(r,n)}),t)}function bi(e,t,r,n){var o=-1,a=wr,s=true,u=e.length,l=[],c=t.length;if(!u){return l}if(r){t=Sr(t,Wr(r))}if(n){a=Lr;s=false}else if(t.length>=i){a=Zr;s=false;t=new qn(t)}e:while(++o<u){var f=e[o],d=r==null?f:r(f);f=n||f!==0?f:0;if(s&&d===d){var v=c;while(v--){if(t[v]===d){continue e}}l.push(f)}else if(!a(t,d,n)){l.push(f)}}return l}var wi=ca(Ii);var Li=ca(Oi,true);function Si(e,t){var r=true;wi(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function xi(e,t,n){var i=-1,o=e.length;while(++i<o){var a=e[i],s=t(a);if(s!=null&&(u===r?s===s&&!Uc(s):n(s,u))){var u=s,l=a}}return l}function Ei(e,t,n,i){var o=e.length;n=Zc(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:Zc(i);if(i<0){i+=o}i=n>i?0:qc(i);while(n<i){e[n++]=t}return e}function Ri(e,t){var r=[];wi(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function Ai(e,t,r,n,i){var o=-1,a=e.length;r||(r=os);i||(i=[]);while(++o<a){var s=e[o];if(t>0&&r(s)){if(t>1){Ai(s,t-1,r,n,i)}else{xr(i,s)}}else if(!n){i[i.length]=s}}return i}var Ti=fa();var Pi=fa(true);function Ii(e,t){return e&&Ti(e,t,Lf)}function Oi(e,t){return e&&Pi(e,t,Lf)}function ki(e,t){return br(t,(function(t){return bc(e[t])}))}function Di(e,t){t=$o(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[Is(t[n++])]}return n&&n==i?e:r}function zi(e,t,r){var n=t(e);return uc(e)?n:xr(n,r(e))}function Fi(e){if(e==null){return e===r?ae:J}return At&&At in rt(e)?Za(e):ys(e)}function Mi(e,t){return e>t}function ji(e,t){return e!=null&&ft.call(e,t)}function Ui(e,t){return e!=null&&t in rt(e)}function Ni(e,t,r){return e>=Bt(t,r)&&e<Gt(t,r)}function Hi(e,t,n){var i=n?Lr:wr,o=e[0].length,a=e.length,s=a,u=Fe(a),l=Infinity,c=[];while(s--){var f=e[s];if(s&&t){f=Sr(f,Wr(t))}l=Bt(f.length,l);u[s]=!n&&(t||o>=120&&f.length>=120)?new qn(s&&f):r}f=e[0];var d=-1,v=u[0];e:while(++d<o&&c.length<l){var h=f[d],p=t?t(h):h;h=n||h!==0?h:0;if(!(v?Zr(v,p):i(c,p,n))){s=a;while(--s){var g=u[s];if(!(g?Zr(g,p):i(e[s],p,n))){continue e}}if(v){v.push(p)}c.push(h)}}return c}function Gi(e,t,r,n){Ii(e,(function(e,i,o){t(n,r(e),i,o)}));return n}function Bi(e,t,n){t=$o(t,e);e=bs(e,t);var i=e==null?e:e[Is(ou(t))];return i==null?r:gr(i,e,n)}function $i(e){return xc(e)&&Fi(e)==H}function Vi(e){return xc(e)&&Fi(e)==le}function Wi(e){return xc(e)&&Fi(e)==V}function Ki(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!xc(e)&&!xc(t)){return e!==e&&t!==t}return Zi(e,t,r,n,Ki,i)}function Zi(e,t,r,n,i,o){var a=uc(e),s=uc(t),u=a?G:Ya(e),l=s?G:Ya(t);u=u==H?Q:u;l=l==H?Q:l;var c=u==Q,f=l==Q,d=u==l;if(d&&vc(e)){if(!vc(t)){return false}a=true;c=false}if(d&&!c){o||(o=new Jn);return a||Nc(e)?za(e,t,r,n,i,o):Fa(e,t,u,r,n,i,o)}if(!(r&h)){var v=c&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(v||p){var g=v?e.value():e,m=p?t.value():t;o||(o=new Jn);return i(g,m,r,n,o)}}if(!d){return false}o||(o=new Jn);return Ma(e,t,r,n,i,o)}function qi(e){return xc(e)&&Ya(e)==X}function Xi(e,t,n,i){var o=n.length,a=o,s=!i;if(e==null){return!a}e=rt(e);while(o--){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++o<a){u=n[o];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e)){return false}}else{var d=new Jn;if(i){var v=i(c,f,l,e,t,d)}if(!(v===r?Ki(f,c,h|p,i,d):v)){return false}}}return true}function Yi(e){if(!Sc(e)||fs(e)){return false}var t=bc(e)?mt:Ke;return t.test(Os(e))}function Ji(e){return xc(e)&&Fi(e)==re}function Qi(e){return xc(e)&&Ya(e)==ne}function eo(e){return xc(e)&&Lc(e.length)&&!!Zt[Fi(e)]}function to(e){if(typeof e=="function"){return e}if(e==null){return Id}if(typeof e=="object"){return uc(e)?so(e[0],e[1]):ao(e)}return $d(e)}function ro(e){if(!vs(e)){return Ut(e)}var t=[];for(var r in rt(e)){if(ft.call(e,r)&&r!="constructor"){t.push(r)}}return t}function no(e){if(!Sc(e)){return Cs(e)}var t=vs(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!ft.call(e,n)))){r.push(n)}}return r}function io(e,t){return e<t}function oo(e,t){var r=-1,n=cc(e)?Fe(e.length):[];wi(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}function ao(e){var t=Wa(e);if(t.length==1&&t[0][2]){return ps(t[0][0],t[0][1])}return function(r){return r===e||Xi(r,e,t)}}function so(e,t){if(us(e)&&hs(t)){return ps(Is(e),t)}return function(n){var i=mf(n,e);return i===r&&i===t?yf(n,e):Ki(t,i,h|p)}}function uo(e,t,n,i,o){if(e===t){return}Ti(t,(function(a,s){o||(o=new Jn);if(Sc(a)){lo(e,t,s,n,uo,i,o)}else{var u=i?i(Ls(e,s),a,s+"",e,t,o):r;if(u===r){u=a}ui(e,s,u)}}),Sf)}function lo(e,t,n,i,o,a,s){var u=Ls(e,n),l=Ls(t,n),c=s.get(l);if(c){ui(e,n,c);return}var f=a?a(u,l,n+"",e,t,s):r;var d=f===r;if(d){var v=uc(l),h=!v&&vc(l),p=!v&&!h&&Nc(l);f=l;if(v||h||p){if(uc(u)){f=u}else if(fc(u)){f=ia(u)}else if(h){d=false;f=Zo(l,true)}else if(p){d=false;f=Qo(l,true)}else{f=[]}}else if(Dc(l)||sc(l)){f=u;if(sc(u)){f=Yc(u)}else if(!Sc(u)||bc(u)){f=rs(l)}}else{d=false}}if(d){s.set(l,f);o(f,l,i,a,s);s["delete"](l)}ui(e,n,f)}function co(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return as(t,n)?e[t]:r}function fo(e,t,r){if(t.length){t=Sr(t,(function(e){if(uc(e)){return function(t){return Di(t,e.length===1?e[0]:e)}}return e}))}else{t=[Id]}var n=-1;t=Sr(t,Wr($a()));var i=oo(e,(function(e,r,i){var o=Sr(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return Hr(i,(function(e,t){return ta(e,t,r)}))}function vo(e,t){return ho(e,t,(function(t,r){return yf(e,r)}))}function ho(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var a=t[n],s=Di(e,a);if(r(s,a)){So(o,$o(a,e),s)}}return o}function po(e){return function(t){return Di(t,e)}}function go(e,t,r,n){var i=n?zr:Dr,o=-1,a=t.length,s=e;if(e===t){t=ia(t)}if(r){s=Sr(e,Wr(r))}while(++o<a){var u=0,l=t[o],c=r?r(l):l;while((u=i(s,c,u,n))>-1){if(s!==e){xt.call(s,u,1)}xt.call(e,u,1)}}return e}function mo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(as(i)){xt.call(e,i,1)}else{Fo(e,i)}}}return e}function Co(e,t){return e+Dt(Xt()*(t-e+1))}function yo(e,t,r,n){var i=-1,o=Gt(kt((t-e)/(r||1)),0),a=Fe(o);while(o--){a[n?o:++i]=e;e+=r}return a}function _o(e,t){var r="";if(!e||t<1||t>D){return r}do{if(t%2){r+=e}t=Dt(t/2);if(t){e+=e}}while(t);return r}function bo(e,t){return Es(_s(e,t,Id),e+"")}function wo(e){return oi(Gf(e))}function Lo(e,t){var r=Gf(e);return Ts(r,gi(t,0,r.length))}function So(e,t,n,i){if(!Sc(e)){return e}t=$o(t,e);var o=-1,a=t.length,s=a-1,u=e;while(u!=null&&++o<a){var l=Is(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype"){return e}if(o!=s){var f=u[l];c=i?i(f,l,u):r;if(c===r){c=Sc(f)?f:as(t[o+1])?[]:{}}}li(u,l,c);u=u[l]}return e}var xo=!ur?Id:function(e,t){ur.set(e,t);return e};var Eo=!Tt?Id:function(e,t){return Tt(e,"toString",{configurable:true,enumerable:false,value:Rd(t),writable:true})};function Ro(e){return Ts(Gf(e))}function Ao(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Fe(i);while(++n<i){o[n]=e[n+t]}return o}function To(e,t){var r;wi(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function Po(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=U){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!Uc(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return Io(e,t,Id,r)}function Io(e,t,n,i){var o=0,a=e==null?0:e.length;if(a===0){return 0}t=n(t);var s=t!==t,u=t===null,l=Uc(t),c=t===r;while(o<a){var f=Dt((o+a)/2),d=n(e[f]),v=d!==r,h=d===null,p=d===d,g=Uc(d);if(s){var m=i||p}else if(c){m=p&&(i||v)}else if(u){m=p&&v&&(i||!h)}else if(l){m=p&&v&&!h&&(i||!g)}else if(h||g){m=false}else{m=i?d<=t:d<t}if(m){o=f+1}else{a=f}}return Bt(a,j)}function Oo(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r],s=t?t(a):a;if(!r||!ic(s,u)){var u=s;o[i++]=a===0?0:a}}return o}function ko(e){if(typeof e=="number"){return e}if(Uc(e)){return F}return+e}function Do(e){if(typeof e=="string"){return e}if(uc(e)){return Sr(e,Do)+""}if(Uc(e)){return wn?wn.call(e):""}var t=e+"";return t=="0"&&1/e==-k?"-0":t}function zo(e,t,r){var n=-1,o=wr,a=e.length,s=true,u=[],l=u;if(r){s=false;o=Lr}else if(a>=i){var c=t?null:Ta(e);if(c){return ln(c)}s=false;o=Zr;l=new qn}else{l=t?[]:u}e:while(++n<a){var f=e[n],d=t?t(f):f;f=r||f!==0?f:0;if(s&&d===d){var v=l.length;while(v--){if(l[v]===d){continue e}}if(t){l.push(d)}u.push(f)}else if(!o(l,d,r)){if(l!==u){l.push(d)}u.push(f)}}return u}function Fo(e,t){t=$o(t,e);e=bs(e,t);return e==null||delete e[Is(ou(t))]}function Mo(e,t,r,n){return So(e,t,r(Di(e,t)),n)}function jo(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e)){}return r?Ao(e,n?0:o,n?o+1:i):Ao(e,n?o+1:0,n?i:o)}function Uo(e,t){var r=e;if(r instanceof Rn){r=r.value()}return Er(t,(function(e,t){return t.func.apply(t.thisArg,xr([e],t.args))}),r)}function No(e,t,r){var n=e.length;if(n<2){return n?zo(e[0]):[]}var i=-1,o=Fe(n);while(++i<n){var a=e[i],s=-1;while(++s<n){if(s!=i){o[i]=bi(o[i]||a,e[s],t,r)}}}return zo(Ai(o,1),t,r)}function Ho(e,t,n){var i=-1,o=e.length,a=t.length,s={};while(++i<o){var u=i<a?t[i]:r;n(s,e[i],u)}return s}function Go(e){return fc(e)?e:[]}function Bo(e){return typeof e=="function"?e:Id}function $o(e,t){if(uc(e)){return e}return us(e,t)?[e]:Ps(Qc(e))}var Vo=bo;function Wo(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:Ao(e,t,n)}var Ko=Pt||function(e){return ir.clearTimeout(e)};function Zo(e,t){if(t){return e.slice()}var r=e.length,n=bt?bt(r):new e.constructor(r);e.copy(n);return n}function qo(e){var t=new e.constructor(e.byteLength);new _t(t).set(new _t(e));return t}function Xo(e,t){var r=t?qo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Yo(e){var t=new e.constructor(e.source,$e.exec(e));t.lastIndex=e.lastIndex;return t}function Jo(e){return _n?rt(_n.call(e)):{}}function Qo(e,t){var r=t?qo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=e===null,o=e===e,a=Uc(e);var s=t!==r,u=t===null,l=t===t,c=Uc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o){return 1}if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l){return-1}}return 0}function ta(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;while(++n<a){var u=ea(i[n],o[n]);if(u){if(n>=s){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,r,n){var i=-1,o=e.length,a=r.length,s=-1,u=t.length,l=Gt(o-a,0),c=Fe(u+l),f=!n;while(++s<u){c[s]=t[s]}while(++i<a){if(f||i<o){c[r[i]]=e[i]}}while(l--){c[s++]=e[i++]}return c}function na(e,t,r,n){var i=-1,o=e.length,a=-1,s=r.length,u=-1,l=t.length,c=Gt(o-s,0),f=Fe(c+l),d=!n;while(++i<c){f[i]=e[i]}var v=i;while(++u<l){f[v+u]=t[u]}while(++a<s){if(d||i<o){f[v+r[a]]=e[i++]}}return f}function ia(e,t){var r=-1,n=e.length;t||(t=Fe(n));while(++r<n){t[r]=e[r]}return t}function oa(e,t,n,i){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a];var l=i?i(n[u],e[u],u,n,e):r;if(l===r){l=e[u]}if(o){hi(n,u,l)}else{li(n,u,l)}}return n}function aa(e,t){return oa(e,qa(e),t)}function sa(e,t){return oa(e,Xa(e),t)}function ua(e,t){return function(r,n){var i=uc(r)?mr:fi,o=t?t():{};return i(r,e,$a(n,2),o)}}function la(e){return bo((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;a=e.length>3&&typeof a=="function"?(o--,a):r;if(s&&ss(n[0],n[1],s)){a=o<3?r:a;o=1}t=rt(t);while(++i<o){var u=n[i];if(u){e(t,u,i,a)}}return t}))}function ca(e,t){return function(r,n){if(r==null){return r}if(!cc(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=rt(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}function fa(e){return function(t,r,n){var i=-1,o=rt(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}function da(e,t,r){var n=t&g,i=pa(e);function o(){var t=this&&this!==ir&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function va(e){return function(t){t=Qc(t);var n=rn(t)?hn(t):r;var i=n?n[0]:t.charAt(0);var o=n?Wo(n,1).join(""):t.slice(1);return i[e]()+o}}function ha(e){return function(t){return Er(wd(qf(t).replace(Nt,"")),e,"")}}function pa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Sn(e.prototype),n=e.apply(r,t);return Sc(n)?n:r}}function ga(e,t,n){var i=pa(e);function o(){var a=arguments.length,s=Fe(a),u=a,l=Ba(o);while(u--){s[u]=arguments[u]}var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:un(s,l);a-=c.length;if(a<n){return Ra(e,t,ya,o.placeholder,r,s,c,r,r,n-a)}var f=this&&this!==ir&&this instanceof o?i:e;return gr(f,this,s)}return o}function ma(e){return function(t,n,i){var o=rt(t);if(!cc(t)){var a=$a(n,3);t=Lf(t);n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Ca(e){return ja((function(t){var n=t.length,i=n,o=En.prototype.thru;if(e){t.reverse()}while(i--){var s=t[i];if(typeof s!="function"){throw new ot(a)}if(o&&!u&&Ga(s)=="wrapper"){var u=new En([],true)}}i=u?i:n;while(++i<n){s=t[i];var l=Ga(s),c=l=="wrapper"?Ha(s):r;if(c&&cs(c[0])&&c[1]==(L|y|b|S)&&!c[4].length&&c[9]==1){u=u[Ga(c[0])].apply(u,c[3])}else{u=s.length==1&&cs(s)?u[l]():u.thru(s)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&uc(r)){return u.plant(r).value()}var i=0,o=n?t[i].apply(this,e):r;while(++i<n){o=t[i].call(this,o)}return o}}))}function ya(e,t,n,i,o,a,s,u,l,c){var f=t&L,d=t&g,v=t&m,h=t&(y|_),p=t&x,C=v?r:pa(e);function b(){var r=arguments.length,g=Fe(r),m=r;while(m--){g[m]=arguments[m]}if(h){var y=Ba(b),_=Yr(g,y)}if(i){g=ra(g,i,o,h)}if(a){g=na(g,a,s,h)}r-=_;if(h&&r<c){var w=un(g,y);return Ra(e,t,ya,b.placeholder,n,g,w,u,l,c-r)}var L=d?n:this,S=v?L[e]:e;r=g.length;if(u){g=ws(g,u)}else if(p&&r>1){g.reverse()}if(f&&l<r){g.length=l}if(this&&this!==ir&&this instanceof b){S=C||pa(S)}return S.apply(L,g)}return b}function _a(e,t){return function(r,n){return Gi(r,e,t(n),{})}}function ba(e,t){return function(n,i){var o;if(n===r&&i===r){return t}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=Do(n);i=Do(i)}else{n=ko(n);i=ko(i)}o=e(n,i)}return o}}function wa(e){return ja((function(t){t=Sr(t,Wr($a()));return bo((function(r){var n=this;return e(t,(function(e){return gr(e,n,r)}))}))}))}function La(e,t){t=t===r?" ":Do(t);var n=t.length;if(n<2){return n?_o(t,e):t}var i=_o(t,kt(e/vn(t)));return rn(t)?Wo(hn(i),0,e).join(""):i.slice(0,e)}function Sa(e,t,r,n){var i=t&g,o=pa(e);function a(){var t=-1,s=arguments.length,u=-1,l=n.length,c=Fe(l+s),f=this&&this!==ir&&this instanceof a?o:e;while(++u<l){c[u]=n[u]}while(s--){c[u++]=arguments[++t]}return gr(f,i?r:this,c)}return a}function xa(e){return function(t,n,i){if(i&&typeof i!="number"&&ss(t,n,i)){n=i=r}t=Kc(t);if(n===r){n=t;t=0}else{n=Kc(n)}i=i===r?t<n?1:-1:Kc(i);return yo(t,n,i,e)}}function Ea(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=Xc(t);r=Xc(r)}return e(t,r)}}function Ra(e,t,n,i,o,a,s,u,l,c){var f=t&y,d=f?s:r,v=f?r:s,h=f?a:r,p=f?r:a;t|=f?b:w;t&=~(f?w:b);if(!(t&C)){t&=~(g|m)}var _=[e,t,o,h,d,p,v,u,l,c];var L=n.apply(r,_);if(cs(e)){Ss(L,_)}L.placeholder=i;return Rs(L,e,t)}function Aa(e){var t=tt[e];return function(e,r){e=Xc(e);r=r==null?0:Bt(Zc(r),292);if(r&&Mt(e)){var n=(Qc(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(Qc(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Ta=!(nr&&1/ln(new nr([,-0]))[1]==k)?Ud:function(e){return new nr(e)};function Pa(e){return function(t){var r=Ya(t);if(r==X){return an(t)}if(r==ne){return cn(t)}return $r(t,e(t))}}function Ia(e,t,n,i,o,s,u,l){var c=t&m;if(!c&&typeof e!="function"){throw new ot(a)}var f=i?i.length:0;if(!f){t&=~(b|w);i=o=r}u=u===r?u:Gt(Zc(u),0);l=l===r?l:Zc(l);f-=o?o.length:0;if(t&w){var d=i,v=o;i=o=r}var h=c?r:Ha(e);var p=[e,t,n,i,o,d,v,s,u,l];if(h){ms(p,h)}e=p[0];t=p[1];n=p[2];i=p[3];o=p[4];l=p[9]=p[9]===r?c?0:e.length:Gt(p[9]-f,0);if(!l&&t&(y|_)){t&=~(y|_)}if(!t||t==g){var C=da(e,t,n)}else if(t==y||t==_){C=ga(e,t,l)}else if((t==b||t==(g|b))&&!o.length){C=Sa(e,t,n,i)}else{C=ya.apply(r,p)}var L=h?xo:Ss;return Rs(L(C,p),e,t)}function Oa(e,t,n,i){if(e===r||ic(e,ut[n])&&!ft.call(i,n)){return t}return e}function ka(e,t,n,i,o,a){if(Sc(e)&&Sc(t)){a.set(t,e);uo(e,t,r,ka,a);a["delete"](t)}return e}function Da(e){return Dc(e)?r:e}function za(e,t,n,i,o,a){var s=n&h,u=e.length,l=t.length;if(u!=l&&!(s&&l>u)){return false}var c=a.get(e);var f=a.get(t);if(c&&f){return c==t&&f==e}var d=-1,v=true,g=n&p?new qn:r;a.set(e,t);a.set(t,e);while(++d<u){var m=e[d],C=t[d];if(i){var y=s?i(C,m,d,t,e,a):i(m,C,d,e,t,a)}if(y!==r){if(y){continue}v=false;break}if(g){if(!Ar(t,(function(e,t){if(!Zr(g,t)&&(m===e||o(m,e,n,i,a))){return g.push(t)}}))){v=false;break}}else if(!(m===C||o(m,C,n,i,a))){v=false;break}}a["delete"](e);a["delete"](t);return v}function Fa(e,t,r,n,i,o,a){switch(r){case ce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case le:if(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t))){return false}return true;case $:case V:case Y:return ic(+e,+t);case K:return e.name==t.name&&e.message==t.message;case re:case ie:return e==t+"";case X:var s=an;case ne:var u=n&h;s||(s=ln);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=p;a.set(e,t);var c=za(s(e),s(t),n,i,o,a);a["delete"](e);return c;case oe:if(_n){return _n.call(e)==_n.call(t)}}return false}function Ma(e,t,n,i,o,a){var s=n&h,u=Ua(e),l=u.length,c=Ua(t),f=c.length;if(l!=f&&!s){return false}var d=l;while(d--){var v=u[d];if(!(s?v in t:ft.call(t,v))){return false}}var p=a.get(e);var g=a.get(t);if(p&&g){return p==t&&g==e}var m=true;a.set(e,t);a.set(t,e);var C=s;while(++d<l){v=u[d];var y=e[v],_=t[v];if(i){var b=s?i(_,y,v,t,e,a):i(y,_,v,e,t,a)}if(!(b===r?y===_||o(y,_,n,i,a):b)){m=false;break}C||(C=v=="constructor")}if(m&&!C){var w=e.constructor,L=t.constructor;if(w!=L&&("constructor"in e&&"constructor"in t)&&!(typeof w=="function"&&w instanceof w&&typeof L=="function"&&L instanceof L)){m=false}}a["delete"](e);a["delete"](t);return m}function ja(e){return Es(_s(e,r,Zs),e+"")}function Ua(e){return zi(e,Lf,qa)}function Na(e){return zi(e,Sf,Xa)}var Ha=!ur?Ud:function(e){return ur.get(e)};function Ga(e){var t=e.name+"",r=lr[t],n=ft.call(lr,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==e){return i.name}}return t}function Ba(e){var t=ft.call(Ln,"placeholder")?Ln:e;return t.placeholder}function $a(){var e=Ln.iteratee||Od;e=e===Od?to:e;return arguments.length?e(arguments[0],arguments[1]):e}function Va(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wa(e){var t=Lf(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,hs(i)]}return t}function Ka(e,t){var n=tn(e,t);return Yi(n)?n:r}function Za(e){var t=ft.call(e,At),n=e[At];try{e[At]=r;var i=true}catch(e){}var o=ht.call(e);if(i){if(t){e[At]=n}else{delete e[At]}}return o}var qa=!zt?Zd:function(e){if(e==null){return[]}e=rt(e);return br(zt(e),(function(t){return St.call(e,t)}))};var Xa=!zt?Zd:function(e){var t=[];while(e){xr(t,qa(e));e=wt(e)}return t};var Ya=Fi;if(Jt&&Ya(new Jt(new ArrayBuffer(1)))!=ce||Qt&&Ya(new Qt)!=X||rr&&Ya(rr.resolve())!=ee||nr&&Ya(new nr)!=ne||or&&Ya(new or)!=se){Ya=function(e){var t=Fi(e),n=t==Q?e.constructor:r,i=n?Os(n):"";if(i){switch(i){case Tr:return ce;case Pr:return X;case Ur:return ee;case fn:return ne;case mn:return se}}return t}}function Ja(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Bt(t,e+a);break;case"takeRight":e=Gt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(je);return t?t[1].split(Ue):[]}function es(e,t,r){t=$o(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Is(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&Lc(i)&&as(a,i)&&(uc(e)||sc(e))}function ts(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&ft.call(e,"index")){r.index=e.index;r.input=e.input}return r}function rs(e){return typeof e.constructor=="function"&&!vs(e)?Sn(wt(e)):{}}function ns(e,t,r){var n=e.constructor;switch(t){case le:return qo(e);case $:case V:return new n(+e);case ce:return Xo(e,r);case fe:case de:case ve:case he:case pe:case ge:case me:case Ce:case ye:return Qo(e,r);case X:return new n;case Y:case ie:return new n(e);case re:return Yo(e);case ne:return new n;case oe:return Jo(e)}}function is(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Me,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Et&&e&&e[Et])}function as(e,t){var r=typeof e;t=t==null?D:t;return!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&(e>-1&&e%1==0&&e<t)}function ss(e,t,r){if(!Sc(r)){return false}var n=typeof t;if(n=="number"?cc(r)&&as(t,r.length):n=="string"&&t in r){return ic(r[t],e)}return false}function us(e,t){if(uc(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||Uc(e)){return true}return Ie.test(e)||!Pe.test(e)||t!=null&&e in rt(t)}function ls(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e){var t=Ga(e),r=Ln[t];if(typeof r!="function"||!(t in Rn.prototype)){return false}if(e===r){return true}var n=Ha(r);return!!n&&e===n[0]}function fs(e){return!!vt&&vt in e}var ds=lt?bc:qd;function vs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ut;return e===r}function hs(e){return e===e&&!Sc(e)}function ps(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in rt(n))}}function gs(e){var t=Nl(e,(function(e){if(r.size===l){r.clear()}return e}));var r=t.cache;return t}function ms(e,t){var r=e[1],n=t[1],i=r|n,o=i<(g|m|L);var a=n==L&&r==y||n==L&&r==S&&e[7].length<=t[8]||n==(L|S)&&t[7].length<=t[8]&&r==y;if(!(o||a)){return e}if(n&g){e[2]=t[2];i|=r&g?0:C}var s=t[3];if(s){var u=e[3];e[3]=u?ra(u,s,t[4]):s;e[4]=u?un(e[3],c):t[4]}s=t[5];if(s){u=e[5];e[5]=u?na(u,s,t[6]):s;e[6]=u?un(e[5],c):t[6]}s=t[7];if(s){e[7]=s}if(n&L){e[8]=e[8]==null?t[8]:Bt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function Cs(e){var t=[];if(e!=null){for(var r in rt(e)){t.push(r)}}return t}function ys(e){return ht.call(e)}function _s(e,t,n){t=Gt(t===r?e.length-1:t,0);return function(){var r=arguments,i=-1,o=Gt(r.length-t,0),a=Fe(o);while(++i<o){a[i]=r[t+i]}i=-1;var s=Fe(t+1);while(++i<t){s[i]=r[i]}s[t]=n(a);return gr(e,this,s)}}function bs(e,t){return t.length<2?e:Di(e,Ao(t,0,-1))}function ws(e,t){var n=e.length,i=Bt(t.length,n),o=ia(e);while(i--){var a=t[i];e[i]=as(a,n)?o[a]:r}return e}function Ls(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var Ss=As(xo);var xs=Ot||function(e,t){return ir.setTimeout(e,t)};var Es=As(Eo);function Rs(e,t,r){var n=t+"";return Es(e,is(n,ks(Qa(n),r)))}function As(e){var t=0,n=0;return function(){var i=$t(),o=T-(i-n);n=i;if(o>0){if(++t>=A){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function Ts(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var a=Co(n,o),s=e[a];e[a]=e[n];e[n]=s}e.length=t;return e}var Ps=gs((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Oe,(function(e,r,n,i){t.push(n?i.replace(Ge,"$1"):r||e)}));return t}));function Is(e){if(typeof e=="string"||Uc(e)){return e}var t=e+"";return t=="0"&&1/e==-k?"-0":t}function Os(e){if(e!=null){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ks(e,t){Cr(N,(function(r){var n="_."+r[0];if(t&r[1]&&!wr(e,n)){e.push(n)}}));return e.sort()}function Ds(e){if(e instanceof Rn){return e.clone()}var t=new En(e.__wrapped__,e.__chain__);t.__actions__=ia(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function zs(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Gt(Zc(t),0)}var i=e==null?0:e.length;if(!i||t<1){return[]}var o=0,a=0,s=Fe(kt(i/t));while(o<i){s[a++]=Ao(e,o,o+=t)}return s}function Fs(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o){i[n++]=o}}return i}function Ms(){var e=arguments.length;if(!e){return[]}var t=Fe(e-1),r=arguments[0],n=e;while(n--){t[n-1]=arguments[n]}return xr(uc(r)?ia(r):[r],Ai(t,1))}var js=bo((function(e,t){return fc(e)?bi(e,Ai(t,1,fc,true)):[]}));var Us=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,Ai(t,1,fc,true),$a(n,2)):[]}));var Ns=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,Ai(t,1,fc,true),r,n):[]}));function Hs(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Zc(t);return Ao(e,t<0?0:t,i)}function Gs(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Zc(t);t=i-t;return Ao(e,0,t<0?0:t)}function Bs(e,t){return e&&e.length?jo(e,$a(t,3),true,true):[]}function $s(e,t){return e&&e.length?jo(e,$a(t,3),true):[]}function Vs(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&ss(e,t,r)){r=0;n=i}return Ei(e,t,r,n)}function Ws(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Zc(r);if(i<0){i=Gt(n+i,0)}return kr(e,$a(t,3),i)}function Ks(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i-1;if(n!==r){o=Zc(n);o=n<0?Gt(i+o,0):Bt(o,i-1)}return kr(e,$a(t,3),o,true)}function Zs(e){var t=e==null?0:e.length;return t?Ai(e,1):[]}function qs(e){var t=e==null?0:e.length;return t?Ai(e,k):[]}function Xs(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:Zc(t);return Ai(e,t)}function Ys(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function Js(e){return e&&e.length?e[0]:r}function Qs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Zc(r);if(i<0){i=Gt(n+i,0)}return Dr(e,t,i)}function eu(e){var t=e==null?0:e.length;return t?Ao(e,0,-1):[]}var tu=bo((function(e){var t=Sr(e,Go);return t.length&&t[0]===e[0]?Hi(t):[]}));var ru=bo((function(e){var t=ou(e),n=Sr(e,Go);if(t===ou(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?Hi(n,$a(t,2)):[]}));var nu=bo((function(e){var t=ou(e),n=Sr(e,Go);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?Hi(n,r,t):[]}));function iu(e,t){return e==null?"":jt.call(e,t)}function ou(e){var t=e==null?0:e.length;return t?e[t-1]:r}function au(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i;if(n!==r){o=Zc(n);o=o<0?Gt(i+o,0):Bt(o,i-1)}return t===t?dn(e,t,o):kr(e,Fr,o,true)}function su(e,t){return e&&e.length?co(e,Zc(t)):r}var uu=bo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,r){return e&&e.length&&t&&t.length?go(e,t,$a(r,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var du=ja((function(e,t){var r=e==null?0:e.length,n=pi(e,t);mo(e,Sr(t,(function(e){return as(e,r)?+e:e})).sort(ea));return n}));function vu(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],o=e.length;t=$a(t,3);while(++n<o){var a=e[n];if(t(a,n,e)){r.push(a);i.push(n)}}mo(e,i);return r}function hu(e){return e==null?e:Yt.call(e)}function pu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&ss(e,t,n)){t=0;n=i}else{t=t==null?0:Zc(t);n=n===r?i:Zc(n)}return Ao(e,t,n)}function gu(e,t){return Po(e,t)}function mu(e,t,r){return Io(e,t,$a(r,2))}function Cu(e,t){var r=e==null?0:e.length;if(r){var n=Po(e,t);if(n<r&&ic(e[n],t)){return n}}return-1}function yu(e,t){return Po(e,t,true)}function _u(e,t,r){return Io(e,t,$a(r,2),true)}function bu(e,t){var r=e==null?0:e.length;if(r){var n=Po(e,t,true)-1;if(ic(e[n],t)){return n}}return-1}function wu(e){return e&&e.length?Oo(e):[]}function Lu(e,t){return e&&e.length?Oo(e,$a(t,2)):[]}function Su(e){var t=e==null?0:e.length;return t?Ao(e,1,t):[]}function xu(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:Zc(t);return Ao(e,0,t<0?0:t)}function Eu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Zc(t);t=i-t;return Ao(e,t<0?0:t,i)}function Ru(e,t){return e&&e.length?jo(e,$a(t,3),false,true):[]}function Au(e,t){return e&&e.length?jo(e,$a(t,3)):[]}var Tu=bo((function(e){return zo(Ai(e,1,fc,true))}));var Pu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return zo(Ai(e,1,fc,true),$a(t,2))}));var Iu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return zo(Ai(e,1,fc,true),r,t)}));function Ou(e){return e&&e.length?zo(e):[]}function ku(e,t){return e&&e.length?zo(e,$a(t,2)):[]}function Du(e,t){t=typeof t=="function"?t:r;return e&&e.length?zo(e,r,t):[]}function zu(e){if(!(e&&e.length)){return[]}var t=0;e=br(e,(function(e){if(fc(e)){t=Gt(e.length,t);return true}}));return Br(t,(function(t){return Sr(e,jr(t))}))}function Fu(e,t){if(!(e&&e.length)){return[]}var n=zu(e);if(t==null){return n}return Sr(n,(function(e){return gr(t,r,e)}))}var Mu=bo((function(e,t){return fc(e)?bi(e,t):[]}));var ju=bo((function(e){return No(br(e,fc))}));var Uu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return No(br(e,fc),$a(t,2))}));var Nu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return No(br(e,fc),r,t)}));var Hu=bo(zu);function Gu(e,t){return Ho(e||[],t||[],li)}function Bu(e,t){return Ho(e||[],t||[],So)}var $u=bo((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return Fu(e,n)}));function Vu(e){var t=Ln(e);t.__chain__=true;return t}function Wu(e,t){t(e);return e}function Ku(e,t){return t(e)}var Zu=ja((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return pi(t,e)};if(t>1||this.__actions__.length||!(i instanceof Rn)||!as(n)){return this.thru(o)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:Ku,args:[o],thisArg:r});return new En(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function qu(){return Vu(this)}function Xu(){return new En(this.value(),this.__chain__)}function Yu(){if(this.__values__===r){this.__values__=Wc(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Ju(){return this}function Qu(e){var t,n=this;while(n instanceof xn){var i=Ds(n);i.__index__=0;i.__values__=r;if(t){o.__wrapped__=i}else{t=i}var o=i;n=n.__wrapped__}o.__wrapped__=e;return t}function el(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;if(this.__actions__.length){t=new Rn(this)}t=t.reverse();t.__actions__.push({func:Ku,args:[hu],thisArg:r});return new En(t,this.__chain__)}return this.thru(hu)}function tl(){return Uo(this.__wrapped__,this.__actions__)}var rl=ua((function(e,t,r){if(ft.call(e,r)){++e[r]}else{hi(e,r,1)}}));function nl(e,t,n){var i=uc(e)?_r:Si;if(n&&ss(e,t,n)){t=r}return i(e,$a(t,3))}function il(e,t){var r=uc(e)?br:Ri;return r(e,$a(t,3))}var ol=ma(Ws);var al=ma(Ks);function sl(e,t){return Ai(gl(e,t),1)}function ul(e,t){return Ai(gl(e,t),k)}function ll(e,t,n){n=n===r?1:Zc(n);return Ai(gl(e,t),n)}function cl(e,t){var r=uc(e)?Cr:wi;return r(e,$a(t,3))}function fl(e,t){var r=uc(e)?yr:Li;return r(e,$a(t,3))}var dl=ua((function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{hi(e,r,[t])}}));function vl(e,t,r,n){e=cc(e)?e:Gf(e);r=r&&!n?Zc(r):0;var i=e.length;if(r<0){r=Gt(i+r,0)}return jc(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Dr(e,t,r)>-1}var hl=bo((function(e,t,r){var n=-1,i=typeof t=="function",o=cc(e)?Fe(e.length):[];wi(e,(function(e){o[++n]=i?gr(t,e,r):Bi(e,t,r)}));return o}));var pl=ua((function(e,t,r){hi(e,r,t)}));function gl(e,t){var r=uc(e)?Sr:oo;return r(e,$a(t,3))}function ml(e,t,n,i){if(e==null){return[]}if(!uc(t)){t=t==null?[]:[t]}n=i?r:n;if(!uc(n)){n=n==null?[]:[n]}return fo(e,t,n)}var Cl=ua((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function yl(e,t,r){var n=uc(e)?Er:Nr,i=arguments.length<3;return n(e,$a(t,4),r,i,wi)}function _l(e,t,r){var n=uc(e)?Rr:Nr,i=arguments.length<3;return n(e,$a(t,4),r,i,Li)}function bl(e,t){var r=uc(e)?br:Ri;return r(e,Hl($a(t,3)))}function wl(e){var t=uc(e)?oi:wo;return t(e)}function Ll(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Zc(t)}var i=uc(e)?ai:Lo;return i(e,t)}function Sl(e){var t=uc(e)?si:Ro;return t(e)}function xl(e){if(e==null){return 0}if(cc(e)){return jc(e)?vn(e):e.length}var t=Ya(e);if(t==X||t==ne){return e.size}return ro(e).length}function El(e,t,n){var i=uc(e)?Ar:To;if(n&&ss(e,t,n)){t=r}return i(e,$a(t,3))}var Rl=bo((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&ss(e,t[0],t[1])){t=[]}else if(r>2&&ss(t[0],t[1],t[2])){t=[t[0]]}return fo(e,Ai(t,1),[])}));var Al=It||function(){return ir.Date.now()};function Tl(e,t){if(typeof t!="function"){throw new ot(a)}e=Zc(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Pl(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return Ia(e,L,r,r,r,r,t)}function Il(e,t){var n;if(typeof t!="function"){throw new ot(a)}e=Zc(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var Ol=bo((function(e,t,r){var n=g;if(r.length){var i=un(r,Ba(Ol));n|=b}return Ia(e,n,t,r,i)}));var kl=bo((function(e,t,r){var n=g|m;if(r.length){var i=un(r,Ba(kl));n|=b}return Ia(t,n,e,r,i)}));function Dl(e,t,n){t=n?r:t;var i=Ia(e,y,r,r,r,r,r,t);i.placeholder=Dl.placeholder;return i}function zl(e,t,n){t=n?r:t;var i=Ia(e,_,r,r,r,r,r,t);i.placeholder=zl.placeholder;return i}function Fl(e,t,n){var i,o,s,u,l,c,f=0,d=false,v=false,h=true;if(typeof e!="function"){throw new ot(a)}t=Xc(t)||0;if(Sc(n)){d=!!n.leading;v="maxWait"in n;s=v?Gt(Xc(n.maxWait)||0,t):s;h="trailing"in n?!!n.trailing:h}function p(t){var n=i,a=o;i=o=r;f=t;u=e.apply(a,n);return u}function g(e){f=e;l=xs(y,t);return d?p(e):u}function m(e){var r=e-c,n=e-f,i=t-r;return v?Bt(i,s-n):i}function C(e){var n=e-c,i=e-f;return c===r||n>=t||n<0||v&&i>=s}function y(){var e=Al();if(C(e)){return _(e)}l=xs(y,m(e))}function _(e){l=r;if(h&&i){return p(e)}i=o=r;return u}function b(){if(l!==r){Ko(l)}f=0;i=c=o=l=r}function w(){return l===r?u:_(Al())}function L(){var e=Al(),n=C(e);i=arguments;o=this;c=e;if(n){if(l===r){return g(c)}if(v){Ko(l);l=xs(y,t);return p(c)}}if(l===r){l=xs(y,t)}return u}L.cancel=b;L.flush=w;return L}var Ml=bo((function(e,t){return _i(e,1,t)}));var jl=bo((function(e,t,r){return _i(e,Xc(t)||0,r)}));function Ul(e){return Ia(e,x)}function Nl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ot(a)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Nl.Cache||Bn);return r}Nl.Cache=Bn;function Hl(e){if(typeof e!="function"){throw new ot(a)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Gl(e){return Il(2,e)}var Bl=Vo((function(e,t){t=t.length==1&&uc(t[0])?Sr(t[0],Wr($a())):Sr(Ai(t,1),Wr($a()));var r=t.length;return bo((function(n){var i=-1,o=Bt(n.length,r);while(++i<o){n[i]=t[i].call(this,n[i])}return gr(e,this,n)}))}));var $l=bo((function(e,t){var n=un(t,Ba($l));return Ia(e,b,r,t,n)}));var Vl=bo((function(e,t){var n=un(t,Ba(Vl));return Ia(e,w,r,t,n)}));var Wl=ja((function(e,t){return Ia(e,S,r,r,r,t)}));function Kl(e,t){if(typeof e!="function"){throw new ot(a)}t=t===r?t:Zc(t);return bo(e,t)}function Zl(e,t){if(typeof e!="function"){throw new ot(a)}t=t==null?0:Gt(Zc(t),0);return bo((function(r){var n=r[t],i=Wo(r,0,t);if(n){xr(i,n)}return gr(e,this,i)}))}function ql(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ot(a)}if(Sc(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Fl(e,t,{leading:n,maxWait:t,trailing:i})}function Xl(e){return Pl(e,1)}function Yl(e,t){return $l(Bo(t),e)}function Jl(){if(!arguments.length){return[]}var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return mi(e,v)}function ec(e,t){t=typeof t=="function"?t:r;return mi(e,v,t)}function tc(e){return mi(e,f|v)}function rc(e,t){t=typeof t=="function"?t:r;return mi(e,f|v,t)}function nc(e,t){return t==null||yi(e,t,Lf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Ea(Mi);var ac=Ea((function(e,t){return e>=t}));var sc=$i(function(){return arguments}())?$i:function(e){return xc(e)&&ft.call(e,"callee")&&!St.call(e,"callee")};var uc=Fe.isArray;var lc=cr?Wr(cr):Vi;function cc(e){return e!=null&&Lc(e.length)&&!bc(e)}function fc(e){return xc(e)&&cc(e)}function dc(e){return e===true||e===false||xc(e)&&Fi(e)==$}var vc=Ft||qd;var hc=fr?Wr(fr):Wi;function pc(e){return xc(e)&&e.nodeType===1&&!Dc(e)}function gc(e){if(e==null){return true}if(cc(e)&&(uc(e)||typeof e=="string"||typeof e.splice=="function"||vc(e)||Nc(e)||sc(e))){return!e.length}var t=Ya(e);if(t==X||t==ne){return!e.size}if(vs(e)){return!ro(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function mc(e,t){return Ki(e,t)}function Cc(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?Ki(e,t,r,n):!!i}function yc(e){if(!xc(e)){return false}var t=Fi(e);return t==K||t==W||typeof e.message=="string"&&typeof e.name=="string"&&!Dc(e)}function _c(e){return typeof e=="number"&&Mt(e)}function bc(e){if(!Sc(e)){return false}var t=Fi(e);return t==Z||t==q||t==B||t==te}function wc(e){return typeof e=="number"&&e==Zc(e)}function Lc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D}function Sc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xc(e){return e!=null&&typeof e=="object"}var Ec=dr?Wr(dr):qi;function Rc(e,t){return e===t||Xi(e,t,Wa(t))}function Ac(e,t,n){n=typeof n=="function"?n:r;return Xi(e,t,Wa(t),n)}function Tc(e){return kc(e)&&e!=+e}function Pc(e){if(ds(e)){throw new Qe(o)}return Yi(e)}function Ic(e){return e===null}function Oc(e){return e==null}function kc(e){return typeof e=="number"||xc(e)&&Fi(e)==Y}function Dc(e){if(!xc(e)||Fi(e)!=Q){return false}var t=wt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==pt}var zc=vr?Wr(vr):Ji;function Fc(e){return wc(e)&&e>=-D&&e<=D}var Mc=hr?Wr(hr):Qi;function jc(e){return typeof e=="string"||!uc(e)&&xc(e)&&Fi(e)==ie}function Uc(e){return typeof e=="symbol"||xc(e)&&Fi(e)==oe}var Nc=pr?Wr(pr):eo;function Hc(e){return e===r}function Gc(e){return xc(e)&&Ya(e)==se}function Bc(e){return xc(e)&&Fi(e)==ue}var $c=Ea(io);var Vc=Ea((function(e,t){return e<=t}));function Wc(e){if(!e){return[]}if(cc(e)){return jc(e)?hn(e):ia(e)}if(Rt&&e[Rt]){return on(e[Rt]())}var t=Ya(e),r=t==X?an:t==ne?ln:Gf;return r(e)}function Kc(e){if(!e){return e===0?e:0}e=Xc(e);if(e===k||e===-k){var t=e<0?-1:1;return t*z}return e===e?e:0}function Zc(e){var t=Kc(e),r=t%1;return t===t?r?t-r:t:0}function qc(e){return e?gi(Zc(e),0,M):0}function Xc(e){if(typeof e=="number"){return e}if(Uc(e)){return F}if(Sc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sc(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Vr(e);var r=We.test(e);return r||Ze.test(e)?tr(e.slice(2),r?2:8):Ve.test(e)?F:+e}function Yc(e){return oa(e,Sf(e))}function Jc(e){return e?gi(Zc(e),-D,D):e===0?e:0}function Qc(e){return e==null?"":Do(e)}var ef=la((function(e,t){if(vs(t)||cc(t)){oa(t,Lf(t),e);return}for(var r in t){if(ft.call(t,r)){li(e,r,t[r])}}}));var tf=la((function(e,t){oa(t,Sf(t),e)}));var rf=la((function(e,t,r,n){oa(t,Sf(t),e,n)}));var nf=la((function(e,t,r,n){oa(t,Lf(t),e,n)}));var of=ja(pi);function af(e,t){var r=Sn(e);return t==null?r:di(r,t)}var sf=bo((function(e,t){e=rt(e);var n=-1;var i=t.length;var o=i>2?t[2]:r;if(o&&ss(t[0],t[1],o)){i=1}while(++n<i){var a=t[n];var s=Sf(a);var u=-1;var l=s.length;while(++u<l){var c=s[u];var f=e[c];if(f===r||ic(f,ut[c])&&!ft.call(e,c)){e[c]=a[c]}}}return e}));var uf=bo((function(e){e.push(r,ka);return gr(Af,r,e)}));function lf(e,t){return Or(e,$a(t,3),Ii)}function cf(e,t){return Or(e,$a(t,3),Oi)}function ff(e,t){return e==null?e:Ti(e,$a(t,3),Sf)}function df(e,t){return e==null?e:Pi(e,$a(t,3),Sf)}function vf(e,t){return e&&Ii(e,$a(t,3))}function hf(e,t){return e&&Oi(e,$a(t,3))}function pf(e){return e==null?[]:ki(e,Lf(e))}function gf(e){return e==null?[]:ki(e,Sf(e))}function mf(e,t,n){var i=e==null?r:Di(e,t);return i===r?n:i}function Cf(e,t){return e!=null&&es(e,t,ji)}function yf(e,t){return e!=null&&es(e,t,Ui)}var _f=_a((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}e[t]=r}),Rd(Id));var bf=_a((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}if(ft.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),$a);var wf=bo(Bi);function Lf(e){return cc(e)?ii(e):ro(e)}function Sf(e){return cc(e)?ii(e,true):no(e)}function xf(e,t){var r={};t=$a(t,3);Ii(e,(function(e,n,i){hi(r,t(e,n,i),e)}));return r}function Ef(e,t){var r={};t=$a(t,3);Ii(e,(function(e,n,i){hi(r,n,t(e,n,i))}));return r}var Rf=la((function(e,t,r){uo(e,t,r)}));var Af=la((function(e,t,r,n){uo(e,t,r,n)}));var Tf=ja((function(e,t){var r={};if(e==null){return r}var n=false;t=Sr(t,(function(t){t=$o(t,e);n||(n=t.length>1);return t}));oa(e,Na(e),r);if(n){r=mi(r,f|d|v,Da)}var i=t.length;while(i--){Fo(r,t[i])}return r}));function Pf(e,t){return Of(e,Hl($a(t)))}var If=ja((function(e,t){return e==null?{}:vo(e,t)}));function Of(e,t){if(e==null){return{}}var r=Sr(Na(e),(function(e){return[e]}));t=$a(t);return ho(e,r,(function(e,r){return t(e,r[0])}))}function kf(e,t,n){t=$o(t,e);var i=-1,o=t.length;if(!o){o=1;e=r}while(++i<o){var a=e==null?r:e[Is(t[i])];if(a===r){i=o;a=n}e=bc(a)?a.call(e):a}return e}function Df(e,t,r){return e==null?e:So(e,t,r)}function zf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:So(e,t,n,i)}var Ff=Pa(Lf);var Mf=Pa(Sf);function jf(e,t,r){var n=uc(e),i=n||vc(e)||Nc(e);t=$a(t,4);if(r==null){var o=e&&e.constructor;if(i){r=n?new o:[]}else if(Sc(e)){r=bc(o)?Sn(wt(e)):{}}else{r={}}}(i?Cr:Ii)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function Uf(e,t){return e==null?true:Fo(e,t)}function Nf(e,t,r){return e==null?e:Mo(e,t,Bo(r))}function Hf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:Mo(e,t,Bo(n),i)}function Gf(e){return e==null?[]:Kr(e,Lf(e))}function Bf(e){return e==null?[]:Kr(e,Sf(e))}function $f(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=Xc(n);n=n===n?n:0}if(t!==r){t=Xc(t);t=t===t?t:0}return gi(Xc(e),t,n)}function Vf(e,t,n){t=Kc(t);if(n===r){n=t;t=0}else{n=Kc(n)}e=Xc(e);return Ni(e,t,n)}function Wf(e,t,n){if(n&&typeof n!="boolean"&&ss(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=Kc(e);if(t===r){t=e;e=0}else{t=Kc(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var o=Xt();return Bt(e+o*(t-e+er("1e-"+((o+"").length-1))),t)}return Co(e,t)}var Kf=ha((function(e,t,r){t=t.toLowerCase();return e+(r?Zf(t):t)}));function Zf(e){return bd(Qc(e).toLowerCase())}function qf(e){e=Qc(e);return e&&e.replace(Xe,Jr).replace(Ht,"")}function Xf(e,t,n){e=Qc(e);t=Do(t);var i=e.length;n=n===r?i:gi(Zc(n),0,i);var o=n;n-=t.length;return n>=0&&e.slice(n,o)==t}function Yf(e){e=Qc(e);return e&&Ee.test(e)?e.replace(Se,Qr):e}function Jf(e){e=Qc(e);return e&&De.test(e)?e.replace(ke,"\\$&"):e}var Qf=ha((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var ed=ha((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var td=va("toLowerCase");function rd(e,t,r){e=Qc(e);t=Zc(t);var n=t?vn(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return La(Dt(i),r)+e+La(kt(i),r)}function nd(e,t,r){e=Qc(e);t=Zc(t);var n=t?vn(e):0;return t&&n<t?e+La(t-n,r):e}function id(e,t,r){e=Qc(e);t=Zc(t);var n=t?vn(e):0;return t&&n<t?La(t-n,r)+e:e}function od(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Vt(Qc(e).replace(ze,""),t||0)}function ad(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Zc(t)}return _o(Qc(e),t)}function sd(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ud=ha((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function ld(e,t,n){if(n&&typeof n!="number"&&ss(e,t,n)){t=n=r}n=n===r?M:n>>>0;if(!n){return[]}e=Qc(e);if(e&&(typeof t=="string"||t!=null&&!zc(t))){t=Do(t);if(!t&&rn(e)){return Wo(hn(e),0,n)}}return e.split(t,n)}var cd=ha((function(e,t,r){return e+(r?" ":"")+bd(t)}));function fd(e,t,r){e=Qc(e);r=r==null?0:gi(Zc(r),0,e.length);t=Do(t);return e.slice(r,r+t.length)==t}function dd(e,t,n){var i=Ln.templateSettings;if(n&&ss(e,t,n)){t=r}e=Qc(e);t=rf({},t,i,Oa);var o=rf({},t.imports,i.imports,Oa),a=Lf(o),u=Kr(o,a);var l,c,f=0,d=t.interpolate||Ye,v="__p += '";var h=nt((t.escape||Ye).source+"|"+d.source+"|"+(d===Te?Be:Ye).source+"|"+(t.evaluate||Ye).source+"|$","g");var p="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kt+"]")+"\n";e.replace(h,(function(t,r,n,i,o,a){n||(n=i);v+=e.slice(f,a).replace(Je,en);if(r){l=true;v+="' +\n__e("+r+") +\n'"}if(o){c=true;v+="';\n"+o+";\n__p += '"}if(n){v+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=a+t.length;return t}));v+="';\n";var g=ft.call(t,"variable")&&t.variable;if(!g){v="with (obj) {\n"+v+"\n}\n"}else if(He.test(g)){throw new Qe(s)}v=(c?v.replace(_e,""):v).replace(be,"$1").replace(we,"$1;");v="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+v+"return __p\n}";var m=Ld((function(){return et(a,p+"return "+v).apply(r,u)}));m.source=v;if(yc(m)){throw m}return m}function vd(e){return Qc(e).toLowerCase()}function hd(e){return Qc(e).toUpperCase()}function pd(e,t,n){e=Qc(e);if(e&&(n||t===r)){return Vr(e)}if(!e||!(t=Do(t))){return e}var i=hn(e),o=hn(t),a=qr(i,o),s=Xr(i,o)+1;return Wo(i,a,s).join("")}function gd(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.slice(0,pn(e)+1)}if(!e||!(t=Do(t))){return e}var i=hn(e),o=Xr(i,hn(t))+1;return Wo(i,0,o).join("")}function md(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.replace(ze,"")}if(!e||!(t=Do(t))){return e}var i=hn(e),o=qr(i,hn(t));return Wo(i,o).join("")}function Cd(e,t){var n=E,i=R;if(Sc(t)){var o="separator"in t?t.separator:o;n="length"in t?Zc(t.length):n;i="omission"in t?Do(t.omission):i}e=Qc(e);var a=e.length;if(rn(e)){var s=hn(e);a=s.length}if(n>=a){return e}var u=n-vn(i);if(u<1){return i}var l=s?Wo(s,0,u).join(""):e.slice(0,u);if(o===r){return l+i}if(s){u+=l.length-u}if(zc(o)){if(e.slice(u).search(o)){var c,f=l;if(!o.global){o=nt(o.source,Qc($e.exec(o))+"g")}o.lastIndex=0;while(c=o.exec(f)){var d=c.index}l=l.slice(0,d===r?u:d)}}else if(e.indexOf(Do(o),u)!=u){var v=l.lastIndexOf(o);if(v>-1){l=l.slice(0,v)}}return l+i}function yd(e){e=Qc(e);return e&&xe.test(e)?e.replace(Le,gn):e}var _d=ha((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var bd=va("toUpperCase");function wd(e,t,n){e=Qc(e);t=n?r:t;if(t===r){return nn(e)?yn(e):Ir(e)}return e.match(t)||[]}var Ld=bo((function(e,t){try{return gr(e,r,t)}catch(e){return yc(e)?e:new Qe(e)}}));var Sd=ja((function(e,t){Cr(t,(function(t){t=Is(t);hi(e,t,Ol(e[t],e))}));return e}));function xd(e){var t=e==null?0:e.length,r=$a();e=!t?[]:Sr(e,(function(e){if(typeof e[1]!="function"){throw new ot(a)}return[r(e[0]),e[1]]}));return bo((function(r){var n=-1;while(++n<t){var i=e[n];if(gr(i[0],this,r)){return gr(i[1],this,r)}}}))}function Ed(e){return Ci(mi(e,f))}function Rd(e){return function(){return e}}function Ad(e,t){return e==null||e!==e?t:e}var Td=Ca();var Pd=Ca(true);function Id(e){return e}function Od(e){return to(typeof e=="function"?e:mi(e,f))}function kd(e){return ao(mi(e,f))}function Dd(e,t){return so(e,mi(t,f))}var zd=bo((function(e,t){return function(r){return Bi(r,e,t)}}));var Fd=bo((function(e,t){return function(r){return Bi(e,r,t)}}));function Md(e,t,r){var n=Lf(t),i=ki(t,n);if(r==null&&!(Sc(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=ki(t,Lf(t))}var o=!(Sc(r)&&"chain"in r)||!!r.chain,a=bc(e);Cr(i,(function(r){var n=t[r];e[r]=n;if(a){e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=ia(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,xr([this.value()],arguments))}}}));return e}function jd(){if(ir._===this){ir._=gt}return this}function Ud(){}function Nd(e){e=Zc(e);return bo((function(t){return co(t,e)}))}var Hd=wa(Sr);var Gd=wa(_r);var Bd=wa(Ar);function $d(e){return us(e)?jr(Is(e)):po(e)}function Vd(e){return function(t){return e==null?r:Di(e,t)}}var Wd=xa();var Kd=xa(true);function Zd(){return[]}function qd(){return false}function Xd(){return{}}function Yd(){return""}function Jd(){return true}function Qd(e,t){e=Zc(e);if(e<1||e>D){return[]}var r=M,n=Bt(e,M);t=$a(t);e-=M;var i=Br(n,t);while(++r<e){t(r)}return i}function ev(e){if(uc(e)){return Sr(e,Is)}return Uc(e)?[e]:ia(Ps(Qc(e)))}function tv(e){var t=++dt;return Qc(e)+t}var rv=ba((function(e,t){return e+t}),0);var nv=Aa("ceil");var iv=ba((function(e,t){return e/t}),1);var ov=Aa("floor");function av(e){return e&&e.length?xi(e,Id,Mi):r}function sv(e,t){return e&&e.length?xi(e,$a(t,2),Mi):r}function uv(e){return Mr(e,Id)}function lv(e,t){return Mr(e,$a(t,2))}function cv(e){return e&&e.length?xi(e,Id,io):r}function fv(e,t){return e&&e.length?xi(e,$a(t,2),io):r}var dv=ba((function(e,t){return e*t}),1);var vv=Aa("round");var hv=ba((function(e,t){return e-t}),0);function pv(e){return e&&e.length?Gr(e,Id):0}function gv(e,t){return e&&e.length?Gr(e,$a(t,2)):0}Ln.after=Tl;Ln.ary=Pl;Ln.assign=ef;Ln.assignIn=tf;Ln.assignInWith=rf;Ln.assignWith=nf;Ln.at=of;Ln.before=Il;Ln.bind=Ol;Ln.bindAll=Sd;Ln.bindKey=kl;Ln.castArray=Jl;Ln.chain=Vu;Ln.chunk=zs;Ln.compact=Fs;Ln.concat=Ms;Ln.cond=xd;Ln.conforms=Ed;Ln.constant=Rd;Ln.countBy=rl;Ln.create=af;Ln.curry=Dl;Ln.curryRight=zl;Ln.debounce=Fl;Ln.defaults=sf;Ln.defaultsDeep=uf;Ln.defer=Ml;Ln.delay=jl;Ln.difference=js;Ln.differenceBy=Us;Ln.differenceWith=Ns;Ln.drop=Hs;Ln.dropRight=Gs;Ln.dropRightWhile=Bs;Ln.dropWhile=$s;Ln.fill=Vs;Ln.filter=il;Ln.flatMap=sl;Ln.flatMapDeep=ul;Ln.flatMapDepth=ll;Ln.flatten=Zs;Ln.flattenDeep=qs;Ln.flattenDepth=Xs;Ln.flip=Ul;Ln.flow=Td;Ln.flowRight=Pd;Ln.fromPairs=Ys;Ln.functions=pf;Ln.functionsIn=gf;Ln.groupBy=dl;Ln.initial=eu;Ln.intersection=tu;Ln.intersectionBy=ru;Ln.intersectionWith=nu;Ln.invert=_f;Ln.invertBy=bf;Ln.invokeMap=hl;Ln.iteratee=Od;Ln.keyBy=pl;Ln.keys=Lf;Ln.keysIn=Sf;Ln.map=gl;Ln.mapKeys=xf;Ln.mapValues=Ef;Ln.matches=kd;Ln.matchesProperty=Dd;Ln.memoize=Nl;Ln.merge=Rf;Ln.mergeWith=Af;Ln.method=zd;Ln.methodOf=Fd;Ln.mixin=Md;Ln.negate=Hl;Ln.nthArg=Nd;Ln.omit=Tf;Ln.omitBy=Pf;Ln.once=Gl;Ln.orderBy=ml;Ln.over=Hd;Ln.overArgs=Bl;Ln.overEvery=Gd;Ln.overSome=Bd;Ln.partial=$l;Ln.partialRight=Vl;Ln.partition=Cl;Ln.pick=If;Ln.pickBy=Of;Ln.property=$d;Ln.propertyOf=Vd;Ln.pull=uu;Ln.pullAll=lu;Ln.pullAllBy=cu;Ln.pullAllWith=fu;Ln.pullAt=du;Ln.range=Wd;Ln.rangeRight=Kd;Ln.rearg=Wl;Ln.reject=bl;Ln.remove=vu;Ln.rest=Kl;Ln.reverse=hu;Ln.sampleSize=Ll;Ln.set=Df;Ln.setWith=zf;Ln.shuffle=Sl;Ln.slice=pu;Ln.sortBy=Rl;Ln.sortedUniq=wu;Ln.sortedUniqBy=Lu;Ln.split=ld;Ln.spread=Zl;Ln.tail=Su;Ln.take=xu;Ln.takeRight=Eu;Ln.takeRightWhile=Ru;Ln.takeWhile=Au;Ln.tap=Wu;Ln.throttle=ql;Ln.thru=Ku;Ln.toArray=Wc;Ln.toPairs=Ff;Ln.toPairsIn=Mf;Ln.toPath=ev;Ln.toPlainObject=Yc;Ln.transform=jf;Ln.unary=Xl;Ln.union=Tu;Ln.unionBy=Pu;Ln.unionWith=Iu;Ln.uniq=Ou;Ln.uniqBy=ku;Ln.uniqWith=Du;Ln.unset=Uf;Ln.unzip=zu;Ln.unzipWith=Fu;Ln.update=Nf;Ln.updateWith=Hf;Ln.values=Gf;Ln.valuesIn=Bf;Ln.without=Mu;Ln.words=wd;Ln.wrap=Yl;Ln.xor=ju;Ln.xorBy=Uu;Ln.xorWith=Nu;Ln.zip=Hu;Ln.zipObject=Gu;Ln.zipObjectDeep=Bu;Ln.zipWith=$u;Ln.entries=Ff;Ln.entriesIn=Mf;Ln.extend=tf;Ln.extendWith=rf;Md(Ln,Ln);Ln.add=rv;Ln.attempt=Ld;Ln.camelCase=Kf;Ln.capitalize=Zf;Ln.ceil=nv;Ln.clamp=$f;Ln.clone=Ql;Ln.cloneDeep=tc;Ln.cloneDeepWith=rc;Ln.cloneWith=ec;Ln.conformsTo=nc;Ln.deburr=qf;Ln.defaultTo=Ad;Ln.divide=iv;Ln.endsWith=Xf;Ln.eq=ic;Ln.escape=Yf;Ln.escapeRegExp=Jf;Ln.every=nl;Ln.find=ol;Ln.findIndex=Ws;Ln.findKey=lf;Ln.findLast=al;Ln.findLastIndex=Ks;Ln.findLastKey=cf;Ln.floor=ov;Ln.forEach=cl;Ln.forEachRight=fl;Ln.forIn=ff;Ln.forInRight=df;Ln.forOwn=vf;Ln.forOwnRight=hf;Ln.get=mf;Ln.gt=oc;Ln.gte=ac;Ln.has=Cf;Ln.hasIn=yf;Ln.head=Js;Ln.identity=Id;Ln.includes=vl;Ln.indexOf=Qs;Ln.inRange=Vf;Ln.invoke=wf;Ln.isArguments=sc;Ln.isArray=uc;Ln.isArrayBuffer=lc;Ln.isArrayLike=cc;Ln.isArrayLikeObject=fc;Ln.isBoolean=dc;Ln.isBuffer=vc;Ln.isDate=hc;Ln.isElement=pc;Ln.isEmpty=gc;Ln.isEqual=mc;Ln.isEqualWith=Cc;Ln.isError=yc;Ln.isFinite=_c;Ln.isFunction=bc;Ln.isInteger=wc;Ln.isLength=Lc;Ln.isMap=Ec;Ln.isMatch=Rc;Ln.isMatchWith=Ac;Ln.isNaN=Tc;Ln.isNative=Pc;Ln.isNil=Oc;Ln.isNull=Ic;Ln.isNumber=kc;Ln.isObject=Sc;Ln.isObjectLike=xc;Ln.isPlainObject=Dc;Ln.isRegExp=zc;Ln.isSafeInteger=Fc;Ln.isSet=Mc;Ln.isString=jc;Ln.isSymbol=Uc;Ln.isTypedArray=Nc;Ln.isUndefined=Hc;Ln.isWeakMap=Gc;Ln.isWeakSet=Bc;Ln.join=iu;Ln.kebabCase=Qf;Ln.last=ou;Ln.lastIndexOf=au;Ln.lowerCase=ed;Ln.lowerFirst=td;Ln.lt=$c;Ln.lte=Vc;Ln.max=av;Ln.maxBy=sv;Ln.mean=uv;Ln.meanBy=lv;Ln.min=cv;Ln.minBy=fv;Ln.stubArray=Zd;Ln.stubFalse=qd;Ln.stubObject=Xd;Ln.stubString=Yd;Ln.stubTrue=Jd;Ln.multiply=dv;Ln.nth=su;Ln.noConflict=jd;Ln.noop=Ud;Ln.now=Al;Ln.pad=rd;Ln.padEnd=nd;Ln.padStart=id;Ln.parseInt=od;Ln.random=Wf;Ln.reduce=yl;Ln.reduceRight=_l;Ln.repeat=ad;Ln.replace=sd;Ln.result=kf;Ln.round=vv;Ln.runInContext=e;Ln.sample=wl;Ln.size=xl;Ln.snakeCase=ud;Ln.some=El;Ln.sortedIndex=gu;Ln.sortedIndexBy=mu;Ln.sortedIndexOf=Cu;Ln.sortedLastIndex=yu;Ln.sortedLastIndexBy=_u;Ln.sortedLastIndexOf=bu;Ln.startCase=cd;Ln.startsWith=fd;Ln.subtract=hv;Ln.sum=pv;Ln.sumBy=gv;Ln.template=dd;Ln.times=Qd;Ln.toFinite=Kc;Ln.toInteger=Zc;Ln.toLength=qc;Ln.toLower=vd;Ln.toNumber=Xc;Ln.toSafeInteger=Jc;Ln.toString=Qc;Ln.toUpper=hd;Ln.trim=pd;Ln.trimEnd=gd;Ln.trimStart=md;Ln.truncate=Cd;Ln.unescape=yd;Ln.uniqueId=tv;Ln.upperCase=_d;Ln.upperFirst=bd;Ln.each=cl;Ln.eachRight=fl;Ln.first=Js;Md(Ln,function(){var e={};Ii(Ln,(function(t,r){if(!ft.call(Ln.prototype,r)){e[r]=t}}));return e}(),{chain:false});Ln.VERSION=n;Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln}));Cr(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=n===r?1:Gt(Zc(n),0);var i=this.__filtered__&&!t?new Rn(this):this.clone();if(i.__filtered__){i.__takeCount__=Bt(n,i.__takeCount__)}else{i.__views__.push({size:Bt(n,M),type:e+(i.__dir__<0?"Right":"")})}return i};Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));Cr(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==P||r==O;Rn.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:$a(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));Cr(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[r](1).value()[0]}}));Cr(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[r](1)}}));Rn.prototype.compact=function(){return this.filter(Id)};Rn.prototype.find=function(e){return this.filter(e).head()};Rn.prototype.findLast=function(e){return this.reverse().find(e)};Rn.prototype.invokeMap=bo((function(e,t){if(typeof e=="function"){return new Rn(this)}return this.map((function(r){return Bi(r,e,t)}))}));Rn.prototype.reject=function(e){return this.filter(Hl($a(e)))};Rn.prototype.slice=function(e,t){e=Zc(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new Rn(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=Zc(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};Rn.prototype.toArray=function(){return this.take(M)};Ii(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Ln[i?"take"+(t=="last"?"Right":""):t],a=i||/^find/.test(t);if(!o){return}Ln.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof Rn,l=s[0],c=u||uc(t);var f=function(e){var t=o.apply(Ln,xr([e],s));return i&&d?t[0]:t};if(c&&n&&typeof l=="function"&&l.length!=1){u=c=false}var d=this.__chain__,v=!!this.__actions__.length,h=a&&!d,p=u&&!v;if(!a&&c){t=p?t:new Rn(this);var g=e.apply(t,s);g.__actions__.push({func:Ku,args:[f],thisArg:r});return new En(g,d)}if(h&&p){return e.apply(this,s)}g=this.thru(f);return h?i?g.value()[0]:g.value():g}}));Cr(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[r]((function(r){return t.apply(uc(r)?r:[],e)}))}}));Ii(Rn.prototype,(function(e,t){var r=Ln[t];if(r){var n=r.name+"";if(!ft.call(lr,n)){lr[n]=[]}lr[n].push({name:t,func:r})}}));lr[ya(r,m).name]=[{name:"wrapper",func:r}];Rn.prototype.clone=An;Rn.prototype.reverse=Tn;Rn.prototype.value=Pn;Ln.prototype.at=Zu;Ln.prototype.chain=qu;Ln.prototype.commit=Xu;Ln.prototype.next=Yu;Ln.prototype.plant=Qu;Ln.prototype.reverse=el;Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=tl;Ln.prototype.first=Ln.prototype.head;if(Rt){Ln.prototype[Rt]=Ju}return Ln};var bn=_n();if(ar){(ar.exports=bn)._=bn;or._=bn}else{ir._=bn}}).call(commonjsGlobal)}));var ViewportService=function(){function e(e,t){var r,n;this.sv=e;this.storesByType={};this.storesXToType={};this.storesYToType={};(r=this.sv.selectionStoreConnector)===null||r===void 0?void 0:r.beforeUpdate();this.columns=this.getViewportColumnData(t);(n=this.sv.scrollingService)===null||n===void 0?void 0:n.unregister()}e.prototype.onColumnResize=function(e,t,r){var n;(n=this.sv.dimensionProvider)===null||n===void 0?void 0:n.setDimensionSize(e,t.detail);var i=lodash.reduce(t.detail||{},(function(e,t,n){var i=getSourceItem(r,parseInt(n,10));if(i){e[i.prop]=Object.assign(Object.assign({},i),{size:t})}return e}),{});this.sv.resize(i)};e.prototype.getViewportColumnData=function(e){var t=this;var r=[];var n=0;columnTypes.forEach((function(i){var o=t.sv.columnProvider.stores[i].store;if(!o.get("items").length){return}var a={colType:i,position:{x:n,y:1},contentHeight:e,fixWidth:i!=="rgCol",uuid:"".concat(t.sv.uuid,"-").concat(n),viewports:t.sv.viewportProvider.stores,dimensions:t.sv.dimensionProvider.stores,rowStores:t.sv.dataProvider.stores,colStore:o,onHeaderresize:function(e){return t.onColumnResize(i,e,o)}};if(i==="rgCol"){a.onResizeViewport=function(e){var r;return(r=t.sv.viewportProvider)===null||r===void 0?void 0:r.setViewport(e.detail.dimension,{virtualSize:e.detail.size})}}var s=t.gatherColumnData(a);var u=t.registerCol(s.position.x,i);var l=t.dataViewPort(a).reduce((function(e,r){var n=t.registerSegment(r.position);n.setLastCell(r.lastCell);var i=t.registerRow(r.position.y,r.type);var o=Object.assign(Object.assign({},r),{rowSelectionStore:i,segmentSelectionStore:n.store,ref:function(e){return t.sv.selectionStoreConnector.registerSection(e)},onSetRange:function(e){return n.setRangeArea(e.detail)},onSetTempRange:function(e){return n.setTempArea(e.detail)},onFocusCell:function(e){n.clearFocus();t.sv.selectionStoreConnector.focus(n,e.detail)}});e.push(o);return e}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:l}));n++}));return r};e.prototype.registerSegment=function(e){return this.sv.selectionStoreConnector.register(e)};e.prototype.registerRow=function(e,t){this.storesByType[t]=e;this.storesYToType[e]=t;return this.sv.selectionStoreConnector.registerRow(e).store};e.prototype.registerCol=function(e,t){this.storesByType[t]=e;this.storesXToType[e]=t;return this.sv.selectionStoreConnector.registerColumn(e).store};e.prototype.gatherColumnData=function(e){var t;var r=e.uuid;var n=e.dimensions[e.colType].store.get("realSize");var i=(t={contentWidth:n,class:e.colType},t["".concat(UUID)]=e.uuid,t.contentHeight=e.contentHeight,t.key=e.colType,t.onResizeViewport=e.onResizeViewport,t);if(e.fixWidth){i.style={minWidth:"".concat(n,"px")}}var o={parent:r,colData:getVisibleSourceItem(e.colStore),dimensionCol:e.dimensions[e.colType].store,groups:e.colStore.get("groups"),groupingDepth:e.colStore.get("groupingDepth"),onHeaderresize:e.onHeaderresize};return{prop:i,position:e.position,headerProp:o,parent:r,viewportCol:e.viewports[e.colType].store}};e.prototype.dataViewPort=function(e){var t=this;var r={rowPinStart:HEADER_SLOT,rgRow:CONTENT_SLOT,rowPinEnd:FOOTER_SLOT};var n=0;return rowTypes.reduce((function(i,o){var a=e.viewports[o].store.get("realCount")||o==="rgRow";var s=Object.assign(Object.assign({},e),{position:Object.assign(Object.assign({},e.position),{y:a?n:EMPTY_INDEX})});i.push(t.dataPartition(s,o,r[o],o!=="rgRow"));if(a){n++}return i}),[])};e.prototype.dataPartition=function(e,t,r,n){return{colData:e.colStore,viewportCol:e.viewports[e.colType].store,viewportRow:e.viewports[t].store,lastCell:getLastCell(e,t),slot:r,type:t,canDrag:!n,position:e.position,uuid:"".concat(e.uuid,"-").concat(e.position.x,"-").concat(e.position.y),dataStore:e.rowStores[t].store,dimensionCol:e.dimensions[e.colType].store,dimensionRow:e.dimensions[t].store,style:n?{height:"".concat(e.dimensions[t].store.get("realSize"),"px")}:undefined}};e.prototype.scrollToCell=function(e){for(var t in e){var r=e[t];this.sv.scrollingService.onScroll({dimension:t==="x"?"rgCol":"rgRow",coordinate:r})}};e.prototype.clearFocused=function(){this.sv.selectionStoreConnector.clearAll()};e.prototype.clearEdit=function(){this.sv.selectionStoreConnector.setEdit(false)};e.prototype.getFocused=function(){var e=this.sv.selectionStoreConnector.focusedStore;if(!e){return null}var t=this.storesXToType[e.position.x];var r=this.sv.columnProvider.getColumn(e.cell.x,t);var n=this.storesYToType[e.position.x];var i=this.sv.dataProvider.getModel(e.cell.x,n);return{column:r,model:i,cell:e.cell,colType:t,rowType:n}};e.prototype.getSelectedRange=function(){return this.sv.selectionStoreConnector.selectedRange};e.prototype.setEdit=function(e,t,r,n){var i;var o=this.storesByType;var a={x:o[r],y:o[n]};(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.setEditByCell(a,{x:t,y:e})};return e}();var ViewPortSections=function(e){var t=e.resize,r=e.editors,n=e.rowClass,i=e.readonly,o=e.range,a=e.columns,s=e.useClipboard,u=e.columnFilter,l=e.registerElement,c=e.onEdit,f=e.onScroll;var d=[];var v=function(e){var a=[h("revogr-header",Object.assign({viewportCol:e.viewportCol},e.headerProp,{selectionStore:e.columnSelectionStore,slot:HEADER_SLOT,columnFilter:u,canResize:t}))];e.dataPorts.forEach((function(t,u){var l;var f=e.prop.key+(u+1);var d=h("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:s,onSetEdit:function(e){var t=e.detail;return c(t)}}),h("revogr-data",Object.assign({},t,(l={},l[UUID]=t.uuid,l),{key:f,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:DATA_SLOT})),h("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),h("revogr-focus",{colData:t.colData,dataStore:t.dataStore,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));a.push(d)}));d.push(h("revogr-viewport-scroll",Object.assign({},e.prop,{ref:function(t){return l(t,e.prop.key)},onScrollViewport:function(t){return f(t.detail,e.prop.key)}}),a))};for(var p=0,g=a;p<g.length;p++){var m=g[p];v(m)}return d};var GridScrollingService=function(){function e(e){this.setViewport=e;this.elements={}}e.prototype.onScroll=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,a,l;return __generator(this,(function(c){switch(c.label){case 0:for(n in this.elements){if(this.isPinnedColumn(t)&&e.dimension==="rgCol"){if(n===t||!e.delta){continue}for(i=0,o=this.elements[n];i<o.length;i++){a=o[i];a.changeScroll&&(r=a.changeScroll(e))}}else if(e.dimension==="rgCol"&&n==="headerRow"){continue}else{for(s=0,u=this.elements[n];s<u.length;s++){a=u[s];a.setScroll(e)}}}l=e;if(!r)return[3,2];return[4,r];case 1:l=c.sent();c.label=2;case 2:this.setViewport(l);return[2]}}))}))};e.prototype.isPinnedColumn=function(e){return["colPinStart","colPinEnd"].indexOf(e)>-1};e.prototype.registerElements=function(e){this.elements=e};e.prototype.registerElement=function(e,t){if(!this.elements[t]){this.elements[t]=[]}if(e){this.elements[t].push(e)}else if(this.elements[t]){delete this.elements[t]}};e.prototype.unregister=function(){delete this.elements;this.elements={}};return e}();var StretchColumn=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.dimensionProvider=r;n.stretchedColumn=null;n.scrollSize=getScrollbarWidth(document);var i=function(e){var t=e.detail.columns;return n.applyStretch(t)};n.addEventListener("beforecolumnapplied",i);return n}t.prototype.setScroll=function(e){var t=e.type,r=e.hasScroll;var n;if(t==="rgRow"&&this.stretchedColumn&&((n=this.stretchedColumn)===null||n===void 0?void 0:n.initialSize)===this.stretchedColumn.size){if(r){this.stretchedColumn.size-=this.scrollSize;this.apply();this.dropChanges()}}};t.prototype.activateChanges=function(){var e=this;var t=function(t){var r=t.detail;return e.setScroll(r)};this.addEventListener("scrollchange",t)};t.prototype.dropChanges=function(){this.stretchedColumn=null;this.removeEventListener("scrollchange")};t.prototype.apply=function(){var e;if(!this.stretchedColumn){return}var t="rgCol";this.dimensionProvider.setDimensionSize(t,(e={},e[this.stretchedColumn.index]=this.stretchedColumn.size,e))};t.prototype.applyStretch=function(e){var t=this;this.dropChanges();var r=this.revogrid.clientWidth-1;lodash.each(e,(function(e,n){var i=t.dimensionProvider.stores[n].store.get("realSize");r-=i}));if(r>0){var n=e.rgCol.length-1;var i=e.rgCol[n];var o=(i===null||i===void 0?void 0:i.size)||this.revogrid.colSize||0;var a=r+o-1;if(i&&!i.autoSize&&o<a){this.stretchedColumn={initialSize:a,index:n,size:a};this.apply();this.activateChanges()}}};return t}(BasePlugin);function isStretchPlugin(e){return!!e.applyStretch}var ColumnOrderHandler=function(){function e(){this.offset=0}e.prototype.renderAutoscroll=function(e,t){if(!t){return}this.autoscrollEl=document.createElement("div");this.autoscrollEl.classList.add("drag-auto-scroll-y");t.appendChild(this.autoscrollEl)};e.prototype.autoscroll=function(e,t,r){if(r===void 0){r="translateX"}if(!this.autoscrollEl){return}var n=10;var i=Math.min(e+n,t-3);this.autoscrollEl.style.transform="".concat(r,"(").concat(i,"px)");this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.start=function(e,t,r){var n=t.dataEl,i=t.gridRect,o=t.scrollEl;if(r===void 0){r="left"}var a=o.getBoundingClientRect();if(a){this.offset=a[r]-i[r]}this.renderAutoscroll(e,n)};e.prototype.stop=function(){var e;if(this.element){this.element.hidden=true}this.offset=0;(e=this.autoscrollEl)===null||e===void 0?void 0:e.remove();this.autoscrollEl=undefined};e.prototype.showHandler=function(e,t,r){if(r===void 0){r="translateX"}if(!this.element){return}if(this.offset){e=Math.max(e,this.offset)}e=Math.min(e,t);this.element.style.transform="".concat(r,"(").concat(e,"px)");this.element.hidden=false};e.prototype.render=function(){var e=this;return h("div",{class:"drag-position-y",hidden:true,ref:function(t){return e.element=t}})};return e}();function dispatch(e,t,r){var n=new CustomEvent(t,{detail:r,cancelable:true,bubbles:true});e===null||e===void 0?void 0:e.dispatchEvent(n);return n}var COLUMN_CLICK="column-click";var MOVE="column-mouse-move";var DRAG_END="column-drag-end";var BEFORE_DRAG_END="before-column-drag-end";var DRAG_START="column-drag-start";var ColumnPlugin=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;n.moveFunc=debounce_1((function(e){return n.doMove(e)}),5);n.staticDragData=null;n.dragData=null;n.localSubscriptions={};n.orderUi=new ColumnOrderHandler;t.registerVNode([n.orderUi.render()]);n.localSubscriptions["mouseleave"]={target:document,callback:function(e){return n.onMouseOut(e)}};n.localSubscriptions["mouseup"]={target:document,callback:function(e){return n.onMouseUp(e)}};n.localSubscriptions["mousemove"]={target:document,callback:function(e){return n.move(e)}};n.addEventListener(COLUMN_CLICK,(function(e){var t=e.detail;return n.dragStart(t)}));return n}t.prototype.dragStart=function(e){var t=e.event,r=e.data;if(t.defaultPrevented){return}var n=dispatch(this.revogrid,DRAG_START,r).defaultPrevented;if(n){return}this.clearOrder();var i=this.localSubscriptions,o=i.mouseleave,a=i.mouseup,s=i.mousemove;o.target.addEventListener("mouseleave",o.callback);a.target.addEventListener("mouseup",a.callback);var u=t.target.closest("revogr-header");var l=t.target.closest("revogr-viewport-scroll");if(!u||!l){return}if(isColGrouping(r)){return}var c=this.getDimension(r.pin||"rgCol");var f=this.revogrid.getBoundingClientRect();var d=u.getBoundingClientRect();var v=getItemByPosition(c,getLeftRelative(t.x,f.left,d.left-f.left));this.staticDragData={startPos:t.x,startItem:v,data:r,dataEl:u,scrollEl:l,gridEl:this.revogrid,cols:c};this.dragData=this.getData(this.staticDragData);s.target.addEventListener("mousemove",s.callback);this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))};t.prototype.doMove=function(e){if(!this.staticDragData){return}var t=this.dragData=this.getData(this.staticDragData);if(!t){return}var r=this.staticDragData.startPos;if(Math.abs(r-e.x)>10){var n=getLeftRelative(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);var i=getItemByPosition(this.staticDragData.cols,n);this.orderUi.autoscroll(n,t.elRect.width);this.orderUi.showHandler(i.end+t.scrollOffset,t.gridRect.width)}};t.prototype.move=function(e){dispatch(this.revogrid,MOVE,Object.assign({},e));this.moveFunc(e)};t.prototype.onMouseOut=function(e){this.clearOrder()};t.prototype.onMouseUp=function(e){if(this.dragData){var t=getLeftRelative(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);if(t<0){t=0}var r=getItemByPosition(this.staticDragData.cols,t);var n=this.providers.column.stores[this.dragData.type].store;var i=__spreadArray([],n.get("items"),true);var o=dispatch(this.revogrid,BEFORE_DRAG_END,Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:r,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]})).defaultPrevented;if(!o){var a=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice.apply(i,__spreadArray([r.itemIndex,0],a,false));n.set("items",i)}dispatch(this.revogrid,DRAG_END,this.dragData)}this.clearOrder()};t.prototype.clearLocalSubscriptions=function(){each(this.localSubscriptions,(function(e,t){var r=e.target,n=e.callback;return r.removeEventListener(t,n)}))};t.prototype.clearOrder=function(){this.staticDragData=null;this.dragData=null;this.clearLocalSubscriptions();this.orderUi.stop()};t.prototype.clearSubscriptions=function(){e.prototype.clearSubscriptions.call(this);this.clearLocalSubscriptions()};t.prototype.getData=function(e){var t=e.gridEl,r=e.dataEl,n=e.data;var i=t.getBoundingClientRect();var o=r.getBoundingClientRect();var a=o.left-i.left;return{elRect:o,gridRect:i,type:n.pin||"rgCol",scrollOffset:a}};t.prototype.getDimension=function(e){return this.providers.dimension.stores[e].getCurrentState()};return t}(BasePlugin);function getLeftRelative(e,t,r){return e-t-r}var revoGridStyleCss=".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 .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}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:gray}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}";var RevoGridComponent=function(){function e(e){registerInstance(this,e);this.beforeedit=createEvent(this,"beforeedit",7);this.beforerangeedit=createEvent(this,"beforerangeedit",7);this.afteredit=createEvent(this,"afteredit",7);this.beforeautofill=createEvent(this,"beforeautofill",7);this.beforeaange=createEvent(this,"beforeaange",7);this.afterfocus=createEvent(this,"afterfocus",7);this.roworderchanged=createEvent(this,"roworderchanged",7);this.beforesourcesortingapply=createEvent(this,"beforesourcesortingapply",7);this.beforesortingapply=createEvent(this,"beforesortingapply",7);this.beforesorting=createEvent(this,"beforesorting",7);this.rowdragstart=createEvent(this,"rowdragstart",7);this.headerclick=createEvent(this,"headerclick",7);this.beforecellfocus=createEvent(this,"beforecellfocus",7);this.beforefocuslost=createEvent(this,"beforefocuslost",7);this.beforesourceset=createEvent(this,"beforesourceset",7);this.aftersourceset=createEvent(this,"aftersourceset",7);this.beforecolumnsset=createEvent(this,"beforecolumnsset",7);this.beforecolumnapplied=createEvent(this,"beforecolumnapplied",7);this.aftercolumnsset=createEvent(this,"aftercolumnsset",7);this.beforefilterapply=createEvent(this,"beforefilterapply",7);this.beforefiltertrimmed=createEvent(this,"beforefiltertrimmed",7);this.beforetrimmed=createEvent(this,"beforetrimmed",7);this.aftertrimmed=createEvent(this,"aftertrimmed",7);this.viewportscroll=createEvent(this,"viewportscroll",7);this.beforeexport=createEvent(this,"beforeexport",7);this.beforeeditstart=createEvent(this,"beforeeditstart",7);this.aftercolumnresize=createEvent(this,"aftercolumnresize",7);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.columnTypes={};this.theme="default";this.rowClass="";this.autoSizeColumn=false;this.filter=false;this.canMoveColumns=false;this.trimmedRows={};this.exporting=false;this.stretch=true;this.extraElements=[];this.uuid=null;this.viewport=null;this.internalPlugins=[];this.subscribers={}}e.prototype.refresh=function(e){if(e===void 0){e="all"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.dataProvider.refresh(e);return[2]}))}))};e.prototype.scrollToRow=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgRow"});return[4,this.scrollToCoordinate({y:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnIndex=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnProp=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t=this.columnProvider.getColumnIndexByProp(e,"rgCol");if(t<0){return[2]}r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:r})];case 1:n.sent();return[2]}}))}))};e.prototype.updateColumns=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.columnProvider.updateColumns(e);return[2]}))}))};e.prototype.addTrimmed=function(e,t,r){if(t===void 0){t="external"}if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n;var i;return __generator(this,(function(o){n=this.beforetrimmed.emit({trimmed:e,trimmedType:t,type:r});if(n.defaultPrevented){return[2,n]}this.dataProvider.setTrimmed((i={},i[t]=n.detail.trimmed,i),r);this.aftertrimmed.emit();return[2,n]}))}))};e.prototype.scrollToCoordinate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.viewport)===null||t===void 0?void 0:t.scrollToCell(e);return[2]}))}))};e.prototype.setCellEdit=function(e,t,r){if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n,i;return __generator(this,(function(o){switch(o.label){case 0:i=ColumnDataProvider.getColumnByProp(this.columns,t);if(!i){return[2]}return[4,timeout()];case 1:o.sent();(n=this.viewport)===null||n===void 0?void 0:n.setEdit(e,this.columnProvider.getColumnIndexByProp(t,"rgCol"),i.pin||"rgCol",r);return[2]}}))}))};e.prototype.registerVNode=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.extraElements).push.apply(t,e);this.extraElements=__spreadArray([],this.extraElements,true);return[2]}))}))};e.prototype.getSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store.get("source")]}))}))};e.prototype.getVisibleSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getVisibleSourceItem(this.dataProvider.stores[e].store)]}))}))};e.prototype.getSourceStore=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store]}))}))};e.prototype.getColumnStore=function(e){if(e===void 0){e="rgCol"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnProvider.stores[e].store]}))}))};e.prototype.updateColumnSorting=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.columnProvider.updateColumnSorting(e,t,r,n)]}))}))};e.prototype.clearSorting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.columnProvider.clearSorting();return[2]}))}))};e.prototype.getColumns=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnProvider.getColumns()]}))}))};e.prototype.clearFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getFocused()];case 1:t=n.sent();r=this.beforefocuslost.emit(t);if(r.defaultPrevented){return[2]}this.selectionStoreConnector.clearAll();(e=this.viewport)===null||e===void 0?void 0:e.clearFocused();return[2]}}))}))};e.prototype.getPlugins=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,__spreadArray([],this.internalPlugins,true)]}))}))};e.prototype.getFocused=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getFocused()]}))}))};e.prototype.getSelectedRange=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getSelectedRange()]}))}))};e.prototype.handleOutsideClick=function(e){var t=e.target;if(!(t===null||t===void 0?void 0:t.closest("[".concat(UUID,'="').concat(this.uuid,'"]')))){this.clearFocus()}};e.prototype.onRowDragStarted=function(e){var t;e.cancelBubble=true;var r=this.rowdragstart.emit(e.detail);if(r.defaultPrevented){e.preventDefault();return}(t=this.orderService)===null||t===void 0?void 0:t.start(this.element,Object.assign(Object.assign({},e.detail),r.detail))};e.prototype.onRowDragEnd=function(){var e;(e=this.orderService)===null||e===void 0?void 0:e.end()};e.prototype.onRowDrag=function(e){var t=e.detail;var r;(r=this.orderService)===null||r===void 0?void 0:r.move(t)};e.prototype.onRowMouseMove=function(e){var t;e.cancelBubble=true;(t=this.orderService)===null||t===void 0?void 0:t.moveTip(e.detail)};e.prototype.onBeforeEdit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:e.cancelBubble=true;t=this.beforeedit.emit(e.detail),r=t.defaultPrevented,n=t.detail;return[4,timeout()];case 1:i.sent();if(!r){this.dataProvider.setCellData(n);this.afteredit.emit(n)}return[2]}}))}))};e.prototype.onBeforeRangeEdit=function(e){e.cancelBubble=true;var t=this.beforerangeedit.emit(e.detail).defaultPrevented;if(t){e.preventDefault();return}this.afteredit.emit(e.detail)};e.prototype.onRangeChanged=function(e){e.cancelBubble=true;var t=this.beforeaange.emit(e.detail);if(t.defaultPrevented){e.preventDefault()}var r=this.beforeautofill.emit(e.detail);if(r.defaultPrevented){return}};e.prototype.onRowDropped=function(e){e.cancelBubble=true;var t=this.roworderchanged.emit(e.detail).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onHeaderClick=function(e){var t=this.headerclick.emit(Object.assign(Object.assign({},e.detail.column),{originalEvent:e.detail.originalEvent})).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onCellFocus=function(e){e.cancelBubble=true;var t=this.beforecellfocus.emit(e.detail).defaultPrevented;if(!this.canFocus||t){e.preventDefault()}};e.prototype.columnChanged=function(e){if(e===void 0){e=[]}this.dimensionProvider.drop();var t=ColumnDataProvider.getColumns(e,0,this.columnTypes);this.beforecolumnsset.emit(t);for(var r=0,n=columnTypes;r<n.length;r++){var i=n[r];var o=t.columns[i];this.dimensionProvider.setRealSize(o.length,i);this.dimensionProvider.setColumns(i,ColumnDataProvider.getSizes(o),i!=="rgCol")}this.beforecolumnapplied.emit(t);var a=this.columnProvider.setColumns(t);this.aftercolumnsset.emit({columns:a,order:this.columnProvider.order})};e.prototype.themeChanged=function(e){this.themeService.register(e);this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow");this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")};e.prototype.dataChanged=function(e){if(e===void 0){e=[]}var t=__spreadArray([],e,true);var r=this.beforesourceset.emit({type:"rgRow",source:t});t=r.detail.source;t=this.dataProvider.setData(t,"rgRow");this.aftersourceset.emit({type:"rgRow",source:t})};e.prototype.dataBottomChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinEnd")};e.prototype.dataTopChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinStart")};e.prototype.rowDefChanged=function(e){var t=this;if(e===void 0){e=[]}if(!e.length){return}var r=reduce_1(e,(function(e,t){if(!e[t.type]){e[t.type]={}}if(t.size){if(!e[t.type].sizes){e[t.type].sizes={}}e[t.type].sizes[t.index]=t.size}return e}),{});each(r,(function(e,r){if(e.sizes){t.dimensionProvider.setDimensionSize(r,e.sizes)}}))};e.prototype.trimmedRowsChanged=function(e){if(e===void 0){e={}}this.addTrimmed(e)};e.prototype.groupingChanged=function(e){if(e===void 0){e={}}var t;for(var r=0,n=this.internalPlugins;r<n.length;r++){var i=n[r];var o=i;if(o.setGrouping){t=o;break}}if(!t){return}t.setGrouping(e||{})};e.prototype.applyStretch=function(e){if(e==="false"){e=false}var t=this.internalPlugins.filter((function(e){return isStretchPlugin(e)}))[0];if(e){if(!t){this.internalPlugins.push(new StretchColumn(this.element,this.dimensionProvider))}else{t.applyStretch(this.columnProvider.getRawColumns())}}else if(t){var r=this.internalPlugins.indexOf(t);this.internalPlugins.splice(r,1)}};e.prototype.connectedCallback=function(){var e=this;this.viewportProvider=new ViewportProvider;this.themeService=new ThemeService({rowSize:this.rowSize});this.dimensionProvider=new DimensionProvider(this.viewportProvider);this.columnProvider=new ColumnDataProvider;this.dataProvider=new DataProvider(this.dimensionProvider);this.uuid="".concat((new Date).getTime(),"-rvgrid");var t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};if(this.autoSizeColumn){this.internalPlugins.push(new AutoSizeColumn(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 FilterPlugin(this.element,this.uuid,typeof this.filter==="object"?this.filter:undefined))}if(this.exporting){this.internalPlugins.push(new ExportFilePlugin(this.element))}this.internalPlugins.push(new SortingPlugin(this.element));if(this.plugins){this.plugins.forEach((function(r){e.internalPlugins.push(new r(e.element,t))}))}if(this.canMoveColumns){this.internalPlugins.push(new ColumnPlugin(this.element,t))}this.internalPlugins.push(new GroupingRowPlugin(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider}));this.applyStretch(this.stretch);this.themeChanged(this.theme);this.columnChanged(this.columns);this.dataChanged(this.source);this.dataTopChanged(this.pinnedTopSource);this.dataBottomChanged(this.pinnedBottomSource);this.trimmedRowsChanged(this.trimmedRows);this.rowDefChanged(this.rowDefinitions);this.groupingChanged(this.grouping);this.selectionStoreConnector=new SelectionStoreConnector;this.scrollingService=new GridScrollingService((function(t){e.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension});e.viewportscroll.emit(t)}));this.subscribers={click:this.handleOutsideClick.bind(this)};for(var r in this.subscribers){document.addEventListener(r,this.subscribers[r])}};e.prototype.disconnectedCallback=function(){each(this.internalPlugins,(function(e){return e.destroy()}));this.internalPlugins=[];for(var e in this.subscribers){document.removeEventListener(e,this.subscribers[e]);delete this.subscribers[e]}};e.prototype.render=function(){var e;var t=this;var r=this.dimensionProvider.stores["rgRow"].store.get("realSize");this.viewport=new ViewportService({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:function(e){return t.aftercolumnresize.emit(e)}},r);var n=[];if(this.rowHeaders){var i=this.viewport.columns[0];n.push(h("revogr-row-headers",{height:r,resize:this.resize,dataPorts:i.dataPorts,headerProp:i.headerProp,uiid:i.prop[UUID],rowHeaderColumn:typeof this.rowHeaders==="object"?this.rowHeaders:undefined,onScrollViewport:function(e){var r=e.detail;return t.scrollingService.onScroll(r,"headerRow")},onElementToScroll:function(e){var r=e.detail;return t.scrollingService.registerElement(r,"headerRow")}}))}n.push(h(ViewPortSections,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onEdit:function(e){var r=t.beforeeditstart.emit(e);if(!r.defaultPrevented){t.selectionStoreConnector.setEdit(e.isCancel?false:e.val)}},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},onScroll:function(e){return t.scrollingService.onScroll(e)}}));return h(Host,Object.assign({},(e={},e["".concat(UUID)]=this.uuid,e)),h(RevoViewPort,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:function(e){return t.orderService=e},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},nakedClick:function(){return t.viewport.clearEdit()},onScroll:function(e){return t.scrollingService.onScroll(e)}},n),this.extraElements)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}},enumerable:false,configurable:true});return e}();RevoGridComponent.style=revoGridStyleCss;var ColumnService=function(){function e(e,t){var r=this;this.dataStore=e;this.source=t;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(t.onChange("source",(function(e){return r.checkGrouping(e)})));this.checkGrouping(t.get("source"))}Object.defineProperty(e.prototype,"columns",{get:function(){return getVisibleSourceItem(this.source)},enumerable:false,configurable:true});e.prototype.checkGrouping=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(isGroupingColumn(n)){this.hasGrouping=true;return}this.hasGrouping=false}};e.prototype.isReadOnly=function(e,t){var r;var n=(r=this.columns[t])===null||r===void 0?void 0:r.readonly;if(typeof n==="function"){var i=this.rowDataModel(e,t);return n(i)}return n};e.doMerge=function(e,t){var r=Object.assign(Object.assign({},t),e);if(t.class){if(typeof t.class==="object"&&typeof r.class==="object"){r.class=Object.assign(Object.assign({},t.class),r.class)}else if(typeof t.class==="string"&&typeof r.class==="object"){r.class[t.class]=true}else if(typeof r.class==="string"){r.class+=" "+t.class}}if(t.style){r.style=Object.assign(Object.assign({},t.style),r.style)}return r};e.prototype.mergeProperties=function(t,r,n){var i;var o;var a=(i={},i[CELL_CLASS]=true,i[DISABLED_CLASS]=this.isReadOnly(t,r),i);var s=Object.assign(Object.assign({},n),{class:a});var u=(o=this.columns[r])===null||o===void 0?void 0:o.cellProperties;if(u){var l=this.rowDataModel(t,r);var c=u(l);if(!c){return s}return e.doMerge(s,c)}return s};e.prototype.customRenderer=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.cellTemplate;if(i){return i(h,r)}return};e.prototype.getRowClass=function(e,t){var r=getSourceItem(this.dataStore,e)||{};return r[t]||""};e.prototype.getCellData=function(t,r){var n=this.rowDataModel(t,r);return e.getData(n.model[n.prop])};e.prototype.getSaveData=function(e,t,r){if(typeof r==="undefined"){r=this.getCellData(e,t)}var n=this.rowDataModel(e,t);return{prop:n.prop,rowIndex:e,val:r,model:n.model,type:this.dataStore.get("type")}};e.prototype.getCellEditor=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.editor;if(!i){return undefined}if(typeof i==="string"){return r[i]}return i};e.prototype.rowDataModel=function(e,t){var r=this.columns[t];var n=r===null||r===void 0?void 0:r.prop;var i=getSourceItem(this.dataStore,e)||{};return{prop:n,model:i,data:this.dataStore.get("source"),column:r,rowIndex:e}};e.prototype.getRangeData=function(e){var t={};var r=e.oldProps.length;var n=this.copyRangeArray(e.oldRange,e.oldProps,this.dataStore);var i=n.length;for(var o=e.newRange.y,a=0;o<e.newRange.y1+1;o++,a++){var s=n[a%i];for(var u=e.newRange.x,l=0;u<e.newRange.x1+1;u++,l++){if(o>=e.oldRange.y&&o<=e.oldRange.y1&&u>=e.oldRange.x&&u<=e.oldRange.x1){continue}var c=this.columns[u].prop;var f=l%r;if(!this.isReadOnly(o,u)){if(!t[o]){t[o]={}}t[o][c]=s[f]}}}return t};e.prototype.getTransformedDataToApply=function(e,t){var r={};var n=t.length;var i=this.columns.length;var o=this.dataStore.get("items").length;var a=e.y;var s=0;for(var u=0;a<o&&u<n;a++,u++){var l=t[u%n];var c=(l===null||l===void 0?void 0:l.length)||0;var f=e.x;for(var d=0;f<i&&d<c;f++,d++){var v=this.columns[f].prop;var h=d%i;if(!this.isReadOnly(a,f)){if(!r[a]){r[a]={}}r[a][v]=l[h]}}s=Math.max(s,f-1)}var p=getRange(e,{y:a-1,x:s});return{changed:r,range:p}};e.prototype.applyRangeData=function(e){var t={};for(var r in e){var n=t[r]=getSourceItem(this.dataStore,parseInt(r,10));for(var i in e[r]){n[i]=e[r][i]}}setSourceByVirtualIndex(this.dataStore,t)};e.prototype.getRangeStaticData=function(e,t){var r={};for(var n=e.y,i=0;n<e.y1+1;n++,i++){for(var o=e.x,a=0;o<e.x1+1;o++,a++){var s=this.columns[o].prop;if(!this.isReadOnly(n,o)){if(!r[n]){r[n]={}}r[n][s]=t}}}return r};e.prototype.copyRangeArray=function(e,t,r){var n=[];for(var i=e.y;i<e.y1+1;i++){var o=[];for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=getSourceItem(r,i);o.push(l[u])}n.push(o)}return n};e.getData=function(e){if(typeof e==="undefined"||e===null){return""}return e.toString()};e.prototype.destroy=function(){this.unsubscribe.forEach((function(e){return e()}))};return e}();var CellRenderer=function(e){var t=e.model,r=e.canDrag,n=e.onDragStart;var i=[];if(t.column.rowDrag&&isRowDragService(t.column.rowDrag,t)){if(r){i.push(h("span",{class:DRAGGABLE_CLASS,onMouseDown:function(e){return n(e)}},h("span",{class:DRAG_ICON_CLASS})))}else{i.push(h("span",{class:DRAGGABLE_CLASS}))}}i.push("".concat(ColumnService.getData(t.model[t.prop])));return i};function isRowDragService(e,t){if(typeof e==="function"){return e(t)}return!!e}var PADDING_DEPTH=10;var RowRenderer=function(e,t){var r=e.rowClass,n=e.size,i=e.start,o=e.style,a=e.depth;return h("div",{class:"rgRow ".concat(r||""),style:Object.assign(Object.assign({},o),{height:"".concat(n,"px"),transform:"translateY(".concat(i,"px)"),paddingLeft:a?"".concat(PADDING_DEPTH*a,"px"):undefined})},t)};function expandEvent(e,t,r){var n=new CustomEvent(GROUP_EXPAND_EVENT,{detail:{model:t,virtualIndex:r},cancelable:true,bubbles:true});e.target.dispatchEvent(n)}var GroupingRowRenderer=function(e){var t;var r=e.model,n=e.itemIndex,i=e.hasExpand;var o=r[PSEUDO_GROUP_ITEM];var a=r[GROUP_EXPANDED];var s=parseInt(r[GROUP_DEPTH],10)||0;if(!i){return h(RowRenderer,Object.assign({},e,{rowClass:"groupingRow",depth:s}))}return h(RowRenderer,Object.assign({},e,{rowClass:"groupingRow",depth:s}),h("button",{class:(t={},t[GROUP_EXPAND_BTN]=true,t),onClick:function(e){return expandEvent(e,r,n)}},h("svg",{"aria-hidden":"true",style:{transform:"rotate(".concat(!a?-90:0,"deg)")},focusable:"false",viewBox:"0 0 448 512"},h("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"}))),o)};var revogrDataStyleCss=".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}";var RevogrData=function(){function e(e){registerInstance(this,e);this.dragStartCell=createEvent(this,"dragStartCell",7)}e.prototype.onStoreChange=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new ColumnService(this.dataStore,this.colData)};e.prototype.connectedCallback=function(){this.onStoreChange()};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.render=function(){var e;var t=this.viewportRow.get("items");var r=this.viewportCol.get("items");if(!this.columnService.columns.length||!t.length||!r.length){return""}var n=(e=this.rowSelectionStore)===null||e===void 0?void 0:e.get("range");var i=[];var o=this.dataStore.get("groupingDepth");for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=getSourceItem(this.dataStore,u.itemIndex);if(isGrouping(l)){i.push(h(GroupingRowRenderer,Object.assign({},u,{model:l,hasExpand:this.columnService.hasGrouping})));continue}var c=[];var f=this.rowClass?this.columnService.getRowClass(u.itemIndex,this.rowClass):"";if(n&&u.itemIndex>=n.y&&u.itemIndex<=n.y1){f+=" focused-rgRow"}for(var d=0,v=r;d<v.length;d++){var p=v[d];c.push(this.getCellRenderer(u,p,this.canDrag,this.columnService.hasGrouping?o:0))}i.push(h(RowRenderer,{rowClass:f,size:u.size,start:u.start},c))}return i};e.prototype.getCellRenderer=function(e,t,r,n){var i;var o=this;if(r===void 0){r=false}if(n===void 0){n=0}var a=this.columnService.rowDataModel(e.itemIndex,t.itemIndex);var s=(i={},i[DATA_COL]=t.itemIndex,i[DATA_ROW]=e.itemIndex,i.style={width:"".concat(t.size,"px"),transform:"translateX(".concat(t.start,"px)")},i);if(n&&!t.itemIndex){s.style.paddingLeft="".concat(PADDING_DEPTH*n,"px")}var u=this.columnService.mergeProperties(e.itemIndex,t.itemIndex,s);var l=this.columnService.customRenderer(e.itemIndex,t.itemIndex,a);if(typeof l!=="undefined"){return h("div",Object.assign({},u),l)}if(!a.column){console.error("Investigate column problem");return}return h("div",Object.assign({},u),h(CellRenderer,{model:a,canDrag:r,onDragStart:function(e){return o.dragStartCell.emit(e)}}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}},enumerable:false,configurable:true});return e}();RevogrData.style=revogrDataStyleCss;var codes;(function(e){e[e["MOUSE_LEFT"]=1]="MOUSE_LEFT";e[e["MOUSE_RIGHT"]=3]="MOUSE_RIGHT";e[e["MOUSE_MIDDLE"]=2]="MOUSE_MIDDLE";e[e["BACKSPACE"]=8]="BACKSPACE";e[e["COMMA"]=188]="COMMA";e[e["INSERT"]=45]="INSERT";e[e["DELETE"]=46]="DELETE";e[e["END"]=35]="END";e[e["ENTER"]=13]="ENTER";e[e["ESCAPE"]=27]="ESCAPE";e[e["CONTROL"]=17]="CONTROL";e[e["COMMAND_LEFT"]=91]="COMMAND_LEFT";e[e["COMMAND_RIGHT"]=93]="COMMAND_RIGHT";e[e["COMMAND_FIREFOX"]=224]="COMMAND_FIREFOX";e[e["ALT"]=18]="ALT";e[e["HOME"]=36]="HOME";e[e["PAGE_DOWN"]=34]="PAGE_DOWN";e[e["PAGE_UP"]=33]="PAGE_UP";e[e["PERIOD"]=190]="PERIOD";e[e["SPACE"]=32]="SPACE";e[e["SHIFT"]=16]="SHIFT";e[e["CAPS_LOCK"]=20]="CAPS_LOCK";e[e["TAB"]=9]="TAB";e[e["ARROW_RIGHT"]=39]="ARROW_RIGHT";e[e["ARROW_LEFT"]=37]="ARROW_LEFT";e[e["ARROW_UP"]=38]="ARROW_UP";e[e["ARROW_DOWN"]=40]="ARROW_DOWN";e[e["F1"]=112]="F1";e[e["F2"]=113]="F2";e[e["F3"]=114]="F3";e[e["F4"]=115]="F4";e[e["F5"]=116]="F5";e[e["F6"]=117]="F6";e[e["F7"]=118]="F7";e[e["F8"]=119]="F8";e[e["F9"]=120]="F9";e[e["F10"]=121]="F10";e[e["F11"]=122]="F11";e[e["F12"]=123]="F12";e[e["A"]=65]="A";e[e["C"]=67]="C";e[e["D"]=68]="D";e[e["F"]=70]="F";e[e["L"]=76]="L";e[e["O"]=79]="O";e[e["P"]=80]="P";e[e["S"]=83]="S";e[e["V"]=86]="V";e[e["X"]=88]="X"})(codes||(codes={}));var codesLetter;(function(e){e["ENTER"]="Enter";e["ENTER_NUM"]="NumpadEnter";e["V"]="KeyV";e["C"]="KeyC";e["ESCAPE"]="Escape";e["TAB"]="Tab";e["BACKSPACE"]="Backspace";e["DELETE"]="Delete";e["ARROW_RIGHT"]="ArrowRight";e["ARROW_LEFT"]="ArrowLeft";e["ARROW_UP"]="ArrowUp";e["ARROW_DOWN"]="ArrowDown";e["SHIFT"]="Shift"})(codesLetter||(codesLetter={}));var KeyCodesEnum=codes;var osPlatform;(function(e){e["mac"]="Mac"})(osPlatform||(osPlatform={}));var OsPlatform=osPlatform;function baseIsNaN(e){return e!==e}var _baseIsNaN=baseIsNaN;function strictIndexOf(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}var _strictIndexOf=strictIndexOf;function baseIndexOf(e,t,r){return t===t?_strictIndexOf(e,t,r):_baseFindIndex(e,_baseIsNaN,r)}var _baseIndexOf=baseIndexOf;function baseValues(e,t){return _arrayMap(t,(function(t){return e[t]}))}var _baseValues=baseValues;function values(e){return e==null?[]:_baseValues(e,keys_1(e))}var values_1=values;var nativeMax=Math.max;function includes(e,t,r,n){e=isArrayLike_1(e)?e:values_1(e);r=r&&!n?toInteger_1(r):0;var i=e.length;if(r<0){r=nativeMax(i+r,0)}return isString_1(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&_baseIndexOf(e,t,r)>-1}var includes_1=includes;function isLetterKey(e){return e===32||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function isCtrlKey(e,t){if(t.includes(OsPlatform.mac)){return includes_1([KeyCodesEnum.COMMAND_LEFT,KeyCodesEnum.COMMAND_RIGHT,KeyCodesEnum.COMMAND_FIREFOX],e)}return KeyCodesEnum.CONTROL===e}function isClear(e){return codesLetter.BACKSPACE===e||codesLetter.DELETE===e}function isTab(e){return codesLetter.TAB===e}function isEnterKey(e){return e===codesLetter.ENTER||e===codesLetter.ENTER_NUM}var TextEditor=function(){function e(e,t){this.column=e;this.saveCallback=t;this.element=null;this.editCell=null}e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.editInput)return[3,2];return[4,timeout()];case 1:t.sent();(e=this.editInput)===null||e===void 0?void 0:e.focus();t.label=2;case 2:return[2]}}))}))};e.prototype.onKeyDown=function(e){var t=isEnterKey(e.code);var r=isTab(e.code);if((r||t)&&e.target&&this.saveCallback&&!e.isComposing){this.editInput.blur();this.saveCallback(e.target.value,r)}};e.prototype.render=function(){var e=this;var t;return h("input",{type:"text",value:((t=this.editCell)===null||t===void 0?void 0:t.val)||"",ref:function(t){e.editInput=t},onKeyDown:function(t){return e.onKeyDown(t)}})};return e}();var revogrEditStyleCss=".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}";var Edit=function(){function e(e){registerInstance(this,e);this.cellEdit=createEvent(this,"cellEdit",3);this.closeEdit=createEvent(this,"closeEdit",3);this.currentEditor=null}e.prototype.onSave=function(e,t){if(this.editCell){this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:e,preventFocus:t})}};e.prototype.componentWillRender=function(){var e=this;if(!this.currentEditor){if(this.editor){this.currentEditor=new this.editor(this.column,(function(t,r){return e.onSave(t,r)}),(function(t){return e.closeEdit.emit(t)}))}else{this.currentEditor=new TextEditor(this.column,(function(t,r){return e.onSave(t,r)}))}}};e.prototype.componentDidRender=function(){if(!this.currentEditor){return}this.currentEditor.element=this.element.firstElementChild;this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender()};e.prototype.disconnectedCallback=function(){if(!this.currentEditor){return}this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback();if(this.currentEditor.element){this.currentEditor.element=null}this.currentEditor=null};e.prototype.render=function(){if(this.currentEditor){this.currentEditor.editCell=this.editCell;return h(Host,{class:EDIT_INPUT_WR},this.currentEditor.render(h))}return""};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Edit.style=revogrEditStyleCss;function getCurrentCell(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;var d=n-u;if(d>=c){d=c-1}var v=r-l;if(v>=f){v=f-1}var h=getItemByPosition(o,d);var p=getItemByPosition(a,v);if(p.itemIndex<0){p.itemIndex=0}if(h.itemIndex<0){h.itemIndex=0}return{x:p.itemIndex,y:h.itemIndex}}function getCoordinate(e,t,r,n){if(n===void 0){n=false}var i=function(i){var o={x:e.x,y:e.y};var a=n?{x:e.x1,y:e.y1}:o;var s=a[i]>t[i]?a:o;s[i]+=r[i];return{start:o,end:a}};if(r.x){return i("x")}if(r.y){return i("y")}return null}function isAfterLast(e,t){var r=e.x,n=e.y;var i=t.lastCell;return r>=i.x||n>=i.y}function isBeforeFirst(e){var t=e.x,r=e.y;return t<0||r<0}function getDirectionCoordinate(e,t){var r;var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]!==t[a]){return r={},r[a]=1,r}}return null}function getLargestAxis(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];r[a]=Math.abs(e[a]-t[a])}if(r.x>r.y){return{x:1}}if(r.y>r.x){return{y:1}}return null}function styleByCellProps(e){return{left:"".concat(e.left,"px"),top:"".concat(e.top,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}}function getCell(e,t,r){var n=e.x,i=e.y,o=e.x1,a=e.y1;var s=getItemByIndex(t,i).start;var u=getItemByIndex(r,n).start;var l=getItemByIndex(t,a).end;var c=getItemByIndex(r,o).end;return{left:u,right:c,top:s,bottom:l,width:c-u,height:l-s}}function getElStyle(e,t,r){var n=getCell(e,t,r);return styleByCellProps(n)}var revogrFocusStyleCss=".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}";var RevogrFocus$1=function(){function e(e){registerInstance(this,e);this.afterFocus=createEvent(this,"afterfocus",7)}e.prototype.changed=function(e,t){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"});var r=getSourceItem(this.dataStore,t.y);var n=getSourceItem(this.colData,t.x);this.afterFocus.emit({model:r,column:n})};e.prototype.componentDidRender=function(){var e=this.selectionStore.get("focus");e&&this.el&&this.changed(this.el,e)};e.prototype.render=function(){var e=this.selectionStore.get("focus");if(e){var t=getElStyle(Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),this.dimensionRow.state,this.dimensionCol.state);return h(Host,{class:FOCUS_CLASS,style:t})}};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrFocus$1.style=revogrFocusStyleCss;var defineProperty=function(){try{var e=_getNative(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var _defineProperty=defineProperty;function baseAssignValue(e,t,r){if(t=="__proto__"&&_defineProperty){_defineProperty(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}var _baseAssignValue=baseAssignValue;function arrayAggregator(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}var _arrayAggregator=arrayAggregator;function baseAggregator(e,t,r,n){_baseEach(e,(function(e,i,o){t(n,e,r(e),o)}));return n}var _baseAggregator=baseAggregator;function createAggregator(e,t){return function(r,n){var i=isArray_1(r)?_arrayAggregator:_baseAggregator,o=t?t():{};return i(r,e,_baseIteratee(n),o)}}var _createAggregator=createAggregator;var keyBy=_createAggregator((function(e,t,r){_baseAssignValue(e,r,t)}));var keyBy_1=keyBy;var SortingSign=function(e){var t=e.column;return h("i",{class:t.order})};var ResizeEvents;(function(e){e["start"]="resize:start";e["move"]="resize:move";e["end"]="resize:end"})(ResizeEvents||(ResizeEvents={}));var RESIZE_MASK={"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"}};var DISABLE_MASK={l:1,t:2,w:4,h:8};var defaultProps=function(e){return Object.assign(Object.assign({},e),{fitParent:e.fitParent||false,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})};var ResizeDirective=function(){function e(e,t){this.initialProps=e;this.$event=t;this.mouseX=0;this.mouseY=0;this.width=0;this.height=0;this.changeX=0;this.changeY=0;this.disableCalcMap=15;this.props=defaultProps(e);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}e.prototype.set=function(e){var t=this;this.$el=e;this.props.disableAttributes.forEach((function(e){switch(e){case"l":t.disableCalcMap&=~DISABLE_MASK.l;break;case"t":t.disableCalcMap&=~DISABLE_MASK.t;break;case"w":t.disableCalcMap&=~DISABLE_MASK.w;break;case"h":t.disableCalcMap&=~DISABLE_MASK.h}}))};e.prototype.emitEvent=function(e,t){if(!this.$event){return}this.$event(Object.assign({eventName:e,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},t))};e.isTouchEvent=function(e){var t;var r=e;return((t=r.touches)===null||t===void 0?void 0:t.length)>=0};e.prototype.handleMove=function(t){if(!this.resizeState){return}var r,n;if(e.isTouchEvent(t)){r=t.touches[0].clientY;n=t.touches[0].clientX}else{r=t.clientY;n=t.clientX}var i=this.resizeState&RESIZE_MASK["resizable-r"].bit||this.resizeState&RESIZE_MASK["resizable-l"].bit;var o=this.resizeState&RESIZE_MASK["resizable-t"].bit||this.resizeState&RESIZE_MASK["resizable-b"].bit;if(o&&this.disableCalcMap&DISABLE_MASK.h){var a=r-this.mouseY;var s=this.changeY+a;var u=this.height+s;if(u<this.minH){s=-(this.height-this.minH)}if(this.maxH&&u>this.maxH){s=this.maxH-this.height}this.changeY=s;this.mouseY=r;if(this.activeResizer){this.activeResizer.style.bottom="".concat(-this.changeY,"px")}}if(i&&this.disableCalcMap&DISABLE_MASK.w){var l=n-this.mouseX;var c=this.changeX+l;var f=this.width+c;if(f<this.minW){c=-(this.width-this.minW)}if(this.maxW&&f>this.maxW){c=this.maxW-this.width}this.changeX=c;this.mouseX=n;if(this.activeResizer){this.activeResizer.style.right="".concat(-this.changeX,"px")}}this.emitEvent(ResizeEvents.move)};e.prototype.handleDown=function(t){if(t.defaultPrevented){return}t.preventDefault();this.dropInitial();for(var r in RESIZE_MASK){var n=t.target;if(this.$el.contains(n)&&(n===null||n===void 0?void 0:n.classList.contains(r))){document.body.style.cursor=RESIZE_MASK[r].cursor;if(e.isTouchEvent(t)){this.setInitials(t.touches[0],n)}else{t.preventDefault&&t.preventDefault();this.setInitials(t,n)}this.resizeState=RESIZE_MASK[r].bit;var i=ResizeEvents.start;this.emitEvent(i);break}}this.bindMove()};e.prototype.handleUp=function(e){e.preventDefault();if(this.resizeState!==0){this.resizeState=0;document.body.style.cursor="";var t=ResizeEvents.end;this.emitEvent(t)}this.dropInitial();this.unbindMove()};e.prototype.setInitials=function(e,t){var r=e.clientX,n=e.clientY;var i=getComputedStyle(this.$el);this.$el.classList.add("active");this.activeResizer=t;if(this.disableCalcMap&DISABLE_MASK.w){this.mouseX=r;this.width=this.$el.clientWidth;this.parent.width=this.$el.parentElement.clientWidth;var o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight);this.minW=Math.max(o,this.initialProps.minWidth||0);if(this.initialProps.maxWidth){this.maxW=Math.max(this.width,this.initialProps.maxWidth)}}if(this.disableCalcMap&DISABLE_MASK.h){this.mouseY=n;this.height=this.$el.clientHeight;this.parent.height=this.$el.parentElement.clientHeight;var a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);this.minH=Math.max(a,this.initialProps.minHeight||0);if(this.initialProps.maxHeight){this.maxH=Math.max(this.height,this.initialProps.maxHeight)}}};e.prototype.dropInitial=function(){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};e.prototype.bindMove=function(){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)};e.prototype.unbindMove=function(){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)};return e}();var ResizableElement=function(e,t){var r=[];var n=e.canResize&&new ResizeDirective(e,(function(t){if(t.eventName===ResizeEvents.end){e.onResize&&e.onResize(t)}}))||null;if(e.canResize){if(e.active){for(var i in e.active){r.push(h("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},onMouseDown:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},onTouchStart:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},class:"resizable resizable-".concat(e.active[i])}))}}}else{if(e.active){for(var i in e.active){r.push(h("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},class:"no-resize resizable resizable-".concat(e.active[i])}))}}}return h("div",Object.assign({},e,{ref:function(e){return n===null||n===void 0?void 0:n.set(e)}}),t,r)};var ON_COLUMN_CLICK="column-click";var HeaderCellRenderer=function(e,t){var r=e.data,n=e.props;var i=(r===null||r===void 0?void 0:r.name)||"";var o=n;if(r===null||r===void 0?void 0:r.columnTemplate){i=r.columnTemplate(h,r)}if(r===null||r===void 0?void 0:r.columnProperties){var a=r.columnProperties(r);if(a&&typeof a==="object"){o=ColumnService.doMerge(n,a)}}return h(ResizableElement,Object.assign({},o,{onMouseDown:function(e){dispatch(e.currentTarget,ON_COLUMN_CLICK,{data:r,event:e})}}),h("div",{class:"header-content"},i),t)};var HeaderRenderer=function(e){var t,r;var n,i,o,a,s,u;var l=(t={},t[HEADER_CLASS]=true,t[HEADER_SORTABLE_CLASS]=!!((n=e.data)===null||n===void 0?void 0:n.sortable),t);if((i=e.data)===null||i===void 0?void 0:i.order){l[e.data.order]=true}var c=(r={},r[DATA_COL]=e.column.itemIndex,r.canResize=e.canResize,r.minWidth=((o=e.data)===null||o===void 0?void 0:o.minSize)||MIN_COL_SIZE,r.maxWidth=(a=e.data)===null||a===void 0?void 0:a.maxSize,r.active=["r"],r.class=l,r.style={width:"".concat(e.column.size,"px"),transform:"translateX(".concat(e.column.start,"px)")},r.onResize=e.onResize,r.onDoubleClick=function(t){e.onDoubleClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r.onClick=function(t){if(t.defaultPrevented||!e.onClick){return}e.onClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r);if(e.range){if(e.column.itemIndex>=e.range.x&&e.column.itemIndex<=e.range.x1){if(typeof c.class==="object"){c.class[FOCUS_CLASS]=true}}}return h(HeaderCellRenderer,{data:e.data,props:c},((s=e.data)===null||s===void 0?void 0:s.order)?h(SortingSign,{column:e.data}):"",e.canFilter&&((u=e.data)===null||u===void 0?void 0:u.filter)!==false?h(FilterButton,{column:e.data}):"")};var GroupHeaderRenderer=function(e){var t;var r={canResize:e.canResize,minWidth:e.group.ids.length*MIN_COL_SIZE,maxWidth:0,active:["r"],class:(t={},t[HEADER_CLASS]=true,t),style:{transform:"translateX(".concat(e.start,"px)"),width:"".concat(e.end-e.start,"px")},onResize:e.onResize};return h(HeaderCellRenderer,{data:e.group,props:r})};var ColumnGroupsRenderer=function(e){var t=e.depth,r=e.groups,n=e.visibleProps,i=e.dimensionCol,o=e.canResize,a=e.onResize;var s=[];for(var u=0;u<t;u++){if(r[u]){var l=function(e){var t=findIndex_1(e.ids,(function(e){return typeof n[e]==="number"}));if(t>-1){var r=n[e.ids[t]];var u=r-t;var l=u+e.ids.length-1;var c=getItemByIndex(i,u).start;var f=getItemByIndex(i,l).end;s.push(h(GroupHeaderRenderer,{start:c,end:f,group:e,canResize:o,onResize:function(e){return a(e.changedX,u,l)}}))}};for(var c=0,f=r[u];c<f.length;c++){var d=f[c];l(d)}}s.push(h("div",{class:"".concat(HEADER_ROW_CLASS," group")}))}return s};var revogrHeaderStyleCss="@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}";var RevogrHeaderComponent=function(){function e(e){registerInstance(this,e);this.initialHeaderClick=createEvent(this,"initialHeaderClick",7);this.headerresize=createEvent(this,"headerresize",7);this.headerdblClick=createEvent(this,"headerdblClick",7);this.parent="";this.groupingDepth=0}e.prototype.onResize=function(e,t){var r;var n=e.width;this.headerresize.emit((r={},r[t]=n||0,r))};e.prototype.onResizeGroup=function(e,t,r){var n={};var i=keyBy_1(this.viewportCol.get("items"),"itemIndex");var o=e/(r-t+1);for(var a=t;a<=r;a++){var s=i[a];if(s){n[a]=s.size+o}}this.headerresize.emit(n)};e.prototype.render=function(){var e=this;var t;var r=this.viewportCol.get("items");var n=(t=this.selectionStore)===null||t===void 0?void 0:t.get("range");var i=[];var o={};var a=function(t){var r=s.colData[t.itemIndex];i.push(h(HeaderRenderer,{range:n,column:t,data:r,canFilter:!!s.columnFilter,canResize:s.canResize,onResize:function(r){return e.onResize(r,t.itemIndex)},onDoubleClick:function(t){return e.headerdblClick.emit(t)},onClick:function(t){return e.initialHeaderClick.emit(t)}}));o[r===null||r===void 0?void 0:r.prop]=t.itemIndex};var s=this;for(var u=0,l=r;u<l.length;u++){var c=l[u];a(c)}return[h("div",{class:"group-rgRow"},h(ColumnGroupsRenderer,{canResize:this.canResize,visibleProps:o,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:function(t,r,n){return e.onResizeGroup(t,r,n)}})),h("div",{class:"".concat(HEADER_ROW_CLASS," ").concat(HEADER_ACTUAL_ROW_CLASS)},i)]};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrHeaderComponent.style=revogrHeaderStyleCss;var RowOrderService=function(){function e(e){this.config=e;this.currentCell=null;this.previousRow=null}e.prototype.endOrder=function(e,t){if(this.currentCell===null){return}var r=this.getCell(e,t);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()};e.prototype.startOrder=function(e,t){this.currentCell=this.getCell(e,t);return this.currentCell};e.prototype.move=function(e,t){var r=this.getRow(e,t);if(this.previousRow===r.itemIndex||r.itemIndex<-1){return null}this.previousRow=r.itemIndex;return r};e.prototype.clear=function(){this.currentCell=null;this.previousRow=null};e.prototype.getRow=function(e,t){var r=t.el,n=t.rows;var i=r.getBoundingClientRect().top;var o=e-i;var a=getItemByPosition(n,o);var s={itemIndex:a.itemIndex,start:a.start+i,end:a.end+i};return s};e.prototype.getCell=function(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left;var c=n-u;var f=r-l;var d=getItemByPosition(o,c);var v=getItemByPosition(a,f);return{x:v.itemIndex,y:d.itemIndex}};return e}();var OrderEditor=function(){function e(e){var t=this;registerInstance(this,e);this.internalRowDragStart=createEvent(this,"internalRowDragStart",7);this.internalRowDragEnd=createEvent(this,"internalRowDragEnd",7);this.internalRowDrag=createEvent(this,"internalRowDrag",7);this.internalRowMouseMove=createEvent(this,"internalRowMouseMove",7);this.initialRowDropped=createEvent(this,"initialRowDropped",7);this.rowMoveFunc=debounce_1((function(e){var r=t.rowOrderService.move(e,t.getData());if(r!==null){t.internalRowDrag.emit(r)}}),5)}e.prototype.onMouseOut=function(){this.clearOrder()};e.prototype.onMouseUp=function(e){this.endOrder(e)};e.prototype.dragStart=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;var o=this;return __generator(this,(function(a){e.preventDefault();if(this.moveFunc){this.clearOrder()}t=this.getData();r=this.rowOrderService.startOrder(e,t);n=this.rowOrderService.getRow(e.y,t);i=this.internalRowDragStart.emit({cell:r,text:DRAGG_TEXT,pos:n,event:e});if(i.defaultPrevented){return[2]}this.moveFunc=function(e){return o.move(e)};document.addEventListener("mousemove",this.moveFunc);return[2]}))}))};e.prototype.endOrder=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.rowOrderService.endOrder(e,this.getData());this.clearOrder();return[2]}))}))};e.prototype.clearOrder=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rowOrderService.clear();document.removeEventListener("mousemove",this.moveFunc);this.moveFunc=null;this.internalRowDragEnd.emit();return[2]}))}))};e.prototype.move=function(e){var t=e.x,r=e.y;this.internalRowMouseMove.emit({x:t,y:r});this.rowMoveFunc(r)};e.prototype.connectedCallback=function(){var e=this;this.rowOrderService=new RowOrderService({positionChanged:function(t,r){return e.onPositionChanged(t,r)}})};e.prototype.onPositionChanged=function(e,t){var r=this.initialRowDropped.emit({from:e,to:t});if(r.defaultPrevented){return}var n=__spreadArray([],this.dataStore.get("items"),true);var i=n.splice(e,1);n.splice.apply(n,__spreadArray([t,0],i,false));setItems(this.dataStore,n)};e.prototype.getData=function(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}};return e}();var SelectionStoreService=function(){function e(e,t){this.store=e;this.config=t;this.store=e}Object.defineProperty(e.prototype,"edited",{get:function(){return this.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){return this.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ranged",{get:function(){return this.store.get("range")},enumerable:false,configurable:true});e.prototype.changeRange=function(e){return this.config.changeRange(e)};e.prototype.focus=function(e,t){if(t===void 0){t=false}if(!e){return false}var r=e;if(t){var n=this.store.get("focus");if(n){return this.config.changeRange(getRange(n,r))}}return this.config.focus(e,r)};return e}();function isEditInput(e){return!!(e===null||e===void 0?void 0:e.closest(".".concat(EDIT_INPUT_WR)))}var KeyboardService=function(){function e(e){this.sv=e;this.ctrlDown=false}e.prototype.keyDown=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!this.sv.selectionStoreService.focused){return[2]}if(isCtrlKey(e.keyCode,navigator.platform)){this.ctrlDown=true}if(codesLetter.TAB===e.code){this.keyChangeSelection(e,t);return[2]}if(this.sv.selectionStoreService.edited){switch(e.code){case codesLetter.ESCAPE:this.sv.doEdit(undefined,true);break}return[2]}if(isClear(e.code)){this.sv.clearCell();return[2]}if(isEnterKey(e.code)){this.sv.doEdit();return[2]}if(this.isCopy(e)){return[2]}if(this.isPaste(e)){this.sv.internalPaste();return[2]}if(isLetterKey(e.keyCode)){this.sv.doEdit(e.key);return[2]}return[4,this.keyChangeSelection(e,t)];case 1:if(r.sent()){return[2]}return[2]}}))}))};e.prototype.keyChangeSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=this.changeDirectionKey(e,t);if(!r){return[2,false]}return[4,timeout()];case 1:o.sent();n=this.sv.selectionStore.get("range");i=this.sv.selectionStore.get("focus");return[2,this.keyPositionChange(r.changes,this.sv.getData(),n,i,r.isMulti)]}}))}))};e.prototype.keyPositionChange=function(e,t,r,n,i){if(i===void 0){i=false}if(!r||!n){return false}var o=getCoordinate(r,n,e,i);if(!o){return false}if(i){if(isAfterLast(o.end,t)||isBeforeFirst(o.start)){return false}var a=getRange(o.start,o.end);return this.sv.selectionStoreService.changeRange(a)}return this.sv.selectionStoreService.focus(o.start)};e.prototype.keyUp=function(e){if(isCtrlKey(e.keyCode,navigator.platform)){this.ctrlDown=false}};e.prototype.isCopy=function(e){return this.ctrlDown&&e.code==codesLetter.C};e.prototype.isPaste=function(e){return this.ctrlDown&&e.code==codesLetter.V};e.prototype.changeDirectionKey=function(e,t){var r=t&&e.shiftKey;switch(e.code){case codesLetter.TAB:case codesLetter.ARROW_UP:case codesLetter.ARROW_DOWN:case codesLetter.ARROW_LEFT:case codesLetter.ARROW_RIGHT:e.preventDefault();break}switch(e.code){case codesLetter.ARROW_UP:return{changes:{y:-1},isMulti:r};case codesLetter.ARROW_DOWN:return{changes:{y:1},isMulti:r};case codesLetter.ARROW_LEFT:return{changes:{x:-1},isMulti:r};case codesLetter.TAB:case codesLetter.ARROW_RIGHT:return{changes:{x:1},isMulti:r}}};return e}();function baseSlice(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Array(i);while(++n<i){o[n]=e[n+t]}return o}var _baseSlice=baseSlice;function slice(e,t,r){var n=e==null?0:e.length;if(!n){return[]}if(r&&typeof r!="number"&&_isIterateeCall(e,t,r)){t=0;r=n}else{t=t==null?0:toInteger_1(t);r=r===undefined?n:toInteger_1(r)}return _baseSlice(e,t,r)}var slice_1=slice;var AutoFillType;(function(e){e["selection"]="Selection";e["autoFill"]="AutoFill"})(AutoFillType||(AutoFillType={}));var AutoFillService=function(){function e(e){this.sv=e;this.autoFillType=null;this.autoFillInitial=null;this.autoFillStart=null;this.autoFillLast=null}e.prototype.renderAutofill=function(e,t){var r=this;var n;if(e){n=getCell(e,this.sv.dimensionRow.state,this.sv.dimensionCol.state)}else{n=getCell(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state)}return h("div",{class:CELL_HANDLER_CLASS,style:{left:"".concat(n.right,"px"),top:"".concat(n.bottom,"px")},onMouseDown:function(e){return r.selectionStart(e,r.sv.getData(),AutoFillType.autoFill)}})};Object.defineProperty(e.prototype,"isAutoFill",{get:function(){return!!this.autoFillType},enumerable:false,configurable:true});e.prototype.selectionMouseMove=function(e){var t=this;if(!this.onMouseMoveAutofill){this.onMouseMoveAutofill=debounce_1((function(e,r){return t.doAutofillMouseMove(e,r)}),5)}if(this.isAutoFill){this.onMouseMoveAutofill(e,this.sv.getData())}};e.prototype.getFocus=function(){var e=this.sv.selectionStoreService.focused;var t=this.sv.selectionStoreService.ranged;if(t){e={x:t.x,y:t.y}}if(!e&&!t){return null}return e};e.prototype.doAutofillMouseMove=function(e,t){var r=this;var n=e.x,i=e.y;if(!this.autoFillInitial){return}var o=getCurrentCell({x:n,y:i},t);var a;if(this.autoFillLast){a=getDirectionCoordinate(this.autoFillStart,this.autoFillLast)}if(!this.autoFillLast||!a){a=getLargestAxis(this.autoFillStart,o);if(!this.autoFillLast){this.autoFillLast=this.autoFillStart}}if(!a){return}each(a,(function(e,t){var n;if(e){o=Object.assign(Object.assign({},r.autoFillLast),(n={},n[t]=o[t],n))}}));if(isAfterLast(o,t)){return}this.autoFillLast=o;this.sv.setTempRange({area:getRange(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})};e.prototype.selectionStart=function(e,t,r){if(r===void 0){r=AutoFillType.selection}var n=e.target.getBoundingClientRect(),i=n.top,o=n.left;this.autoFillInitial=this.getFocus();this.autoFillType=r;this.autoFillStart=getCurrentCell({x:o,y:i},t);e.preventDefault()};e.prototype.clearAutoFillSelection=function(){if(this.autoFillInitial){this.autoFillInitial=this.getFocus();if(this.autoFillType===AutoFillType.autoFill){this.applyRangeWithData(this.autoFillInitial,this.autoFillLast)}else{this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)}}this.autoFillType=null;this.autoFillInitial=null;this.autoFillLast=null;this.autoFillStart=null};e.prototype.onRangeApply=function(e,t){var r={};for(var n in e){r[n]=getSourceItem(this.sv.dataStore,parseInt(n,10))}var i=this.sv.internalRangeDataApply({data:e,models:r,type:this.sv.dataStore.get("type")});if(!i.defaultPrevented){this.sv.columnService.applyRangeData(e)}this.sv.setRange(t)};e.prototype.applyRangeWithData=function(e,t){if(!e||!t){return}var r=this.sv.selectionStoreService.ranged;var n=getRange(e,t);var i=__spreadArray([],this.sv.columnService.columns,true);var o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:r,newProps:slice_1(i,n.x,n.x1+1).map((function(e){return e.prop})),oldProps:slice_1(i,r.x,r.x1+1).map((function(e){return e.prop}))};o.newData=this.sv.columnService.getRangeData(o);var a=this.sv.internalSelectionChanged(o);if(a.defaultPrevented){this.sv.setTempRange(null);return}this.onRangeApply(o.newData,n)};e.prototype.applyRangeOnly=function(e,t){if(!e||!t){return}var r=getRange(e,t);this.sv.setRange(r)};return e}();var ClipboardService=function(){function e(e){this.sv=e}e.prototype.onCopy=function(e){var t=this.sv.internalCopy();if(t.defaultPrevented){return false}var r=this.sv.selectionStoreService.focused;var n=this.sv.selectionStoreService.ranged;var i;if(!n){n=getRange(r,r)}if(n){var o=__spreadArray([],this.sv.columnService.columns,true);var a=slice_1(o,n.x,n.x1+1).map((function(e){return e.prop}));i=this.sv.columnService.copyRangeArray(n,a,this.sv.dataStore)}this.clipboard.doCopy(e,i);return true};e.prototype.renderClipboard=function(){var e=this;return h("revogr-clipboard",{onCopyRegion:function(t){return e.onCopy(t.detail)},ref:function(t){return e.clipboard=t},onPasteRegion:function(t){return e.onPaste(t.detail)}})};e.prototype.onPaste=function(e){var t=this.sv.selectionStoreService.focused;var r=this.sv.selectionStoreService.edited!==null;if(!t||r){return}var n=this.sv.columnService.getTransformedDataToApply(t,e),i=n.changed,o=n.range;this.sv.onRangeApply(i,o)};return e}();var revogrOverlayStyleCss=".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}";var OverlaySelection=function(){function e(e){registerInstance(this,e);this.internalCopy=createEvent(this,"internalCopy",7);this.internalPaste=createEvent(this,"internalPaste",7);this.internalCellEdit=createEvent(this,"internalCellEdit",7);this.internalFocusCell=createEvent(this,"internalFocusCell",7);this.setEdit=createEvent(this,"setEdit",3);this.setRange=createEvent(this,"setRange",7);this.setTempRange=createEvent(this,"setTempRange",7);this.focusCell=createEvent(this,"focusCell",3);this.internalSelectionChanged=createEvent(this,"internalSelectionChanged",7);this.internalRangeDataApply=createEvent(this,"internalRangeDataApply",7);this.keyboardService=null;this.autoFillService=null;this.clipboardService=null}e.prototype.onMouseMove=function(e){if(this.selectionStoreService.focused){this.autoFillService.selectionMouseMove(e)}};e.prototype.onMouseOut=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onMouseUp=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onCellDrag=function(e){var t;(t=this.orderEditor)===null||t===void 0?void 0:t.dragStart(e.detail)};e.prototype.onKeyUp=function(e){var t;(t=this.keyboardService)===null||t===void 0?void 0:t.keyUp(e)};e.prototype.onKeyDown=function(e){var t;if(e.defaultPrevented){return}(t=this.keyboardService)===null||t===void 0?void 0:t.keyDown(e,this.range)};e.prototype.selectionServiceSet=function(e){var t=this;this.selectionStoreService=new SelectionStoreService(e,{changeRange:function(e){var r;return!((r=t.setRange.emit(e))===null||r===void 0?void 0:r.defaultPrevented)},focus:function(e,r){var n;var i={focus:e,end:r};var o=t.internalFocusCell.emit(t.columnService.getSaveData(e.y,e.x)).defaultPrevented;if(o){return false}return!((n=t.focusCell.emit(i))===null||n===void 0?void 0:n.defaultPrevented)}});this.keyboardService=new KeyboardService({selectionStoreService:this.selectionStoreService,selectionStore:e,doEdit:function(e,r){return t.doEdit(e,r)},clearCell:function(){return t.clearCell()},getData:function(){return t.getData()},internalPaste:function(){return t.internalPaste.emit()}});this.createAutoFillService();this.createClipboardService()};e.prototype.createAutoFillService=function(){var e=this;this.autoFillService=new AutoFillService({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:function(t){return e.setTempRange.emit(t)},internalSelectionChanged:function(t){return e.internalSelectionChanged.emit(t)},internalRangeDataApply:function(t){return e.internalRangeDataApply.emit(t)},setRange:function(t){return e.setRange.emit(t)},getData:function(){return e.getData()}})};e.prototype.columnServiceSet=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new ColumnService(this.dataStore,this.colData);this.createAutoFillService();this.createClipboardService()};e.prototype.createClipboardService=function(){var e=this;this.clipboardService=new ClipboardService({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:function(t,r){return e.autoFillService.onRangeApply(t,r)},internalCopy:function(){return e.internalCopy.emit()}})};e.prototype.connectedCallback=function(){this.columnServiceSet();this.selectionServiceSet(this.selectionStore)};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.renderRange=function(e){var t=getElStyle(e,this.dimensionRow.state,this.dimensionCol.state);return[h("div",{class:SELECTION_BORDER_CLASS,style:t})]};e.prototype.renderEditCell=function(){var e=this;var t=this.selectionStore.get("edit");if(this.readonly||!t){return}var r=t.val||this.columnService.getCellData(t.y,t.x);var n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r));var i=getElStyle(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return h("revogr-edit",{onCellEdit:function(t){return e.onCellEdit(t.detail)},onCloseEdit:function(t){return e.closeEdit(t)},editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})};e.prototype.render=function(){var e=this;var t=this.selectionStoreService.ranged;var r=this.selectionStoreService.focused;var n=[];if((t||r)&&this.useClipboard){n.push(this.clipboardService.renderClipboard())}if(t){n.push.apply(n,this.renderRange(t))}var i=this.renderEditCell();if(i){n.push(i)}if(r&&!this.readonly&&!i&&this.range){n.push(this.autoFillService.renderAutofill(t,r))}if(this.canDrag){n.push(h("revogr-order-editor",{ref:function(t){return e.orderEditor=t},dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:function(t){return e.onRowDragStart(t)}}))}return h(Host,{onDblClick:function(){return e.doEdit()},onMouseDown:function(t){return e.onElementMouseDown(t)}},n,h("slot",{name:"data"}))};e.prototype.onElementMouseDown=function(e){if(isEditInput(e.target)){return}var t=this.getData();if(e.defaultPrevented){return}var r=getCurrentCell({x:e.x,y:e.y},t);this.selectionStoreService.focus(r,this.range&&e.shiftKey);if(this.range){this.autoFillService.selectionStart(e,t)}};e.prototype.doEdit=function(e,t){if(e===void 0){e=""}if(t===void 0){t=false}var r;if(this.canEdit()){var n=this.selectionStore.get("focus");var i=this.columnService.getSaveData(n.y,n.x);(r=this.setEdit)===null||r===void 0?void 0:r.emit(Object.assign(Object.assign({},i),{isCancel:t,val:e}))}};e.prototype.closeEdit=function(e){this.doEdit(undefined,true);if(e===null||e===void 0?void 0:e.detail){this.focusNext()}};e.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:codesLetter.ARROW_DOWN}),this.range)];case 1:e=t.sent();if(!e){this.closeEdit()}return[2]}}))}))};e.prototype.clearCell=function(){if(this.selectionStoreService.ranged&&!isRangeSingleCell(this.selectionStoreService.ranged)){var e=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(e,this.selectionStoreService.ranged)}else if(this.canEdit()){var t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},true)}};e.prototype.onCellEdit=function(e,t){if(t===void 0){t=false}var r=this.columnService.getSaveData(e.rgRow,e.rgCol,e.val);this.internalCellEdit.emit(r);if(!t&&!e.preventFocus){this.focusNext()}};e.prototype.onRowDragStart=function(e){var t=e.detail;t.text=this.columnService.getCellData(t.cell.y,t.cell.x)};e.prototype.canEdit=function(){var e;if(this.readonly){return false}var t=this.selectionStoreService.focused;return t&&!((e=this.columnService)===null||e===void 0?void 0:e.isReadOnly(t.y,t.x))};e.prototype.getData=function(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}},enumerable:false,configurable:true});return e}();OverlaySelection.style=revogrOverlayStyleCss;var RowHeaderRender=function(e){return function(t,r){var n=r.rowIndex;return e+n}};var LETTER_BLOCK_SIZE=10;var RevogrRowHeaders=function(){function e(e){registerInstance(this,e);this.scrollViewport=createEvent(this,"scrollViewport",3);this.elementToScroll=createEvent(this,"elementToScroll",3)}e.prototype.render=function(){var e;var t=this;var r;var n=[];var i=new ViewportStore;var o=1;for(var a=0,s=this.dataPorts;a<s.length;a++){var u=s[a];var l=u.dataStore.get("items").length;var c=new DataStore(u.type);c.updateData(u.dataStore.get("source"));var f=new DataStore("colPinStart");var d=Object.assign({cellTemplate:RowHeaderRender(o)},this.rowHeaderColumn);f.updateData([d]);var v=Object.assign(Object.assign({},u),{dataStore:c.store,colData:f.store,viewportCol:i.store,readonly:true,range:false});n.push(h("revogr-data",Object.assign({},v)));o+=l}var p=((r=this.rowHeaderColumn)===null||r===void 0?void 0:r.size)||(o.toString().length+1)*LETTER_BLOCK_SIZE;i.setViewport({realCount:1,virtualSize:0,items:[{size:p,start:0,end:p,itemIndex:0}]});var g="".concat(this.uiid,"-rowHeaders");var m=(e={},e[UUID]=g,e.contentHeight=this.height,e.contentWidth=0,e.style={minWidth:"".concat(p,"px")},e.ref=function(e){return t.elementToScroll.emit(e)},e.onScrollViewport=function(e){return t.scrollViewport.emit(e.detail)},e);var C=Object.assign(Object.assign({},this.headerProp),{colData:typeof this.rowHeaderColumn==="object"?[this.rowHeaderColumn]:[],viewportCol:i.store,canResize:false,parent:g,slot:"header"});return h(Host,{class:"rowHeaders",key:"rowHeaders"},h("revogr-viewport-scroll",Object.assign({},m),h("revogr-header",Object.assign({},C)),n))};return e}();var initialParams={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};var LocalScrollService=function(){function e(e){this.cfg=e;this.preventArtificialScroll={rgRow:null,rgCol:null};this.previousScroll={rgRow:0,rgCol:0};this.params={rgRow:Object.assign({},initialParams),rgCol:Object.assign({},initialParams)}}e.getVirtualContentSize=function(e,t,r){if(r===void 0){r=0}return e+(r?t-r:0)};e.prototype.setParams=function(t,r){var n=e.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:n-t.clientSize,virtualContentSize:n})};e.prototype.setScroll=function(e){var t=this;this.cancelScroll(e.dimension);this.preventArtificialScroll[e.dimension]=window.requestAnimationFrame((function(){var r=t.getParams(e.dimension);e.coordinate=Math.ceil(e.coordinate);t.previousScroll[e.dimension]=t.wrapCoordinate(e.coordinate,r);t.preventArtificialScroll[e.dimension]=null;t.cfg.afterScroll(Object.assign(Object.assign({},e),{coordinate:r.virtualSize?t.convert(e.coordinate,r,false):e.coordinate}))}))};e.prototype.scroll=function(e,t,r,n){if(r===void 0){r=false}this.cancelScroll(t);if(!r&&this.previousScroll[t]===e){this.previousScroll[t]=0;return}var i=this.getParams(t);this.cfg.beforeScroll({dimension:t,coordinate:i.virtualSize?this.convert(e,i):e,delta:n})};e.prototype.getParams=function(e){return this.params[e]};e.prototype.wrapCoordinate=function(e,t){if(e<0){return 0}if(e>t.maxSize){return t.maxSize}return e};e.prototype.cancelScroll=function(e){if(typeof this.preventArtificialScroll[e]==="number"){window.cancelAnimationFrame(this.preventArtificialScroll[e]);this.preventArtificialScroll[e]=null;return true}return false};e.prototype.convert=function(e,t,r){if(r===void 0){r=true}var n=t.clientSize;var i=[0,t.virtualContentSize-n];var o=[0,t.contentSize-t.virtualSize];if(r){return scaleValue(e,i,o)}return scaleValue(e,o,i)};return e}();var revogrScrollStyleCss=".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}";var RevogrScrollVirtual=function(){function e(e){registerInstance(this,e);this.scrollVirtual=createEvent(this,"scrollVirtual",7);this.scrollSize=0;this.isAutoHide=false;this.autoHideTimeout=0;this.dimension="rgRow"}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){if(this.dimension!==e.dimension){return[2]}(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.element.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.element.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};Object.defineProperty(e.prototype,"size",{get:function(){if(this.dimension==="rgRow"){return this.element.clientHeight}return this.element.clientWidth},set:function(e){if(this.dimension==="rgRow"){this.element.style.minWidth="".concat(e,"px");return}this.element.style.minHeight="".concat(e,"px")},enumerable:false,configurable:true});e.prototype.connectedCallback=function(){var e=this;this.scrollService=new LocalScrollService({beforeScroll:function(t){return e.scrollVirtual.emit(t)},afterScroll:function(t){var r=t.dimension==="rgRow"?"scrollTop":"scrollLeft";e.element[r]=t.coordinate}})};e.prototype.disconnectedCallback=function(){clearTimeout(this.autoHideTimeout)};e.prototype.componentWillLoad=function(){this.scrollSize=getScrollbarWidth(document);this.isAutoHide=!this.scrollSize};e.prototype.componentDidRender=function(){var e=this.dimension==="rgRow"?"scrollHeight":"scrollWidth";if(this.element[e]>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)};e.prototype.onScroll=function(e){var t;var r="scrollLeft";if(this.dimension==="rgRow"){r="scrollTop"}if(this.isAutoHide){this.size=20;this.autoHideTimeout=this.autoHide(this.autoHideTimeout)}var n=e.target;(t=this.scrollService)===null||t===void 0?void 0:t.scroll(n[r]||0,this.dimension)};e.prototype.autoHide=function(e){var t=this;clearTimeout(e);return setTimeout((function(){t.size=0}),6e3)};e.prototype.render=function(){var e;var t=this;var r=this.dimension==="rgRow"?"height":"width";return h(Host,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:function(e){return t.onScroll(e)}}),h("div",{style:(e={},e[r]="".concat(this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize")),"px"),e)}))};e.prototype.extContentSize=function(e,t){return LocalScrollService.getVirtualContentSize(t,this.size,e)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrScrollVirtual.style=revogrScrollStyleCss;var revogrTempRangeStyleCss=".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;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;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}";var RevogrFocus=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=lodash.throttle((function(e){return t.doChange(e)}),300)}e.prototype.doChange=function(e){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.componentDidRender=function(){if(this.el){this.onChange(this.el)}};e.prototype.render=function(){var e;var t=this;var r=this.selectionStore.get("tempRange");var n=this.selectionStore.get("tempRangeType");if(!r){return}var i="bottom";var o="right";var a=this.getRange();if(!a){return}if(r.y<a.y){i="top"}if(r.x<a.x){o="left"}var s="".concat(o," ").concat(i);var u=getElStyle(r,this.dimensionRow.state,this.dimensionCol.state);return h(Host,{class:(e={},e[TMP_SELECTION_BG_CLASS]=true,e[n||""]=true,e),style:u},h("div",{class:s,ref:function(e){return t.el=e}}))};e.prototype.getRange=function(){var e=this.selectionStore.get("range");if(e){return e}var t=this.selectionStore.get("focus");if(!t){return null}return Object.assign(Object.assign({},t),{x1:t.x,y1:t.y})};return e}();RevogrFocus.style=revogrTempRangeStyleCss;var FUNC_ERROR_TEXT="Expected a function";function throttle(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new TypeError(FUNC_ERROR_TEXT)}if(isObject_1(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return debounce_1(e,t,{leading:n,maxWait:t,trailing:i})}var throttle_1=throttle;function resizeObserver(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!!("ResizeObserver"in window))return[3,2];return[4,import("./resize-observer-00c48d78.js")];case 1:e=t.sent();window.ResizeObserver=e.ResizeObserver;t.label=2;case 2:return[2]}}))}))}var GridResizeService=function(){function e(e,t){var r=this;this.events=t;this.resizeObserver=null;this.resize=throttle_1((function(e,t){var n;return(n=r.events)===null||n===void 0?void 0:n.resize(e,t)}),10);this.init(e)}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,resizeObserver()];case 1:r.sent();this.resizeObserver=new ResizeObserver(this.resize);(t=this.resizeObserver)===null||t===void 0?void 0:t.observe(e);return[2]}}))}))};e.prototype.destroy=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=null};return e}();var revogrViewportScrollStyleCss=".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%}";var RevogrViewportScroll=function(){function e(e){registerInstance(this,e);this.scrollViewport=createEvent(this,"scrollViewport",3);this.resizeViewport=createEvent(this,"resizeViewport",7);this.scrollchange=createEvent(this,"scrollchange",7);this.scrollThrottling=30;this.contentWidth=0;this.contentHeight=0;this.oldValY=this.contentHeight;this.oldValX=this.contentWidth;this.mouseWheelScroll={rgCol:0,rgRow:0}}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){this.latestScrollUpdate(e.dimension);(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.horizontalScroll.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.verticalScroll.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};e.prototype.connectedCallback=function(){var e=this;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 LocalScrollService({beforeScroll:function(t){return e.scrollViewport.emit(t)},afterScroll:function(t){switch(t.dimension){case"rgCol":e.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":e.verticalScroll.scrollTop=t.coordinate;break}}})};e.prototype.componentDidLoad=function(){var e=this;this.horisontalResize=new GridResizeService(this.horizontalScroll,{resize:function(t){var r,n;var i=((r=t[0])===null||r===void 0?void 0:r.contentRect.height)||0;if(i){i-=e.header.clientHeight+e.footer.clientHeight}var o={rgRow:{size:i,contentSize:e.contentHeight,scroll:e.verticalScroll.scrollTop},rgCol:{size:((n=t[0])===null||n===void 0?void 0:n.contentRect.width)||0,contentSize:e.contentWidth,scroll:e.horizontalScroll.scrollLeft}};each(o,(function(t,r){var n;e.resizeViewport.emit({dimension:r,size:t.size});(n=e.scrollService)===null||n===void 0?void 0:n.scroll(t.scroll,r,true);e.setScrollVisibility(r,t.size,t.contentSize)}))}})};e.prototype.setScrollVisibility=function(e,t,r){var n=t<r;var i;var o;switch(e){case"rgCol":i=this.horizontalScroll;o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll;o=this.verticalMouseWheel;break}if(n){i.classList.add("scroll-".concat(e));i.addEventListener("mousewheel",o)}else{i.classList.remove("scroll-".concat(e));i.removeEventListener("mousewheel",o)}this.scrollchange.emit({type:e,hasScroll:n})};e.prototype.disconnectedCallback=function(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel);this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel);this.horisontalResize.destroy()};e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){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);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{onScroll:function(t){return e.onScroll("rgCol",t)}},h("div",{class:"inner-content-table",style:{width:"".concat(this.contentWidth,"px")}},h("div",{class:"header-wrapper",ref:function(t){return e.header=t}},h("slot",{name:HEADER_SLOT})),h("div",{class:"vertical-inner",ref:function(t){return e.verticalScroll=t},onScroll:function(t){return e.onScroll("rgRow",t)}},h("div",{class:"content-wrapper",style:{height:"".concat(this.contentHeight,"px")}},h("slot",{name:CONTENT_SLOT}))),h("div",{class:"footer-wrapper",ref:function(t){return e.footer=t}},h("slot",{name:FOOTER_SLOT}))))};e.prototype.onScroll=function(e,t){var r;var n=t.target;var i=0;switch(e){case"rgCol":i=n===null||n===void 0?void 0:n.scrollLeft;break;case"rgRow":i=n===null||n===void 0?void 0:n.scrollTop;break}var o=(new Date).getTime()-this.mouseWheelScroll[e];if(o>this.scrollThrottling){(r=this.scrollService)===null||r===void 0?void 0:r.scroll(i,e)}};e.prototype.latestScrollUpdate=function(e){this.mouseWheelScroll[e]=(new Date).getTime()};e.prototype.onVerticalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.verticalScroll.scrollTop+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};e.prototype.onHorizontalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.horizontalScroll.scrollLeft+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};Object.defineProperty(e.prototype,"horizontalScroll",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RevogrViewportScroll.style=revogrViewportScrollStyleCss;export{RevoGridComponent as revo_grid,RevogrData as revogr_data,Edit as revogr_edit,RevogrFocus$1 as revogr_focus,RevogrHeaderComponent as revogr_header,OrderEditor as revogr_order_editor,OverlaySelection as revogr_overlay_selection,RevogrRowHeaders as revogr_row_headers,RevogrScrollVirtual as revogr_scroll_virtual,RevogrFocus as revogr_temp_range,RevogrViewportScroll as revogr_viewport_scroll};
|