@revolist/revogrid 3.3.0 → 3.3.2
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/revo-grid.js +8 -5
- package/custom-element/revogr-edit2.js +5 -1
- package/custom-element/revogr-overlay-selection2.js +11 -6
- package/dist/cjs/revo-grid_11.cjs.entry.js +24 -12
- package/dist/collection/components/overlay/keyboard.service.js +1 -1
- package/dist/collection/components/overlay/revogr-edit.js +6 -2
- package/dist/collection/components/overlay/revogr-overlay-selection.js +25 -6
- package/dist/collection/components/revo-grid/revo-grid.js +6 -3
- package/dist/collection/components/revo-grid/viewport.section.js +2 -2
- package/dist/esm/revo-grid_11.entry.js +24 -12
- package/dist/esm-es5/revo-grid_11.entry.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/overlay/editors/text.d.ts +5 -0
- package/dist/types/components/overlay/keyboard.service.d.ts +2 -1
- package/dist/types/components/overlay/revogr-edit.d.ts +9 -2
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +9 -1
- package/dist/types/components/revo-grid/viewport.section.d.ts +2 -1
- package/dist/types/components.d.ts +5 -1
- package/dist/types/interfaces.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist
|
|
3
3
|
*/
|
|
4
|
-
import{g as t,f as r,h as e,r as n,c as i,H as o,e as s}from"./index-f30d1de1.js";import{i as a,_ as u,c,a as l,b as h,d as f,e as d,f as g,t as v,g as p,F as C,h as w,j as m,k as L}from"./debounce-726bdadb.js";class b{constructor(){this.defaultRowSize=32}}class x{constructor(){this.defaultRowSize=27}}class y{constructor(){this.defaultRowSize=42}}const k=["default","material","compact","darkMaterial","darkCompact"];class E{constructor(t){this.customRowSize=0,this.customRowSize=t.rowSize,this.register("default")}get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}register(t){switch(E.getTheme(t)){case"material":case"darkMaterial":this.currentTheme=new y;break;case"compact":case"darkCompact":this.currentTheme=new b;break;default:this.currentTheme=new x}}static getTheme(t){return k.indexOf(t)>-1?t:"default"}}var S=function(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e},R=function(t,r,e){for(var n=-1,i=Object(t),o=e(t),s=o.length;s--;){var a=o[++n];if(!1===r(i[a],a,i))break}return t},j=function(t){return a(t)&&"[object Arguments]"==u(t)},z=Object.prototype,O=z.hasOwnProperty,M=z.propertyIsEnumerable,F=j(function(){return arguments}())?j:function(t){return a(t)&&O.call(t,"callee")&&!M.call(t,"callee")},_=Array.isArray,A=function(){return!1},D=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e?l.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||A})),I=/^(?:0|[1-9]\d*)$/,T=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&I.test(t))&&t>-1&&t%1==0&&t<r},P=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1;var U,H=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e&&h.process,o=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o})),Z=H&&H.isTypedArray,B=Z?(U=Z,function(t){return U(t)}):function(t){return a(t)&&P(t.length)&&!!$[u(t)]},N=Object.prototype.hasOwnProperty,W=function(t,r){var e=_(t),n=!e&&F(t),i=!e&&!n&&D(t),o=!e&&!n&&!i&&B(t),s=e||n||i||o,a=s?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],u=a.length;for(var c in t)!r&&!N.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||T(c,u))||a.push(c);return a},V=Object.prototype,G=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),q=Object.prototype.hasOwnProperty,K=function(t){if((r=t)!==("function"==typeof(e=r&&r.constructor)&&e.prototype||V))return G(t);var r,e,n=[];for(var i in Object(t))q.call(t,i)&&"constructor"!=i&&n.push(i);return n},X=function(t){if(!f(t))return!1;var r=u(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},J=function(t){return null!=t&&P(t.length)&&!X(t)},Y=function(t){return J(t)?W(t):K(t)},Q=function(t,r){if(null==t)return t;if(!J(t))return function(t,r){return t&&R(t,r,Y)}(t,r);for(var e=t.length,n=-1,i=Object(t);++n<e&&!1!==r(i[n],n,i););return t},tt=function(t,r){return t===r||t!=t&&r!=r},rt=function(t,r){for(var e=t.length;e--;)if(tt(t[e][0],r))return e;return-1},et=Array.prototype.splice;function nt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}nt.prototype.clear=function(){this.__data__=[],this.size=0},nt.prototype.delete=function(t){var r=this.__data__,e=rt(r,t);return!(e<0||(e==r.length-1?r.pop():et.call(r,e,1),--this.size,0))},nt.prototype.get=function(t){var r=this.__data__,e=rt(r,t);return e<0?void 0:r[e][1]},nt.prototype.has=function(t){return rt(this.__data__,t)>-1},nt.prototype.set=function(t,r){var e=this.__data__,n=rt(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var it,ot=nt,st=l["__core-js_shared__"],at=(it=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||""))?"Symbol(src)_1."+it:"",ut=Function.prototype.toString,ct=function(t){if(null!=t){try{return ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""},lt=/^\[object .+?Constructor\]$/,ht=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=function(t){return!(!f(t)||function(t){return!!at&&at in t}(t))&&(X(t)?ht:lt).test(ct(t))},dt=function(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return ft(e)?e:void 0},gt=dt(l,"Map"),vt=dt(Object,"create"),pt=Object.prototype.hasOwnProperty,Ct=Object.prototype.hasOwnProperty;function wt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}wt.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},wt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},wt.prototype.get=function(t){var r=this.__data__;if(vt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return pt.call(r,t)?r[t]:void 0},wt.prototype.has=function(t){var r=this.__data__;return vt?void 0!==r[t]:Ct.call(r,t)},wt.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=vt&&void 0===r?"__lodash_hash_undefined__":r,this};var mt=wt,Lt=function(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map};function bt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}bt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(gt||ot),string:new mt}},bt.prototype.delete=function(t){var r=Lt(this,t).delete(t);return this.size-=r?1:0,r},bt.prototype.get=function(t){return Lt(this,t).get(t)},bt.prototype.has=function(t){return Lt(this,t).has(t)},bt.prototype.set=function(t,r){var e=Lt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};var xt=bt;function yt(t){var r=this.__data__=new ot(t);this.size=r.size}yt.prototype.clear=function(){this.__data__=new ot,this.size=0},yt.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},yt.prototype.get=function(t){return this.__data__.get(t)},yt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof ot){var n=e.__data__;if(!gt||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new xt(n)}return e.set(t,r),this.size=e.size,this};var kt=yt;function Et(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new xt;++r<e;)this.add(t[r])}Et.prototype.add=Et.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Et.prototype.has=function(t){return this.__data__.has(t)};var St=Et,Rt=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1},jt=function(t,r,e,n,i,o){var s=1&e,a=t.length,u=r.length;if(a!=u&&!(s&&u>a))return!1;var c=o.get(t),l=o.get(r);if(c&&l)return c==r&&l==t;var h=-1,f=!0,d=2&e?new St:void 0;for(o.set(t,r),o.set(r,t);++h<a;){var g=t[h],v=r[h];if(n)var p=s?n(v,g,h,r,t,o):n(g,v,h,t,r,o);if(void 0!==p){if(p)continue;f=!1;break}if(d){if(!Rt(r,(function(t,r){if(!d.has(r)&&(g===t||i(g,t,e,n,o)))return d.push(r)}))){f=!1;break}}else if(g!==v&&!i(g,v,e,n,o)){f=!1;break}}return o.delete(t),o.delete(r),f},zt=l.Uint8Array,Ot=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e},Mt=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e},Ft=d?d.prototype:void 0,_t=Ft?Ft.valueOf:void 0,At=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols,It=Dt?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}(Dt(t),(function(r){return At.call(t,r)})))}:function(){return[]},Tt=function(t){return function(t,r,e){var n=r(t);return _(t)?n:function(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}(n,e(t))}(t,Y,It)},Pt=Object.prototype.hasOwnProperty,$t=dt(l,"DataView"),Ut=dt(l,"Promise"),Ht=dt(l,"Set"),Zt=dt(l,"WeakMap"),Bt=ct($t),Nt=ct(gt),Wt=ct(Ut),Vt=ct(Ht),Gt=ct(Zt),qt=u;($t&&"[object DataView]"!=qt(new $t(new ArrayBuffer(1)))||gt&&"[object Map]"!=qt(new gt)||Ut&&"[object Promise]"!=qt(Ut.resolve())||Ht&&"[object Set]"!=qt(new Ht)||Zt&&"[object WeakMap]"!=qt(new Zt))&&(qt=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,n=e?ct(e):"";if(n)switch(n){case Bt:return"[object DataView]";case Nt:return"[object Map]";case Wt:return"[object Promise]";case Vt:return"[object Set]";case Gt:return"[object WeakMap]"}return r});var Kt=qt,Xt="[object Object]",Jt=Object.prototype.hasOwnProperty,Yt=function(t,r,e,n,i,o){var s=_(t),a=_(r),u=s?"[object Array]":Kt(t),c=a?"[object Array]":Kt(r),l=(u="[object Arguments]"==u?Xt:u)==Xt,h=(c="[object Arguments]"==c?Xt:c)==Xt,f=u==c;if(f&&D(t)){if(!D(r))return!1;s=!0,l=!1}if(f&&!l)return o||(o=new kt),s||B(t)?jt(t,r,e,n,i,o):function(t,r,e,n,i,o,s){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!o(new zt(t),new zt(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return tt(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var a=Ot;case"[object Set]":if(a||(a=Mt),t.size!=r.size&&!(1&n))return!1;var u=s.get(t);if(u)return u==r;n|=2,s.set(t,r);var c=jt(a(t),a(r),n,i,o,s);return s.delete(t),c;case"[object Symbol]":if(_t)return _t.call(t)==_t.call(r)}return!1}(t,r,u,e,n,i,o);if(!(1&e)){var d=l&&Jt.call(t,"__wrapped__"),g=h&&Jt.call(r,"__wrapped__");if(d||g){var v=d?t.value():t,p=g?r.value():r;return o||(o=new kt),i(v,p,e,n,o)}}return!!f&&(o||(o=new kt),function(t,r,e,n,i,o){var s=1&e,a=Tt(t),u=a.length;if(u!=Tt(r).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in r:Pt.call(r,l)))return!1}var h=o.get(t),f=o.get(r);if(h&&f)return h==r&&f==t;var d=!0;o.set(t,r),o.set(r,t);for(var g=s;++c<u;){var v=t[l=a[c]],p=r[l];if(n)var C=s?n(p,v,l,r,t,o):n(v,p,l,t,r,o);if(!(void 0===C?v===p||i(v,p,e,n,o):C)){d=!1;break}g||(g="constructor"==l)}if(d&&!g){var w=t.constructor,m=r.constructor;w==m||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof m&&m instanceof m||(d=!1)}return o.delete(t),o.delete(r),d}(t,r,e,n,i,o))},Qt=function t(r,e,n,i,o){return r===e||(null==r||null==e||!a(r)&&!a(e)?r!=r&&e!=e:Yt(r,e,n,i,t,o))},tr=function(t){return t==t&&!f(t)},rr=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},er=function(t){var r=function(t){for(var r=Y(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,tr(i)]}return r}(t);return 1==r.length&&r[0][2]?rr(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var i=e.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var a=e[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var u=(a=e[i])[0],c=t[u],l=a[1];if(s&&a[2]){if(void 0===c&&!(u in t))return!1}else{var h=new kt;if(n)var f=n(c,l,u,t,r,h);if(!(void 0===f?Qt(l,c,3,n,h):f))return!1}}return!0}(e,t,r)}},nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,or=function(t,r){if(_(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!g(t))||ir.test(t)||!nr.test(t)||null!=r&&t in Object(r)};function sr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(sr.Cache||xt),e}sr.Cache=xt;var ar,ur,cr,lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/\\(\\)?/g,fr=(ar=sr((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(lr,(function(t,e,n,i){r.push(n?i.replace(hr,"$1"):e||t)})),r}),(function(t){return 500===ur.size&&ur.clear(),t})),ur=ar.cache,ar),dr=function(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i},gr=d?d.prototype:void 0,vr=gr?gr.toString:void 0,pr=function t(r){if("string"==typeof r)return r;if(_(r))return dr(r,t)+"";if(g(r))return vr?vr.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e},Cr=function(t){return null==t?"":pr(t)},wr=function(t,r){return _(t)?t:or(t,r)?[t]:fr(Cr(t))},mr=function(t){if("string"==typeof t||g(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Lr=function(t,r){for(var e=0,n=(r=wr(r,t)).length;null!=t&&e<n;)t=t[mr(r[e++])];return e&&e==n?t:void 0},br=function(t,r){return null!=t&&r in Object(t)},xr=function(t,r){return null!=t&&function(t,r,e){for(var n=-1,i=(r=wr(r,t)).length,o=!1;++n<i;){var s=mr(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&P(i)&&T(s,i)&&(_(t)||F(t))}(t,r,br)},yr=function(t,r){return or(t)&&tr(r)?rr(mr(t),r):function(e){var n=function(t,r,e){var n=null==t?void 0:Lr(t,r);return void 0===n?e:n}(e,t);return void 0===n&&n===r?xr(e,t):Qt(r,n,3)}},kr=function(t){return t},Er=function(t){return function(r){return null==r?void 0:r[t]}},Sr=function(t){return or(t)?Er(mr(t)):function(t){return function(r){return Lr(r,t)}}(t)},Rr=function(t){return"function"==typeof t?t:null==t?kr:"object"==typeof t?_(t)?yr(t[0],t[1]):er(t):Sr(t)},jr=function(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e},zr=function(t,r,e){var n=_(t)?S:jr,i=arguments.length<3;return n(t,Rr(r),e,i,Q)},Or=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t},Mr=function(t,r){return(_(t)?Or:Q)(t,"function"==typeof(e=r)?e:kr);var e},Fr=function(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1},_r=function(t){return t?1/0===(t=v(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Ar=function(t){var r=_r(t),e=r%1;return r==r?e?r-e:r:0},Dr=Math.max,Ir=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:Ar(e);return i<0&&(i=Dr(n+i,0)),Fr(t,Rr(r),i)},Tr=(cr=Ir,function(t,r,e){var n=Object(t);if(!J(t)){var i=Rr(r);t=Y(t),r=function(t){return i(n[t],t,n)}}var o=cr(t,r,e);return o>-1?n[i?t[o]:o]:void 0});const Pr=t=>!("isConnected"in t)||t.isConnected,$r=(()=>{let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let r of t.keys())t.set(r,t.get(r).filter(Pr))})(...r)}),2e3)}})(),Ur=(e,n)=>{const i=((t,r=((t,r)=>t!==r))=>{let e=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((r=>r(t))),e.get(t)),s=(t,i)=>{const o=e.get(t);r(i,o,t)&&(e.set(t,i),n.set.forEach((r=>r(t,i,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,r)=>e.has(r),set:(t,r,e)=>(s(r,e),!0)}),u=(t,r)=>(n[t].push(r),()=>{((t,r)=>{const e=t.indexOf(r);e>=0&&(t[e]=t[t.length-1],t.length--)})(n[t],r)});return{state:a,get:o,set:s,on:u,onChange:(r,e)=>{const n=u("set",((t,n)=>{t===r&&e(n)})),i=u("reset",(()=>e(t[r])));return()=>{n(),i()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{n.dispose.forEach((t=>t())),i()},reset:i}})(e,n);return(({on:e})=>{const n=new Map;"function"==typeof t&&(e("dispose",(()=>{n.clear()})),e("get",(r=>{const e=t();e&&((t,r,e)=>{const n=t.get(r);n?n.includes(e)||n.push(e):t.set(r,[e])})(n,r,e)})),e("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),$r(n)})),e("reset",(()=>{n.forEach((t=>t.forEach(r))),$r(n)})))})(i),i};var Hr=Math.ceil,Zr=Math.max,Br=function(t,r,e){if(!f(e))return!1;var n=typeof r;return!!("number"==n?J(e)&&T(r,e.length):"string"==n&&r in e)&&tt(e[r],t)},Nr=function(t,r,e){return e&&"number"!=typeof e&&Br(t,r,e)&&(r=e=void 0),t=_r(t),void 0===r?(r=t,t=0):r=_r(r),function(t,r,e,n){for(var i=-1,o=Zr(Hr((r-t)/(e||1)),0),s=Array(o);o--;)s[n?o:++i]=t,t+=e;return s}(t,r,e=void 0===e?t<r?1:-1:_r(e),void 0)};function Wr(t,r){for(let e in r)t.set(e,r[e])}class Vr{constructor(t){const r=this.dataStore=Ur({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{}});r.use((t=>({set(r,e){if(!function(t){return"proxyItems"===t}(r))return;const n=t.get("items").reduce(((t,r)=>(t[r]=!0,t)),{}),i=e.reduce(((t,r)=>(n[r]&&t.push(r),t)),[]);t.set("items",i)}}))(r)),r.use((t=>({set(r,e){switch(r){case"trimmed":const r=t.get("proxyItems"),n=function(t){const r={};for(let e in t)for(let n in t[e])r[n]=r[n]||t[e][n];return r}(e),i=r.reduce(((t,r)=>(n[r]||t.push(r),t)),[]);t.set("items",i)}}}))(r))}get store(){return this.dataStore}updateData(t,r,e=!1){e||this.store.set("trimmed",{}),this.store.set("items",[]);const n=Nr(0,(null==t?void 0:t.length)||0);Wr(this.store,{source:t,proxyItems:[...n]}),this.store.set("items",n),r&&Wr(this.store,{groupingDepth:r.depth,groups:r.groups,groupingCustomRenderer:r.customRenderer})}addTrimmed(t){let r=this.store.get("trimmed");r=Object.assign(Object.assign({},r),t),Wr(this.store,{trimmed:r})}setData(t){const r=Object.assign({},t);Wr(this.store,r)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function Gr(t){const r=t.get("source");return t.get("items").map((t=>r[t]))}function qr(t,r){const e=t.get("items");return t.get("source")[e[r]]}function Kr(t,r){const e=t.get("items"),n=t.get("source");for(let t in r)n[e[t]]=r[t];t.set("source",[...n])}function Xr(t,r){t.set("items",r)}const Jr=["rowPinStart","rgRow","rowPinEnd"],Yr=["colPinStart","rgCol","colPinEnd"];var Qr=function(t,r){var e=-1,n=J(t)?Array(t.length):[];return Q(t,(function(t,i,o){n[++e]=r(t,i,o)})),n},te=function(t,r){return(_(t)?dr:Qr)(t,Rr(r))};class re{constructor(t){this.revogrid=t,this.subscriptions={}}addEventListener(t,r){this.revogrid.addEventListener(t,r),this.subscriptions[t]=r}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]),delete this.subscriptions[t]}emit(t,r){const e=new CustomEvent(t,{detail:r,cancelable:!0});return this.revogrid.dispatchEvent(e),e}clearSubscriptions(){for(let t in this.subscriptions)this.removeEventListener(t)}destroy(){this.clearSubscriptions()}}class ee extends re{static gatherGroup(t,r,e,n=0){const i=Object.assign(Object.assign({},r),{level:n,ids:[]});for(let r in e.columns){const n=r,o=t.columns[n],s=e.columns[n];_(o)&&_(s)&&(o.push(...s),s.length&&t.columnGrouping[n].push(Object.assign(Object.assign({},i),{ids:te(s,"prop")})))}for(let r in e.columnGrouping)t.columnGrouping[r].push(...e.columnGrouping[r]);return t.maxLevel=Math.max(t.maxLevel,e.maxLevel),t.sort=Object.assign(Object.assign({},t.sort),e.sort),t}}function ne(t){return!!t.children}class ie{constructor(){this.sorting=null,this.dataSources=zr(Yr,((t,r)=>(t[r]=new Vr(r),t)),{})}get order(){return zr(this.sorting,((t,r,e)=>(t[e]=r.order,t)),{})}get stores(){return this.dataSources}column(t,r){return this.getColumn(t,r||"rgCol")}getColumn(t,r){return qr(this.dataSources[r].store,t)}getRawColumns(){return zr(this.dataSources,((t,r,e)=>(t[e]=r.store.get("source"),t)),{rgCol:[],colPinStart:[],colPinEnd:[]})}getColumns(t="all"){return"all"!==t?this.dataSources[t].store.get("source"):Yr.reduce(((t,r)=>(t.push(...this.dataSources[r].store.get("source")),t)),[])}getColumnIndexByProp(t,r){return function(t,r){const e=t.get("items"),n=t.get("source"),i=Ir(n,{prop:r});return e.indexOf(i)}(this.dataSources[r].store,t)}getColumnByProp(t,r){const e=this.dataSources[r].store.get("source");return Tr(e,{prop:t})}refreshByType(t){this.dataSources[t].refresh()}setColumns(t){return Mr(Yr,(r=>{this.dataSources[r].updateData(t.columns[r],{depth:t.maxLevel,groups:zr(t.columnGrouping[r],((t,r)=>(t[r.level]||(t[r.level]=[]),t[r.level].push(r),t)),{})})})),this.sorting=t.sort,t}updateColumns(t){const r=t.reduce(((t,r)=>{const e=ie.getColumnType(r);return t[e]||(t[e]={}),t[e][r.prop]=r,t}),{}),e={};Mr(r,((t,r)=>{const n=this.dataSources[r].store.get("source");e[r]=n.reduce(((r,e,n)=>{const i=t[e.prop];return i&&(r[n]=i),r}),{})})),Mr(e,((t,r)=>Kr(this.dataSources[r].store,t)))}updateColumn(t,r){const e=ie.getColumnType(t);Kr(this.dataSources[e].store,{[r]:t})}updateColumnSorting(t,r,e,n){return n||this.clearSorting(),t.order=e,this.sorting[t.prop]=t,this.updateColumn(t,r),t}clearSorting(){const t=zr(this.sorting,((t,r)=>(t[ie.getColumnType(r)]=!0,t)),{});Mr(t,((t,r)=>{const e=this.dataSources[r].store.get("source");Mr(e,(t=>t.order=void 0)),this.dataSources[r].setData({source:[...e]})})),this.sorting={}}static getSizes(t){return zr(t,((t,r,e)=>(r.size&&(t[e]=r.size),t)),{})}static getColumnByProp(t,r){return Tr(t,(t=>ne(t)?ie.getColumnByProp(t.children,r):t.prop===r))}static getColumns(t,r=0,e){return zr(t,((t,n)=>{if(ne(n))return ee.gatherGroup(t,n,ie.getColumns(n.children,r+1,e),r);const i=Object.assign(Object.assign({},n.columnType&&e&&e[n.columnType]),n);return i.pin?t.columns[i.pin].push(i):t.columns.rgCol.push(i),i.order&&(t.sort[i.prop]=i),i.beforeSetup&&i.beforeSetup(i),t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})}static getColumnType(t){return t.pin?t.pin:"rgCol"}}class oe{constructor(t){this.dimensionProvider=t,this.stores=zr(Jr,((t,r)=>(t[r]=new Vr(r),t)),{})}setData(t,r="rgRow",e,n=!1){return this.stores[r].updateData([...t],e,n),this.dimensionProvider.setData(t,r,"rgRow"!==r),t}getModel(t,r="rgRow"){return qr(this.stores[r].store,t)}setCellData({type:t,rowIndex:r,prop:e,val:n}){const i=this.getModel(r,t);i[e]=n,Kr(this.stores[t].store,{[r]:i})}refresh(t="all"){(function(t){return Jr.indexOf(t)>-1})(t)&&this.refreshItems(t),Jr.forEach((t=>this.refreshItems(t)))}refreshItems(t="rgRow"){const r=this.stores[t].store.get("items");this.stores[t].setData({items:[...r]})}setGrouping({depth:t},r="rgRow"){this.stores[r].setData({groupingDepth:t})}setTrimmed(t,r="rgRow"){const e=this.stores[r];e.addTrimmed(t),"rgRow"===r&&this.dimensionProvider.setData(Gr(e.store),r)}}var se,ae=Math.floor,ue=Math.min,ce=function(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!g(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return function(t,r,e,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(r=e(r))!=r,a=null===r,u=g(r),c=void 0===r;i<o;){var l=ae((i+o)/2),h=e(t[l]),f=void 0!==h,d=null===h,v=h==h,p=g(h);if(s)var C=n||v;else C=c?v&&(n||f):a?v&&f&&(n||!d):u?v&&f&&!d&&(n||!p):!d&&!p&&(n?h<=r:h<r);C?i=l+1:o=l}return ue(o,4294967294)}(t,r,kr,e)},le=function(t,r){return ce(t,r)};function he(t,r){return t<r}function fe(t){const r=t.createElement("div"),e=r.style;e.visibility="hidden",e.overflow="scroll",e.msOverflowStyle="scrollbar",t.body.appendChild(r);const n=t.createElement("div");r.appendChild(n);const i=r.offsetWidth-n.offsetWidth;return r.parentNode.removeChild(r),i}function de(t,r,e){return(e[1]-e[0])*(t-r[0])/(r[1]-r[0])+e[0]}async function ge(t=0){await new Promise((r=>{setTimeout((()=>r()),t)}))}function ve({indexes:t,positionIndexes:r,originItemSize:e,positionIndexToItem:n},i){const o={itemIndex:0,start:0,end:0},s=t.length?le(r,i):0;if(!s)return o.itemIndex=Math.floor(i/e),o.start=o.itemIndex*e,o.end=o.start+e,o;const a=n[s-1];if(a.end>i)return a;const u=Math.floor((i-a.end)/e);return o.itemIndex=a.itemIndex+1+u,o.start=a.end+u*e,o.end=o.start+e,o}function pe(t,r){let e={itemIndex:r,start:0,end:0};if(t.indexToItem[r])return t.indexToItem[r];const n=t.indexes.length?le(t.indexes,r):0;if(!n)return e.start=e.itemIndex*t.originItemSize,e.end=e.start+t.originItemSize,e;const i=t.indexToItem[t.indexes[n-1]];return e.start=i.end+(r-i.itemIndex-1)*t.originItemSize,e.end=e.start+t.originItemSize,e}function Ce(){return Object.assign(Object.assign({},{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}),{realSize:0,originItemSize:0,frameOffset:0})}class we{constructor(){this.store=Ur(Ce())}getCurrentState(){const t=Ce(),r=Object.keys(t);return zr(r,((t,r)=>{const e=this.store.get(r);return t[r]=e,t}),t)}setRealSize(t){let r=0;for(let e=0;e<t;e++)r+=this.store.get("sizes")[e]||this.store.get("originItemSize");Wr(this.store,{realSize:r})}setStore(t){Wr(this.store,t)}drop(){Wr(this.store,{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]})}setDimensionSize(t){const r=function(t,r){let e=[];const n={},i={};let o=0;const s=Object.assign(Object.assign({},t.sizes),r);let a=[];Mr(r,((r,e)=>{t.sizes[e]?o+=r-t.sizes[e]:(o+=r-(t.realSize?t.originItemSize:0),a.splice(le(a,parseInt(e,10)),0,parseInt(e,10)))}));const u=function(t,r,e=he){const n=[];let i=0,o=0,s=0;for(;s<t.length+r.length;){let a=o>=r.length;i>=t.length||!a&&!e(t[i],r[o])?(n[s]=r[o],o++):(n[s]=t[i],i++),s++}return n}(t.indexes,a);return zr(u,((r,o,a)=>{const u={itemIndex:o,start:0,end:0};return u.start=r?(o-r.itemIndex-1)*t.originItemSize+r.end:o*t.originItemSize,u.end=u.start+s[o],e.push(u.start),i[o]=n[a]=u,u}),void 0),{indexes:u,positionIndexes:[...e],positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:t.realSize+o,sizes:s}}(this.getCurrentState(),t);return Wr(this.store,r),r}}class me{constructor(t){this.viewports=t,this.stores=zr([...Jr,...Yr],((t,r)=>(t[r]=new we,t)),{})}setDimensionSize(t,r){this.stores[t].setDimensionSize(r),this.viewports.stores[t].setViewPortDimension(r)}setRealSize(t,r){this.viewports.stores[r].setViewport({realCount:t}),this.stores[r].setRealSize(t)}setData(t,r,e=!1){this.setRealSize(t.length,r),e&&this.setNoVirtual(r),this.setViewPortCoordinate({coordinate:this.viewports.stores[r].store.get("lastCoordinate"),type:r})}setNoVirtual(t){const r=this.stores[t].getCurrentState();this.viewports.stores[t].setViewport({virtualSize:r.realSize})}drop(){for(let t of Yr)this.stores[t].drop()}setColumns(t,r,e=!1){this.stores[t].setDimensionSize(r),e&&this.setNoVirtual(t),this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})}setViewPortCoordinate({coordinate:t,type:r}){const e=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,e)}getViewPortPos(t){return pe(this.stores[t.dimension].getCurrentState(),t.coordinate).start}setSettings(t,r){let e=[];switch(r){case"rgCol":e=Yr;break;case"rgRow":e=Jr}for(let r of e)this.stores[r].setStore(t)}}function Le(t,r,e){t.splice(e.end+1,0,...r),e.start>=e.end&&(e.start!==e.end||0!==e.start)&&(e.start+=r.length),e.end+=r.length}function be(t,r,e,n,i){const o=Ee(n);return xe({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:e-(o.end-t.start),maxCount:r})}function xe(t,r=0){const e=[];let n=t.startIndex,i=r;for(;i<=t.maxSize&&n<t.maxCount;){const r=ye(n,t.sizes,t.origSize);e.push({start:t.start+i,end:t.start+i+r,itemIndex:n,size:r}),i+=r,n++}return e}function ye(t,r,e=0){return r&&r[t]?r[t]:e}function ke(t){return t.items[t.start]}function Ee(t){return t.items[t.end]}class Se{constructor(){this.store=Ur({items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}),this.store.onChange("realCount",(()=>this.clear()))}setViewPortCoordinate(t,r){let e=this.store.get("virtualSize");if(!e)return;const n=r.frameOffset;e+=2*n*r.originItemSize;let i=e;r.realSize>e&&(i=r.realSize-e);let o={lastCoordinate:t},s=t;s-=n*r.originItemSize,s=s<0?0:s<i?s:i;const a=ke(this.getItems()),u=Ee(this.getItems());if(function(t,r){return r&&t>=r.start&&t<=r.end}(s,a)){if(a&&this.store.get("virtualSize")+s>(null==u?void 0:u.end)){const t=be(a,this.store.get("realCount"),e+s-a.start,this.getItems(),r);if(t.length){const r=[...this.store.get("items")],e={start:this.store.get("start"),end:this.store.get("end")};Le(r,t,e),o=Object.assign(Object.assign(Object.assign({},o),{items:[...r]}),e),Wr(this.store,Object.assign({},o))}}}else o=Object.assign(Object.assign({},o),function(t,r,e,n,i){const o=ve(i,t),s=ke(r);let a;if(s){let t=o.itemIndex-(s.itemIndex||0);if(t){const s=function(t,r){const e=[...r.items],n=e.length;let i={start:r.start,end:r.end};if(t>n)return null;if(r.positiveDirection){let o=Ee(r),s=i.start;const a=s+t;for(;s<a;s++){const t=o.itemIndex+1,a=ye(t,r.sizes,r.originItemSize);if(o.end+a>r.realSize)break;let u=s%n;if(!e[u])throw new Error("incorrect index");e[u]=o={start:o.end,end:o.end+a,itemIndex:t,size:a},i.start++,i.end=u}}else{let o=ke(r);const s=i.end;for(let a=0;a<t;a++){const t=o.itemIndex-1,u=ye(t,r.sizes,r.originItemSize);let c=s-a;if(c=(c<0?n+c:c)%n,!e[c])throw new Error("incorrect index");e[c]=o={start:o.start-u,end:o.start,itemIndex:t,size:u},i.start=c,i.end--}}return Object.assign({items:e},{start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n})}(Math.abs(t),Object.assign(Object.assign({positiveDirection:t>-1},i),r));if(s&&(a=s),a){const t=be(o,e,n,a,i);t.length&&Le(a.items,t,a)}}}if(!a){const t=xe({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:e,sizes:i.sizes});a={items:t,start:0,end:t.length-1}}return a}(s,this.getItems(),this.store.get("realCount"),e,r)),Wr(this.store,Object.assign({},o))}setViewPortDimension(t){const r=this.store.get("items"),e=r.length;if(!e)return;let n=0,i=0,o=this.store.get("start");for(;i<e;){const s=r[o];n&&(s.start+=n,s.end+=n);const a=t[s.itemIndex];a&&(n+=a-s.size,s.size=a,s.end=s.start+a),o++,i++,o===e&&(o=0)}Wr(this.store,{items:[...r]})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){Wr(this.store,t)}clear(){this.store.set("items",[])}}class Re{constructor(){this.stores=zr([...Jr,...Yr],((t,r)=>(t[r]=new Se,t)),{})}setViewport(t,r){this.stores[t].setViewport(r)}}!function(t){t.headerClickAutosize="headerClickAutoSize",t.autoSizeOnTextOverlap="autoSizeOnTextOverlap",t.autoSizeAll="autoSizeAll"}(se||(se={}));class je extends re{constructor(t,r,e){super(t),this.providers=r,this.config=e,this.autoSizeColumns=null,this.dataResolve=null,this.dataReject=null,this.letterBlockSize=(null==e?void 0:e.letterBlockSize)||7,(null==e?void 0:e.preciseSize)&&(this.precsizeCalculationArea=this.initiatePresizeElement(),t.appendChild(this.precsizeCalculationArea));const n=({detail:{source:t}})=>{this.setSource(t)},i=({detail:t})=>{this.afteredit(t)},o=({detail:t})=>{this.afterEditAll(t)},s=({detail:t})=>{const r=ie.getColumnType(t),e=this.getColumnSize(t.index,r);e&&this.providers.dimensionProvider.setDimensionSize(r,{[t.index]:e})};switch(this.addEventListener("beforecolumnsset",(({detail:{columns:t}})=>{this.columnSet(t)})),null==e?void 0:e.mode){case se.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",i);break;case se.autoSizeAll:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",o);break;default:this.addEventListener("headerdblClick",s)}}async setSource(t){let r=this.autoSizeColumns;if(this.dataReject&&(this.dataReject(),this.clearPromise()),!r){const t=new Promise(((t,r)=>{this.dataResolve=t,this.dataReject=r}));try{r=await t}catch(t){return}}Mr(r,((e,n)=>{const i={};Mr(r[n],(r=>{r.size=i[r.index]=t.reduce(((t,e)=>Math.max(t,this.getLength(e[r.prop]))),this.getLength(r.name||""))})),this.providers.dimensionProvider.setDimensionSize(n,i)}))}getLength(t){var r;if(!t)return 0;try{const e=t.toString();return(null===(r=this.config)||void 0===r?void 0:r.preciseSize)?(this.precsizeCalculationArea.innerText=e,this.precsizeCalculationArea.scrollWidth+30):e.length*this.letterBlockSize+30}catch(t){return 0}}afteredit(t){let r;r=this.isRangeEdit(t)?t.data:{0:{[t.prop]:t.val}},Mr(this.autoSizeColumns,((t,e)=>{const n={};Mr(t,(t=>{const e=zr(r,((r,e)=>void 0===e[t.prop]?r:Math.max(r||0,this.getLength(e[t.prop]))),void 0);e&&t.size<e&&(t.size=n[t.index]=e)})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}afterEditAll(t){const r={};this.isRangeEdit(t)?Mr(t.data,(t=>Mr(t,((t,e)=>r[e]=!0)))):r[t.prop]=!0,Mr(this.autoSizeColumns,((t,e)=>{const n={};Mr(t,(t=>{if(r[t.prop]){const r=this.getColumnSize(t.index,e);r&&(n[t.index]=r)}})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}getColumnSize(t,r){const e=this.autoSizeColumns[r][t];return e?zr(this.providers.dataProvider.stores,((t,r)=>{const n=zr(r.store.get("items"),((t,n,i)=>{const o=qr(r.store,i);return Math.max(t||0,this.getLength(o[e.prop]))}),0);return Math.max(t,n)}),e.size||0):0}columnSet(t){var r;for(let e of Yr){const n=e,i=t[n];for(let t in i)(i[t].autoSize||(null===(r=this.config)||void 0===r?void 0:r.allColumns))&&(this.autoSizeColumns||(this.autoSizeColumns={}),this.autoSizeColumns[n]||(this.autoSizeColumns[n]={}),this.autoSizeColumns[n][t]=Object.assign(Object.assign({},i[t]),{index:parseInt(t,10)}))}this.dataResolve&&(this.dataResolve(this.autoSizeColumns),this.clearPromise())}clearPromise(){this.dataResolve=null,this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){const t={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"},r=document.createElement("div");for(let e in t)r.style[e]=t[e];return r.classList.add("revo-test-container"),r}destroy(){var t;super.destroy(),null===(t=this.precsizeCalculationArea)||void 0===t||t.remove()}}const ze=(t,r)=>{if(void 0===t||null===t&&!r)return!0;"string"!=typeof t&&(t=JSON.stringify(t));const e=r.toString().toLocaleLowerCase();return 0===e.length||t.toLocaleLowerCase()===e},Oe=(t,r)=>!ze(t,r);Oe.extra="input",ze.extra="input";const Me=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t>e)};Me.extra="input";const Fe=function(t,r){return ze(t,r)||Me(t,r)};Fe.extra="input";const _e=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t<e)};_e.extra="input";const Ae=function(t,r){return ze(t,r)||_e(t,r)};Ae.extra="input";const De=t=>!(""===t||null==t),Ie=(t,r)=>!(!t||r&&("string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof r&&(r=JSON.stringify(r)),0!==t.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())));Ie.extra="input";const Te=(t,r)=>!!t&&(!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase().indexOf(r.toString().toLowerCase())>-1)),Pe=(t,r)=>!Te(t,r);Pe.extra="input",Te.extra="input";const $e={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:"<="},Ue={none:()=>!0,empty:t=>!De(t),notEmpty:De,eq:ze,notEq:Oe,begins:Ie,contains:Te,notContains:Pe,eqN:ze,neqN:Oe,gt:Me,gte:Fe,lt:_e,lte:Ae},He={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};class Ze extends re{constructor(t,r,n){var i;super(t),this.revogrid=t,this.filterCollection={},this.multiFilterItems={},this.possibleFilters=Object.assign({},He),this.possibleFilterNames=Object.assign({},$e),this.possibleFilterEntities=Object.assign({},Ue),n&&this.initConfig(n),this.addEventListener("headerclick",(t=>this.headerclick(t))),this.addEventListener("aftersourceset",(async()=>{const t=Object.keys(this.filterCollection);t.length>0&&t.forEach(((t,r)=>{this.multiFilterItems[t]||(this.multiFilterItems[t]=[{id:r,type:this.filterCollection[t].type,value:this.filterCollection[t].value,relation:"and"}])})),await this.runFiltering()})),this.revogrid.registerVNode([e("revogr-filter-panel",{uuid:`filter-${r}`,filterItems:this.multiFilterItems,filterNames:this.possibleFilterNames,filterEntities:this.possibleFilterEntities,filterCaptions:null===(i=null==n?void 0:n.localization)||void 0===i?void 0:i.captions,onFilterChange:t=>this.onFilterChange(t.detail),disableDynamicFiltering:null==n?void 0:n.disableDynamicFiltering,ref:t=>this.pop=t})])}initConfig(t){if(t.collection&&(this.filterCollection=Object.assign({},t.collection)),t.multiFilterItems&&(this.multiFilterItems=Object.assign({},t.multiFilterItems)),t.customFilters)for(let r in t.customFilters){const e=t.customFilters[r];this.possibleFilters[e.columnFilterType]||(this.possibleFilters[e.columnFilterType]=[]),this.possibleFilters[e.columnFilterType].push(r),this.possibleFilterEntities[r]=e.func,this.possibleFilterNames[r]=e.name}if(t.include){const r={};for(let e in this.possibleFilters){const n=this.possibleFilters[e].filter((r=>t.include.indexOf(r)>-1));n.length&&(r[e]=n)}Object.keys(r).length>0&&(this.possibleFilters=r)}t.localization&&t.localization.filterNames&&Object.entries(t.localization.filterNames).forEach((([t,r])=>{null!=this.possibleFilterNames[t]&&(this.possibleFilterNames[t]=r)}))}async headerclick(t){var r;const e=null===(r=t.detail.originalEvent)||void 0===r?void 0:r.target;if(!p(e))return;t.preventDefault();const n=await this.pop.getChanges();if(n&&(null==n?void 0:n.prop)===t.detail.prop)return void this.pop.show();const i=this.revogrid.getBoundingClientRect(),o=e.getBoundingClientRect(),s=t.detail.prop;this.pop.filterTypes=this.getColumnFilter(t.detail.filter),this.pop.show(Object.assign(Object.assign({},this.filterCollection[s]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:s}))}getColumnFilter(t){let r="string";if(!t)return{[r]:this.possibleFilters[r]};if(this.isValidType(t))r=t;else if("object"==typeof t&&t.length)return t.reduce(((t,r)=>(this.isValidType(r)&&(t[r]=this.possibleFilters[r]),t)),{});return{[r]:this.possibleFilters[r]}}isValidType(t){return!("string"!=typeof t||!this.possibleFilters[t])}async onFilterChange(t){this.multiFilterItems=t,this.runFiltering()}async doFiltering(t,r,e,n){const i=[];e.forEach((t=>{const r=Object.assign({},t),e=n[r.prop];r[C]&&!e&&(delete r[C],i.push(r)),!r[C]&&e&&(i.push(r),r[C]=!0)}));const o=this.getRowFilter(r,n),{defaultPrevented:s,detail:a}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:o,source:r,filterItems:n});s||(await this.revogrid.addTrimmed(a.itemsToFilter,"filter")).defaultPrevented||(await this.revogrid.updateColumns(i),this.emit("afterFilterApply"))}async clearFiltering(){this.multiFilterItems={},await this.runFiltering()}async runFiltering(){const t={},r=Object.keys(this.multiFilterItems);for(const e of r)if(this.multiFilterItems[e].length>0){const r=this.multiFilterItems[e][0];t[e]={filter:Ue[r.type],type:r.type,value:r.value}}this.filterCollection=t;const{source:e,columns:n}=await this.getData(),{defaultPrevented:i,detail:o}=this.emit("beforefilterapply",{collection:this.filterCollection,source:e,columns:n,filterItems:this.multiFilterItems});i||this.doFiltering(o.collection,o.source,o.columns,o.filterItems)}async getData(){return{source:await this.revogrid.getSource(),columns:await this.revogrid.getColumns()}}getRowFilter(t,r){const e=Object.keys(r),n={};let i=0,o=[];return t.forEach(((t,s)=>{for(const a of e){const e=r[a];i=0,o=[];for(const[r,n]of e.entries()){const s=this.possibleFilterEntities[n.type];if("or"===n.relation){if(o=[],s(t[a],n.value))continue;i++}else{o.push(!s(t[a],n.value));const u=e[r+1];if(!u||"and"!==u.relation){if(-1===o.indexOf(!0)){o=[];continue}i+=o.length,o=[]}}}i===e.length&&(n[s]=!0)}})),n}}var Be=function(t){return"string"==typeof t||!_(t)&&a(t)&&"[object String]"==u(t)},Ne=Er("length"),We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ve="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ge="\\ud83c[\\udffb-\\udfff]",qe="[^\\ud800-\\udfff]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Je="(?:"+Ve+"|"+Ge+")?",Ye="[\\ufe0e\\ufe0f]?"+Je+"(?:\\u200d(?:"+[qe,Ke,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+Je+")*",Qe="(?:"+[qe+Ve+"?",Ve,Ke,Xe,"[\\ud800-\\udfff]"].join("|")+")",tn=RegExp(Ge+"(?="+Ge+")|"+Qe+Ye,"g"),rn=function(t){return function(t){return We.test(t)}(t)?function(t){for(var r=tn.lastIndex=0;tn.test(t);)++r;return r}(t):Ne(t)},en=function(t){if(null==t)return 0;if(J(t))return Be(t)?rn(t):t.length;var r=Kt(t);return"[object Map]"==r||"[object Set]"==r?t.size:K(t).length};class nn extends re{constructor(t){super(t),this.revogrid=t,this.sorting=null,this.sortingFunc=null,this.addEventListener("beforesourceset",(({detail:t})=>{if(this.hasSorting&&this.emit("beforesourcesortingapply").defaultPrevented)return;const r=this.setData(t.source,t.type);r&&(t.source=r)})),this.addEventListener("aftercolumnsset",(async({detail:{order:t}})=>{const r=await this.revogrid.getColumns(),e={};for(let n in t){const i=ie.getColumnByProp(r,n),o=(null==i?void 0:i.cellCompare)||this.defaultCellCompare;e[n]="desc"==t[n]?this.descCellCompare(o):o}this.sort(t,e)})),this.addEventListener("initialHeaderClick",(async t=>{var r,e;t.defaultPrevented||t.detail.column.sortable&&this.headerclick(t.detail.column,t.detail.index,null===(e=null===(r=t.detail)||void 0===r?void 0:r.originalEvent)||void 0===e?void 0:e.shiftKey)}))}get hasSorting(){return!!this.sorting}async headerclick(t,r,e){let n=this.getNextOrder(t.order);const i=this.emit("beforesorting",{column:t,order:n,additive:e});if(i.defaultPrevented)return;n=i.detail.order;const o=await this.revogrid.updateColumnSorting(i.detail.column,r,n,e),s=this.emit("beforesortingapply",{column:o,order:n,additive:e});if(s.defaultPrevented)return;n=s.detail.order;const a=(null==t?void 0:t.cellCompare)||this.defaultCellCompare,u="asc"==n?a:"desc"==n?this.descCellCompare(a):void 0;if(e&&this.sorting){const r={},e={};Object.assign(r,this.sorting),Object.assign(e,this.sortingFunc),t.prop in r&&en(r)>1&&void 0===n?(delete r[t.prop],delete e[t.prop]):(r[t.prop]=n,e[t.prop]=u),this.sort(r,e)}else this.sort({[t.prop]:n},{[t.prop]:u})}setData(t,r){if("rgRow"===r&&this.sortingFunc)return this.sortItems(t,this.sortingFunc)}async sort(t,r){if(!en(t))return this.sorting=null,void(this.sortingFunc=null);this.sorting=t,this.sortingFunc=r;const e=await this.revogrid.getSourceStore(),n=e.get("source"),i=this.sortIndexByItems([...e.get("proxyItems")],n,this.sortingFunc);Wr(e,{proxyItems:i,source:[...n]}),this.emit("afterSortingApply")}defaultCellCompare(t,r,e){var n,i;const o=null===(n=r[t])||void 0===n?void 0:n.toString().toLowerCase(),s=null===(i=e[t])||void 0===i?void 0:i.toString().toLowerCase();return o==s?0:o>s?1:-1}descCellCompare(t){return(r,e,n)=>-1*t(r,e,n)}sortIndexByItems(t,r,e){for(let r in e)if(void 0===e[r])return[...Array(t.length).keys()];return t.sort(((t,n)=>{let i=0;for(let o in e)if(i=(0,e[o])(o,r[t],r[n]),i)break;return i}))}sortItems(t,r){return t.sort(((t,e)=>{let n=0;for(let i in r){const o=r[i];if(o&&(n=o(i,t,e),n))break}return n}))}getNextOrder(t){switch(t){case void 0:return"asc";case"asc":return"desc";case"desc":return}}}var on=function(t,r,e,n){var i=t.length;for((e=Ar(e))<0&&(e=-e>i?0:i+e),(n=void 0===n||n>i?i:Ar(n))<0&&(n+=i),n=e>n?0:function(t){return t?(r=Ar(t),e=0,n=4294967295,r==r&&(void 0!==n&&(r=r<=n?r:n),void 0!==e&&(r=r>=e?r:e)),r):0;var r,e,n}(n);e<n;)t[e++]=r;return t};const sn="grid-uuid";function an(t,r,{prevExpanded:e,expandedAll:n}){const i=new Map;t.forEach(((t,e)=>{const n=r.map((r=>t[r]||null)),o=n.pop();let s=i;n.forEach((t=>{s.has(t)||s.set(t,new Map),s=s.get(t)})),s.has(o)||s.set(o,[]),t["__rvgr-original-index"]=e,s.get(o).push(t)}));let o=-1;const s=r.length,a={},u={},c={},l=[];return function t(r,i,s){const h=i.length;r.forEach(((r,f)=>{const d=[...i,f],g=d.join(","),v=s&&(!!n||!!(null==e?void 0:e[g]));l.push({"__rvgr-name":f,"__rvgr-depth":h,"__rvgr-id":JSON.stringify(d),"__rvgr-value":g,"__rvgr-expanded":v}),o+=1,!v&&h&&(a[o]=!0),Array.isArray(r)?(r.forEach((t=>{o+=1,v||(a[o]=!0),u[t["__rvgr-original-index"]]=o,d.map(((t,r)=>d.slice(0,r+1).join(","))).forEach((t=>{c[t]||(c[t]=[]),c[t].push(o)}))})),l.push(...r)):t(r,d,v)}))}(i,[],!0),{sourceWithGroups:l,depth:s,trimmed:a,oldNewIndexMap:u,childrenByGroup:c}}function un(t){return t&&void 0!==t["__rvgr-name"]}function cn(t){return t&&void 0!==t["__rvgr-column"]}function ln(t){const r=JSON.parse(t);return Array.isArray(r)?r:null}function hn(t,r,e){const n=ln(e["__rvgr-id"]);if(!n)return!1;const i=function(t,r){const e=t.length;let n=0;for(;n<e;n++)if(t[n]!==r[n])return n;return n}(t,n);return r["__rvgr-depth"]<i}const fn={mime:"text/csv",fileKind:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""},dn=String.fromCharCode(13),gn=String.fromCharCode(10),vn=String.fromCharCode(34),pn=String.fromCharCode(65279),Cn=new RegExp('"',"g");class wn{constructor(t={}){this.options=Object.assign(Object.assign({},fn),t)}doExport({data:t,headers:r,props:e}){let n=this.options.bom?pn:"";return(null==r?void 0:r.length)>0&&r.forEach((t=>{t.length&&(n+=this.prepareHeader(t,this.options.columnDelimiter),n+=this.options.rowDelimiter)})),t.forEach(((t,r)=>{r>0&&(n+=this.options.rowDelimiter),un(t)?n+=this.parseCell(function(t){return t&&t["__rvgr-name"]}(t),this.options.columnDelimiter):n+=e.map((r=>this.parseCell(t[r],this.options.columnDelimiter))).join(this.options.columnDelimiter)})),n}prepareHeader(t,r){let e="";return e+=t.map((t=>this.parseCell(t,r,!0))).join(r),e}parseCell(t,r,e=!1){let n=t;return"string"!=typeof t&&(n=JSON.stringify(t)),void 0===n?"":""!==n&&(e||[dn,vn,gn,r].some((t=>n.indexOf(t)>=0)))?`"${n.replace(Cn,'""')}"`:n}}var mn;!function(t){t.csv="csv"}(mn||(mn={}));class Ln extends re{async exportString(t={},r=mn.csv){const e=await this.beforeexport();return e?this.formatter(r,t).doExport(e):null}async exportBlob(t={},r=mn.csv){return await this.getBlob(this.formatter(r,t))}async exportFile(t={},r=mn.csv){const e=this.formatter(r,t),n=await this.getBlob(e),i=window.URL||window.webkitURL,o=document.createElement("a"),{filename:s,fileKind:a}=e.options,u=`${s}.${a}`,c=i.createObjectURL(n);o.style.display="none",o.setAttribute("href",c),o.setAttribute("download",u),this.revogrid.appendChild(o),o.dispatchEvent(new MouseEvent("click")),this.revogrid.removeChild(o),await ge(120),i.revokeObjectURL(c)}async getBlob(t){const r=`${t.options.mime};charset=${t.options.encoding}`;if("undefined"!=typeof Blob){const e=await this.beforeexport();return e?new Blob([t.doExport(e)],{type:r}):null}return null}async beforeexport(){let t=await this.getData();const r=this.emit("beforeexport",{data:t});return r.defaultPrevented?null:r.detail.data}async getData(){const t=await this.getSource(),r=[],e=[];Yr.forEach(((t,n)=>{e.push(this.getColPerSource(t).then((t=>r[n]=t)))})),await Promise.all(e);const n={headers:[],props:[]};for(let t of r)t.headers.forEach(((t,r)=>{n.headers[r]||(n.headers[r]=[]),n.headers[r].push(...t)})),n.props.push(...t.props);return Object.assign({data:t},n)}async getColPerSource(t){const r=await this.revogrid.getColumnStore(t),e=r.get("source"),n=r.get("items"),i=r.get("groupingDepth"),o=r.get("groups"),s=[],a=[],u=n.reduce(((t,r,n)=>{const i=e[r].prop;return s.push(e[r].name||""),a.push(i),t[i]=n,t}),{}),c=this.getGroupHeaders(i,o,n,u);return c.push(s),{headers:c,props:a}}getGroupHeaders(t,r,e,n){const i=[],o=(s=new Array(e.length),a="",(l=null==s?0:s.length)?(u&&"number"!=typeof u&&Br(s,a,u)&&(u=0,c=l),on(s,a,u,c)):[]);var s,a,u,c,l;for(let e=0;e<t;e++){const t=[...o];(i.push(t),r[e])&&r[e].forEach((r=>{const e=this.findGroupStartIndex(r.ids,n);"number"==typeof e&&(t[e]=r.name)}))}return i}findGroupStartIndex(t,r){let e;return t.forEach((t=>{const n=r[t];"number"==typeof n&&("number"!=typeof e||e>n)&&(e=n)})),e}async getSource(){const t=[],r=[];return Jr.forEach((e=>{const n=[];t.push(n);const i=this.revogrid.getVisibleSource(e).then((t=>n.push(...t)));r.push(i)})),await Promise.all(r),t.reduce(((t,r)=>(t.push(...r),t)),[])}formatter(t,r={}){switch(t){case mn.csv:return new wn(r);default:throw new Error("Unknown format")}}}class bn extends re{constructor(t,r){super(t),this.revogrid=t,this.providers=r}get hasProps(){var t,r,e;return(null===(t=this.options)||void 0===t?void 0:t.props)&&(null===(e=null===(r=this.options)||void 0===r?void 0:r.props)||void 0===e?void 0:e.length)}get store(){return this.providers.dataProvider.stores.rgRow.store}get rowItems(){return this.store.get("items")}get trimmed(){return this.store.get("trimmed")}onFocus(t){un(t.detail.model)&&t.preventDefault()}onExpand({virtualIndex:t}){const{source:r}=this.getSource();let e=this.trimmed.grouping,n=function(t,r){return t.get("items")[r]}(this.store,t);if(r[n]["__rvgr-expanded"]){const{trimmed:t}=function(t,r){const e=r[t],n=e["__rvgr-value"],i={};let o=t+1;const s=r.length;for(;o<s;){const t=r[o];if(un(t)){const r=t["__rvgr-value"];if(!r.length||!r.startsWith(n+","))break;t["__rvgr-expanded"]=!1}i[o++]=!0}return e["__rvgr-expanded"]=!1,{trimmed:i}}(n,r);e=Object.assign(Object.assign({},e),t),this.revogrid.clearFocus()}else{const{trimmed:n,items:i}=function(t,r,e){const n=e[t],i=r[n],o=ln(i["__rvgr-id"]),s={};if(!o)return{trimmed:s};const a=[];i["__rvgr-expanded"]=!0;let u=n+1;const c=r.length;let l=0;for(;u<c;){const t=r[u],e=un(t);if(e){if(!hn(o,i,t))break;l||(l=t["__rvgr-depth"])}(!l||e&&l===t["__rvgr-depth"])&&(s[u]=!1,a.push(u)),u++}const h={trimmed:s};if(a.length){const r=[...e];r.splice(t+1,0,...a),h.items=r}return h}(t,r,this.rowItems);e=Object.assign(Object.assign({},e),n),i&&Xr(this.store,i)}this.store.set("source",r),this.revogrid.addTrimmed(e,"grouping")}getSource(t=!1){const r=this.store.get("source"),e=this.store.get("proxyItems");let n=0;return e.reduce(((e,i)=>{const o=r[i];return t?(un(o)?o["__rvgr-expanded"]&&(e.prevExpanded[o["__rvgr-value"]]=!0):(e.source.push(o),e.oldNewIndexes[i]=n,n++),e):(e.source.push(o),e)}),{source:[],prevExpanded:{},oldNewIndexes:{}})}setColumnGrouping(t){return!!(null==t?void 0:t.length)&&(t[0]["__rvgr-column"]=!0,!0)}setColumns({columns:t}){for(let r of Yr)if(this.setColumnGrouping(t[r]))break}onDrag(t){const{from:r,to:e}=t.detail,n=e-r>=0,{source:i}=this.getSource(),o=this.rowItems;let s=n?r:e;const a=n?e:r;for(;s<a;s++)if(un(i[o[s]]))return void t.preventDefault()}beforeTrimmedApply(t,r){if("filter"===r){const r=this.store.get("source");for(let e in t)t[e]&&un(r[e])&&(t[e]=!1)}}subscribe(){this.addEventListener("beforesourceset",(({detail:t})=>this.onDataSet(t))),this.addEventListener("beforecolumnsset",(({detail:t})=>this.setColumns(t))),this.addEventListener("beforetrimmed",(({detail:{trimmed:t,trimmedType:r}})=>this.beforeTrimmedApply(t,r))),this.addEventListener("afterSortingApply",(()=>this.doSourceUpdate(Object.assign({},this.options)))),this.addEventListener("beforecellfocus",(t=>this.onFocus(t))),this.addEventListener("roworderchanged",(t=>this.onDrag(t))),this.addEventListener("groupExpandClick",(({detail:t})=>this.onExpand(t)))}doSourceUpdate(t){var r;if(!this.hasProps)return;const{source:e,prevExpanded:n,oldNewIndexes:i}=this.getSource(!0),{sourceWithGroups:o,depth:s,trimmed:a,oldNewIndexMap:u,childrenByGroup:c}=an(e,(null===(r=this.options)||void 0===r?void 0:r.props)||[],Object.assign({prevExpanded:n},t));this.providers.dataProvider.setData(o,"rgRow",{depth:s,customRenderer:null==t?void 0:t.groupLabelTemplate},!0),this.updateTrimmed(a,c,i,u)}onDataSet(t){var r;if(!this.hasProps||!(null==t?void 0:t.source)||!t.source.length)return;const e=t.source.filter((t=>!un(t))),n=this.revogrid.grouping||{},{sourceWithGroups:i,depth:o,trimmed:s,oldNewIndexMap:a,childrenByGroup:u}=an(e,(null===(r=this.options)||void 0===r?void 0:r.props)||[],Object.assign({},n||{}));t.source=i,this.providers.dataProvider.setGrouping({depth:o}),this.updateTrimmed(s,u,a)}setGrouping(t){if(this.clearSubscriptions(),this.options=t,!t.props||!Object.keys(t.props).length)return void this.clearGrouping();const{source:r}=this.getSource();r.length&&this.doSourceUpdate(Object.assign({},t));for(let t of Yr)if(this.setColumnGrouping(this.providers.columnProvider.getColumns(t))){this.providers.columnProvider.refreshByType(t);break}this.subscribe()}clearGrouping(){Yr.forEach((t=>{const r=this.providers.columnProvider.getColumns(t);let e=!1;r.forEach((t=>{cn(t)&&(delete t["__rvgr-column"],e=!0)})),e&&this.providers.columnProvider.refreshByType(t)}));const{source:t,oldNewIndexes:r}=this.getSource(!0);this.providers.dataProvider.setData(t,"rgRow",void 0,!0),this.updateTrimmed(void 0,void 0,r)}updateTrimmed(t={},r={},e,n){const i=function(t,r,e){const n={};for(let i in t){if("grouping"===i)continue;const o=t[i],s={};for(let t in o){let a=r[t];e&&(a=e[a]),o[t]&&(s[a]=!0,a!==parseInt(t,10)&&(n[i]=s))}}return n}(this.trimmed,e,n);for(let t in i)this.revogrid.addTrimmed(i[t],t);this.revogrid.addTrimmed(Object.assign({},t),"grouping")}}class xn{constructor(){this.parentY=0}start(t,{pos:r,text:e,event:n}){var i;const{top:o}=t.getBoundingClientRect();this.parentY=o,this.text&&(this.text.innerText=e),this.move(r),this.moveTip({x:n.x,y:n.y}),null===(i=this.el)||void 0===i||i.classList.remove("hidden")}end(){var t;null===(t=this.el)||void 0===t||t.classList.add("hidden")}move(t){this.moveElement(t.end-this.parentY)}moveTip({x:t,y:r}){this.draggable&&(this.draggable.style.left=`${t}px`,this.draggable.style.top=`${r}px`)}moveElement(t){this.rgRow&&(this.rgRow.style.transform=`translateY(${t}px)`)}}const yn=({ref:t})=>{const r=new xn;return t(r),e("div",{class:"draggable-wrapper hidden",ref:t=>r.el=t},e("div",{class:"draggable",ref:t=>r.draggable=t},e("span",{class:"revo-alt-icon"}),e("span",{ref:t=>r.text=t})),e("div",{class:"drag-position",ref:t=>r.rgRow=t}))},kn=({viewports:t,dimensions:r,orderRef:n,nakedClick:i,registerElement:o,onScroll:s},a)=>{let u;return[e("div",{class:"main-viewport",ref:t=>u=t,onClick:t=>((t,r)=>{r===t.target&&i(t)})(t,u)},e("div",{class:"viewports"},a,e("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:t.rgRow.store,dimensionStore:r.rgRow.store,ref:t=>o(t,"rowScroll"),onScrollVirtual:t=>s(t.detail)}),e(yn,{ref:n}))),e("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:t.rgCol.store,dimensionStore:r.rgCol.store,ref:t=>o(t,"colScroll"),onScrollVirtual:t=>s(t.detail)})]};function En(t){return t===zn}function Sn(t,r){const e=Object.assign({},t);let n=["x","y"];for(let r of n)t[r]<0&&(e[r]=0);for(let i of n)t[i]>=r[i]&&(e[i]=r[i]-1);return e}function Rn(t,r){return t&&r?{x:Math.min(t.x,r.x),y:Math.min(t.y,r.y),x1:Math.max(t.x,r.x),y1:Math.max(t.y,r.y)}:null}class jn{constructor(){this.unsubscribe=[],this.store=Ur({range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}),this.store.on("set",((t,r)=>{"tempRange"!==t||r||this.store.set("tempRangeType",null)}))}onChange(t,r){this.unsubscribe.push(this.store.onChange(t,r))}clearFocus(){Wr(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,r){Wr(this.store,{focus:t,range:Rn(t,r),edit:null,tempRange:null})}setTempArea(t){Wr(this.store,{tempRange:null==t?void 0:t.area,tempRangeType:null==t?void 0:t.type,edit:null})}clearTemp(){Wr(this.store,{tempRange:null})}setRangeArea(t){Wr(this.store,{range:t,edit:null,tempRange:null})}setRange(t,r){this.setRangeArea(Rn(t,r))}setLastCell(t){Wr(this.store,{lastCell:t})}setEdit(t){const r=this.store.get("focus");Wr(this.store,r&&"string"==typeof t?{edit:{x:r.x,y:r.y,val:t}}:{edit:null})}dispose(){this.unsubscribe.forEach((t=>t())),this.store.dispose()}}const zn=-1;class On{constructor(){this.dirty=!1,this.stores={},this.columnStores={},this.rowStores={},this.sections=[]}get focusedStore(){var t;for(let r in this.stores)for(let e in this.stores[r]){const n=null===(t=this.stores[r][e])||void 0===t?void 0:t.store.get("focus");if(n)return{entity:this.stores[r][e],cell:n,position:{x:parseInt(e,10),y:parseInt(r,10)}}}return null}get edit(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("edit")}get focused(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("focus")}get selectedRange(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("range")}registerSection(t){if(!t)return this.sections.length=0,void(this.dirty=!0);-1===this.sections.indexOf(t)&&this.sections.push(t)}beforeUpdate(){if(this.dirty){for(let t in this.stores)for(let r in this.stores[t])this.stores[t][r].dispose();this.dirty=!1}}registerColumn(t){return En(t)?new jn:(this.columnStores[t]||(this.columnStores[t]=new jn),this.columnStores[t])}registerRow(t){return En(t)?new jn:(this.rowStores[t]||(this.rowStores[t]=new jn),this.rowStores[t])}register({x:t,y:r}){var e,n;return En(t)||En(r)?new jn:(this.stores[r]||(this.stores[r]={}),this.stores[r][t]||(this.stores[r][t]=new jn,null===(e=this.stores[r][t])||void 0===e||e.onChange("range",(e=>{this.columnStores[t].setRangeArea(e),this.rowStores[r].setRangeArea(e)})),null===(n=this.stores[r][t])||void 0===n||n.store.on("dispose",(()=>{var e,n;null===(e=this.columnStores[t])||void 0===e||e.dispose(),null===(n=this.rowStores[r])||void 0===n||n.dispose(),delete this.rowStores[r],delete this.columnStores[t],this.stores[r]&&delete this.stores[r][t],Object.keys(this.stores[r]||{}).length||delete this.stores[r]}))),this.stores[r][t])}setEditByCell({x:t,y:r},e){this.focus(this.stores[r][t],{focus:e,end:e}),this.setEdit("")}focus(t,{focus:r,end:e}){let n;for(let r in this.stores)for(let e in this.stores[r]){const i=this.stores[r][e];i!==t?i.clearFocus():n={x:parseInt(e,10),y:parseInt(r,10)}}if(!n)return;const i=t.store.get("lastCell"),o=function(t,r){const e={};let n=["x","y"];for(let r of n)if(t[r]<0)return e[r]=t[r],e;for(let i of n)if(t[i]>=r[i])return e[i]=t[i]-r[i],e;return null}(r,i);let s;if(o)for(let t in o){let r,e=t;switch(e){case"x":r=this.getXStores(n.y);break;case"y":r=this.getYStores(n.x)}if(o[e]>=0)s=r[++n[e]];else{s=r[--n[e]];const t=null==s?void 0:s.store.get("lastCell");t&&(o[e]=t[e]+o[e])}}if(s){let t=Object.assign(Object.assign({},r),o);this.focus(s,{focus:t,end:t})}else r=Sn(r,i),e=Sn(r,i),t.setFocus(r,e)}clearAll(){var t;for(let r in this.stores)for(let e in this.stores[r])null===(t=this.stores[r][e])||void 0===t||t.clearFocus()}setEdit(t){this.focusedStore&&this.focusedStore.entity.setEdit(t)}getXStores(t){return this.stores[t]}getYStores(t){const r={};for(let e in this.stores)r[e]=this.stores[e][t];return r}}function Mn(t,r){return{x:t.viewports[t.colType].store.get("realCount"),y:t.viewports[r].store.get("realCount")}}var Fn=c((function(t,r){(function(){var e,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,u=1/0,c=9007199254740991,l=NaN,h=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],d="[object Arguments]",g="[object Array]",v="[object Boolean]",p="[object Date]",C="[object Error]",m="[object Function]",L="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Object]",k="[object Promise]",E="[object RegExp]",S="[object Set]",R="[object String]",j="[object Symbol]",z="[object WeakMap]",O="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",D="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(N.source),G=RegExp(W.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(tt.source),et=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,Lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",kt="["+yt+"]",Et="["+Lt+"]",St="\\d+",Rt="["+bt+"]",jt="[^\\ud800-\\udfff"+yt+St+"\\u2700-\\u27bf"+bt+xt+"]",zt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+xt+"]",At="(?:"+Rt+"|"+jt+")",Dt="(?:"+_t+"|"+jt+")",It="(?:['’](?:d|ll|m|re|s|t|ve))?",Tt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Pt="(?:"+Et+"|"+zt+")?",$t="[\\ufe0e\\ufe0f]?",Ut=$t+Pt+"(?:\\u200d(?:"+[Ot,Mt,Ft].join("|")+")"+$t+Pt+")*",Ht="(?:"+["[\\u2700-\\u27bf]",Mt,Ft].join("|")+")"+Ut,Zt="(?:"+[Ot+Et+"?",Et,Mt,Ft,"[\\ud800-\\udfff]"].join("|")+")",Bt=RegExp("['’]","g"),Nt=RegExp(Et,"g"),Wt=RegExp(zt+"(?="+zt+")|"+Zt+Ut,"g"),Vt=RegExp([_t+"?"+Rt+"+"+It+"(?="+[kt,_t,"$"].join("|")+")",Dt+"+"+Tt+"(?="+[kt,_t+At,"$"].join("|")+")",_t+"?"+At+"+"+It,_t+"+"+Tt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Ht].join("|"),"g"),Gt=RegExp("[\\u200d\\ud800-\\udfff"+Lt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["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"],Xt=-1,Jt={};Jt[F]=Jt[_]=Jt[A]=Jt[D]=Jt[I]=Jt[T]=Jt[P]=Jt[$]=Jt[U]=!0,Jt[d]=Jt[g]=Jt[O]=Jt[v]=Jt[M]=Jt[p]=Jt[C]=Jt[m]=Jt[b]=Jt[x]=Jt[y]=Jt[E]=Jt[S]=Jt[R]=Jt[z]=!1;var Yt={};Yt[d]=Yt[g]=Yt[O]=Yt[M]=Yt[v]=Yt[p]=Yt[F]=Yt[_]=Yt[A]=Yt[D]=Yt[I]=Yt[b]=Yt[x]=Yt[y]=Yt[E]=Yt[S]=Yt[R]=Yt[j]=Yt[T]=Yt[P]=Yt[$]=Yt[U]=!0,Yt[C]=Yt[m]=Yt[z]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tr=parseFloat,rr=parseInt,er="object"==typeof w&&w&&w.Object===Object&&w,nr="object"==typeof self&&self&&self.Object===Object&&self,ir=er||nr||Function("return this")(),or=r&&!r.nodeType&&r,sr=or&&t&&!t.nodeType&&t,ar=sr&&sr.exports===or,ur=ar&&er.process,cr=function(){try{return sr&&sr.require&&sr.require("util").types||ur&&ur.binding&&ur.binding("util")}catch(t){}}(),lr=cr&&cr.isArrayBuffer,hr=cr&&cr.isDate,fr=cr&&cr.isMap,dr=cr&&cr.isRegExp,gr=cr&&cr.isSet,vr=cr&&cr.isTypedArray;function pr(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Cr(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n}function wr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}function mr(t,r){for(var e=null==t?0:t.length;e--&&!1!==r(t[e],e,t););return t}function Lr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(!r(t[e],e,t))return!1;return!0}function br(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}function xr(t,r){return!(null==t||!t.length)&&Fr(t,r,0)>-1}function yr(t,r,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(r,t[n]))return!0;return!1}function kr(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}function Er(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}function Sr(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e}function Rr(t,r,e,n){var i=null==t?0:t.length;for(n&&i&&(e=t[--i]);i--;)e=r(e,t[i],i,t);return e}function jr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}var zr=Ir("length");function Or(t,r,e){var n;return e(t,(function(t,e,i){if(r(t,e,i))return n=e,!1})),n}function Mr(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1}function Fr(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Mr(t,Ar,e)}function _r(t,r,e,n){for(var i=e-1,o=t.length;++i<o;)if(n(t[i],r))return i;return-1}function Ar(t){return t!=t}function Dr(t,r){var e=null==t?0:t.length;return e?$r(t,r)/e:l}function Ir(t){return function(r){return null==r?e:r[t]}}function Tr(t){return function(r){return null==t?e:t[r]}}function Pr(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e}function $r(t,r){for(var n,i=-1,o=t.length;++i<o;){var s=r(t[i]);s!==e&&(n=n===e?s:n+s)}return n}function Ur(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function Hr(t){return t?t.slice(0,oe(t)+1).replace(et,""):t}function Zr(t){return function(r){return t(r)}}function Br(t,r){return kr(r,(function(r){return t[r]}))}function Nr(t,r){return t.has(r)}function Wr(t,r){for(var e=-1,n=t.length;++e<n&&Fr(r,t[e],0)>-1;);return e}function Vr(t,r){for(var e=t.length;e--&&Fr(r,t[e],0)>-1;);return e}function Gr(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}var qr=Tr({À:"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"}),Kr=Tr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xr(t){return"\\"+Qt[t]}function Jr(t){return Gt.test(t)}function Yr(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function Qr(t,r){return function(e){return t(r(e))}}function te(t,r){for(var e=-1,n=t.length,i=0,s=[];++e<n;){var a=t[e];a!==r&&a!==o||(t[e]=o,s[i++]=e)}return s}function re(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}function ee(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=[t,t]})),e}function ne(t){return Jr(t)?function(t){for(var r=Wt.lastIndex=0;Wt.test(t);)++r;return r}(t):zr(t)}function ie(t){return Jr(t)?function(t){return t.match(Wt)||[]}(t):function(t){return t.split("")}(t)}function oe(t){for(var r=t.length;r--&&nt.test(t.charAt(r)););return r}var se=Tr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ae=function t(r){var w=(r=null==r?ir:ae.defaults(ir.Object(),r,ae.pick(ir,Kt))).Array,nt=r.Date,Lt=r.Error,bt=r.Function,xt=r.Math,yt=r.Object,kt=r.RegExp,Et=r.String,St=r.TypeError,Rt=w.prototype,jt=yt.prototype,zt=r["__core-js_shared__"],Ot=bt.prototype.toString,Mt=jt.hasOwnProperty,Ft=0,_t=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=jt.toString,Dt=Ot.call(yt),It=ir._,Tt=kt("^"+Ot.call(Mt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=ar?r.Buffer:e,$t=r.Symbol,Ut=r.Uint8Array,Ht=Pt?Pt.allocUnsafe:e,Zt=Qr(yt.getPrototypeOf,yt),Wt=yt.create,Gt=jt.propertyIsEnumerable,Qt=Rt.splice,er=$t?$t.isConcatSpreadable:e,nr=$t?$t.iterator:e,or=$t?$t.toStringTag:e,sr=function(){try{var t=ao(yt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ur=r.clearTimeout!==ir.clearTimeout&&r.clearTimeout,cr=nt&&nt.now!==ir.Date.now&&nt.now,zr=r.setTimeout!==ir.setTimeout&&r.setTimeout,Tr=xt.ceil,ue=xt.floor,ce=yt.getOwnPropertySymbols,le=Pt?Pt.isBuffer:e,he=r.isFinite,fe=Rt.join,de=Qr(yt.keys,yt),ge=xt.max,ve=xt.min,pe=nt.now,Ce=r.parseInt,we=xt.random,me=Rt.reverse,Le=ao(r,"DataView"),be=ao(r,"Map"),xe=ao(r,"Promise"),ye=ao(r,"Set"),ke=ao(r,"WeakMap"),Ee=ao(yt,"create"),Se=ke&&new ke,Re={},je=Do(Le),ze=Do(be),Oe=Do(xe),Me=Do(ye),Fe=Do(ke),_e=$t?$t.prototype:e,Ae=_e?_e.valueOf:e,De=_e?_e.toString:e;function Ie(t){if(Ys(t)&&!Hs(t)&&!(t instanceof Ue)){if(t instanceof $e)return t;if(Mt.call(t,"__wrapped__"))return Io(t)}return new $e(t)}var Te=function(){function t(){}return function(r){if(!Js(r))return{};if(Wt)return Wt(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function Pe(){}function $e(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Ue(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function He(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ze(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Be(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ne(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new Be;++r<e;)this.add(t[r])}function We(t){var r=this.__data__=new Ze(t);this.size=r.size}function Ve(t,r){var e=Hs(t),n=!e&&Us(t),i=!e&&!n&&Ws(t),o=!e&&!n&&!i&&sa(t),s=e||n||i||o,a=s?Ur(t.length,Et):[],u=a.length;for(var c in t)!r&&!Mt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,u))||a.push(c);return a}function Ge(t){var r=t.length;return r?t[Nn(0,r-1)]:e}function qe(t,r){return Fo(Ei(t),nn(r,0,t.length))}function Ke(t){return Fo(Ei(t))}function Xe(t,r,n){(n!==e&&!Ts(t[r],n)||n===e&&!(r in t))&&rn(t,r,n)}function Je(t,r,n){var i=t[r];Mt.call(t,r)&&Ts(i,n)&&(n!==e||r in t)||rn(t,r,n)}function Ye(t,r){for(var e=t.length;e--;)if(Ts(t[e][0],r))return e;return-1}function Qe(t,r,e,n){return cn(t,(function(t,i,o){r(n,t,e(t),o)})),n}function tn(t,r){return t&&Si(r,ja(r),t)}function rn(t,r,e){"__proto__"==r&&sr?sr(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function en(t,r){for(var n=-1,i=r.length,o=w(i),s=null==t;++n<i;)o[n]=s?e:ya(t,r[n]);return o}function nn(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function on(t,r,n,i,o,s){var a,u=1&r,c=2&r,l=4&r;if(n&&(a=o?n(t,i,o,s):n(t)),a!==e)return a;if(!Js(t))return t;var h=Hs(t);if(h){if(a=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Mt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!u)return Ei(t,a)}else{var f=lo(t),g=f==m||f==L;if(Ws(t))return mi(t,u);if(f==y||f==d||g&&!o){if(a=c||g?{}:fo(t),!u)return c?function(t,r){return Si(t,co(t),r)}(t,function(t,r){return t&&Si(r,za(r),t)}(a,t)):function(t,r){return Si(t,uo(t),r)}(t,tn(a,t))}else{if(!Yt[f])return o?t:{};a=function(t,r,e){var n=t.constructor;switch(r){case O:return Li(t);case v:case p:return new n(+t);case M:return function(t,r){var e=r?Li(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case F:case _:case A:case D:case I:case T:case P:case $:case U:return bi(t,e);case b:return new n;case x:case R:return new n(t);case E:return function(t){var r=new t.constructor(t.source,ht.exec(t));return r.lastIndex=t.lastIndex,r}(t);case S:return new n;case j:return Ae?yt(Ae.call(t)):{}}}(t,f,u)}}s||(s=new We);var C=s.get(t);if(C)return C;s.set(t,a),na(t)?t.forEach((function(e){a.add(on(e,r,n,e,t,s))})):Qs(t)&&t.forEach((function(e,i){a.set(i,on(e,r,n,i,t,s))}));var w=h?e:(l?c?to:Qi:c?za:ja)(t);return wr(w||t,(function(e,i){w&&(e=t[i=e]),Je(a,i,on(e,r,n,i,t,s))})),a}function sn(t,r,n){var i=n.length;if(null==t)return!i;for(t=yt(t);i--;){var o=n[i],s=t[o];if(s===e&&!(o in t)||!(0,r[o])(s))return!1}return!0}function an(t,r,i){if("function"!=typeof t)throw new St(n);return jo((function(){t.apply(e,i)}),r)}function un(t,r,e,n){var i=-1,o=xr,s=!0,a=t.length,u=[],c=r.length;if(!a)return u;e&&(r=kr(r,Zr(e))),n?(o=yr,s=!1):r.length>=200&&(o=Nr,s=!1,r=new Ne(r));t:for(;++i<a;){var l=t[i],h=null==e?l:e(l);if(l=n||0!==l?l:0,s&&h==h){for(var f=c;f--;)if(r[f]===h)continue t;u.push(l)}else o(r,h,n)||u.push(l)}return u}Ie.templateSettings={escape:q,evaluate:K,interpolate:X,variable:"",imports:{_:Ie}},(Ie.prototype=Pe.prototype).constructor=Ie,($e.prototype=Te(Pe.prototype)).constructor=$e,(Ue.prototype=Te(Pe.prototype)).constructor=Ue,He.prototype.clear=function(){this.__data__=Ee?Ee(null):{},this.size=0},He.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},He.prototype.get=function(t){var r=this.__data__;if(Ee){var n=r[t];return n===i?e:n}return Mt.call(r,t)?r[t]:e},He.prototype.has=function(t){var r=this.__data__;return Ee?r[t]!==e:Mt.call(r,t)},He.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ee&&r===e?i:r,this},Ze.prototype.clear=function(){this.__data__=[],this.size=0},Ze.prototype.delete=function(t){var r=this.__data__,e=Ye(r,t);return!(e<0||(e==r.length-1?r.pop():Qt.call(r,e,1),--this.size,0))},Ze.prototype.get=function(t){var r=this.__data__,n=Ye(r,t);return n<0?e:r[n][1]},Ze.prototype.has=function(t){return Ye(this.__data__,t)>-1},Ze.prototype.set=function(t,r){var e=this.__data__,n=Ye(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new He,map:new(be||Ze),string:new He}},Be.prototype.delete=function(t){var r=oo(this,t).delete(t);return this.size-=r?1:0,r},Be.prototype.get=function(t){return oo(this,t).get(t)},Be.prototype.has=function(t){return oo(this,t).has(t)},Be.prototype.set=function(t,r){var e=oo(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Ne.prototype.add=Ne.prototype.push=function(t){return this.__data__.set(t,i),this},Ne.prototype.has=function(t){return this.__data__.has(t)},We.prototype.clear=function(){this.__data__=new Ze,this.size=0},We.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},We.prototype.get=function(t){return this.__data__.get(t)},We.prototype.has=function(t){return this.__data__.has(t)},We.prototype.set=function(t,r){var e=this.__data__;if(e instanceof Ze){var n=e.__data__;if(!be||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(t,r),this.size=e.size,this};var cn=zi(Cn),ln=zi(wn,!0);function hn(t,r){var e=!0;return cn(t,(function(t,n,i){return e=!!r(t,n,i)})),e}function fn(t,r,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=r(s);if(null!=a&&(u===e?a==a&&!oa(a):n(a,u)))var u=a,c=s}return c}function dn(t,r){var e=[];return cn(t,(function(t,n,i){r(t,n,i)&&e.push(t)})),e}function gn(t,r,e,n,i){var o=-1,s=t.length;for(e||(e=go),i||(i=[]);++o<s;){var a=t[o];r>0&&e(a)?r>1?gn(a,r-1,e,n,i):Er(i,a):n||(i[i.length]=a)}return i}var vn=Oi(),pn=Oi(!0);function Cn(t,r){return t&&vn(t,r,ja)}function wn(t,r){return t&&pn(t,r,ja)}function mn(t,r){return br(r,(function(r){return qs(t[r])}))}function Ln(t,r){for(var n=0,i=(r=vi(r,t)).length;null!=t&&n<i;)t=t[Ao(r[n++])];return n&&n==i?t:e}function bn(t,r,e){var n=r(t);return Hs(t)?n:Er(n,e(t))}function xn(t){return null==t?t===e?"[object Undefined]":"[object Null]":or&&or in yt(t)?function(t){var r=Mt.call(t,or),n=t[or];try{t[or]=e;var i=!0}catch(t){}var o=At.call(t);return i&&(r?t[or]=n:delete t[or]),o}(t):function(t){return At.call(t)}(t)}function yn(t,r){return t>r}function kn(t,r){return null!=t&&Mt.call(t,r)}function En(t,r){return null!=t&&r in yt(t)}function Sn(t,r,n){for(var i=n?yr:xr,o=t[0].length,s=t.length,a=s,u=w(s),c=1/0,l=[];a--;){var h=t[a];a&&r&&(h=kr(h,Zr(r))),c=ve(h.length,c),u[a]=!n&&(r||o>=120&&h.length>=120)?new Ne(a&&h):e}h=t[0];var f=-1,d=u[0];t:for(;++f<o&&l.length<c;){var g=h[f],v=r?r(g):g;if(g=n||0!==g?g:0,!(d?Nr(d,v):i(l,v,n))){for(a=s;--a;){var p=u[a];if(!(p?Nr(p,v):i(t[a],v,n)))continue t}d&&d.push(v),l.push(g)}}return l}function Rn(t,r,n){var i=null==(t=ko(t,r=vi(r,t)))?t:t[Ao(Go(r))];return null==i?e:pr(i,t,n)}function jn(t){return Ys(t)&&xn(t)==d}function zn(t,r,n,i,o){return t===r||(null==t||null==r||!Ys(t)&&!Ys(r)?t!=t&&r!=r:function(t,r,n,i,o,s){var a=Hs(t),u=Hs(r),c=a?g:lo(t),l=u?g:lo(r),h=(c=c==d?y:c)==y,f=(l=l==d?y:l)==y,w=c==l;if(w&&Ws(t)){if(!Ws(r))return!1;a=!0,h=!1}if(w&&!h)return s||(s=new We),a||sa(t)?Ji(t,r,n,i,o,s):function(t,r,e,n,i,o,s){switch(e){case M:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case O:return!(t.byteLength!=r.byteLength||!o(new Ut(t),new Ut(r)));case v:case p:case x:return Ts(+t,+r);case C:return t.name==r.name&&t.message==r.message;case E:case R:return t==r+"";case b:var a=Yr;case S:if(a||(a=re),t.size!=r.size&&!(1&n))return!1;var u=s.get(t);if(u)return u==r;n|=2,s.set(t,r);var c=Ji(a(t),a(r),n,i,o,s);return s.delete(t),c;case j:if(Ae)return Ae.call(t)==Ae.call(r)}return!1}(t,r,c,n,i,o,s);if(!(1&n)){var m=h&&Mt.call(t,"__wrapped__"),L=f&&Mt.call(r,"__wrapped__");if(m||L){var k=m?t.value():t,z=L?r.value():r;return s||(s=new We),o(k,z,n,i,s)}}return!!w&&(s||(s=new We),function(t,r,n,i,o,s){var a=1&n,u=Qi(t),c=u.length;if(c!=Qi(r).length&&!a)return!1;for(var l=c;l--;){var h=u[l];if(!(a?h in r:Mt.call(r,h)))return!1}var f=s.get(t),d=s.get(r);if(f&&d)return f==r&&d==t;var g=!0;s.set(t,r),s.set(r,t);for(var v=a;++l<c;){var p=t[h=u[l]],C=r[h];if(i)var w=a?i(C,p,h,r,t,s):i(p,C,h,t,r,s);if(!(w===e?p===C||o(p,C,n,i,s):w)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var m=t.constructor,L=r.constructor;m==L||!("constructor"in t)||!("constructor"in r)||"function"==typeof m&&m instanceof m&&"function"==typeof L&&L instanceof L||(g=!1)}return s.delete(t),s.delete(r),g}(t,r,n,i,o,s))}(t,r,n,i,zn,o))}function On(t,r,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;for(t=yt(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<s;){var c=(u=n[o])[0],l=t[c],h=u[1];if(a&&u[2]){if(l===e&&!(c in t))return!1}else{var f=new We;if(i)var d=i(l,h,c,t,r,f);if(!(d===e?zn(h,l,3,i,f):d))return!1}}return!0}function Mn(t){return!(!Js(t)||(r=t,_t&&_t in r))&&(qs(t)?Tt:gt).test(Do(t));var r}function Fn(t){return"function"==typeof t?t:null==t?tu:"object"==typeof t?Hs(t)?Tn(t[0],t[1]):In(t):cu(t)}function _n(t){if(!Lo(t))return de(t);var r=[];for(var e in yt(t))Mt.call(t,e)&&"constructor"!=e&&r.push(e);return r}function An(t,r){return t<r}function Dn(t,r){var e=-1,n=Bs(t)?w(t.length):[];return cn(t,(function(t,i,o){n[++e]=r(t,i,o)})),n}function In(t){var r=so(t);return 1==r.length&&r[0][2]?xo(r[0][0],r[0][1]):function(e){return e===t||On(e,t,r)}}function Tn(t,r){return Co(t)&&bo(r)?xo(Ao(t),r):function(n){var i=ya(n,t);return i===e&&i===r?ka(n,t):zn(r,i,3)}}function Pn(t,r,n,i,o){t!==r&&vn(r,(function(s,a){if(o||(o=new We),Js(s))!function(t,r,n,i,o,s,a){var u=So(t,n),c=So(r,n),l=a.get(c);if(l)Xe(t,n,l);else{var h=s?s(u,c,n+"",t,r,a):e,f=h===e;if(f){var d=Hs(c),g=!d&&Ws(c),v=!d&&!g&&sa(c);h=c,d||g||v?Hs(u)?h=u:Ns(u)?h=Ei(u):g?(f=!1,h=mi(c,!0)):v?(f=!1,h=bi(c,!0)):h=[]:ra(c)||Us(c)?(h=u,Us(u)?h=ga(u):Js(u)&&!qs(u)||(h=fo(c))):f=!1}f&&(a.set(c,h),o(h,c,i,s,a),a.delete(c)),Xe(t,n,h)}}(t,r,a,n,Pn,i,o);else{var u=i?i(So(t,a),s,a+"",t,r,o):e;u===e&&(u=s),Xe(t,a,u)}}),za)}function $n(t,r){var n=t.length;if(n)return vo(r+=r<0?n:0,n)?t[r]:e}function Un(t,r,e){r=r.length?kr(r,(function(t){return Hs(t)?function(r){return Ln(r,1===t.length?t[0]:t)}:t})):[tu];var n=-1;return r=kr(r,Zr(io())),function(t){var r=t.length;for(t.sort((function(t,r){return function(t,r,e){for(var n=-1,i=t.criteria,o=r.criteria,s=i.length,a=e.length;++n<s;){var u=xi(i[n],o[n]);if(u)return n>=a?u:u*("desc"==e[n]?-1:1)}return t.index-r.index}(t,r,e)}));r--;)t[r]=t[r].value;return t}(Dn(t,(function(t){return{criteria:kr(r,(function(r){return r(t)})),index:++n,value:t}})))}function Hn(t,r,e){for(var n=-1,i=r.length,o={};++n<i;){var s=r[n],a=Ln(t,s);e(a,s)&&Kn(o,vi(s,t),a)}return o}function Zn(t,r,e,n){var i=n?_r:Fr,o=-1,s=r.length,a=t;for(t===r&&(r=Ei(r)),e&&(a=kr(t,Zr(e)));++o<s;)for(var u=0,c=r[o],l=e?e(c):c;(u=i(a,l,u,n))>-1;)a!==t&&Qt.call(a,u,1),Qt.call(t,u,1);return t}function Bn(t,r){for(var e=t?r.length:0,n=e-1;e--;){var i=r[e];if(e==n||i!==o){var o=i;vo(i)?Qt.call(t,i,1):ai(t,i)}}return t}function Nn(t,r){return t+ue(we()*(r-t+1))}function Wn(t,r){var e="";if(!t||r<1||r>c)return e;do{r%2&&(e+=t),(r=ue(r/2))&&(t+=t)}while(r);return e}function Vn(t,r){return zo(yo(t,r,tu),t+"")}function Gn(t){return Ge(Ta(t))}function qn(t,r){var e=Ta(t);return Fo(e,nn(r,0,e.length))}function Kn(t,r,n,i){if(!Js(t))return t;for(var o=-1,s=(r=vi(r,t)).length,a=s-1,u=t;null!=u&&++o<s;){var c=Ao(r[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=a){var h=u[c];(l=i?i(h,c,u):e)===e&&(l=Js(h)?h:vo(r[o+1])?[]:{})}Je(u,c,l),u=u[c]}return t}var Xn=Se?function(t,r){return Se.set(t,r),t}:tu,Jn=sr?function(t,r){return sr(t,"toString",{configurable:!0,enumerable:!1,value:Ja(r),writable:!0})}:tu;function Yn(t){return Fo(Ta(t))}function Qn(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=w(i);++n<i;)o[n]=t[n+r];return o}function ti(t,r){var e;return cn(t,(function(t,n,i){return!(e=r(t,n,i))})),!!e}function ri(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!oa(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return ei(t,r,tu,e)}function ei(t,r,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(r=n(r))!=r,u=null===r,c=oa(r),l=r===e;o<s;){var h=ue((o+s)/2),f=n(t[h]),d=f!==e,g=null===f,v=f==f,p=oa(f);if(a)var C=i||v;else C=l?v&&(i||d):u?v&&d&&(i||!g):c?v&&d&&!g&&(i||!p):!g&&!p&&(i?f<=r:f<r);C?o=h+1:s=h}return ve(s,4294967294)}function ni(t,r){for(var e=-1,n=t.length,i=0,o=[];++e<n;){var s=t[e],a=r?r(s):s;if(!e||!Ts(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function ii(t){return"number"==typeof t?t:oa(t)?l:+t}function oi(t){if("string"==typeof t)return t;if(Hs(t))return kr(t,oi)+"";if(oa(t))return De?De.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function si(t,r,e){var n=-1,i=xr,o=t.length,s=!0,a=[],u=a;if(e)s=!1,i=yr;else if(o>=200){var c=r?null:Wi(t);if(c)return re(c);s=!1,i=Nr,u=new Ne}else u=r?[]:a;t:for(;++n<o;){var l=t[n],h=r?r(l):l;if(l=e||0!==l?l:0,s&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;r&&u.push(h),a.push(l)}else i(u,h,e)||(u!==a&&u.push(h),a.push(l))}return a}function ai(t,r){return null==(t=ko(t,r=vi(r,t)))||delete t[Ao(Go(r))]}function ui(t,r,e,n){return Kn(t,r,e(Ln(t,r)),n)}function ci(t,r,e,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&r(t[o],o,t););return e?Qn(t,n?0:o,n?o+1:i):Qn(t,n?o+1:0,n?i:o)}function li(t,r){var e=t;return e instanceof Ue&&(e=e.value()),Sr(r,(function(t,r){return r.func.apply(r.thisArg,Er([t],r.args))}),e)}function hi(t,r,e){var n=t.length;if(n<2)return n?si(t[0]):[];for(var i=-1,o=w(n);++i<n;)for(var s=t[i],a=-1;++a<n;)a!=i&&(o[i]=un(o[i]||s,t[a],r,e));return si(gn(o,1),r,e)}function fi(t,r,n){for(var i=-1,o=t.length,s=r.length,a={};++i<o;)n(a,t[i],i<s?r[i]:e);return a}function di(t){return Ns(t)?t:[]}function gi(t){return"function"==typeof t?t:tu}function vi(t,r){return Hs(t)?t:Co(t,r)?[t]:_o(va(t))}var pi=Vn;function Ci(t,r,n){var i=t.length;return n=n===e?i:n,!r&&n>=i?t:Qn(t,r,n)}var wi=ur||function(t){return ir.clearTimeout(t)};function mi(t,r){if(r)return t.slice();var e=t.length,n=Ht?Ht(e):new t.constructor(e);return t.copy(n),n}function Li(t){var r=new t.constructor(t.byteLength);return new Ut(r).set(new Ut(t)),r}function bi(t,r){var e=r?Li(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==e,i=null===t,o=t==t,s=oa(t),a=r!==e,u=null===r,c=r==r,l=oa(r);if(!u&&!l&&!s&&t>r||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<r||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}function yi(t,r,e,n){for(var i=-1,o=t.length,s=e.length,a=-1,u=r.length,c=ge(o-s,0),l=w(u+c),h=!n;++a<u;)l[a]=r[a];for(;++i<s;)(h||i<o)&&(l[e[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function ki(t,r,e,n){for(var i=-1,o=t.length,s=-1,a=e.length,u=-1,c=r.length,l=ge(o-a,0),h=w(l+c),f=!n;++i<l;)h[i]=t[i];for(var d=i;++u<c;)h[d+u]=r[u];for(;++s<a;)(f||i<o)&&(h[d+e[s]]=t[i++]);return h}function Ei(t,r){var e=-1,n=t.length;for(r||(r=w(n));++e<n;)r[e]=t[e];return r}function Si(t,r,n,i){var o=!n;n||(n={});for(var s=-1,a=r.length;++s<a;){var u=r[s],c=i?i(n[u],t[u],u,n,t):e;c===e&&(c=t[u]),o?rn(n,u,c):Je(n,u,c)}return n}function Ri(t,r){return function(e,n){var i=Hs(e)?Cr:Qe,o=r?r():{};return i(e,t,io(n,2),o)}}function ji(t){return Vn((function(r,n){var i=-1,o=n.length,s=o>1?n[o-1]:e,a=o>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(o--,s):e,a&&po(n[0],n[1],a)&&(s=o<3?e:s,o=1),r=yt(r);++i<o;){var u=n[i];u&&t(r,u,i,s)}return r}))}function zi(t,r){return function(e,n){if(null==e)return e;if(!Bs(e))return t(e,n);for(var i=e.length,o=r?i:-1,s=yt(e);(r?o--:++o<i)&&!1!==n(s[o],o,s););return e}}function Oi(t){return function(r,e,n){for(var i=-1,o=yt(r),s=n(r),a=s.length;a--;){var u=s[t?a:++i];if(!1===e(o[u],u,o))break}return r}}function Mi(t){return function(r){var n=Jr(r=va(r))?ie(r):e,i=n?n[0]:r.charAt(0),o=n?Ci(n,1).join(""):r.slice(1);return i[t]()+o}}function Fi(t){return function(r){return Sr(qa(Ua(r).replace(Bt,"")),t,"")}}function _i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=Te(t.prototype),n=t.apply(e,r);return Js(n)?n:e}}function Ai(t){return function(r,n,i){var o=yt(r);if(!Bs(r)){var s=io(n,3);r=ja(r),n=function(t){return s(o[t],t,o)}}var a=t(r,n,i);return a>-1?o[s?r[a]:a]:e}}function Di(t){return Yi((function(r){var i=r.length,o=i,s=$e.prototype.thru;for(t&&r.reverse();o--;){var a=r[o];if("function"!=typeof a)throw new St(n);if(s&&!u&&"wrapper"==eo(a))var u=new $e([],!0)}for(o=u?o:i;++o<i;){var c=eo(a=r[o]),l="wrapper"==c?ro(a):e;u=l&&wo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[eo(l[0])].apply(u,l[3]):1==a.length&&wo(a)?u[c]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&Hs(e))return u.plant(e).value();for(var n=0,o=i?r[n].apply(this,t):e;++n<i;)o=r[n].call(this,o);return o}}))}function Ii(t,r,n,i,o,s,u,c,l,h){var f=r&a,d=1&r,g=2&r,v=24&r,p=512&r,C=g?e:_i(t);return function e(){for(var a=arguments.length,m=w(a),L=a;L--;)m[L]=arguments[L];if(v)var b=no(e),x=Gr(m,b);if(i&&(m=yi(m,i,o,v)),s&&(m=ki(m,s,u,v)),a-=x,v&&a<h){var y=te(m,b);return Bi(t,r,Ii,e.placeholder,n,m,y,c,l,h-a)}var k=d?n:this,E=g?k[t]:t;return a=m.length,c?m=Eo(m,c):p&&a>1&&m.reverse(),f&&l<a&&(m.length=l),this&&this!==ir&&this instanceof e&&(E=C||_i(E)),E.apply(k,m)}}function Ti(t,r){return function(e,n){return function(t,r,e,n){return Cn(t,(function(t,i,o){r(n,e(t),i,o)})),n}(e,t,r(n),{})}}function Pi(t,r){return function(n,i){var o;if(n===e&&i===e)return r;if(n!==e&&(o=n),i!==e){if(o===e)return i;"string"==typeof n||"string"==typeof i?(n=oi(n),i=oi(i)):(n=ii(n),i=ii(i)),o=t(n,i)}return o}}function $i(t){return Yi((function(r){return r=kr(r,Zr(io())),Vn((function(e){var n=this;return t(r,(function(t){return pr(t,n,e)}))}))}))}function Ui(t,r){var n=(r=r===e?" ":oi(r)).length;if(n<2)return n?Wn(r,t):r;var i=Wn(r,Tr(t/ne(r)));return Jr(r)?Ci(ie(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(r,n,i){return i&&"number"!=typeof i&&po(r,n,i)&&(n=i=e),r=la(r),n===e?(n=r,r=0):n=la(n),function(t,r,e,n){for(var i=-1,o=ge(Tr((r-t)/(e||1)),0),s=w(o);o--;)s[n?o:++i]=t,t+=e;return s}(r,n,i=i===e?r<n?1:-1:la(i),t)}}function Zi(t){return function(r,e){return"string"==typeof r&&"string"==typeof e||(r=da(r),e=da(e)),t(r,e)}}function Bi(t,r,n,i,o,a,u,c,l,h){var f=8&r;r|=f?s:64,4&(r&=~(f?64:s))||(r&=-4);var d=[t,r,o,f?a:e,f?u:e,f?e:a,f?e:u,c,l,h],g=n.apply(e,d);return wo(t)&&Ro(g,d),g.placeholder=i,Oo(g,t,r)}function Ni(t){var r=xt[t];return function(t,e){if(t=da(t),(e=null==e?0:ve(ha(e),292))&&he(t)){var n=(va(t)+"e").split("e");return+((n=(va(r(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return r(t)}}var Wi=ye&&1/re(new ye([,-0]))[1]==u?function(t){return new ye(t)}:ou;function Vi(t){return function(r){var e=lo(r);return e==b?Yr(r):e==S?ee(r):function(t,r){return kr(r,(function(r){return[r,t[r]]}))}(r,t(r))}}function Gi(t,r,i,u,c,l,h,f){var d=2&r;if(!d&&"function"!=typeof t)throw new St(n);var g=u?u.length:0;if(g||(r&=-97,u=c=e),h=h===e?h:ge(ha(h),0),f=f===e?f:ha(f),g-=c?c.length:0,64&r){var v=u,p=c;u=c=e}var C=d?e:ro(t),m=[t,r,i,u,c,v,p,l,h,f];if(C&&function(t,r){var e=t[1],n=r[1],i=e|n;if(!(i<131||(n==a&&8==e||n==a&&256==e&&t[7].length<=r[8]||384==n&&r[7].length<=r[8]&&8==e)))return t;1&n&&(t[2]=r[2],i|=1&e?0:4);var s=r[3];if(s){var u=t[3];t[3]=u?yi(u,s,r[4]):s,t[4]=u?te(t[3],o):r[4]}(s=r[5])&&(t[5]=(u=t[5])?ki(u,s,r[6]):s,t[6]=u?te(t[5],o):r[6]),(s=r[7])&&(t[7]=s),n&a&&(t[8]=null==t[8]?r[8]:ve(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i}(m,C),t=m[0],r=m[1],i=m[2],u=m[3],c=m[4],!(f=m[9]=m[9]===e?d?0:t.length:ge(m[9]-g,0))&&24&r&&(r&=-25),r&&1!=r)L=8==r||16==r?function(t,r,n){var i=_i(t);return function o(){for(var s=arguments.length,a=w(s),u=s,c=no(o);u--;)a[u]=arguments[u];var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:te(a,c);return(s-=l.length)<n?Bi(t,r,Ii,o.placeholder,e,a,l,e,e,n-s):pr(this&&this!==ir&&this instanceof o?i:t,this,a)}}(t,r,f):r!=s&&33!=r||c.length?Ii.apply(e,m):function(t,r,e,n){var i=1&r,o=_i(t);return function r(){for(var s=-1,a=arguments.length,u=-1,c=n.length,l=w(c+a),h=this&&this!==ir&&this instanceof r?o:t;++u<c;)l[u]=n[u];for(;a--;)l[u++]=arguments[++s];return pr(h,i?e:this,l)}}(t,r,i,u);else var L=function(t,r,e){var n=1&r,i=_i(t);return function r(){return(this&&this!==ir&&this instanceof r?i:t).apply(n?e:this,arguments)}}(t,r,i);return Oo((C?Xn:Ro)(L,m),t,r)}function qi(t,r,n,i){return t===e||Ts(t,jt[n])&&!Mt.call(i,n)?r:t}function Ki(t,r,n,i,o,s){return Js(t)&&Js(r)&&(s.set(r,t),Pn(t,r,e,Ki,s),s.delete(r)),t}function Xi(t){return ra(t)?e:t}function Ji(t,r,n,i,o,s){var a=1&n,u=t.length,c=r.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(t),h=s.get(r);if(l&&h)return l==r&&h==t;var f=-1,d=!0,g=2&n?new Ne:e;for(s.set(t,r),s.set(r,t);++f<u;){var v=t[f],p=r[f];if(i)var C=a?i(p,v,f,r,t,s):i(v,p,f,t,r,s);if(C!==e){if(C)continue;d=!1;break}if(g){if(!jr(r,(function(t,r){if(!Nr(g,r)&&(v===t||o(v,t,n,i,s)))return g.push(r)}))){d=!1;break}}else if(v!==p&&!o(v,p,n,i,s)){d=!1;break}}return s.delete(t),s.delete(r),d}function Yi(t){return zo(yo(t,e,Zo),t+"")}function Qi(t){return bn(t,ja,uo)}function to(t){return bn(t,za,co)}var ro=Se?function(t){return Se.get(t)}:ou;function eo(t){for(var r=t.name+"",e=Re[r],n=Mt.call(Re,r)?e.length:0;n--;){var i=e[n],o=i.func;if(null==o||o==t)return i.name}return r}function no(t){return(Mt.call(Ie,"placeholder")?Ie:t).placeholder}function io(){var t=Ie.iteratee||ru;return t=t===ru?Fn:t,arguments.length?t(arguments[0],arguments[1]):t}function oo(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map}function so(t){for(var r=ja(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,bo(i)]}return r}function ao(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return Mn(n)?n:e}var uo=ce?function(t){return null==t?[]:(t=yt(t),br(ce(t),(function(r){return Gt.call(t,r)})))}:fu,co=ce?function(t){for(var r=[];t;)Er(r,uo(t)),t=Zt(t);return r}:fu,lo=xn;function ho(t,r,e){for(var n=-1,i=(r=vi(r,t)).length,o=!1;++n<i;){var s=Ao(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Xs(i)&&vo(s,i)&&(Hs(t)||Us(t))}function fo(t){return"function"!=typeof t.constructor||Lo(t)?{}:Te(Zt(t))}function go(t){return Hs(t)||Us(t)||!!(er&&t&&t[er])}function vo(t,r){var e=typeof t;return!!(r=null==r?c:r)&&("number"==e||"symbol"!=e&&pt.test(t))&&t>-1&&t%1==0&&t<r}function po(t,r,e){if(!Js(e))return!1;var n=typeof r;return!!("number"==n?Bs(e)&&vo(r,e.length):"string"==n&&r in e)&&Ts(e[r],t)}function Co(t,r){if(Hs(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!oa(t))||Y.test(t)||!J.test(t)||null!=r&&t in yt(r)}function wo(t){var r=eo(t),e=Ie[r];if("function"!=typeof e||!(r in Ue.prototype))return!1;if(t===e)return!0;var n=ro(e);return!!n&&t===n[0]}(Le&&lo(new Le(new ArrayBuffer(1)))!=M||be&&lo(new be)!=b||xe&&lo(xe.resolve())!=k||ye&&lo(new ye)!=S||ke&&lo(new ke)!=z)&&(lo=function(t){var r=xn(t),n=r==y?t.constructor:e,i=n?Do(n):"";if(i)switch(i){case je:return M;case ze:return b;case Oe:return k;case Me:return S;case Fe:return z}return r});var mo=zt?qs:du;function Lo(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||jt)}function bo(t){return t==t&&!Js(t)}function xo(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in yt(n))}}function yo(t,r,n){return r=ge(r===e?t.length-1:r,0),function(){for(var e=arguments,i=-1,o=ge(e.length-r,0),s=w(o);++i<o;)s[i]=e[r+i];i=-1;for(var a=w(r+1);++i<r;)a[i]=e[i];return a[r]=n(s),pr(t,this,a)}}function ko(t,r){return r.length<2?t:Ln(t,Qn(r,0,-1))}function Eo(t,r){for(var n=t.length,i=ve(r.length,n),o=Ei(t);i--;){var s=r[i];t[i]=vo(s,n)?o[s]:e}return t}function So(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}var Ro=Mo(Xn),jo=zr||function(t,r){return ir.setTimeout(t,r)},zo=Mo(Jn);function Oo(t,r,e){var n=r+"";return zo(t,function(t,r){var e=r.length;if(!e)return t;var n=e-1;return r[n]=(e>1?"& ":"")+r[n],r=r.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+r+"] */\n")}(n,function(t,r){return wr(f,(function(e){var n="_."+e[0];r&e[1]&&!xr(t,n)&&t.push(n)})),t.sort()}(function(t){var r=t.match(ot);return r?r[1].split(st):[]}(n),e)))}function Mo(t){var r=0,n=0;return function(){var i=pe(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Fo(t,r){var n=-1,i=t.length,o=i-1;for(r=r===e?i:r;++n<r;){var s=Nn(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=r,t}var _o=function(){var t=Ms((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Q,(function(t,e,n,i){r.push(n?i.replace(ct,"$1"):e||t)})),r}),(function(t){return 500===r.size&&r.clear(),t})),r=t.cache;return t}();function Ao(t){if("string"==typeof t||oa(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function Do(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Io(t){if(t instanceof Ue)return t.clone();var r=new $e(t.__wrapped__,t.__chain__);return r.__actions__=Ei(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}var To=Vn((function(t,r){return Ns(t)?un(t,gn(r,1,Ns,!0)):[]})),Po=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?un(t,gn(r,1,Ns,!0),io(n,2)):[]})),$o=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?un(t,gn(r,1,Ns,!0),e,n):[]}));function Uo(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:ha(e);return i<0&&(i=ge(n+i,0)),Mr(t,io(r,3),i)}function Ho(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==e&&(o=ha(n),o=n<0?ge(i+o,0):ve(o,i-1)),Mr(t,io(r,3),o,!0)}function Zo(t){return null!=t&&t.length?gn(t,1):[]}function Bo(t){return t&&t.length?t[0]:e}var No=Vn((function(t){var r=kr(t,di);return r.length&&r[0]===t[0]?Sn(r):[]})),Wo=Vn((function(t){var r=Go(t),n=kr(t,di);return r===Go(n)?r=e:n.pop(),n.length&&n[0]===t[0]?Sn(n,io(r,2)):[]})),Vo=Vn((function(t){var r=Go(t),n=kr(t,di);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?Sn(n,e,r):[]}));function Go(t){var r=null==t?0:t.length;return r?t[r-1]:e}var qo=Vn(Ko);function Ko(t,r){return t&&t.length&&r&&r.length?Zn(t,r):t}var Xo=Yi((function(t,r){var e=null==t?0:t.length,n=en(t,r);return Bn(t,kr(r,(function(t){return vo(t,e)?+t:t})).sort(xi)),n}));function Jo(t){return null==t?t:me.call(t)}var Yo=Vn((function(t){return si(gn(t,1,Ns,!0))})),Qo=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),si(gn(t,1,Ns,!0),io(r,2))})),ts=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,si(gn(t,1,Ns,!0),e,r)}));function rs(t){if(!t||!t.length)return[];var r=0;return t=br(t,(function(t){if(Ns(t))return r=ge(t.length,r),!0})),Ur(r,(function(r){return kr(t,Ir(r))}))}function es(t,r){if(!t||!t.length)return[];var n=rs(t);return null==r?n:kr(n,(function(t){return pr(r,e,t)}))}var ns=Vn((function(t,r){return Ns(t)?un(t,r):[]})),is=Vn((function(t){return hi(br(t,Ns))})),os=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),hi(br(t,Ns),io(r,2))})),ss=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,hi(br(t,Ns),e,r)})),as=Vn(rs),us=Vn((function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,es(t,n)}));function cs(t){var r=Ie(t);return r.__chain__=!0,r}function ls(t,r){return r(t)}var hs=Yi((function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(r){return en(r,t)};return!(r>1||this.__actions__.length)&&i instanceof Ue&&vo(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:ls,args:[o],thisArg:e}),new $e(i,this.__chain__).thru((function(t){return r&&!t.length&&t.push(e),t}))):this.thru(o)})),fs=Ri((function(t,r,e){Mt.call(t,e)?++t[e]:rn(t,e,1)})),ds=Ai(Uo),gs=Ai(Ho);function vs(t,r){return(Hs(t)?wr:cn)(t,io(r,3))}function ps(t,r){return(Hs(t)?mr:ln)(t,io(r,3))}var Cs=Ri((function(t,r,e){Mt.call(t,e)?t[e].push(r):rn(t,e,[r])})),ws=Vn((function(t,r,e){var n=-1,i="function"==typeof r,o=Bs(t)?w(t.length):[];return cn(t,(function(t){o[++n]=i?pr(r,t,e):Rn(t,r,e)})),o})),ms=Ri((function(t,r,e){rn(t,e,r)}));function Ls(t,r){return(Hs(t)?kr:Dn)(t,io(r,3))}var bs=Ri((function(t,r,e){t[e?0:1].push(r)}),(function(){return[[],[]]})),xs=Vn((function(t,r){if(null==t)return[];var e=r.length;return e>1&&po(t,r[0],r[1])?r=[]:e>2&&po(r[0],r[1],r[2])&&(r=[r[0]]),Un(t,gn(r,1),[])})),ys=cr||function(){return ir.Date.now()};function ks(t,r,n){return r=n?e:r,Gi(t,a,e,e,e,e,r=t&&null==r?t.length:r)}function Es(t,r){var i;if("function"!=typeof r)throw new St(n);return t=ha(t),function(){return--t>0&&(i=r.apply(this,arguments)),t<=1&&(r=e),i}}var Ss=Vn((function(t,r,e){var n=1;if(e.length){var i=te(e,no(Ss));n|=s}return Gi(t,n,r,e,i)})),Rs=Vn((function(t,r,e){var n=3;if(e.length){var i=te(e,no(Rs));n|=s}return Gi(r,n,t,e,i)}));function js(t,r,i){var o,s,a,u,c,l,h=0,f=!1,d=!1,g=!0;if("function"!=typeof t)throw new St(n);function v(r){var n=o,i=s;return o=s=e,h=r,u=t.apply(i,n)}function p(t){return h=t,c=jo(w,r),f?v(t):u}function C(t){var n=t-l;return l===e||n>=r||n<0||d&&t-h>=a}function w(){var t=ys();if(C(t))return m(t);c=jo(w,function(t){var e=r-(t-l);return d?ve(e,a-(t-h)):e}(t))}function m(t){return c=e,g&&o?v(t):(o=s=e,u)}function L(){var t=ys(),n=C(t);if(o=arguments,s=this,l=t,n){if(c===e)return p(l);if(d)return wi(c),c=jo(w,r),v(l)}return c===e&&(c=jo(w,r)),u}return r=da(r)||0,Js(i)&&(f=!!i.leading,a=(d="maxWait"in i)?ge(da(i.maxWait)||0,r):a,g="trailing"in i?!!i.trailing:g),L.cancel=function(){c!==e&&wi(c),h=0,o=l=s=c=e},L.flush=function(){return c===e?u:m(ys())},L}var zs=Vn((function(t,r){return an(t,1,r)})),Os=Vn((function(t,r,e){return an(t,da(r)||0,e)}));function Ms(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new St(n);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(Ms.Cache||Be),e}function Fs(t){if("function"!=typeof t)throw new St(n);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}Ms.Cache=Be;var _s=pi((function(t,r){var e=(r=1==r.length&&Hs(r[0])?kr(r[0],Zr(io())):kr(gn(r,1),Zr(io()))).length;return Vn((function(n){for(var i=-1,o=ve(n.length,e);++i<o;)n[i]=r[i].call(this,n[i]);return pr(t,this,n)}))})),As=Vn((function(t,r){var n=te(r,no(As));return Gi(t,s,e,r,n)})),Ds=Vn((function(t,r){var n=te(r,no(Ds));return Gi(t,64,e,r,n)})),Is=Yi((function(t,r){return Gi(t,256,e,e,e,r)}));function Ts(t,r){return t===r||t!=t&&r!=r}var Ps=Zi(yn),$s=Zi((function(t,r){return t>=r})),Us=jn(function(){return arguments}())?jn:function(t){return Ys(t)&&Mt.call(t,"callee")&&!Gt.call(t,"callee")},Hs=w.isArray,Zs=lr?Zr(lr):function(t){return Ys(t)&&xn(t)==O};function Bs(t){return null!=t&&Xs(t.length)&&!qs(t)}function Ns(t){return Ys(t)&&Bs(t)}var Ws=le||du,Vs=hr?Zr(hr):function(t){return Ys(t)&&xn(t)==p};function Gs(t){if(!Ys(t))return!1;var r=xn(t);return r==C||"[object DOMException]"==r||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function qs(t){if(!Js(t))return!1;var r=xn(t);return r==m||r==L||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ks(t){return"number"==typeof t&&t==ha(t)}function Xs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Js(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ys(t){return null!=t&&"object"==typeof t}var Qs=fr?Zr(fr):function(t){return Ys(t)&&lo(t)==b};function ta(t){return"number"==typeof t||Ys(t)&&xn(t)==x}function ra(t){if(!Ys(t)||xn(t)!=y)return!1;var r=Zt(t);if(null===r)return!0;var e=Mt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ot.call(e)==Dt}var ea=dr?Zr(dr):function(t){return Ys(t)&&xn(t)==E},na=gr?Zr(gr):function(t){return Ys(t)&&lo(t)==S};function ia(t){return"string"==typeof t||!Hs(t)&&Ys(t)&&xn(t)==R}function oa(t){return"symbol"==typeof t||Ys(t)&&xn(t)==j}var sa=vr?Zr(vr):function(t){return Ys(t)&&Xs(t.length)&&!!Jt[xn(t)]},aa=Zi(An),ua=Zi((function(t,r){return t<=r}));function ca(t){if(!t)return[];if(Bs(t))return ia(t)?ie(t):Ei(t);if(nr&&t[nr])return function(t){for(var r,e=[];!(r=t.next()).done;)e.push(r.value);return e}(t[nr]());var r=lo(t);return(r==b?Yr:r==S?re:Ta)(t)}function la(t){return t?(t=da(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var r=la(t),e=r%1;return r==r?e?r-e:r:0}function fa(t){return t?nn(ha(t),0,h):0}function da(t){if("number"==typeof t)return t;if(oa(t))return l;if(Js(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Js(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Hr(t);var e=dt.test(t);return e||vt.test(t)?rr(t.slice(2),e?2:8):ft.test(t)?l:+t}function ga(t){return Si(t,za(t))}function va(t){return null==t?"":oi(t)}var pa=ji((function(t,r){if(Lo(r)||Bs(r))Si(r,ja(r),t);else for(var e in r)Mt.call(r,e)&&Je(t,e,r[e])})),Ca=ji((function(t,r){Si(r,za(r),t)})),wa=ji((function(t,r,e,n){Si(r,za(r),t,n)})),ma=ji((function(t,r,e,n){Si(r,ja(r),t,n)})),La=Yi(en),ba=Vn((function(t,r){t=yt(t);var n=-1,i=r.length,o=i>2?r[2]:e;for(o&&po(r[0],r[1],o)&&(i=1);++n<i;)for(var s=r[n],a=za(s),u=-1,c=a.length;++u<c;){var l=a[u],h=t[l];(h===e||Ts(h,jt[l])&&!Mt.call(t,l))&&(t[l]=s[l])}return t})),xa=Vn((function(t){return t.push(e,Ki),pr(Ma,e,t)}));function ya(t,r,n){var i=null==t?e:Ln(t,r);return i===e?n:i}function ka(t,r){return null!=t&&ho(t,r,En)}var Ea=Ti((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),t[r]=e}),Ja(tu)),Sa=Ti((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),Mt.call(t,r)?t[r].push(e):t[r]=[e]}),io),Ra=Vn(Rn);function ja(t){return Bs(t)?Ve(t):_n(t)}function za(t){return Bs(t)?Ve(t,!0):function(t){if(!Js(t))return function(t){var r=[];if(null!=t)for(var e in yt(t))r.push(e);return r}(t);var r=Lo(t),e=[];for(var n in t)("constructor"!=n||!r&&Mt.call(t,n))&&e.push(n);return e}(t)}var Oa=ji((function(t,r,e){Pn(t,r,e)})),Ma=ji((function(t,r,e,n){Pn(t,r,e,n)})),Fa=Yi((function(t,r){var e={};if(null==t)return e;var n=!1;r=kr(r,(function(r){return r=vi(r,t),n||(n=r.length>1),r})),Si(t,to(t),e),n&&(e=on(e,7,Xi));for(var i=r.length;i--;)ai(e,r[i]);return e})),_a=Yi((function(t,r){return null==t?{}:function(t,r){return Hn(t,r,(function(r,e){return ka(t,e)}))}(t,r)}));function Aa(t,r){if(null==t)return{};var e=kr(to(t),(function(t){return[t]}));return r=io(r),Hn(t,e,(function(t,e){return r(t,e[0])}))}var Da=Vi(ja),Ia=Vi(za);function Ta(t){return null==t?[]:Br(t,ja(t))}var Pa=Fi((function(t,r,e){return r=r.toLowerCase(),t+(e?$a(r):r)}));function $a(t){return Ga(va(t).toLowerCase())}function Ua(t){return(t=va(t))&&t.replace(Ct,qr).replace(Nt,"")}var Ha=Fi((function(t,r,e){return t+(e?"-":"")+r.toLowerCase()})),Za=Fi((function(t,r,e){return t+(e?" ":"")+r.toLowerCase()})),Ba=Mi("toLowerCase"),Na=Fi((function(t,r,e){return t+(e?"_":"")+r.toLowerCase()})),Wa=Fi((function(t,r,e){return t+(e?" ":"")+Ga(r)})),Va=Fi((function(t,r,e){return t+(e?" ":"")+r.toUpperCase()})),Ga=Mi("toUpperCase");function qa(t,r,n){return t=va(t),(r=n?e:r)===e?function(t){return qt.test(t)}(t)?function(t){return t.match(Vt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(r)||[]}var Ka=Vn((function(t,r){try{return pr(t,e,r)}catch(t){return Gs(t)?t:new Lt(t)}})),Xa=Yi((function(t,r){return wr(r,(function(r){r=Ao(r),rn(t,r,Ss(t[r],t))})),t}));function Ja(t){return function(){return t}}var Ya=Di(),Qa=Di(!0);function tu(t){return t}function ru(t){return Fn("function"==typeof t?t:on(t,1))}var eu=Vn((function(t,r){return function(e){return Rn(e,t,r)}})),nu=Vn((function(t,r){return function(e){return Rn(t,e,r)}}));function iu(t,r,e){var n=ja(r),i=mn(r,n);null!=e||Js(r)&&(i.length||!n.length)||(e=r,r=t,t=this,i=mn(r,ja(r)));var o=!(Js(e)&&"chain"in e&&!e.chain),s=qs(t);return wr(i,(function(e){var n=r[e];t[e]=n,s&&(t.prototype[e]=function(){var r=this.__chain__;if(o||r){var e=t(this.__wrapped__),i=e.__actions__=Ei(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),e.__chain__=r,e}return n.apply(t,Er([this.value()],arguments))})})),t}function ou(){}var su=$i(kr),au=$i(Lr),uu=$i(jr);function cu(t){return Co(t)?Ir(Ao(t)):function(t){return function(r){return Ln(r,t)}}(t)}var lu=Hi(),hu=Hi(!0);function fu(){return[]}function du(){return!1}var gu,vu=Pi((function(t,r){return t+r}),0),pu=Ni("ceil"),Cu=Pi((function(t,r){return t/r}),1),wu=Ni("floor"),mu=Pi((function(t,r){return t*r}),1),Lu=Ni("round"),bu=Pi((function(t,r){return t-r}),0);return Ie.after=function(t,r){if("function"!=typeof r)throw new St(n);return t=ha(t),function(){if(--t<1)return r.apply(this,arguments)}},Ie.ary=ks,Ie.assign=pa,Ie.assignIn=Ca,Ie.assignInWith=wa,Ie.assignWith=ma,Ie.at=La,Ie.before=Es,Ie.bind=Ss,Ie.bindAll=Xa,Ie.bindKey=Rs,Ie.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},Ie.chain=cs,Ie.chunk=function(t,r,n){r=(n?po(t,r,n):r===e)?1:ge(ha(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,s=0,a=w(Tr(i/r));o<i;)a[s++]=Qn(t,o,o+=r);return a},Ie.compact=function(t){for(var r=-1,e=null==t?0:t.length,n=0,i=[];++r<e;){var o=t[r];o&&(i[n++]=o)}return i},Ie.concat=function(){var t=arguments.length;if(!t)return[];for(var r=w(t-1),e=arguments[0],n=t;n--;)r[n-1]=arguments[n];return Er(Hs(e)?Ei(e):[e],gn(r,1))},Ie.cond=function(t){var r=null==t?0:t.length,e=io();return t=r?kr(t,(function(t){if("function"!=typeof t[1])throw new St(n);return[e(t[0]),t[1]]})):[],Vn((function(e){for(var n=-1;++n<r;){var i=t[n];if(pr(i[0],this,e))return pr(i[1],this,e)}}))},Ie.conforms=function(t){return function(t){var r=ja(t);return function(e){return sn(e,t,r)}}(on(t,1))},Ie.constant=Ja,Ie.countBy=fs,Ie.create=function(t,r){var e=Te(t);return null==r?e:tn(e,r)},Ie.curry=function t(r,n,i){var o=Gi(r,8,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},Ie.curryRight=function t(r,n,i){var o=Gi(r,16,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},Ie.debounce=js,Ie.defaults=ba,Ie.defaultsDeep=xa,Ie.defer=zs,Ie.delay=Os,Ie.difference=To,Ie.differenceBy=Po,Ie.differenceWith=$o,Ie.drop=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=n||r===e?1:ha(r))<0?0:r,i):[]},Ie.dropRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,0,(r=i-(r=n||r===e?1:ha(r)))<0?0:r):[]},Ie.dropRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0,!0):[]},Ie.dropWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0):[]},Ie.fill=function(t,r,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&po(t,r,n)&&(n=0,i=o),function(t,r,n,i){var o=t.length;for((n=ha(n))<0&&(n=-n>o?0:o+n),(i=i===e||i>o?o:ha(i))<0&&(i+=o),i=n>i?0:fa(i);n<i;)t[n++]=r;return t}(t,r,n,i)):[]},Ie.filter=function(t,r){return(Hs(t)?br:dn)(t,io(r,3))},Ie.flatMap=function(t,r){return gn(Ls(t,r),1)},Ie.flatMapDeep=function(t,r){return gn(Ls(t,r),u)},Ie.flatMapDepth=function(t,r,n){return n=n===e?1:ha(n),gn(Ls(t,r),n)},Ie.flatten=Zo,Ie.flattenDeep=function(t){return null!=t&&t.length?gn(t,u):[]},Ie.flattenDepth=function(t,r){return null!=t&&t.length?gn(t,r=r===e?1:ha(r)):[]},Ie.flip=function(t){return Gi(t,512)},Ie.flow=Ya,Ie.flowRight=Qa,Ie.fromPairs=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var i=t[r];n[i[0]]=i[1]}return n},Ie.functions=function(t){return null==t?[]:mn(t,ja(t))},Ie.functionsIn=function(t){return null==t?[]:mn(t,za(t))},Ie.groupBy=Cs,Ie.initial=function(t){return null!=t&&t.length?Qn(t,0,-1):[]},Ie.intersection=No,Ie.intersectionBy=Wo,Ie.intersectionWith=Vo,Ie.invert=Ea,Ie.invertBy=Sa,Ie.invokeMap=ws,Ie.iteratee=ru,Ie.keyBy=ms,Ie.keys=ja,Ie.keysIn=za,Ie.map=Ls,Ie.mapKeys=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,r(t,n,i),t)})),e},Ie.mapValues=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,n,r(t,n,i))})),e},Ie.matches=function(t){return In(on(t,1))},Ie.matchesProperty=function(t,r){return Tn(t,on(r,1))},Ie.memoize=Ms,Ie.merge=Oa,Ie.mergeWith=Ma,Ie.method=eu,Ie.methodOf=nu,Ie.mixin=iu,Ie.negate=Fs,Ie.nthArg=function(t){return t=ha(t),Vn((function(r){return $n(r,t)}))},Ie.omit=Fa,Ie.omitBy=function(t,r){return Aa(t,Fs(io(r)))},Ie.once=function(t){return Es(2,t)},Ie.orderBy=function(t,r,n,i){return null==t?[]:(Hs(r)||(r=null==r?[]:[r]),Hs(n=i?e:n)||(n=null==n?[]:[n]),Un(t,r,n))},Ie.over=su,Ie.overArgs=_s,Ie.overEvery=au,Ie.overSome=uu,Ie.partial=As,Ie.partialRight=Ds,Ie.partition=bs,Ie.pick=_a,Ie.pickBy=Aa,Ie.property=cu,Ie.propertyOf=function(t){return function(r){return null==t?e:Ln(t,r)}},Ie.pull=qo,Ie.pullAll=Ko,Ie.pullAllBy=function(t,r,e){return t&&t.length&&r&&r.length?Zn(t,r,io(e,2)):t},Ie.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?Zn(t,r,e,n):t},Ie.pullAt=Xo,Ie.range=lu,Ie.rangeRight=hu,Ie.rearg=Is,Ie.reject=function(t,r){return(Hs(t)?br:dn)(t,Fs(io(r,3)))},Ie.remove=function(t,r){var e=[];if(!t||!t.length)return e;var n=-1,i=[],o=t.length;for(r=io(r,3);++n<o;){var s=t[n];r(s,n,t)&&(e.push(s),i.push(n))}return Bn(t,i),e},Ie.rest=function(t,r){if("function"!=typeof t)throw new St(n);return Vn(t,r=r===e?r:ha(r))},Ie.reverse=Jo,Ie.sampleSize=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:ha(r),(Hs(t)?qe:qn)(t,r)},Ie.set=function(t,r,e){return null==t?t:Kn(t,r,e)},Ie.setWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:Kn(t,r,n,i)},Ie.shuffle=function(t){return(Hs(t)?Ke:Yn)(t)},Ie.slice=function(t,r,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&po(t,r,n)?(r=0,n=i):(r=null==r?0:ha(r),n=n===e?i:ha(n)),Qn(t,r,n)):[]},Ie.sortBy=xs,Ie.sortedUniq=function(t){return t&&t.length?ni(t):[]},Ie.sortedUniqBy=function(t,r){return t&&t.length?ni(t,io(r,2)):[]},Ie.split=function(t,r,n){return n&&"number"!=typeof n&&po(t,r,n)&&(r=n=e),(n=n===e?h:n>>>0)?(t=va(t))&&("string"==typeof r||null!=r&&!ea(r))&&!(r=oi(r))&&Jr(t)?Ci(ie(t),0,n):t.split(r,n):[]},Ie.spread=function(t,r){if("function"!=typeof t)throw new St(n);return r=null==r?0:ge(ha(r),0),Vn((function(e){var n=e[r],i=Ci(e,0,r);return n&&Er(i,n),pr(t,this,i)}))},Ie.tail=function(t){var r=null==t?0:t.length;return r?Qn(t,1,r):[]},Ie.take=function(t,r,n){return t&&t.length?Qn(t,0,(r=n||r===e?1:ha(r))<0?0:r):[]},Ie.takeRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=i-(r=n||r===e?1:ha(r)))<0?0:r,i):[]},Ie.takeRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!1,!0):[]},Ie.takeWhile=function(t,r){return t&&t.length?ci(t,io(r,3)):[]},Ie.tap=function(t,r){return r(t),t},Ie.throttle=function(t,r,e){var i=!0,o=!0;if("function"!=typeof t)throw new St(n);return Js(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),js(t,r,{leading:i,maxWait:r,trailing:o})},Ie.thru=ls,Ie.toArray=ca,Ie.toPairs=Da,Ie.toPairsIn=Ia,Ie.toPath=function(t){return Hs(t)?kr(t,Ao):oa(t)?[t]:Ei(_o(va(t)))},Ie.toPlainObject=ga,Ie.transform=function(t,r,e){var n=Hs(t),i=n||Ws(t)||sa(t);if(r=io(r,4),null==e){var o=t&&t.constructor;e=i?n?new o:[]:Js(t)&&qs(o)?Te(Zt(t)):{}}return(i?wr:Cn)(t,(function(t,n,i){return r(e,t,n,i)})),e},Ie.unary=function(t){return ks(t,1)},Ie.union=Yo,Ie.unionBy=Qo,Ie.unionWith=ts,Ie.uniq=function(t){return t&&t.length?si(t):[]},Ie.uniqBy=function(t,r){return t&&t.length?si(t,io(r,2)):[]},Ie.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?si(t,e,r):[]},Ie.unset=function(t,r){return null==t||ai(t,r)},Ie.unzip=rs,Ie.unzipWith=es,Ie.update=function(t,r,e){return null==t?t:ui(t,r,gi(e))},Ie.updateWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:ui(t,r,gi(n),i)},Ie.values=Ta,Ie.valuesIn=function(t){return null==t?[]:Br(t,za(t))},Ie.without=ns,Ie.words=qa,Ie.wrap=function(t,r){return As(gi(r),t)},Ie.xor=is,Ie.xorBy=os,Ie.xorWith=ss,Ie.zip=as,Ie.zipObject=function(t,r){return fi(t||[],r||[],Je)},Ie.zipObjectDeep=function(t,r){return fi(t||[],r||[],Kn)},Ie.zipWith=us,Ie.entries=Da,Ie.entriesIn=Ia,Ie.extend=Ca,Ie.extendWith=wa,iu(Ie,Ie),Ie.add=vu,Ie.attempt=Ka,Ie.camelCase=Pa,Ie.capitalize=$a,Ie.ceil=pu,Ie.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=da(n))==n?n:0),r!==e&&(r=(r=da(r))==r?r:0),nn(da(t),r,n)},Ie.clone=function(t){return on(t,4)},Ie.cloneDeep=function(t){return on(t,5)},Ie.cloneDeepWith=function(t,r){return on(t,5,r="function"==typeof r?r:e)},Ie.cloneWith=function(t,r){return on(t,4,r="function"==typeof r?r:e)},Ie.conformsTo=function(t,r){return null==r||sn(t,r,ja(r))},Ie.deburr=Ua,Ie.defaultTo=function(t,r){return null==t||t!=t?r:t},Ie.divide=Cu,Ie.endsWith=function(t,r,n){t=va(t),r=oi(r);var i=t.length,o=n=n===e?i:nn(ha(n),0,i);return(n-=r.length)>=0&&t.slice(n,o)==r},Ie.eq=Ts,Ie.escape=function(t){return(t=va(t))&&G.test(t)?t.replace(W,Kr):t},Ie.escapeRegExp=function(t){return(t=va(t))&&rt.test(t)?t.replace(tt,"\\$&"):t},Ie.every=function(t,r,n){var i=Hs(t)?Lr:hn;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},Ie.find=ds,Ie.findIndex=Uo,Ie.findKey=function(t,r){return Or(t,io(r,3),Cn)},Ie.findLast=gs,Ie.findLastIndex=Ho,Ie.findLastKey=function(t,r){return Or(t,io(r,3),wn)},Ie.floor=wu,Ie.forEach=vs,Ie.forEachRight=ps,Ie.forIn=function(t,r){return null==t?t:vn(t,io(r,3),za)},Ie.forInRight=function(t,r){return null==t?t:pn(t,io(r,3),za)},Ie.forOwn=function(t,r){return t&&Cn(t,io(r,3))},Ie.forOwnRight=function(t,r){return t&&wn(t,io(r,3))},Ie.get=ya,Ie.gt=Ps,Ie.gte=$s,Ie.has=function(t,r){return null!=t&&ho(t,r,kn)},Ie.hasIn=ka,Ie.head=Bo,Ie.identity=tu,Ie.includes=function(t,r,e,n){t=Bs(t)?t:Ta(t),e=e&&!n?ha(e):0;var i=t.length;return e<0&&(e=ge(i+e,0)),ia(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&Fr(t,r,e)>-1},Ie.indexOf=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:ha(e);return i<0&&(i=ge(n+i,0)),Fr(t,r,i)},Ie.inRange=function(t,r,n){return r=la(r),n===e?(n=r,r=0):n=la(n),function(t,r,e){return t>=ve(r,e)&&t<ge(r,e)}(t=da(t),r,n)},Ie.invoke=Ra,Ie.isArguments=Us,Ie.isArray=Hs,Ie.isArrayBuffer=Zs,Ie.isArrayLike=Bs,Ie.isArrayLikeObject=Ns,Ie.isBoolean=function(t){return!0===t||!1===t||Ys(t)&&xn(t)==v},Ie.isBuffer=Ws,Ie.isDate=Vs,Ie.isElement=function(t){return Ys(t)&&1===t.nodeType&&!ra(t)},Ie.isEmpty=function(t){if(null==t)return!0;if(Bs(t)&&(Hs(t)||"string"==typeof t||"function"==typeof t.splice||Ws(t)||sa(t)||Us(t)))return!t.length;var r=lo(t);if(r==b||r==S)return!t.size;if(Lo(t))return!_n(t).length;for(var e in t)if(Mt.call(t,e))return!1;return!0},Ie.isEqual=function(t,r){return zn(t,r)},Ie.isEqualWith=function(t,r,n){var i=(n="function"==typeof n?n:e)?n(t,r):e;return i===e?zn(t,r,e,n):!!i},Ie.isError=Gs,Ie.isFinite=function(t){return"number"==typeof t&&he(t)},Ie.isFunction=qs,Ie.isInteger=Ks,Ie.isLength=Xs,Ie.isMap=Qs,Ie.isMatch=function(t,r){return t===r||On(t,r,so(r))},Ie.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,On(t,r,so(r),n)},Ie.isNaN=function(t){return ta(t)&&t!=+t},Ie.isNative=function(t){if(mo(t))throw new Lt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},Ie.isNil=function(t){return null==t},Ie.isNull=function(t){return null===t},Ie.isNumber=ta,Ie.isObject=Js,Ie.isObjectLike=Ys,Ie.isPlainObject=ra,Ie.isRegExp=ea,Ie.isSafeInteger=function(t){return Ks(t)&&t>=-9007199254740991&&t<=c},Ie.isSet=na,Ie.isString=ia,Ie.isSymbol=oa,Ie.isTypedArray=sa,Ie.isUndefined=function(t){return t===e},Ie.isWeakMap=function(t){return Ys(t)&&lo(t)==z},Ie.isWeakSet=function(t){return Ys(t)&&"[object WeakSet]"==xn(t)},Ie.join=function(t,r){return null==t?"":fe.call(t,r)},Ie.kebabCase=Ha,Ie.last=Go,Ie.lastIndexOf=function(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==e&&(o=(o=ha(n))<0?ge(i+o,0):ve(o,i-1)),r==r?function(t,r,e){for(var n=e+1;n--;)if(t[n]===r)return n;return n}(t,r,o):Mr(t,Ar,o,!0)},Ie.lowerCase=Za,Ie.lowerFirst=Ba,Ie.lt=aa,Ie.lte=ua,Ie.max=function(t){return t&&t.length?fn(t,tu,yn):e},Ie.maxBy=function(t,r){return t&&t.length?fn(t,io(r,2),yn):e},Ie.mean=function(t){return Dr(t,tu)},Ie.meanBy=function(t,r){return Dr(t,io(r,2))},Ie.min=function(t){return t&&t.length?fn(t,tu,An):e},Ie.minBy=function(t,r){return t&&t.length?fn(t,io(r,2),An):e},Ie.stubArray=fu,Ie.stubFalse=du,Ie.stubObject=function(){return{}},Ie.stubString=function(){return""},Ie.stubTrue=function(){return!0},Ie.multiply=mu,Ie.nth=function(t,r){return t&&t.length?$n(t,ha(r)):e},Ie.noConflict=function(){return ir._===this&&(ir._=It),this},Ie.noop=ou,Ie.now=ys,Ie.pad=function(t,r,e){t=va(t);var n=(r=ha(r))?ne(t):0;if(!r||n>=r)return t;var i=(r-n)/2;return Ui(ue(i),e)+t+Ui(Tr(i),e)},Ie.padEnd=function(t,r,e){t=va(t);var n=(r=ha(r))?ne(t):0;return r&&n<r?t+Ui(r-n,e):t},Ie.padStart=function(t,r,e){t=va(t);var n=(r=ha(r))?ne(t):0;return r&&n<r?Ui(r-n,e)+t:t},Ie.parseInt=function(t,r,e){return e||null==r?r=0:r&&(r=+r),Ce(va(t).replace(et,""),r||0)},Ie.random=function(t,r,n){if(n&&"boolean"!=typeof n&&po(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=la(t),r===e?(r=t,t=0):r=la(r)),t>r){var i=t;t=r,r=i}if(n||t%1||r%1){var o=we();return ve(t+o*(r-t+tr("1e-"+((o+"").length-1))),r)}return Nn(t,r)},Ie.reduce=function(t,r,e){var n=Hs(t)?Sr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,cn)},Ie.reduceRight=function(t,r,e){var n=Hs(t)?Rr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,ln)},Ie.repeat=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:ha(r),Wn(va(t),r)},Ie.replace=function(){var t=arguments,r=va(t[0]);return t.length<3?r:r.replace(t[1],t[2])},Ie.result=function(t,r,n){var i=-1,o=(r=vi(r,t)).length;for(o||(o=1,t=e);++i<o;){var s=null==t?e:t[Ao(r[i])];s===e&&(i=o,s=n),t=qs(s)?s.call(t):s}return t},Ie.round=Lu,Ie.runInContext=t,Ie.sample=function(t){return(Hs(t)?Ge:Gn)(t)},Ie.size=function(t){if(null==t)return 0;if(Bs(t))return ia(t)?ne(t):t.length;var r=lo(t);return r==b||r==S?t.size:_n(t).length},Ie.snakeCase=Na,Ie.some=function(t,r,n){var i=Hs(t)?jr:ti;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},Ie.sortedIndex=function(t,r){return ri(t,r)},Ie.sortedIndexBy=function(t,r,e){return ei(t,r,io(e,2))},Ie.sortedIndexOf=function(t,r){var e=null==t?0:t.length;if(e){var n=ri(t,r);if(n<e&&Ts(t[n],r))return n}return-1},Ie.sortedLastIndex=function(t,r){return ri(t,r,!0)},Ie.sortedLastIndexBy=function(t,r,e){return ei(t,r,io(e,2),!0)},Ie.sortedLastIndexOf=function(t,r){if(null!=t&&t.length){var e=ri(t,r,!0)-1;if(Ts(t[e],r))return e}return-1},Ie.startCase=Wa,Ie.startsWith=function(t,r,e){return t=va(t),e=null==e?0:nn(ha(e),0,t.length),r=oi(r),t.slice(e,e+r.length)==r},Ie.subtract=bu,Ie.sum=function(t){return t&&t.length?$r(t,tu):0},Ie.sumBy=function(t,r){return t&&t.length?$r(t,io(r,2)):0},Ie.template=function(t,r,n){var i=Ie.templateSettings;n&&po(t,r,n)&&(r=e),t=va(t),r=wa({},r,i,qi);var o,s,a=wa({},r.imports,i.imports,qi),u=ja(a),c=Br(a,u),l=0,h=r.interpolate||wt,f="__p += '",d=kt((r.escape||wt).source+"|"+h.source+"|"+(h===X?lt:wt).source+"|"+(r.evaluate||wt).source+"|$","g"),g="//# sourceURL="+(Mt.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";t.replace(d,(function(r,e,n,i,a,u){return n||(n=i),f+=t.slice(l,u).replace(mt,Xr),e&&(o=!0,f+="' +\n__e("+e+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+r.length,r})),f+="';\n";var v=Mt.call(r,"variable")&&r.variable;if(v){if(ut.test(v))throw new Lt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(Z,"$1").replace(B,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Ka((function(){return bt(u,g+"return "+f).apply(e,c)}));if(p.source=f,Gs(p))throw p;return p},Ie.times=function(t,r){if((t=ha(t))<1||t>c)return[];var e=h,n=ve(t,h);r=io(r),t-=h;for(var i=Ur(n,r);++e<t;)r(e);return i},Ie.toFinite=la,Ie.toInteger=ha,Ie.toLength=fa,Ie.toLower=function(t){return va(t).toLowerCase()},Ie.toNumber=da,Ie.toSafeInteger=function(t){return t?nn(ha(t),-9007199254740991,c):0===t?t:0},Ie.toString=va,Ie.toUpper=function(t){return va(t).toUpperCase()},Ie.trim=function(t,r,n){if((t=va(t))&&(n||r===e))return Hr(t);if(!t||!(r=oi(r)))return t;var i=ie(t),o=ie(r);return Ci(i,Wr(i,o),Vr(i,o)+1).join("")},Ie.trimEnd=function(t,r,n){if((t=va(t))&&(n||r===e))return t.slice(0,oe(t)+1);if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,0,Vr(i,ie(r))+1).join("")},Ie.trimStart=function(t,r,n){if((t=va(t))&&(n||r===e))return t.replace(et,"");if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,Wr(i,ie(r))).join("")},Ie.truncate=function(t,r){var n=30,i="...";if(Js(r)){var o="separator"in r?r.separator:o;n="length"in r?ha(r.length):n,i="omission"in r?oi(r.omission):i}var s=(t=va(t)).length;if(Jr(t)){var a=ie(t);s=a.length}if(n>=s)return t;var u=n-ne(i);if(u<1)return i;var c=a?Ci(a,0,u).join(""):t.slice(0,u);if(o===e)return c+i;if(a&&(u+=c.length-u),ea(o)){if(t.slice(u).search(o)){var l,h=c;for(o.global||(o=kt(o.source,va(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var f=l.index;c=c.slice(0,f===e?u:f)}}else if(t.indexOf(oi(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Ie.unescape=function(t){return(t=va(t))&&V.test(t)?t.replace(N,se):t},Ie.uniqueId=function(t){var r=++Ft;return va(t)+r},Ie.upperCase=Va,Ie.upperFirst=Ga,Ie.each=vs,Ie.eachRight=ps,Ie.first=Bo,iu(Ie,(gu={},Cn(Ie,(function(t,r){Mt.call(Ie.prototype,r)||(gu[r]=t)})),gu),{chain:!1}),Ie.VERSION="4.17.21",wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ie[t].placeholder=Ie})),wr(["drop","take"],(function(t,r){Ue.prototype[t]=function(n){n=n===e?1:ge(ha(n),0);var i=this.__filtered__&&!r?new Ue(this):this.clone();return i.__filtered__?i.__takeCount__=ve(n,i.__takeCount__):i.__views__.push({size:ve(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Ue.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}})),wr(["filter","map","takeWhile"],(function(t,r){var e=r+1,n=1==e||3==e;Ue.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:io(t,3),type:e}),r.__filtered__=r.__filtered__||n,r}})),wr(["head","last"],(function(t,r){var e="take"+(r?"Right":"");Ue.prototype[t]=function(){return this[e](1).value()[0]}})),wr(["initial","tail"],(function(t,r){var e="drop"+(r?"":"Right");Ue.prototype[t]=function(){return this.__filtered__?new Ue(this):this[e](1)}})),Ue.prototype.compact=function(){return this.filter(tu)},Ue.prototype.find=function(t){return this.filter(t).head()},Ue.prototype.findLast=function(t){return this.reverse().find(t)},Ue.prototype.invokeMap=Vn((function(t,r){return"function"==typeof t?new Ue(this):this.map((function(e){return Rn(e,t,r)}))})),Ue.prototype.reject=function(t){return this.filter(Fs(io(t)))},Ue.prototype.slice=function(t,r){t=ha(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Ue(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=ha(r))<0?n.dropRight(-r):n.take(r-t)),n)},Ue.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ue.prototype.toArray=function(){return this.take(h)},Cn(Ue.prototype,(function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=Ie[i?"take"+("last"==r?"Right":""):r],s=i||/^find/.test(r);o&&(Ie.prototype[r]=function(){var r=this.__wrapped__,a=i?[1]:arguments,u=r instanceof Ue,c=a[0],l=u||Hs(r),h=function(t){var r=o.apply(Ie,Er([t],a));return i&&f?r[0]:r};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,g=s&&!f,v=u&&!d;if(!s&&l){r=v?r:new Ue(this);var p=t.apply(r,a);return p.__actions__.push({func:ls,args:[h],thisArg:e}),new $e(p,f)}return g&&v?t.apply(this,a):(p=this.thru(h),g?i?p.value()[0]:p.value():p)})})),wr(["pop","push","shift","sort","splice","unshift"],(function(t){var r=Rt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Ie.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(Hs(i)?i:[],t)}return this[e]((function(e){return r.apply(Hs(e)?e:[],t)}))}})),Cn(Ue.prototype,(function(t,r){var e=Ie[r];if(e){var n=e.name+"";Mt.call(Re,n)||(Re[n]=[]),Re[n].push({name:r,func:e})}})),Re[Ii(e,2).name]=[{name:"wrapper",func:e}],Ue.prototype.clone=function(){var t=new Ue(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},Ue.prototype.reverse=function(){if(this.__filtered__){var t=new Ue(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ue.prototype.value=function(){var t=this.__wrapped__.value(),r=this.__dir__,e=Hs(t),n=r<0,i=e?t.length:0,o=function(t,r,e){for(var n=-1,i=e.length;++n<i;){var o=e[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":r-=s;break;case"take":r=ve(r,t+s);break;case"takeRight":t=ge(t,r-s)}}return{start:t,end:r}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,h=l.length,f=0,d=ve(u,this.__takeCount__);if(!e||!n&&i==u&&d==u)return li(t,this.__actions__);var g=[];t:for(;u--&&f<d;){for(var v=-1,p=t[c+=r];++v<h;){var C=l[v],w=C.type,m=(0,C.iteratee)(p);if(2==w)p=m;else if(!m){if(1==w)continue t;break t}}g[f++]=p}return g},Ie.prototype.at=hs,Ie.prototype.chain=function(){return cs(this)},Ie.prototype.commit=function(){return new $e(this.value(),this.__chain__)},Ie.prototype.next=function(){this.__values__===e&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Ie.prototype.plant=function(t){for(var r,n=this;n instanceof Pe;){var i=Io(n);i.__index__=0,i.__values__=e,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,r},Ie.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ue){var r=t;return this.__actions__.length&&(r=new Ue(this)),(r=r.reverse()).__actions__.push({func:ls,args:[Jo],thisArg:e}),new $e(r,this.__chain__)}return this.thru(Jo)},Ie.prototype.toJSON=Ie.prototype.valueOf=Ie.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Ie.prototype.first=Ie.prototype.head,nr&&(Ie.prototype[nr]=function(){return this}),Ie}();sr?((sr.exports=ae)._=ae,or._=ae):ir._=ae}).call(w)}));class _n{constructor(t,r){var e,n;this.sv=t,this.storesByType={},this.storesXToType={},this.storesYToType={},null===(e=this.sv.selectionStoreConnector)||void 0===e||e.beforeUpdate(),this.columns=this.getViewportColumnData(r),null===(n=this.sv.scrollingService)||void 0===n||n.unregister()}onColumnResize(t,r,e){var n;null===(n=this.sv.dimensionProvider)||void 0===n||n.setDimensionSize(t,r.detail);const i=Fn.reduce(r.detail||{},((t,r,n)=>{const i=qr(e,parseInt(n,10));return i&&(t[i.prop]=Object.assign(Object.assign({},i),{size:r})),t}),{});this.sv.resize(i)}getViewportColumnData(t){const r=[];let e=0;return Yr.forEach((n=>{const i=this.sv.columnProvider.stores[n].store;if(!i.get("items").length)return;const o={colType:n,position:{x:e,y:1},contentHeight:t,fixWidth:"rgCol"!==n,uuid:`${this.sv.uuid}-${e}`,viewports:this.sv.viewportProvider.stores,dimensions:this.sv.dimensionProvider.stores,rowStores:this.sv.dataProvider.stores,colStore:i,onHeaderresize:t=>this.onColumnResize(n,t,i)};"rgCol"===n&&(o.onResizeViewport=t=>{var r;return null===(r=this.sv.viewportProvider)||void 0===r?void 0:r.setViewport(t.detail.dimension,{virtualSize:t.detail.size})});const s=this.gatherColumnData(o),a=this.registerCol(s.position.x,n),u=this.dataViewPort(o).reduce(((t,r)=>{const e=this.registerSegment(r.position);e.setLastCell(r.lastCell);const n=this.registerRow(r.position.y,r.type),i=Object.assign(Object.assign({},r),{rowSelectionStore:n,segmentSelectionStore:e.store,ref:t=>this.sv.selectionStoreConnector.registerSection(t),onSetRange:t=>e.setRangeArea(t.detail),onSetTempRange:t=>e.setTempArea(t.detail),onFocusCell:t=>{e.clearFocus(),this.sv.selectionStoreConnector.focus(e,t.detail)}});return t.push(i),t}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:a,dataPorts:u})),e++})),r}registerSegment(t){return this.sv.selectionStoreConnector.register(t)}registerRow(t,r){return this.storesByType[r]=t,this.storesYToType[t]=r,this.sv.selectionStoreConnector.registerRow(t).store}registerCol(t,r){return this.storesByType[r]=t,this.storesXToType[t]=r,this.sv.selectionStoreConnector.registerColumn(t).store}gatherColumnData(t){const r=t.uuid,e=t.dimensions[t.colType].store.get("realSize"),n={contentWidth:e,class:t.colType,[`${sn}`]:t.uuid,contentHeight:t.contentHeight,key:t.colType,onResizeViewport:t.onResizeViewport};t.fixWidth&&(n.style={minWidth:`${e}px`});const i={parent:r,colData:Gr(t.colStore),dimensionCol:t.dimensions[t.colType].store,groups:t.colStore.get("groups"),groupingDepth:t.colStore.get("groupingDepth"),onHeaderresize:t.onHeaderresize};return{prop:n,position:t.position,headerProp:i,parent:r,viewportCol:t.viewports[t.colType].store}}dataViewPort(t){const r={rowPinStart:"header",rgRow:"content",rowPinEnd:"footer"};let e=0;return Jr.reduce(((n,i)=>{const o=t.viewports[i].store.get("realCount")||"rgRow"===i,s=Object.assign(Object.assign({},t),{position:Object.assign(Object.assign({},t.position),{y:o?e:zn})});return n.push(this.dataPartition(s,i,r[i],"rgRow"!==i)),o&&e++,n}),[])}dataPartition(t,r,e,n){return{colData:t.colStore,viewportCol:t.viewports[t.colType].store,viewportRow:t.viewports[r].store,lastCell:Mn(t,r),slot:e,type:r,canDrag:!n,position:t.position,uuid:`${t.uuid}-${t.position.x}-${t.position.y}`,dataStore:t.rowStores[r].store,dimensionCol:t.dimensions[t.colType].store,dimensionRow:t.dimensions[r].store,style:n?{height:`${t.dimensions[r].store.get("realSize")}px`}:void 0}}scrollToCell(t){for(let r in t)this.sv.scrollingService.onScroll({dimension:"x"===r?"rgCol":"rgRow",coordinate:t[r]})}clearFocused(){this.sv.selectionStoreConnector.clearAll()}clearEdit(){this.sv.selectionStoreConnector.setEdit(!1)}getFocused(){const t=this.sv.selectionStoreConnector.focusedStore;if(!t)return null;const r=this.storesXToType[t.position.x],e=this.sv.columnProvider.getColumn(t.cell.x,r),n=this.storesYToType[t.position.x];return{column:e,model:this.sv.dataProvider.getModel(t.cell.x,n),cell:t.cell,colType:r,rowType:n}}getSelectedRange(){return this.sv.selectionStoreConnector.selectedRange}setEdit(t,r,e,n){var i;const o=this.storesByType;null===(i=this.sv.selectionStoreConnector)||void 0===i||i.setEditByCell({x:o[e],y:o[n]},{x:r,y:t})}}const An=({resize:t,editors:r,rowClass:n,readonly:i,range:o,columns:s,useClipboard:a,columnFilter:u,registerElement:c,onEdit:l,onScroll:h})=>{const f=[];for(let d of s){const s=[e("revogr-header",Object.assign({viewportCol:d.viewportCol},d.headerProp,{selectionStore:d.columnSelectionStore,slot:"header",columnFilter:u,canResize:t}))];d.dataPorts.forEach(((t,u)=>{const c=d.prop.key+(u+1),h=e("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:a,onSetEdit:({detail:t})=>l(t)}),e("revogr-data",Object.assign({},t,{[sn]:t.uuid},{key:c,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:"data"})),e("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),e("revogr-focus",{colData:t.colData,dataStore:t.dataStore,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(h)})),f.push(e("revogr-viewport-scroll",Object.assign({},d.prop,{ref:t=>c(t,d.prop.key),onScrollViewport:t=>h(t.detail,d.prop.key)}),s))}return f};class Dn{constructor(t){this.setViewport=t,this.elements={}}async onScroll(t,r){let e;for(let n in this.elements)if(this.isPinnedColumn(r)&&"rgCol"===t.dimension){if(n===r||!t.delta)continue;for(let r of this.elements[n])r.changeScroll&&(e=r.changeScroll(t))}else{if("rgCol"===t.dimension&&"headerRow"===n)continue;for(let r of this.elements[n])r.setScroll(t)}let n=t;e&&(n=await e),this.setViewport(n)}isPinnedColumn(t){return["colPinStart","colPinEnd"].indexOf(t)>-1}registerElements(t){this.elements=t}registerElement(t,r){this.elements[r]||(this.elements[r]=[]),t?this.elements[r].push(t):this.elements[r]&&delete this.elements[r]}unregister(){delete this.elements,this.elements={}}}class In extends re{constructor(t,r){super(t),this.dimensionProvider=r,this.stretchedColumn=null,this.scrollSize=fe(document),this.addEventListener("beforecolumnapplied",(({detail:{columns:t}})=>this.applyStretch(t)))}setScroll({type:t,hasScroll:r}){var e;"rgRow"===t&&this.stretchedColumn&&(null===(e=this.stretchedColumn)||void 0===e?void 0:e.initialSize)===this.stretchedColumn.size&&r&&(this.stretchedColumn.size-=this.scrollSize,this.apply(),this.dropChanges())}activateChanges(){this.addEventListener("scrollchange",(({detail:t})=>this.setScroll(t)))}dropChanges(){this.stretchedColumn=null,this.removeEventListener("scrollchange")}apply(){this.stretchedColumn&&this.dimensionProvider.setDimensionSize("rgCol",{[this.stretchedColumn.index]:this.stretchedColumn.size})}applyStretch(t){this.dropChanges();let r=this.revogrid.clientWidth-1;if(Fn.each(t,((t,e)=>{const n=this.dimensionProvider.stores[e].store.get("realSize");r-=n})),r>0){const e=t.rgCol.length-1,n=t.rgCol[e],i=(null==n?void 0:n.size)||this.revogrid.colSize||0,o=r+i-1;n&&!n.autoSize&&i<o&&(this.stretchedColumn={initialSize:o,index:e,size:o},this.apply(),this.activateChanges())}}}class Tn{constructor(){this.offset=0}renderAutoscroll(t,r){r&&(this.autoscrollEl=document.createElement("div"),this.autoscrollEl.classList.add("drag-auto-scroll-y"),r.appendChild(this.autoscrollEl))}autoscroll(t,r,e="translateX"){if(!this.autoscrollEl)return;const n=Math.min(t+10,r-3);this.autoscrollEl.style.transform=`${e}(${n}px)`,this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})}start(t,{dataEl:r,gridRect:e,scrollEl:n},i="left"){const o=n.getBoundingClientRect();o&&(this.offset=o[i]-e[i]),this.renderAutoscroll(t,r)}stop(){var t;this.element&&(this.element.hidden=!0),this.offset=0,null===(t=this.autoscrollEl)||void 0===t||t.remove(),this.autoscrollEl=void 0}showHandler(t,r,e="translateX"){this.element&&(this.offset&&(t=Math.max(t,this.offset)),t=Math.min(t,r),this.element.style.transform=`${e}(${t}px)`,this.element.hidden=!1)}render(){return e("div",{class:"drag-position-y",hidden:!0,ref:t=>this.element=t})}}function Pn(t,r,e){const n=new CustomEvent(r,{detail:e,cancelable:!0,bubbles:!0});return null==t||t.dispatchEvent(n),n}class $n extends re{constructor(t,r){super(t),this.revogrid=t,this.providers=r,this.moveFunc=m((t=>this.doMove(t)),5),this.staticDragData=null,this.dragData=null,this.localSubscriptions={},this.orderUi=new Tn,t.registerVNode([this.orderUi.render()]),this.localSubscriptions.mouseleave={target:document,callback:t=>this.onMouseOut(t)},this.localSubscriptions.mouseup={target:document,callback:t=>this.onMouseUp(t)},this.localSubscriptions.mousemove={target:document,callback:t=>this.move(t)},this.addEventListener("column-click",(({detail:t})=>this.dragStart(t)))}dragStart({event:t,data:r}){if(t.defaultPrevented)return;const{defaultPrevented:e}=Pn(this.revogrid,"column-drag-start",r);if(e)return;this.clearOrder();const{mouseleave:n,mouseup:i,mousemove:o}=this.localSubscriptions;n.target.addEventListener("mouseleave",n.callback),i.target.addEventListener("mouseup",i.callback);const s=t.target.closest("revogr-header"),a=t.target.closest("revogr-viewport-scroll");if(!s||!a)return;if(ne(r))return;const u=this.getDimension(r.pin||"rgCol"),c=this.revogrid.getBoundingClientRect(),l=s.getBoundingClientRect(),h=ve(u,Un(t.x,c.left,l.left-c.left));this.staticDragData={startPos:t.x,startItem:h,data:r,dataEl:s,scrollEl:a,gridEl:this.revogrid,cols:u},this.dragData=this.getData(this.staticDragData),o.target.addEventListener("mousemove",o.callback),this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))}doMove(t){if(!this.staticDragData)return;const r=this.dragData=this.getData(this.staticDragData);if(r&&Math.abs(this.staticDragData.startPos-t.x)>10){const e=Un(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset),n=ve(this.staticDragData.cols,e);this.orderUi.autoscroll(e,r.elRect.width),this.orderUi.showHandler(n.end+r.scrollOffset,r.gridRect.width)}}move(t){Pn(this.revogrid,"column-mouse-move",Object.assign({},t)),this.moveFunc(t)}onMouseOut(t){this.clearOrder()}onMouseUp(t){if(this.dragData){let r=Un(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset);r<0&&(r=0);const e=ve(this.staticDragData.cols,r),n=this.providers.column.stores[this.dragData.type].store,i=[...n.get("items")],{defaultPrevented:o}=Pn(this.revogrid,"before-column-drag-end",Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:e,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]}));if(!o){const t=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice(e.itemIndex,0,...t),n.set("items",i)}Pn(this.revogrid,"column-drag-end",this.dragData)}this.clearOrder()}clearLocalSubscriptions(){Mr(this.localSubscriptions,(({target:t,callback:r},e)=>t.removeEventListener(e,r)))}clearOrder(){this.staticDragData=null,this.dragData=null,this.clearLocalSubscriptions(),this.orderUi.stop()}clearSubscriptions(){super.clearSubscriptions(),this.clearLocalSubscriptions()}getData({gridEl:t,dataEl:r,data:e}){const n=t.getBoundingClientRect(),i=r.getBoundingClientRect();return{elRect:i,gridRect:n,type:e.pin||"rgCol",scrollOffset:i.left-n.left}}getDimension(t){return this.providers.dimension.stores[t].getCurrentState()}}function Un(t,r,e){return t-r-e}const Hn=class{constructor(t){n(this,t),this.beforeedit=i(this,"beforeedit",7),this.beforerangeedit=i(this,"beforerangeedit",7),this.afteredit=i(this,"afteredit",7),this.beforeautofill=i(this,"beforeautofill",7),this.beforeaange=i(this,"beforeaange",7),this.afterfocus=i(this,"afterfocus",7),this.roworderchanged=i(this,"roworderchanged",7),this.beforesourcesortingapply=i(this,"beforesourcesortingapply",7),this.beforesortingapply=i(this,"beforesortingapply",7),this.beforesorting=i(this,"beforesorting",7),this.rowdragstart=i(this,"rowdragstart",7),this.headerclick=i(this,"headerclick",7),this.beforecellfocus=i(this,"beforecellfocus",7),this.beforefocuslost=i(this,"beforefocuslost",7),this.beforesourceset=i(this,"beforesourceset",7),this.aftersourceset=i(this,"aftersourceset",7),this.beforecolumnsset=i(this,"beforecolumnsset",7),this.beforecolumnapplied=i(this,"beforecolumnapplied",7),this.aftercolumnsset=i(this,"aftercolumnsset",7),this.beforefilterapply=i(this,"beforefilterapply",7),this.beforefiltertrimmed=i(this,"beforefiltertrimmed",7),this.beforetrimmed=i(this,"beforetrimmed",7),this.aftertrimmed=i(this,"aftertrimmed",7),this.viewportscroll=i(this,"viewportscroll",7),this.beforeexport=i(this,"beforeexport",7),this.beforeeditstart=i(this,"beforeeditstart",7),this.aftercolumnresize=i(this,"aftercolumnresize",7),this.frameSize=1,this.rowSize=0,this.colSize=100,this.range=!1,this.readonly=!1,this.resize=!1,this.canFocus=!0,this.useClipboard=!0,this.columns=[],this.source=[],this.pinnedTopSource=[],this.pinnedBottomSource=[],this.rowDefinitions=[],this.editors={},this.columnTypes={},this.theme="default",this.rowClass="",this.autoSizeColumn=!1,this.filter=!1,this.canMoveColumns=!1,this.trimmedRows={},this.exporting=!1,this.stretch=!0,this.extraElements=[],this.uuid=null,this.viewport=null,this.internalPlugins=[],this.subscribers={}}async refresh(t="all"){this.dataProvider.refresh(t)}async scrollToRow(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgRow"});await this.scrollToCoordinate({y:r})}async scrollToColumnIndex(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});await this.scrollToCoordinate({x:r})}async scrollToColumnProp(t){const r=this.columnProvider.getColumnIndexByProp(t,"rgCol");if(r<0)return;const e=this.dimensionProvider.getViewPortPos({coordinate:r,dimension:"rgCol"});await this.scrollToCoordinate({x:e})}async updateColumns(t){this.columnProvider.updateColumns(t)}async addTrimmed(t,r="external",e="rgRow"){const n=this.beforetrimmed.emit({trimmed:t,trimmedType:r,type:e});return n.defaultPrevented||(this.dataProvider.setTrimmed({[r]:n.detail.trimmed},e),this.aftertrimmed.emit()),n}async scrollToCoordinate(t){var r;null===(r=this.viewport)||void 0===r||r.scrollToCell(t)}async setCellEdit(t,r,e="rgRow"){var n;const i=ie.getColumnByProp(this.columns,r);i&&(await ge(),null===(n=this.viewport)||void 0===n||n.setEdit(t,this.columnProvider.getColumnIndexByProp(r,"rgCol"),i.pin||"rgCol",e))}async registerVNode(t){this.extraElements.push(...t),this.extraElements=[...this.extraElements]}async getSource(t="rgRow"){return this.dataProvider.stores[t].store.get("source")}async getVisibleSource(t="rgRow"){return Gr(this.dataProvider.stores[t].store)}async getSourceStore(t="rgRow"){return this.dataProvider.stores[t].store}async getColumnStore(t="rgCol"){return this.columnProvider.stores[t].store}async updateColumnSorting(t,r,e,n){return this.columnProvider.updateColumnSorting(t,r,e,n)}async clearSorting(){this.columnProvider.clearSorting()}async getColumns(){return this.columnProvider.getColumns()}async clearFocus(){var t;const r=await this.getFocused();this.beforefocuslost.emit(r).defaultPrevented||(this.selectionStoreConnector.clearAll(),null===(t=this.viewport)||void 0===t||t.clearFocused())}async getPlugins(){return[...this.internalPlugins]}async getFocused(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getFocused()}async getSelectedRange(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getSelectedRange()}handleOutsideClick({target:t}){(null==t?void 0:t.closest(`[${sn}="${this.uuid}"]`))||this.clearFocus()}onRowDragStarted(t){var r;t.cancelBubble=!0;const e=this.rowdragstart.emit(t.detail);e.defaultPrevented?t.preventDefault():null===(r=this.orderService)||void 0===r||r.start(this.element,Object.assign(Object.assign({},t.detail),e.detail))}onRowDragEnd(){var t;null===(t=this.orderService)||void 0===t||t.end()}onRowDrag({detail:t}){var r;null===(r=this.orderService)||void 0===r||r.move(t)}onRowMouseMove(t){var r;t.cancelBubble=!0,null===(r=this.orderService)||void 0===r||r.moveTip(t.detail)}async onBeforeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r,detail:e}=this.beforeedit.emit(t.detail);await ge(),r||(this.dataProvider.setCellData(e),this.afteredit.emit(e))}onBeforeRangeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforerangeedit.emit(t.detail);r?t.preventDefault():this.afteredit.emit(t.detail)}onRangeChanged(t){t.cancelBubble=!0,this.beforeaange.emit(t.detail).defaultPrevented&&t.preventDefault(),this.beforeautofill.emit(t.detail)}onRowDropped(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.roworderchanged.emit(t.detail);r&&t.preventDefault()}onHeaderClick(t){const{defaultPrevented:r}=this.headerclick.emit(Object.assign(Object.assign({},t.detail.column),{originalEvent:t.detail.originalEvent}));r&&t.preventDefault()}onCellFocus(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforecellfocus.emit(t.detail);this.canFocus&&!r||t.preventDefault()}columnChanged(t=[]){this.dimensionProvider.drop();const r=ie.getColumns(t,0,this.columnTypes);this.beforecolumnsset.emit(r);for(let t of Yr){const e=r.columns[t];this.dimensionProvider.setRealSize(e.length,t),this.dimensionProvider.setColumns(t,ie.getSizes(e),"rgCol"!==t)}this.beforecolumnapplied.emit(r);const e=this.columnProvider.setColumns(r);this.aftercolumnsset.emit({columns:e,order:this.columnProvider.order})}themeChanged(t){this.themeService.register(t),this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow"),this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")}dataChanged(t=[]){let r=[...t];r=this.beforesourceset.emit({type:"rgRow",source:r}).detail.source,r=this.dataProvider.setData(r,"rgRow"),this.aftersourceset.emit({type:"rgRow",source:r})}dataBottomChanged(t=[]){this.dataProvider.setData(t,"rowPinEnd")}dataTopChanged(t=[]){this.dataProvider.setData(t,"rowPinStart")}rowDefChanged(t=[]){if(!t.length)return;const r=zr(t,((t,r)=>(t[r.type]||(t[r.type]={}),r.size&&(t[r.type].sizes||(t[r.type].sizes={}),t[r.type].sizes[r.index]=r.size),t)),{});Mr(r,((t,r)=>{t.sizes&&this.dimensionProvider.setDimensionSize(r,t.sizes)}))}trimmedRowsChanged(t={}){this.addTrimmed(t)}groupingChanged(t={}){let r;for(let t of this.internalPlugins){const e=t;if(e.setGrouping){r=e;break}}r&&r.setGrouping(t||{})}applyStretch(t){"false"===t&&(t=!1);let r=this.internalPlugins.filter((t=>!!t.applyStretch))[0];if(t)r?r.applyStretch(this.columnProvider.getRawColumns()):this.internalPlugins.push(new In(this.element,this.dimensionProvider));else if(r){const t=this.internalPlugins.indexOf(r);this.internalPlugins.splice(t,1)}}connectedCallback(){this.viewportProvider=new Re,this.themeService=new E({rowSize:this.rowSize}),this.dimensionProvider=new me(this.viewportProvider),this.columnProvider=new ie,this.dataProvider=new oe(this.dimensionProvider),this.uuid=`${(new Date).getTime()}-rvgrid`;const t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};this.autoSizeColumn&&this.internalPlugins.push(new je(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},"object"==typeof this.autoSizeColumn?this.autoSizeColumn:void 0)),this.filter&&this.internalPlugins.push(new Ze(this.element,this.uuid,"object"==typeof this.filter?this.filter:void 0)),this.exporting&&this.internalPlugins.push(new Ln(this.element)),this.internalPlugins.push(new nn(this.element)),this.plugins&&this.plugins.forEach((r=>{this.internalPlugins.push(new r(this.element,t))})),this.canMoveColumns&&this.internalPlugins.push(new $n(this.element,t)),this.internalPlugins.push(new bn(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 On,this.scrollingService=new Dn((t=>{this.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension}),this.viewportscroll.emit(t)})),this.subscribers={click:this.handleOutsideClick.bind(this)};for(let t in this.subscribers)document.addEventListener(t,this.subscribers[t])}disconnectedCallback(){Mr(this.internalPlugins,(t=>t.destroy())),this.internalPlugins=[];for(let t in this.subscribers)document.removeEventListener(t,this.subscribers[t]),delete this.subscribers[t]}render(){const t=this.dimensionProvider.stores.rgRow.store.get("realSize");this.viewport=new _n({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:t=>this.aftercolumnresize.emit(t)},t);const r=[];if(this.rowHeaders){const n=this.viewport.columns[0];r.push(e("revogr-row-headers",{height:t,resize:this.resize,dataPorts:n.dataPorts,headerProp:n.headerProp,uiid:n.prop[sn],rowHeaderColumn:"object"==typeof this.rowHeaders?this.rowHeaders:void 0,onScrollViewport:({detail:t})=>this.scrollingService.onScroll(t,"headerRow"),onElementToScroll:({detail:t})=>this.scrollingService.registerElement(t,"headerRow")}))}return r.push(e(An,{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:t=>{this.beforeeditstart.emit(t).defaultPrevented||this.selectionStoreConnector.setEdit(!t.isCancel&&t.val)},registerElement:(t,r)=>this.scrollingService.registerElement(t,r),onScroll:t=>this.scrollingService.onScroll(t)})),e(o,Object.assign({},{[`${sn}`]:this.uuid}),e(kn,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:t=>this.orderService=t,registerElement:(t,r)=>this.scrollingService.registerElement(t,r),nakedClick:()=>this.viewport.clearEdit(),onScroll:t=>this.scrollingService.onScroll(t)},r),this.extraElements)}get element(){return s(this)}static get watchers(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}}};Hn.style=".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}";class Zn{constructor(t,r){this.dataStore=t,this.source=r,this.unsubscribe=[],this.hasGrouping=!1,this.unsubscribe.push(r.onChange("source",(t=>this.checkGrouping(t)))),this.checkGrouping(r.get("source"))}get columns(){return Gr(this.source)}checkGrouping(t){for(let r of t){if(cn(r))return void(this.hasGrouping=!0);this.hasGrouping=!1}}isReadOnly(t,r){var e;const n=null===(e=this.columns[r])||void 0===e?void 0:e.readonly;return"function"==typeof n?n(this.rowDataModel(t,r)):n}static doMerge(t,r){let e=Object.assign(Object.assign({},r),t);return r.class&&("object"==typeof r.class&&"object"==typeof e.class?e.class=Object.assign(Object.assign({},r.class),e.class):"string"==typeof r.class&&"object"==typeof e.class?e.class[r.class]=!0:"string"==typeof e.class&&(e.class+=" "+r.class)),r.style&&(e.style=Object.assign(Object.assign({},r.style),e.style)),e}mergeProperties(t,r,e){var n;const i={rgCell:!0,disabled:this.isReadOnly(t,r)};let o=Object.assign(Object.assign({},e),{class:i});const s=null===(n=this.columns[r])||void 0===n?void 0:n.cellProperties;if(s){const e=s(this.rowDataModel(t,r));return e?Zn.doMerge(o,e):o}return o}customRenderer(t,r,n){var i;const o=null===(i=this.columns[r])||void 0===i?void 0:i.cellTemplate;if(o)return o(e,n)}getRowClass(t,r){return(qr(this.dataStore,t)||{})[r]||""}getCellData(t,r){const e=this.rowDataModel(t,r);return Zn.getData(e.model[e.prop])}getSaveData(t,r,e){void 0===e&&(e=this.getCellData(t,r));const n=this.rowDataModel(t,r);return{prop:n.prop,rowIndex:t,val:e,model:n.model,type:this.dataStore.get("type")}}getCellEditor(t,r,e){var n;const i=null===(n=this.columns[r])||void 0===n?void 0:n.editor;if(i)return"string"==typeof i?e[i]:i}rowDataModel(t,r){const e=this.columns[r];return{prop:null==e?void 0:e.prop,model:qr(this.dataStore,t)||{},data:this.dataStore.get("source"),column:e,rowIndex:t}}getRangeData(t){const r={},e=t.oldProps.length,n=this.copyRangeArray(t.oldRange,t.oldProps,this.dataStore),i=n.length;for(let o=t.newRange.y,s=0;o<t.newRange.y1+1;o++,s++){const a=n[s%i];for(let n=t.newRange.x,i=0;n<t.newRange.x1+1;n++,i++){if(o>=t.oldRange.y&&o<=t.oldRange.y1&&n>=t.oldRange.x&&n<=t.oldRange.x1)continue;const s=this.columns[n].prop,u=i%e;this.isReadOnly(o,n)||(r[o]||(r[o]={}),r[o][s]=a[u])}}return r}getTransformedDataToApply(t,r){const e={},n=r.length,i=this.columns.length,o=this.dataStore.get("items").length;let s=t.y,a=0;for(let u=0;s<o&&u<n;s++,u++){const o=r[u%n],c=(null==o?void 0:o.length)||0;let l=t.x;for(let t=0;l<i&&t<c;l++,t++){const r=this.columns[l].prop,n=t%i;this.isReadOnly(s,l)||(e[s]||(e[s]={}),e[s][r]=o[n])}a=Math.max(a,l-1)}return{changed:e,range:Rn(t,{y:s-1,x:a})}}applyRangeData(t){const r={};for(let e in t){const n=r[e]=qr(this.dataStore,parseInt(e,10));for(let r in t[e])n[r]=t[e][r]}Kr(this.dataStore,r)}getRangeStaticData(t,r){const e={};for(let n=t.y,i=0;n<t.y1+1;n++,i++)for(let i=t.x,o=0;i<t.x1+1;i++,o++){const t=this.columns[i].prop;this.isReadOnly(n,i)||(e[n]||(e[n]={}),e[n][t]=r)}return e}copyRangeArray(t,r,e){const n=[];for(let i=t.y;i<t.y1+1;i++){const t=[];for(let n of r){const r=qr(e,i);t.push(r[n])}n.push(t)}return n}static getData(t){return null==t?"":t.toString()}destroy(){this.unsubscribe.forEach((t=>t()))}}const Bn=({model:t,canDrag:r,onDragStart:n})=>{const i=[];return t.column.rowDrag&&function(t,r){return"function"==typeof t?t(r):!!t}(t.column.rowDrag,t)&&i.push(r?e("span",{class:"revo-draggable",onMouseDown:t=>n(t)},e("span",{class:"revo-drag-icon"})):e("span",{class:"revo-draggable"})),i.push(`${Zn.getData(t.model[t.prop])}`),i},Nn=({rowClass:t,size:r,start:n,style:i,depth:o},s)=>e("div",{class:`rgRow ${t||""}`,style:Object.assign(Object.assign({},i),{height:`${r}px`,transform:`translateY(${n}px)`,paddingLeft:o?10*o+"px":void 0})},s);function Wn(t,r,e){const n=new CustomEvent("groupExpandClick",{detail:{model:r,virtualIndex:e},cancelable:!0,bubbles:!0});t.target.dispatchEvent(n)}const Vn=t=>{const{model:r,itemIndex:n,hasExpand:i,groupingCustomRenderer:o}=t,s=r["__rvgr-name"],a=r["__rvgr-expanded"],u=parseInt(r["__rvgr-depth"],10)||0;return i?o?e(Nn,Object.assign({},t,{rowClass:"groupingRow",depth:u}),e("div",{onClick:t=>Wn(t,r,n)},o(e,{name:s,itemIndex:n,expanded:a,depth:u}))):e(Nn,Object.assign({},t,{rowClass:"groupingRow",depth:u}),e("button",{class:{"group-expand":!0},onClick:t=>Wn(t,r,n)},e("svg",{"aria-hidden":"true",style:{transform:`rotate(${a?0:-90}deg)`},focusable:"false",viewBox:"0 0 448 512"},e("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),s):e(Nn,Object.assign({},t,{rowClass:"groupingRow",depth:u}))},Gn=class{constructor(t){n(this,t),this.dragStartCell=i(this,"dragStartCell",7)}onStoreChange(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Zn(this.dataStore,this.colData)}connectedCallback(){this.onStoreChange()}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}render(){var t;const r=this.viewportRow.get("items"),n=this.viewportCol.get("items");if(!this.columnService.columns.length||!r.length||!n.length)return"";const i=null===(t=this.rowSelectionStore)||void 0===t?void 0:t.get("range"),o=[],s=this.dataStore.get("groupingDepth"),a=this.dataStore.get("groupingCustomRenderer");for(let t of r){const r=qr(this.dataStore,t.itemIndex);if(un(r)){o.push(e(Vn,Object.assign({},t,{model:r,groupingCustomRenderer:a,hasExpand:this.columnService.hasGrouping})));continue}const u=[];let c=this.rowClass?this.columnService.getRowClass(t.itemIndex,this.rowClass):"";i&&t.itemIndex>=i.y&&t.itemIndex<=i.y1&&(c+=" focused-rgRow");for(let r of n)u.push(this.getCellRenderer(t,r,this.canDrag,this.columnService.hasGrouping?s:0));o.push(e(Nn,{rowClass:c,size:t.size,start:t.start},u))}return o}getCellRenderer(t,r,n=!1,i=0){const o=this.columnService.rowDataModel(t.itemIndex,r.itemIndex),s={"data-rgCol":r.itemIndex,"data-rgRow":t.itemIndex,style:{width:`${r.size}px`,transform:`translateX(${r.start}px)`}};i&&!r.itemIndex&&(s.style.paddingLeft=10*i+"px");const a=this.columnService.mergeProperties(t.itemIndex,r.itemIndex,s),u=this.columnService.customRenderer(t.itemIndex,r.itemIndex,o);return void 0!==u?e("div",Object.assign({},a),u):o.column?e("div",Object.assign({},a),e(Bn,{model:o,canDrag:n,onDragStart:t=>this.dragStartCell.emit(t)})):void console.error("Investigate column problem")}get element(){return s(this)}static get watchers(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}}};var qn,Kn;Gn.style=".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}",function(t){t[t.MOUSE_LEFT=1]="MOUSE_LEFT",t[t.MOUSE_RIGHT=3]="MOUSE_RIGHT",t[t.MOUSE_MIDDLE=2]="MOUSE_MIDDLE",t[t.BACKSPACE=8]="BACKSPACE",t[t.COMMA=188]="COMMA",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.END=35]="END",t[t.ENTER=13]="ENTER",t[t.ESCAPE=27]="ESCAPE",t[t.CONTROL=17]="CONTROL",t[t.COMMAND_LEFT=91]="COMMAND_LEFT",t[t.COMMAND_RIGHT=93]="COMMAND_RIGHT",t[t.COMMAND_FIREFOX=224]="COMMAND_FIREFOX",t[t.ALT=18]="ALT",t[t.HOME=36]="HOME",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.PAGE_UP=33]="PAGE_UP",t[t.PERIOD=190]="PERIOD",t[t.SPACE=32]="SPACE",t[t.SHIFT=16]="SHIFT",t[t.CAPS_LOCK=20]="CAPS_LOCK",t[t.TAB=9]="TAB",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.A=65]="A",t[t.C=67]="C",t[t.D=68]="D",t[t.F=70]="F",t[t.L=76]="L",t[t.O=79]="O",t[t.P=80]="P",t[t.S=83]="S",t[t.V=86]="V",t[t.X=88]="X"}(qn||(qn={})),function(t){t.ENTER="Enter",t.ENTER_NUM="NumpadEnter",t.V="KeyV",t.C="KeyC",t.ESCAPE="Escape",t.TAB="Tab",t.BACKSPACE="Backspace",t.DELETE="Delete",t.ARROW_RIGHT="ArrowRight",t.ARROW_LEFT="ArrowLeft",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.SHIFT="Shift"}(Kn||(Kn={}));const Xn=qn;var Jn;!function(t){t.mac="Mac"}(Jn||(Jn={}));const Yn=Jn;var Qn=function(t){return t!=t},ti=function(t){return null==t?[]:function(t,r){return dr(r,(function(r){return t[r]}))}(t,Y(t))},ri=Math.max,ei=function(t,r,e,n){t=J(t)?t:ti(t),e=e&&!n?Ar(e):0;var i=t.length;return e<0&&(e=ri(i+e,0)),Be(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&function(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Fr(t,Qn,e)}(t,r,e)>-1};function ni(t,r){return r.includes(Yn.mac)?ei([Xn.COMMAND_LEFT,Xn.COMMAND_RIGHT,Xn.COMMAND_FIREFOX],t):Xn.CONTROL===t}function ii(t){return t===Kn.ENTER||t===Kn.ENTER_NUM}class oi{constructor(t,r){this.column=t,this.saveCallback=r,this.element=null,this.editCell=null}async componentDidRender(){var t;this.editInput&&(await ge(),null===(t=this.editInput)||void 0===t||t.focus())}onKeyDown(t){const r=ii(t.code),e=Kn.TAB===t.code;(e||r)&&t.target&&this.saveCallback&&!t.isComposing&&(this.editInput.blur(),this.saveCallback(t.target.value,e))}render(){var t;return e("input",{type:"text",value:(null===(t=this.editCell)||void 0===t?void 0:t.val)||"",ref:t=>{this.editInput=t},onKeyDown:t=>this.onKeyDown(t)})}}const si=class{constructor(t){n(this,t),this.cellEdit=i(this,"cellEdit",3),this.closeEdit=i(this,"closeEdit",3),this.currentEditor=null}onSave(t,r){this.editCell&&this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:t,preventFocus:r})}componentWillRender(){this.currentEditor||(this.currentEditor=this.editor?new this.editor(this.column,((t,r)=>this.onSave(t,r)),(t=>this.closeEdit.emit(t))):new oi(this.column,((t,r)=>this.onSave(t,r))))}componentDidRender(){this.currentEditor&&(this.currentEditor.element=this.element.firstElementChild,this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender())}disconnectedCallback(){this.currentEditor&&(this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback(),this.currentEditor.element&&(this.currentEditor.element=null),this.currentEditor=null)}render(){return this.currentEditor?(this.currentEditor.editCell=this.editCell,e(o,{class:"edit-input-wrapper"},this.currentEditor.render(e))):""}get element(){return s(this)}};function ai({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s,height:a,width:u}=e.getBoundingClientRect();let c=r-o;c>=a&&(c=a-1);let l=t-s;l>=u&&(l=u-1);const h=ve(n,c),f=ve(i,l);return f.itemIndex<0&&(f.itemIndex=0),h.itemIndex<0&&(h.itemIndex=0),{x:f.itemIndex,y:h.itemIndex}}function ui({x:t,y:r},{lastCell:e}){return t>=e.x||r>=e.y}function ci({x:t,y:r,x1:e,y1:n},i,o){const s=pe(i,r).start,a=pe(o,t).start,u=pe(i,n).end,c=pe(o,e).end;return{left:a,right:c,top:s,bottom:u,width:c-a,height:u-s}}function li(t,r,e){return{left:`${(n=ci(t,r,e)).left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`};var n}si.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";const hi=class{constructor(t){n(this,t),this.afterFocus=i(this,"afterfocus",7)}changed(t,r){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"});const e=qr(this.dataStore,r.y),n=qr(this.colData,r.x);this.afterFocus.emit({model:e,column:n})}componentDidRender(){const t=this.selectionStore.get("focus");t&&this.el&&this.changed(this.el,t)}render(){const t=this.selectionStore.get("focus");if(t){const r=li(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:"focused-cell",style:r})}}get el(){return s(this)}};hi.style=".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 fi,di=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),gi=function(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n},vi=function(t,r,e,n){return Q(t,(function(t,i,o){r(n,t,e(t),o)})),n},pi=(fi=function(t,r,e){!function(t,r,e){"__proto__"==r&&di?di(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}(t,e,r)},function(t,r){var e={};return(_(t)?gi:vi)(t,fi,Rr(r),e)});const Ci=({column:t})=>e("i",{class:t.order});var wi;!function(t){t.start="resize:start",t.move="resize:move",t.end="resize:end"}(wi||(wi={}));const mi={"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"}};class Li{constructor(t,r){var e;this.initialProps=t,this.$event=r,this.mouseX=0,this.mouseY=0,this.width=0,this.height=0,this.changeX=0,this.changeY=0,this.disableCalcMap=15,this.props=(e=t,Object.assign(Object.assign({},e),{fitParent:e.fitParent||!1,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})),this.mouseMoveFunc=this.handleMove.bind(this),this.mouseUpFunc=this.handleUp.bind(this),this.minW=this.props.minWidth,this.minH=this.props.minHeight,this.maxW=this.props.maxWidth,this.maxH=this.props.maxHeight,this.parent={width:0,height:0},this.resizeState=0}set(t){this.$el=t,this.props.disableAttributes.forEach((t=>{switch(t){case"l":this.disableCalcMap&=-2;break;case"t":this.disableCalcMap&=-3;break;case"w":this.disableCalcMap&=-5;break;case"h":this.disableCalcMap&=-9}}))}emitEvent(t,r){this.$event&&this.$event(Object.assign({eventName:t,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},r))}static isTouchEvent(t){var r;return(null===(r=t.touches)||void 0===r?void 0:r.length)>=0}handleMove(t){if(!this.resizeState)return;let r,e;Li.isTouchEvent(t)?(r=t.touches[0].clientY,e=t.touches[0].clientX):(r=t.clientY,e=t.clientX);let n=this.resizeState&mi["resizable-r"].bit||this.resizeState&mi["resizable-l"].bit;if((this.resizeState&mi["resizable-t"].bit||this.resizeState&mi["resizable-b"].bit)&&8&this.disableCalcMap){let t=this.changeY+(r-this.mouseY);const e=this.height+t;e<this.minH&&(t=-(this.height-this.minH)),this.maxH&&e>this.maxH&&(t=this.maxH-this.height),this.changeY=t,this.mouseY=r,this.activeResizer&&(this.activeResizer.style.bottom=-this.changeY+"px")}if(n&&4&this.disableCalcMap){let t=this.changeX+(e-this.mouseX);const r=this.width+t;r<this.minW&&(t=-(this.width-this.minW)),this.maxW&&r>this.maxW&&(t=this.maxW-this.width),this.changeX=t,this.mouseX=e,this.activeResizer&&(this.activeResizer.style.right=-this.changeX+"px")}this.emitEvent(wi.move)}handleDown(t){if(!t.defaultPrevented){t.preventDefault(),this.dropInitial();for(let r in mi){const e=t.target;if(this.$el.contains(e)&&(null==e?void 0:e.classList.contains(r))){document.body.style.cursor=mi[r].cursor,Li.isTouchEvent(t)?this.setInitials(t.touches[0],e):(t.preventDefault&&t.preventDefault(),this.setInitials(t,e)),this.resizeState=mi[r].bit,this.emitEvent(wi.start);break}}this.bindMove()}}handleUp(t){t.preventDefault(),0!==this.resizeState&&(this.resizeState=0,document.body.style.cursor="",this.emitEvent(wi.end)),this.dropInitial(),this.unbindMove()}setInitials({clientX:t,clientY:r},e){const n=getComputedStyle(this.$el);if(this.$el.classList.add("active"),this.activeResizer=e,4&this.disableCalcMap){this.mouseX=t,this.width=this.$el.clientWidth,this.parent.width=this.$el.parentElement.clientWidth;const r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);this.minW=Math.max(r,this.initialProps.minWidth||0),this.initialProps.maxWidth&&(this.maxW=Math.max(this.width,this.initialProps.maxWidth))}if(8&this.disableCalcMap){this.mouseY=r,this.height=this.$el.clientHeight,this.parent.height=this.$el.parentElement.clientHeight;const t=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);this.minH=Math.max(t,this.initialProps.minHeight||0),this.initialProps.maxHeight&&(this.maxH=Math.max(this.height,this.initialProps.maxHeight))}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH,this.width=this.height=0,this.activeResizer&&this.activeResizer.removeAttribute("style"),this.$el.classList.remove("active"),this.activeResizer=null}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.addEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.removeEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const bi=(t,r)=>{const n=[],i=t.canResize&&new Li(t,(r=>{r.eventName===wi.end&&t.onResize&&t.onResize(r)}))||null;if(t.canResize){if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},onMouseDown:t=>null==i?void 0:i.handleDown(t),onTouchStart:t=>null==i?void 0:i.handleDown(t),class:`resizable resizable-${t.active[r]}`}))}else if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},class:`no-resize resizable resizable-${t.active[r]}`}));return e("div",Object.assign({},t,{ref:t=>null==i?void 0:i.set(t)}),r,n)},xi=({data:t,props:r},n)=>{let i=(null==t?void 0:t.name)||"",o=r;if((null==t?void 0:t.columnTemplate)&&(i=t.columnTemplate(e,t)),null==t?void 0:t.columnProperties){const e=t.columnProperties(t);e&&"object"==typeof e&&(o=Zn.doMerge(r,e))}return e(bi,Object.assign({},o,{onMouseDown:r=>{Pn(r.currentTarget,"column-click",{data:t,event:r})}}),e("div",{class:"header-content"},i),n)},yi=t=>{var r,n,i,o,s,a;const u={rgHeaderCell:!0,sortable:!!(null===(r=t.data)||void 0===r?void 0:r.sortable)};(null===(n=t.data)||void 0===n?void 0:n.order)&&(u[t.data.order]=!0);const c={"data-rgCol":t.column.itemIndex,canResize:t.canResize,minWidth:(null===(i=t.data)||void 0===i?void 0:i.minSize)||30,maxWidth:null===(o=t.data)||void 0===o?void 0:o.maxSize,active:["r"],class:u,style:{width:`${t.column.size}px`,transform:`translateX(${t.column.start}px)`},onResize:t.onResize,onDoubleClick(r){t.onDoubleClick({column:t.data,index:t.column.itemIndex,originalEvent:r})},onClick(r){!r.defaultPrevented&&t.onClick&&t.onClick({column:t.data,index:t.column.itemIndex,originalEvent:r})}};return t.range&&t.column.itemIndex>=t.range.x&&t.column.itemIndex<=t.range.x1&&"object"==typeof c.class&&(c.class["focused-cell"]=!0),e(xi,{data:t.data,props:c},(null===(s=t.data)||void 0===s?void 0:s.order)?e(Ci,{column:t.data}):"",t.canFilter&&!1!==(null===(a=t.data)||void 0===a?void 0:a.filter)?e(L,{column:t.data}):"")},ki=t=>e(xi,{data:t.group,props:{canResize:t.canResize,minWidth:30*t.group.ids.length,maxWidth:0,active:["r"],class:{rgHeaderCell:!0},style:{transform:`translateX(${t.start}px)`,width:t.end-t.start+"px"},onResize:t.onResize}}),Ei=({depth:t,groups:r,visibleProps:n,dimensionCol:i,canResize:o,onResize:s})=>{const a=[];for(let u=0;u<t;u++){if(r[u])for(let t of r[u]){const r=Ir(t.ids,(t=>"number"==typeof n[t]));if(r>-1){const u=n[t.ids[r]]-r,c=u+t.ids.length-1,l=pe(i,u).start,h=pe(i,c).end;a.push(e(ki,{start:l,end:h,group:t,canResize:o,onResize:t=>s(t.changedX,u,c)}))}}a.push(e("div",{class:"header-rgRow group"}))}return a},Si=class{constructor(t){n(this,t),this.initialHeaderClick=i(this,"initialHeaderClick",7),this.headerresize=i(this,"headerresize",7),this.headerdblClick=i(this,"headerdblClick",7),this.parent="",this.groupingDepth=0}onResize({width:t},r){this.headerresize.emit({[r]:t||0})}onResizeGroup(t,r,e){const n={},i=pi(this.viewportCol.get("items"),"itemIndex"),o=t/(e-r+1);for(let t=r;t<=e;t++){const r=i[t];r&&(n[t]=r.size+o)}this.headerresize.emit(n)}render(){var t;const r=this.viewportCol.get("items"),n=null===(t=this.selectionStore)||void 0===t?void 0:t.get("range"),i=[],o={};for(let t of r){const r=this.colData[t.itemIndex];i.push(e(yi,{range:n,column:t,data:r,canFilter:!!this.columnFilter,canResize:this.canResize,onResize:r=>this.onResize(r,t.itemIndex),onDoubleClick:t=>this.headerdblClick.emit(t),onClick:t=>this.initialHeaderClick.emit(t)})),o[null==r?void 0:r.prop]=t.itemIndex}return[e("div",{class:"group-rgRow"},e(Ei,{canResize:this.canResize,visibleProps:o,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:(t,r,e)=>this.onResizeGroup(t,r,e)})),e("div",{class:"header-rgRow actual-rgRow"},i)]}get element(){return s(this)}};Si.style="@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}";class Ri{constructor(t){this.config=t,this.currentCell=null,this.previousRow=null}endOrder(t,r){if(null===this.currentCell)return;const e=this.getCell(t,r);e.y!==this.currentCell.y&&(e.y<0?e.y=0:e.y<this.currentCell.y&&e.y++,this.config.positionChanged(this.currentCell.y,e.y)),this.clear()}startOrder(t,r){return this.currentCell=this.getCell(t,r),this.currentCell}move(t,r){const e=this.getRow(t,r);return this.previousRow===e.itemIndex||e.itemIndex<-1?null:(this.previousRow=e.itemIndex,e)}clear(){this.currentCell=null,this.previousRow=null}getRow(t,{el:r,rows:e}){const{top:n}=r.getBoundingClientRect(),i=ve(e,t-n);return{itemIndex:i.itemIndex,start:i.start+n,end:i.end+n}}getCell({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s}=e.getBoundingClientRect(),a=t-s,u=ve(n,r-o);return{x:ve(i,a).itemIndex,y:u.itemIndex}}}const ji=class{constructor(t){n(this,t),this.internalRowDragStart=i(this,"internalRowDragStart",7),this.internalRowDragEnd=i(this,"internalRowDragEnd",7),this.internalRowDrag=i(this,"internalRowDrag",7),this.internalRowMouseMove=i(this,"internalRowMouseMove",7),this.initialRowDropped=i(this,"initialRowDropped",7),this.rowMoveFunc=m((t=>{const r=this.rowOrderService.move(t,this.getData());null!==r&&this.internalRowDrag.emit(r)}),5)}onMouseOut(){this.clearOrder()}onMouseUp(t){this.endOrder(t)}async dragStart(t){t.preventDefault(),this.moveFunc&&this.clearOrder();const r=this.getData(),e=this.rowOrderService.startOrder(t,r),n=this.rowOrderService.getRow(t.y,r);this.internalRowDragStart.emit({cell:e,text:"Draggable item",pos:n,event:t}).defaultPrevented||(this.moveFunc=t=>this.move(t),document.addEventListener("mousemove",this.moveFunc))}async endOrder(t){this.rowOrderService.endOrder(t,this.getData()),this.clearOrder()}async clearOrder(){this.rowOrderService.clear(),document.removeEventListener("mousemove",this.moveFunc),this.moveFunc=null,this.internalRowDragEnd.emit()}move({x:t,y:r}){this.internalRowMouseMove.emit({x:t,y:r}),this.rowMoveFunc(r)}connectedCallback(){this.rowOrderService=new Ri({positionChanged:(t,r)=>this.onPositionChanged(t,r)})}onPositionChanged(t,r){if(this.initialRowDropped.emit({from:t,to:r}).defaultPrevented)return;const e=[...this.dataStore.get("items")],n=e.splice(t,1);e.splice(r,0,...n),Xr(this.dataStore,e)}getData(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}}};class zi{constructor(t,r){this.store=t,this.config=r,this.store=t}get edited(){return this.store.get("edit")}get focused(){return this.store.get("focus")}get ranged(){return this.store.get("range")}changeRange(t){return this.config.changeRange(t)}focus(t,r=!1){if(!t)return!1;let e=t;if(r){let t=this.store.get("focus");if(t)return this.config.changeRange(Rn(t,e))}return this.config.focus(t,e)}}class Oi{constructor(t){this.sv=t,this.ctrlDown=!1}async keyDown(t,r){var e;if(this.sv.selectionStoreService.focused)if(ni(t.keyCode,navigator.platform)&&(this.ctrlDown=!0),Kn.TAB!==t.code)if(this.sv.selectionStoreService.edited)switch(t.code){case Kn.ESCAPE:this.sv.doEdit(void 0,!0)}else Kn.BACKSPACE!==(e=t.code)&&Kn.DELETE!==e?ii(t.code)?this.sv.doEdit():this.isCopy(t)||(this.isPaste(t)?this.sv.internalPaste():function(t){return 32===t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}(t.keyCode)?this.sv.doEdit(t.key):await this.keyChangeSelection(t,r)):this.sv.clearCell();else this.keyChangeSelection(t,r)}async keyChangeSelection(t,r){const e=this.changeDirectionKey(t,r);if(!e)return!1;await ge();const n=this.sv.selectionStore.get("range"),i=this.sv.selectionStore.get("focus");return this.keyPositionChange(e.changes,this.sv.getData(),n,i,e.isMulti)}keyPositionChange(t,r,e,n,i=!1){if(!e||!n)return!1;const o=function(t,r,e,n=!1){const i=i=>{const o={x:t.x,y:t.y},s=n?{x:t.x1,y:t.y1}:o;return(s[i]>r[i]?s:o)[i]+=e[i],{start:o,end:s}};return e.x?i("x"):e.y?i("y"):null}(e,n,t,i);if(!o)return!1;if(i){if(ui(o.end,r)||function({x:t,y:r}){return t<0||r<0}(o.start))return!1;const t=Rn(o.start,o.end);return this.sv.selectionStoreService.changeRange(t)}return this.sv.selectionStoreService.focus(o.start)}keyUp(t){ni(t.keyCode,navigator.platform)&&(this.ctrlDown=!1)}isCopy(t){return this.ctrlDown&&t.code==Kn.C}isPaste(t){return this.ctrlDown&&t.code==Kn.V}changeDirectionKey(t,r){const e=r&&t.shiftKey;switch(t.code){case Kn.TAB:case Kn.ARROW_UP:case Kn.ARROW_DOWN:case Kn.ARROW_LEFT:case Kn.ARROW_RIGHT:t.preventDefault()}switch(t.code){case Kn.ARROW_UP:return{changes:{y:-1},isMulti:e};case Kn.ARROW_DOWN:return{changes:{y:1},isMulti:e};case Kn.ARROW_LEFT:return{changes:{x:-1},isMulti:e};case Kn.TAB:case Kn.ARROW_RIGHT:return{changes:{x:1},isMulti:e}}}}var Mi,Fi=function(t,r,e){var n=null==t?0:t.length;return n?(e&&"number"!=typeof e&&Br(t,r,e)?(r=0,e=n):(r=null==r?0:Ar(r),e=void 0===e?n:Ar(e)),function(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+r];return o}(t,r,e)):[]};!function(t){t.selection="Selection",t.autoFill="AutoFill"}(Mi||(Mi={}));class _i{constructor(t){this.sv=t,this.autoFillType=null,this.autoFillInitial=null,this.autoFillStart=null,this.autoFillLast=null}renderAutofill(t,r){let n;return n=ci(t||Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state),e("div",{class:"autofill-handle",style:{left:`${n.right}px`,top:`${n.bottom}px`},onMouseDown:t=>this.selectionStart(t,this.sv.getData(),Mi.autoFill)})}get isAutoFill(){return!!this.autoFillType}selectionMouseMove(t){this.onMouseMoveAutofill||(this.onMouseMoveAutofill=m(((t,r)=>this.doAutofillMouseMove(t,r)),5)),this.isAutoFill&&this.onMouseMoveAutofill(t,this.sv.getData())}getFocus(){let t=this.sv.selectionStoreService.focused;const r=this.sv.selectionStoreService.ranged;return r&&(t={x:r.x,y:r.y}),t||r?t:null}doAutofillMouseMove({x:t,y:r},e){if(!this.autoFillInitial)return;let n,i=ai({x:t,y:r},e);this.autoFillLast&&(n=function(t,r){const e=["x","y"];for(let n of e)if(t[n]!==r[n])return{[n]:1};return null}(this.autoFillStart,this.autoFillLast)),this.autoFillLast&&n||(n=function(t,r){const e={},n=["x","y"];for(let i of n)e[i]=Math.abs(t[i]-r[i]);return e.x>e.y?{x:1}:e.y>e.x?{y:1}:null}(this.autoFillStart,i),this.autoFillLast||(this.autoFillLast=this.autoFillStart)),n&&(Mr(n,((t,r)=>{t&&(i=Object.assign(Object.assign({},this.autoFillLast),{[r]:i[r]}))})),ui(i,e)||(this.autoFillLast=i,this.sv.setTempRange({area:Rn(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})))}selectionStart(t,r,e=Mi.selection){const{top:n,left:i}=t.target.getBoundingClientRect();this.autoFillInitial=this.getFocus(),this.autoFillType=e,this.autoFillStart=ai({x:i,y:n},r),t.preventDefault()}clearAutoFillSelection(){this.autoFillInitial&&(this.autoFillInitial=this.getFocus(),this.autoFillType===Mi.autoFill?this.applyRangeWithData(this.autoFillInitial,this.autoFillLast):this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)),this.autoFillType=null,this.autoFillInitial=null,this.autoFillLast=null,this.autoFillStart=null}onRangeApply(t,r){const e={};for(let r in t)e[r]=qr(this.sv.dataStore,parseInt(r,10));this.sv.internalRangeDataApply({data:t,models:e,type:this.sv.dataStore.get("type")}).defaultPrevented||this.sv.columnService.applyRangeData(t),this.sv.setRange(r)}applyRangeWithData(t,r){if(!t||!r)return;const e=this.sv.selectionStoreService.ranged,n=Rn(t,r),i=[...this.sv.columnService.columns],o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:e,newProps:Fi(i,n.x,n.x1+1).map((t=>t.prop)),oldProps:Fi(i,e.x,e.x1+1).map((t=>t.prop))};o.newData=this.sv.columnService.getRangeData(o),this.sv.internalSelectionChanged(o).defaultPrevented?this.sv.setTempRange(null):this.onRangeApply(o.newData,n)}applyRangeOnly(t,r){if(!t||!r)return;const e=Rn(t,r);this.sv.setRange(e)}}class Ai{constructor(t){this.sv=t}onCopy(t){if(this.sv.internalCopy().defaultPrevented)return!1;let r,e=this.sv.selectionStoreService.focused,n=this.sv.selectionStoreService.ranged;if(n||(n=Rn(e,e)),n){const t=[...this.sv.columnService.columns],e=Fi(t,n.x,n.x1+1).map((t=>t.prop));r=this.sv.columnService.copyRangeArray(n,e,this.sv.dataStore)}return this.clipboard.doCopy(t,r),!0}renderClipboard(){return e("revogr-clipboard",{onCopyRegion:t=>this.onCopy(t.detail),ref:t=>this.clipboard=t,onPasteRegion:t=>this.onPaste(t.detail)})}onPaste(t){const r=this.sv.selectionStoreService.focused;if(!r||null!==this.sv.selectionStoreService.edited)return;const{changed:e,range:n}=this.sv.columnService.getTransformedDataToApply(r,t);this.sv.onRangeApply(e,n)}}const Di=class{constructor(t){n(this,t),this.internalCopy=i(this,"internalCopy",7),this.internalPaste=i(this,"internalPaste",7),this.internalCellEdit=i(this,"internalCellEdit",7),this.internalFocusCell=i(this,"internalFocusCell",7),this.setEdit=i(this,"setEdit",3),this.setRange=i(this,"setRange",7),this.setTempRange=i(this,"setTempRange",7),this.focusCell=i(this,"focusCell",3),this.internalSelectionChanged=i(this,"internalSelectionChanged",7),this.internalRangeDataApply=i(this,"internalRangeDataApply",7),this.keyboardService=null,this.autoFillService=null,this.clipboardService=null}onMouseMove(t){this.selectionStoreService.focused&&this.autoFillService.selectionMouseMove(t)}onMouseOut(){this.autoFillService.clearAutoFillSelection()}onMouseUp(){this.autoFillService.clearAutoFillSelection()}onCellDrag(t){var r;null===(r=this.orderEditor)||void 0===r||r.dragStart(t.detail)}onKeyUp(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyUp(t)}onKeyDown(t){var r;t.defaultPrevented||null===(r=this.keyboardService)||void 0===r||r.keyDown(t,this.range)}selectionServiceSet(t){this.selectionStoreService=new zi(t,{changeRange:t=>{var r;return!(null===(r=this.setRange.emit(t))||void 0===r?void 0:r.defaultPrevented)},focus:(t,r)=>{var e;const n={focus:t,end:r},{defaultPrevented:i}=this.internalFocusCell.emit(this.columnService.getSaveData(t.y,t.x));return!i&&!(null===(e=this.focusCell.emit(n))||void 0===e?void 0:e.defaultPrevented)}}),this.keyboardService=new Oi({selectionStoreService:this.selectionStoreService,selectionStore:t,doEdit:(t,r)=>this.doEdit(t,r),clearCell:()=>this.clearCell(),getData:()=>this.getData(),internalPaste:()=>this.internalPaste.emit()}),this.createAutoFillService(),this.createClipboardService()}createAutoFillService(){this.autoFillService=new _i({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:t=>this.setTempRange.emit(t),internalSelectionChanged:t=>this.internalSelectionChanged.emit(t),internalRangeDataApply:t=>this.internalRangeDataApply.emit(t),setRange:t=>this.setRange.emit(t),getData:()=>this.getData()})}columnServiceSet(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Zn(this.dataStore,this.colData),this.createAutoFillService(),this.createClipboardService()}createClipboardService(){this.clipboardService=new Ai({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:(t,r)=>this.autoFillService.onRangeApply(t,r),internalCopy:()=>this.internalCopy.emit()})}connectedCallback(){this.columnServiceSet(),this.selectionServiceSet(this.selectionStore)}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}renderRange(t){const r=li(t,this.dimensionRow.state,this.dimensionCol.state);return[e("div",{class:"selection-border-range",style:r})]}renderEditCell(){const t=this.selectionStore.get("edit");if(this.readonly||!t)return;const r=t.val||this.columnService.getCellData(t.y,t.x),n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r)),i=li(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e("revogr-edit",{onCellEdit:t=>this.onCellEdit(t.detail),onCloseEdit:t=>this.closeEdit(t),editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})}render(){const t=this.selectionStoreService.ranged,r=this.selectionStoreService.focused,n=[];(t||r)&&this.useClipboard&&n.push(this.clipboardService.renderClipboard()),t&&n.push(...this.renderRange(t));const i=this.renderEditCell();return i&&n.push(i),r&&!this.readonly&&!i&&this.range&&n.push(this.autoFillService.renderAutofill(t,r)),this.canDrag&&n.push(e("revogr-order-editor",{ref:t=>this.orderEditor=t,dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:t=>this.onRowDragStart(t)})),e(o,{onDblClick:()=>this.doEdit(),onMouseDown:t=>this.onElementMouseDown(t)},n,e("slot",{name:"data"}))}onElementMouseDown(t){if(null==(r=t.target)?void 0:r.closest(".edit-input-wrapper"))return;var r;const e=this.getData();if(t.defaultPrevented)return;const n=ai({x:t.x,y:t.y},e);this.selectionStoreService.focus(n,this.range&&t.shiftKey),this.range&&this.autoFillService.selectionStart(t,e)}doEdit(t="",r=!1){var e;if(this.canEdit()){const n=this.selectionStore.get("focus"),i=this.columnService.getSaveData(n.y,n.x);null===(e=this.setEdit)||void 0===e||e.emit(Object.assign(Object.assign({},i),{isCancel:r,val:t}))}}closeEdit(t){this.doEdit(void 0,!0),(null==t?void 0:t.detail)&&this.focusNext()}async focusNext(){await this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:Kn.ARROW_DOWN}),this.range)||this.closeEdit()}clearCell(){if(!this.selectionStoreService.ranged||(t=this.selectionStoreService.ranged).x===t.x1&&t.y===t.y1){if(this.canEdit()){const t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},!0)}}else{const t=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(t,this.selectionStoreService.ranged)}var t}onCellEdit(t,r=!1){const e=this.columnService.getSaveData(t.rgRow,t.rgCol,t.val);this.internalCellEdit.emit(e),r||t.preventFocus||this.focusNext()}onRowDragStart({detail:t}){t.text=this.columnService.getCellData(t.cell.y,t.cell.x)}canEdit(){var t;if(this.readonly)return!1;const r=this.selectionStoreService.focused;return r&&!(null===(t=this.columnService)||void 0===t?void 0:t.isReadOnly(r.y,r.x))}getData(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}}get element(){return s(this)}static get watchers(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}}};Di.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";const Ii=t=>(r,{rowIndex:e})=>t+e,Ti=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.elementToScroll=i(this,"elementToScroll",3)}render(){var t;const r=[],n=new Se;let i=1;for(let t of this.dataPorts){const o=t.dataStore.get("items").length,s=new Vr(t.type);s.updateData(t.dataStore.get("source"));const a=new Vr("colPinStart"),u=Object.assign({cellTemplate:Ii(i)},this.rowHeaderColumn);a.updateData([u]);const c=Object.assign(Object.assign({},t),{dataStore:s.store,colData:a.store,viewportCol:n.store,readonly:!0,range:!1});r.push(e("revogr-data",Object.assign({},c))),i+=o}const s=(null===(t=this.rowHeaderColumn)||void 0===t?void 0:t.size)||10*(i.toString().length+1);n.setViewport({realCount:1,virtualSize:0,items:[{size:s,start:0,end:s,itemIndex:0}]});const a=`${this.uiid}-rowHeaders`,u={[sn]:a,contentHeight:this.height,contentWidth:0,style:{minWidth:`${s}px`},ref:t=>this.elementToScroll.emit(t),onScrollViewport:t=>this.scrollViewport.emit(t.detail)},c=Object.assign(Object.assign({},this.headerProp),{colData:"object"==typeof this.rowHeaderColumn?[this.rowHeaderColumn]:[],viewportCol:n.store,canResize:!1,parent:a,slot:"header"});return e(o,{class:"rowHeaders",key:"rowHeaders"},e("revogr-viewport-scroll",Object.assign({},u),e("revogr-header",Object.assign({},c)),r))}},Pi={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};class $i{constructor(t){this.cfg=t,this.preventArtificialScroll={rgRow:null,rgCol:null},this.previousScroll={rgRow:0,rgCol:0},this.params={rgRow:Object.assign({},Pi),rgCol:Object.assign({},Pi)}}static getVirtualContentSize(t,r,e=0){return t+(e?r-e:0)}setParams(t,r){const e=$i.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:e-t.clientSize,virtualContentSize:e})}setScroll(t){this.cancelScroll(t.dimension),this.preventArtificialScroll[t.dimension]=window.requestAnimationFrame((()=>{const r=this.getParams(t.dimension);t.coordinate=Math.ceil(t.coordinate),this.previousScroll[t.dimension]=this.wrapCoordinate(t.coordinate,r),this.preventArtificialScroll[t.dimension]=null,this.cfg.afterScroll(Object.assign(Object.assign({},t),{coordinate:r.virtualSize?this.convert(t.coordinate,r,!1):t.coordinate}))}))}scroll(t,r,e=!1,n){if(this.cancelScroll(r),!e&&this.previousScroll[r]===t)return void(this.previousScroll[r]=0);const i=this.getParams(r);this.cfg.beforeScroll({dimension:r,coordinate:i.virtualSize?this.convert(t,i):t,delta:n})}getParams(t){return this.params[t]}wrapCoordinate(t,r){return t<0?0:t>r.maxSize?r.maxSize:t}cancelScroll(t){return"number"==typeof this.preventArtificialScroll[t]&&(window.cancelAnimationFrame(this.preventArtificialScroll[t]),this.preventArtificialScroll[t]=null,!0)}convert(t,r,e=!0){const n=[0,r.virtualContentSize-r.clientSize],i=[0,r.contentSize-r.virtualSize];return e?de(t,n,i):de(t,i,n)}}const Ui=class{constructor(t){n(this,t),this.scrollVirtual=i(this,"scrollVirtual",7),this.scrollSize=0,this.isAutoHide=!1,this.autoHideTimeout=0,this.dimension="rgRow"}async setScroll(t){var r;this.dimension===t.dimension&&(null===(r=this.scrollService)||void 0===r||r.setScroll(t))}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.element.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.element.scrollTop+t.delta}this.setScroll(t)}return t}set size(t){"rgRow"!==this.dimension?this.element.style.minHeight=`${t}px`:this.element.style.minWidth=`${t}px`}get size(){return"rgRow"===this.dimension?this.element.clientHeight:this.element.clientWidth}connectedCallback(){this.scrollService=new $i({beforeScroll:t=>this.scrollVirtual.emit(t),afterScroll:t=>{this.element["rgRow"===t.dimension?"scrollTop":"scrollLeft"]=t.coordinate}})}disconnectedCallback(){clearTimeout(this.autoHideTimeout)}componentWillLoad(){this.scrollSize=fe(document),this.isAutoHide=!this.scrollSize}componentDidRender(){this.size=this.element["rgRow"===this.dimension?"scrollHeight":"scrollWidth"]>this.size?this.scrollSize:0,this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)}onScroll(t){var r;let e="scrollLeft";"rgRow"===this.dimension&&(e="scrollTop"),this.isAutoHide&&(this.size=20,this.autoHideTimeout=this.autoHide(this.autoHideTimeout)),null===(r=this.scrollService)||void 0===r||r.scroll(t.target[e]||0,this.dimension)}autoHide(t){return clearTimeout(t),setTimeout((()=>{this.size=0}),6e3)}render(){const t="rgRow"===this.dimension?"height":"width";return e(o,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:t=>this.onScroll(t)}),e("div",{style:{[t]:`${this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize"))}px`}}))}extContentSize(t,r){return $i.getVirtualContentSize(r,this.size,t)}get element(){return s(this)}};Ui.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";const Hi=class{constructor(t){n(this,t),this.onChange=Fn.throttle((t=>this.doChange(t)),300)}doChange(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.onChange(this.el)}render(){const t=this.selectionStore.get("tempRange"),r=this.selectionStore.get("tempRangeType");if(!t)return;let n="bottom",i="right";const s=this.getRange();if(!s)return;t.y<s.y&&(n="top"),t.x<s.x&&(i="left");const a=`${i} ${n}`,u=li(t,this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:{"temp-bg-range":!0,[r||""]:!0},style:u},e("div",{class:a,ref:t=>this.el=t}))}getRange(){const t=this.selectionStore.get("range");if(t)return t;const r=this.selectionStore.get("focus");return r?Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}):null}};Hi.style=".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}";class Zi{constructor(t,r){this.events=r,this.resizeObserver=null,this.resize=function(t,r,e){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return f(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),m(t,r,{leading:n,maxWait:r,trailing:i})}(((t,r)=>{var e;return null===(e=this.events)||void 0===e?void 0:e.resize(t,r)}),10),this.init(t)}async init(t){var r;await async function(){if(!("ResizeObserver"in window)){const t=await __sc_import_revo_grid("./resize-observer-00c48d78.js");window.ResizeObserver=t.ResizeObserver}}(),this.resizeObserver=new ResizeObserver(this.resize),null===(r=this.resizeObserver)||void 0===r||r.observe(t)}destroy(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=null}}const Bi=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.resizeViewport=i(this,"resizeViewport",7),this.scrollchange=i(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}}async setScroll(t){var r;this.latestScrollUpdate(t.dimension),null===(r=this.scrollService)||void 0===r||r.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.horizontalScroll.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.verticalScroll.scrollTop+t.delta}this.setScroll(t)}return t}connectedCallback(){"ontouchstart"in document.documentElement?this.scrollThrottling=0:(this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY"),this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")),this.scrollService=new $i({beforeScroll:t=>this.scrollViewport.emit(t),afterScroll:t=>{switch(t.dimension){case"rgCol":this.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":this.verticalScroll.scrollTop=t.coordinate}}})}componentDidLoad(){this.horisontalResize=new Zi(this.horizontalScroll,{resize:t=>{var r,e;let n=(null===(r=t[0])||void 0===r?void 0:r.contentRect.height)||0;n&&(n-=this.header.clientHeight+this.footer.clientHeight);const i={rgRow:{size:n,contentSize:this.contentHeight,scroll:this.verticalScroll.scrollTop},rgCol:{size:(null===(e=t[0])||void 0===e?void 0:e.contentRect.width)||0,contentSize:this.contentWidth,scroll:this.horizontalScroll.scrollLeft}};Mr(i,((t,r)=>{var e;this.resizeViewport.emit({dimension:r,size:t.size}),null===(e=this.scrollService)||void 0===e||e.scroll(t.scroll,r,!0),this.setScrollVisibility(r,t.size,t.contentSize)}))}})}setScrollVisibility(t,r,e){const n=r<e;let i,o;switch(t){case"rgCol":i=this.horizontalScroll,o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll,o=this.verticalMouseWheel}n?(i.classList.add(`scroll-${t}`),i.addEventListener("mousewheel",o)):(i.classList.remove(`scroll-${t}`),i.removeEventListener("mousewheel",o)),this.scrollchange.emit({type:t,hasScroll:n})}disconnectedCallback(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel),this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel),this.horisontalResize.destroy()}async componentDidRender(){this.contentHeight<this.oldValY&&this.verticalScroll&&(this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY),this.oldValY=this.contentHeight,this.contentWidth<this.oldValX&&(this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX),this.oldValX=this.contentWidth,this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow"),this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol"),this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight),this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth)}render(){return e(o,{onScroll:t=>this.onScroll("rgCol",t)},e("div",{class:"inner-content-table",style:{width:`${this.contentWidth}px`}},e("div",{class:"header-wrapper",ref:t=>this.header=t},e("slot",{name:"header"})),e("div",{class:"vertical-inner",ref:t=>this.verticalScroll=t,onScroll:t=>this.onScroll("rgRow",t)},e("div",{class:"content-wrapper",style:{height:`${this.contentHeight}px`}},e("slot",{name:"content"}))),e("div",{class:"footer-wrapper",ref:t=>this.footer=t},e("slot",{name:"footer"}))))}onScroll(t,r){var e;const n=r.target;let i=0;switch(t){case"rgCol":i=null==n?void 0:n.scrollLeft;break;case"rgRow":i=null==n?void 0:n.scrollTop}(new Date).getTime()-this.mouseWheelScroll[t]>this.scrollThrottling&&(null===(e=this.scrollService)||void 0===e||e.scroll(i,t))}latestScrollUpdate(t){this.mouseWheelScroll[t]=(new Date).getTime()}onVerticalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.verticalScroll.scrollTop+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}onHorizontalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.horizontalScroll.scrollLeft+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}get horizontalScroll(){return s(this)}};Bi.style=".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%}";export{Hn as revo_grid,Gn as revogr_data,si as revogr_edit,hi as revogr_focus,Si as revogr_header,ji as revogr_order_editor,Di as revogr_overlay_selection,Ti as revogr_row_headers,Ui as revogr_scroll_virtual,Hi as revogr_temp_range,Bi as revogr_viewport_scroll}
|
|
4
|
+
import{g as t,f as r,h as e,r as n,c as i,H as o,e as s}from"./index-f30d1de1.js";import{i as a,_ as u,c,a as l,b as h,d as f,e as d,f as g,t as v,g as p,F as C,h as w,j as m,k as L}from"./debounce-726bdadb.js";class b{constructor(){this.defaultRowSize=32}}class x{constructor(){this.defaultRowSize=27}}class y{constructor(){this.defaultRowSize=42}}const E=["default","material","compact","darkMaterial","darkCompact"];class k{constructor(t){this.customRowSize=0,this.customRowSize=t.rowSize,this.register("default")}get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}register(t){switch(k.getTheme(t)){case"material":case"darkMaterial":this.currentTheme=new y;break;case"compact":case"darkCompact":this.currentTheme=new b;break;default:this.currentTheme=new x}}static getTheme(t){return E.indexOf(t)>-1?t:"default"}}var S=function(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e},R=function(t,r,e){for(var n=-1,i=Object(t),o=e(t),s=o.length;s--;){var a=o[++n];if(!1===r(i[a],a,i))break}return t},j=function(t){return a(t)&&"[object Arguments]"==u(t)},z=Object.prototype,O=z.hasOwnProperty,M=z.propertyIsEnumerable,F=j(function(){return arguments}())?j:function(t){return a(t)&&O.call(t,"callee")&&!M.call(t,"callee")},_=Array.isArray,A=function(){return!1},D=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e?l.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||A})),I=/^(?:0|[1-9]\d*)$/,T=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&I.test(t))&&t>-1&&t%1==0&&t<r},P=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1;var U,H=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e&&h.process,o=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o})),Z=H&&H.isTypedArray,B=Z?(U=Z,function(t){return U(t)}):function(t){return a(t)&&P(t.length)&&!!$[u(t)]},N=Object.prototype.hasOwnProperty,W=function(t,r){var e=_(t),n=!e&&F(t),i=!e&&!n&&D(t),o=!e&&!n&&!i&&B(t),s=e||n||i||o,a=s?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],u=a.length;for(var c in t)!r&&!N.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||T(c,u))||a.push(c);return a},V=Object.prototype,G=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),q=Object.prototype.hasOwnProperty,K=function(t){if((r=t)!==("function"==typeof(e=r&&r.constructor)&&e.prototype||V))return G(t);var r,e,n=[];for(var i in Object(t))q.call(t,i)&&"constructor"!=i&&n.push(i);return n},X=function(t){if(!f(t))return!1;var r=u(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},J=function(t){return null!=t&&P(t.length)&&!X(t)},Y=function(t){return J(t)?W(t):K(t)},Q=function(t,r){if(null==t)return t;if(!J(t))return function(t,r){return t&&R(t,r,Y)}(t,r);for(var e=t.length,n=-1,i=Object(t);++n<e&&!1!==r(i[n],n,i););return t},tt=function(t,r){return t===r||t!=t&&r!=r},rt=function(t,r){for(var e=t.length;e--;)if(tt(t[e][0],r))return e;return-1},et=Array.prototype.splice;function nt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}nt.prototype.clear=function(){this.__data__=[],this.size=0},nt.prototype.delete=function(t){var r=this.__data__,e=rt(r,t);return!(e<0||(e==r.length-1?r.pop():et.call(r,e,1),--this.size,0))},nt.prototype.get=function(t){var r=this.__data__,e=rt(r,t);return e<0?void 0:r[e][1]},nt.prototype.has=function(t){return rt(this.__data__,t)>-1},nt.prototype.set=function(t,r){var e=this.__data__,n=rt(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var it,ot=nt,st=l["__core-js_shared__"],at=(it=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||""))?"Symbol(src)_1."+it:"",ut=Function.prototype.toString,ct=function(t){if(null!=t){try{return ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""},lt=/^\[object .+?Constructor\]$/,ht=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=function(t){return!(!f(t)||function(t){return!!at&&at in t}(t))&&(X(t)?ht:lt).test(ct(t))},dt=function(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return ft(e)?e:void 0},gt=dt(l,"Map"),vt=dt(Object,"create"),pt=Object.prototype.hasOwnProperty,Ct=Object.prototype.hasOwnProperty;function wt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}wt.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},wt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},wt.prototype.get=function(t){var r=this.__data__;if(vt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return pt.call(r,t)?r[t]:void 0},wt.prototype.has=function(t){var r=this.__data__;return vt?void 0!==r[t]:Ct.call(r,t)},wt.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=vt&&void 0===r?"__lodash_hash_undefined__":r,this};var mt=wt,Lt=function(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map};function bt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}bt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(gt||ot),string:new mt}},bt.prototype.delete=function(t){var r=Lt(this,t).delete(t);return this.size-=r?1:0,r},bt.prototype.get=function(t){return Lt(this,t).get(t)},bt.prototype.has=function(t){return Lt(this,t).has(t)},bt.prototype.set=function(t,r){var e=Lt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};var xt=bt;function yt(t){var r=this.__data__=new ot(t);this.size=r.size}yt.prototype.clear=function(){this.__data__=new ot,this.size=0},yt.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},yt.prototype.get=function(t){return this.__data__.get(t)},yt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof ot){var n=e.__data__;if(!gt||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new xt(n)}return e.set(t,r),this.size=e.size,this};var Et=yt;function kt(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new xt;++r<e;)this.add(t[r])}kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},kt.prototype.has=function(t){return this.__data__.has(t)};var St=kt,Rt=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1},jt=function(t,r,e,n,i,o){var s=1&e,a=t.length,u=r.length;if(a!=u&&!(s&&u>a))return!1;var c=o.get(t),l=o.get(r);if(c&&l)return c==r&&l==t;var h=-1,f=!0,d=2&e?new St:void 0;for(o.set(t,r),o.set(r,t);++h<a;){var g=t[h],v=r[h];if(n)var p=s?n(v,g,h,r,t,o):n(g,v,h,t,r,o);if(void 0!==p){if(p)continue;f=!1;break}if(d){if(!Rt(r,(function(t,r){if(!d.has(r)&&(g===t||i(g,t,e,n,o)))return d.push(r)}))){f=!1;break}}else if(g!==v&&!i(g,v,e,n,o)){f=!1;break}}return o.delete(t),o.delete(r),f},zt=l.Uint8Array,Ot=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e},Mt=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e},Ft=d?d.prototype:void 0,_t=Ft?Ft.valueOf:void 0,At=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols,It=Dt?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}(Dt(t),(function(r){return At.call(t,r)})))}:function(){return[]},Tt=function(t){return function(t,r,e){var n=r(t);return _(t)?n:function(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}(n,e(t))}(t,Y,It)},Pt=Object.prototype.hasOwnProperty,$t=dt(l,"DataView"),Ut=dt(l,"Promise"),Ht=dt(l,"Set"),Zt=dt(l,"WeakMap"),Bt=ct($t),Nt=ct(gt),Wt=ct(Ut),Vt=ct(Ht),Gt=ct(Zt),qt=u;($t&&"[object DataView]"!=qt(new $t(new ArrayBuffer(1)))||gt&&"[object Map]"!=qt(new gt)||Ut&&"[object Promise]"!=qt(Ut.resolve())||Ht&&"[object Set]"!=qt(new Ht)||Zt&&"[object WeakMap]"!=qt(new Zt))&&(qt=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,n=e?ct(e):"";if(n)switch(n){case Bt:return"[object DataView]";case Nt:return"[object Map]";case Wt:return"[object Promise]";case Vt:return"[object Set]";case Gt:return"[object WeakMap]"}return r});var Kt=qt,Xt="[object Object]",Jt=Object.prototype.hasOwnProperty,Yt=function(t,r,e,n,i,o){var s=_(t),a=_(r),u=s?"[object Array]":Kt(t),c=a?"[object Array]":Kt(r),l=(u="[object Arguments]"==u?Xt:u)==Xt,h=(c="[object Arguments]"==c?Xt:c)==Xt,f=u==c;if(f&&D(t)){if(!D(r))return!1;s=!0,l=!1}if(f&&!l)return o||(o=new Et),s||B(t)?jt(t,r,e,n,i,o):function(t,r,e,n,i,o,s){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!o(new zt(t),new zt(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return tt(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var a=Ot;case"[object Set]":if(a||(a=Mt),t.size!=r.size&&!(1&n))return!1;var u=s.get(t);if(u)return u==r;n|=2,s.set(t,r);var c=jt(a(t),a(r),n,i,o,s);return s.delete(t),c;case"[object Symbol]":if(_t)return _t.call(t)==_t.call(r)}return!1}(t,r,u,e,n,i,o);if(!(1&e)){var d=l&&Jt.call(t,"__wrapped__"),g=h&&Jt.call(r,"__wrapped__");if(d||g){var v=d?t.value():t,p=g?r.value():r;return o||(o=new Et),i(v,p,e,n,o)}}return!!f&&(o||(o=new Et),function(t,r,e,n,i,o){var s=1&e,a=Tt(t),u=a.length;if(u!=Tt(r).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in r:Pt.call(r,l)))return!1}var h=o.get(t),f=o.get(r);if(h&&f)return h==r&&f==t;var d=!0;o.set(t,r),o.set(r,t);for(var g=s;++c<u;){var v=t[l=a[c]],p=r[l];if(n)var C=s?n(p,v,l,r,t,o):n(v,p,l,t,r,o);if(!(void 0===C?v===p||i(v,p,e,n,o):C)){d=!1;break}g||(g="constructor"==l)}if(d&&!g){var w=t.constructor,m=r.constructor;w==m||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof m&&m instanceof m||(d=!1)}return o.delete(t),o.delete(r),d}(t,r,e,n,i,o))},Qt=function t(r,e,n,i,o){return r===e||(null==r||null==e||!a(r)&&!a(e)?r!=r&&e!=e:Yt(r,e,n,i,t,o))},tr=function(t){return t==t&&!f(t)},rr=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},er=function(t){var r=function(t){for(var r=Y(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,tr(i)]}return r}(t);return 1==r.length&&r[0][2]?rr(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var i=e.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var a=e[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var u=(a=e[i])[0],c=t[u],l=a[1];if(s&&a[2]){if(void 0===c&&!(u in t))return!1}else{var h=new Et;if(n)var f=n(c,l,u,t,r,h);if(!(void 0===f?Qt(l,c,3,n,h):f))return!1}}return!0}(e,t,r)}},nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,or=function(t,r){if(_(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!g(t))||ir.test(t)||!nr.test(t)||null!=r&&t in Object(r)};function sr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(sr.Cache||xt),e}sr.Cache=xt;var ar,ur,cr,lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/\\(\\)?/g,fr=(ar=sr((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(lr,(function(t,e,n,i){r.push(n?i.replace(hr,"$1"):e||t)})),r}),(function(t){return 500===ur.size&&ur.clear(),t})),ur=ar.cache,ar),dr=function(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i},gr=d?d.prototype:void 0,vr=gr?gr.toString:void 0,pr=function t(r){if("string"==typeof r)return r;if(_(r))return dr(r,t)+"";if(g(r))return vr?vr.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e},Cr=function(t){return null==t?"":pr(t)},wr=function(t,r){return _(t)?t:or(t,r)?[t]:fr(Cr(t))},mr=function(t){if("string"==typeof t||g(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Lr=function(t,r){for(var e=0,n=(r=wr(r,t)).length;null!=t&&e<n;)t=t[mr(r[e++])];return e&&e==n?t:void 0},br=function(t,r){return null!=t&&r in Object(t)},xr=function(t,r){return null!=t&&function(t,r,e){for(var n=-1,i=(r=wr(r,t)).length,o=!1;++n<i;){var s=mr(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&P(i)&&T(s,i)&&(_(t)||F(t))}(t,r,br)},yr=function(t,r){return or(t)&&tr(r)?rr(mr(t),r):function(e){var n=function(t,r,e){var n=null==t?void 0:Lr(t,r);return void 0===n?e:n}(e,t);return void 0===n&&n===r?xr(e,t):Qt(r,n,3)}},Er=function(t){return t},kr=function(t){return function(r){return null==r?void 0:r[t]}},Sr=function(t){return or(t)?kr(mr(t)):function(t){return function(r){return Lr(r,t)}}(t)},Rr=function(t){return"function"==typeof t?t:null==t?Er:"object"==typeof t?_(t)?yr(t[0],t[1]):er(t):Sr(t)},jr=function(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e},zr=function(t,r,e){var n=_(t)?S:jr,i=arguments.length<3;return n(t,Rr(r),e,i,Q)},Or=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t},Mr=function(t,r){return(_(t)?Or:Q)(t,"function"==typeof(e=r)?e:Er);var e},Fr=function(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1},_r=function(t){return t?1/0===(t=v(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Ar=function(t){var r=_r(t),e=r%1;return r==r?e?r-e:r:0},Dr=Math.max,Ir=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:Ar(e);return i<0&&(i=Dr(n+i,0)),Fr(t,Rr(r),i)},Tr=(cr=Ir,function(t,r,e){var n=Object(t);if(!J(t)){var i=Rr(r);t=Y(t),r=function(t){return i(n[t],t,n)}}var o=cr(t,r,e);return o>-1?n[i?t[o]:o]:void 0});const Pr=t=>!("isConnected"in t)||t.isConnected,$r=(()=>{let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let r of t.keys())t.set(r,t.get(r).filter(Pr))})(...r)}),2e3)}})(),Ur=(e,n)=>{const i=((t,r=((t,r)=>t!==r))=>{let e=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((r=>r(t))),e.get(t)),s=(t,i)=>{const o=e.get(t);r(i,o,t)&&(e.set(t,i),n.set.forEach((r=>r(t,i,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,r)=>e.has(r),set:(t,r,e)=>(s(r,e),!0)}),u=(t,r)=>(n[t].push(r),()=>{((t,r)=>{const e=t.indexOf(r);e>=0&&(t[e]=t[t.length-1],t.length--)})(n[t],r)});return{state:a,get:o,set:s,on:u,onChange:(r,e)=>{const n=u("set",((t,n)=>{t===r&&e(n)})),i=u("reset",(()=>e(t[r])));return()=>{n(),i()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{n.dispose.forEach((t=>t())),i()},reset:i}})(e,n);return(({on:e})=>{const n=new Map;"function"==typeof t&&(e("dispose",(()=>{n.clear()})),e("get",(r=>{const e=t();e&&((t,r,e)=>{const n=t.get(r);n?n.includes(e)||n.push(e):t.set(r,[e])})(n,r,e)})),e("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),$r(n)})),e("reset",(()=>{n.forEach((t=>t.forEach(r))),$r(n)})))})(i),i};var Hr=Math.ceil,Zr=Math.max,Br=function(t,r,e){if(!f(e))return!1;var n=typeof r;return!!("number"==n?J(e)&&T(r,e.length):"string"==n&&r in e)&&tt(e[r],t)},Nr=function(t,r,e){return e&&"number"!=typeof e&&Br(t,r,e)&&(r=e=void 0),t=_r(t),void 0===r?(r=t,t=0):r=_r(r),function(t,r,e,n){for(var i=-1,o=Zr(Hr((r-t)/(e||1)),0),s=Array(o);o--;)s[n?o:++i]=t,t+=e;return s}(t,r,e=void 0===e?t<r?1:-1:_r(e),void 0)};function Wr(t,r){for(let e in r)t.set(e,r[e])}class Vr{constructor(t){const r=this.dataStore=Ur({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{}});r.use((t=>({set(r,e){if(!function(t){return"proxyItems"===t}(r))return;const n=t.get("items").reduce(((t,r)=>(t[r]=!0,t)),{}),i=e.reduce(((t,r)=>(n[r]&&t.push(r),t)),[]);t.set("items",i)}}))(r)),r.use((t=>({set(r,e){switch(r){case"trimmed":const r=t.get("proxyItems"),n=function(t){const r={};for(let e in t)for(let n in t[e])r[n]=r[n]||t[e][n];return r}(e),i=r.reduce(((t,r)=>(n[r]||t.push(r),t)),[]);t.set("items",i)}}}))(r))}get store(){return this.dataStore}updateData(t,r,e=!1){e||this.store.set("trimmed",{}),this.store.set("items",[]);const n=Nr(0,(null==t?void 0:t.length)||0);Wr(this.store,{source:t,proxyItems:[...n]}),this.store.set("items",n),r&&Wr(this.store,{groupingDepth:r.depth,groups:r.groups,groupingCustomRenderer:r.customRenderer})}addTrimmed(t){let r=this.store.get("trimmed");r=Object.assign(Object.assign({},r),t),Wr(this.store,{trimmed:r})}setData(t){const r=Object.assign({},t);Wr(this.store,r)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function Gr(t){const r=t.get("source");return t.get("items").map((t=>r[t]))}function qr(t,r){const e=t.get("items");return t.get("source")[e[r]]}function Kr(t,r){const e=t.get("items"),n=t.get("source");for(let t in r)n[e[t]]=r[t];t.set("source",[...n])}function Xr(t,r){t.set("items",r)}const Jr=["rowPinStart","rgRow","rowPinEnd"],Yr=["colPinStart","rgCol","colPinEnd"];var Qr=function(t,r){var e=-1,n=J(t)?Array(t.length):[];return Q(t,(function(t,i,o){n[++e]=r(t,i,o)})),n},te=function(t,r){return(_(t)?dr:Qr)(t,Rr(r))};class re{constructor(t){this.revogrid=t,this.subscriptions={}}addEventListener(t,r){this.revogrid.addEventListener(t,r),this.subscriptions[t]=r}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]),delete this.subscriptions[t]}emit(t,r){const e=new CustomEvent(t,{detail:r,cancelable:!0});return this.revogrid.dispatchEvent(e),e}clearSubscriptions(){for(let t in this.subscriptions)this.removeEventListener(t)}destroy(){this.clearSubscriptions()}}class ee extends re{static gatherGroup(t,r,e,n=0){const i=Object.assign(Object.assign({},r),{level:n,ids:[]});for(let r in e.columns){const n=r,o=t.columns[n],s=e.columns[n];_(o)&&_(s)&&(o.push(...s),s.length&&t.columnGrouping[n].push(Object.assign(Object.assign({},i),{ids:te(s,"prop")})))}for(let r in e.columnGrouping)t.columnGrouping[r].push(...e.columnGrouping[r]);return t.maxLevel=Math.max(t.maxLevel,e.maxLevel),t.sort=Object.assign(Object.assign({},t.sort),e.sort),t}}function ne(t){return!!t.children}class ie{constructor(){this.sorting=null,this.dataSources=zr(Yr,((t,r)=>(t[r]=new Vr(r),t)),{})}get order(){return zr(this.sorting,((t,r,e)=>(t[e]=r.order,t)),{})}get stores(){return this.dataSources}column(t,r){return this.getColumn(t,r||"rgCol")}getColumn(t,r){return qr(this.dataSources[r].store,t)}getRawColumns(){return zr(this.dataSources,((t,r,e)=>(t[e]=r.store.get("source"),t)),{rgCol:[],colPinStart:[],colPinEnd:[]})}getColumns(t="all"){return"all"!==t?this.dataSources[t].store.get("source"):Yr.reduce(((t,r)=>(t.push(...this.dataSources[r].store.get("source")),t)),[])}getColumnIndexByProp(t,r){return function(t,r){const e=t.get("items"),n=t.get("source"),i=Ir(n,{prop:r});return e.indexOf(i)}(this.dataSources[r].store,t)}getColumnByProp(t,r){const e=this.dataSources[r].store.get("source");return Tr(e,{prop:t})}refreshByType(t){this.dataSources[t].refresh()}setColumns(t){return Mr(Yr,(r=>{this.dataSources[r].updateData(t.columns[r],{depth:t.maxLevel,groups:zr(t.columnGrouping[r],((t,r)=>(t[r.level]||(t[r.level]=[]),t[r.level].push(r),t)),{})})})),this.sorting=t.sort,t}updateColumns(t){const r=t.reduce(((t,r)=>{const e=ie.getColumnType(r);return t[e]||(t[e]={}),t[e][r.prop]=r,t}),{}),e={};Mr(r,((t,r)=>{const n=this.dataSources[r].store.get("source");e[r]=n.reduce(((r,e,n)=>{const i=t[e.prop];return i&&(r[n]=i),r}),{})})),Mr(e,((t,r)=>Kr(this.dataSources[r].store,t)))}updateColumn(t,r){const e=ie.getColumnType(t);Kr(this.dataSources[e].store,{[r]:t})}updateColumnSorting(t,r,e,n){return n||this.clearSorting(),t.order=e,this.sorting[t.prop]=t,this.updateColumn(t,r),t}clearSorting(){const t=zr(this.sorting,((t,r)=>(t[ie.getColumnType(r)]=!0,t)),{});Mr(t,((t,r)=>{const e=this.dataSources[r].store.get("source");Mr(e,(t=>t.order=void 0)),this.dataSources[r].setData({source:[...e]})})),this.sorting={}}static getSizes(t){return zr(t,((t,r,e)=>(r.size&&(t[e]=r.size),t)),{})}static getColumnByProp(t,r){return Tr(t,(t=>ne(t)?ie.getColumnByProp(t.children,r):t.prop===r))}static getColumns(t,r=0,e){return zr(t,((t,n)=>{if(ne(n))return ee.gatherGroup(t,n,ie.getColumns(n.children,r+1,e),r);const i=Object.assign(Object.assign({},n.columnType&&e&&e[n.columnType]),n);return i.pin?t.columns[i.pin].push(i):t.columns.rgCol.push(i),i.order&&(t.sort[i.prop]=i),i.beforeSetup&&i.beforeSetup(i),t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})}static getColumnType(t){return t.pin?t.pin:"rgCol"}}class oe{constructor(t){this.dimensionProvider=t,this.stores=zr(Jr,((t,r)=>(t[r]=new Vr(r),t)),{})}setData(t,r="rgRow",e,n=!1){return this.stores[r].updateData([...t],e,n),this.dimensionProvider.setData(t,r,"rgRow"!==r),t}getModel(t,r="rgRow"){return qr(this.stores[r].store,t)}setCellData({type:t,rowIndex:r,prop:e,val:n}){const i=this.getModel(r,t);i[e]=n,Kr(this.stores[t].store,{[r]:i})}refresh(t="all"){(function(t){return Jr.indexOf(t)>-1})(t)&&this.refreshItems(t),Jr.forEach((t=>this.refreshItems(t)))}refreshItems(t="rgRow"){const r=this.stores[t].store.get("items");this.stores[t].setData({items:[...r]})}setGrouping({depth:t},r="rgRow"){this.stores[r].setData({groupingDepth:t})}setTrimmed(t,r="rgRow"){const e=this.stores[r];e.addTrimmed(t),"rgRow"===r&&this.dimensionProvider.setData(Gr(e.store),r)}}var se,ae=Math.floor,ue=Math.min,ce=function(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!g(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return function(t,r,e,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(r=e(r))!=r,a=null===r,u=g(r),c=void 0===r;i<o;){var l=ae((i+o)/2),h=e(t[l]),f=void 0!==h,d=null===h,v=h==h,p=g(h);if(s)var C=n||v;else C=c?v&&(n||f):a?v&&f&&(n||!d):u?v&&f&&!d&&(n||!p):!d&&!p&&(n?h<=r:h<r);C?i=l+1:o=l}return ue(o,4294967294)}(t,r,Er,e)},le=function(t,r){return ce(t,r)};function he(t,r){return t<r}function fe(t){const r=t.createElement("div"),e=r.style;e.visibility="hidden",e.overflow="scroll",e.msOverflowStyle="scrollbar",t.body.appendChild(r);const n=t.createElement("div");r.appendChild(n);const i=r.offsetWidth-n.offsetWidth;return r.parentNode.removeChild(r),i}function de(t,r,e){return(e[1]-e[0])*(t-r[0])/(r[1]-r[0])+e[0]}async function ge(t=0){await new Promise((r=>{setTimeout((()=>r()),t)}))}function ve({indexes:t,positionIndexes:r,originItemSize:e,positionIndexToItem:n},i){const o={itemIndex:0,start:0,end:0},s=t.length?le(r,i):0;if(!s)return o.itemIndex=Math.floor(i/e),o.start=o.itemIndex*e,o.end=o.start+e,o;const a=n[s-1];if(a.end>i)return a;const u=Math.floor((i-a.end)/e);return o.itemIndex=a.itemIndex+1+u,o.start=a.end+u*e,o.end=o.start+e,o}function pe(t,r){let e={itemIndex:r,start:0,end:0};if(t.indexToItem[r])return t.indexToItem[r];const n=t.indexes.length?le(t.indexes,r):0;if(!n)return e.start=e.itemIndex*t.originItemSize,e.end=e.start+t.originItemSize,e;const i=t.indexToItem[t.indexes[n-1]];return e.start=i.end+(r-i.itemIndex-1)*t.originItemSize,e.end=e.start+t.originItemSize,e}function Ce(){return Object.assign(Object.assign({},{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}),{realSize:0,originItemSize:0,frameOffset:0})}class we{constructor(){this.store=Ur(Ce())}getCurrentState(){const t=Ce(),r=Object.keys(t);return zr(r,((t,r)=>{const e=this.store.get(r);return t[r]=e,t}),t)}setRealSize(t){let r=0;for(let e=0;e<t;e++)r+=this.store.get("sizes")[e]||this.store.get("originItemSize");Wr(this.store,{realSize:r})}setStore(t){Wr(this.store,t)}drop(){Wr(this.store,{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]})}setDimensionSize(t){const r=function(t,r){let e=[];const n={},i={};let o=0;const s=Object.assign(Object.assign({},t.sizes),r);let a=[];Mr(r,((r,e)=>{t.sizes[e]?o+=r-t.sizes[e]:(o+=r-(t.realSize?t.originItemSize:0),a.splice(le(a,parseInt(e,10)),0,parseInt(e,10)))}));const u=function(t,r,e=he){const n=[];let i=0,o=0,s=0;for(;s<t.length+r.length;){let a=o>=r.length;i>=t.length||!a&&!e(t[i],r[o])?(n[s]=r[o],o++):(n[s]=t[i],i++),s++}return n}(t.indexes,a);return zr(u,((r,o,a)=>{const u={itemIndex:o,start:0,end:0};return u.start=r?(o-r.itemIndex-1)*t.originItemSize+r.end:o*t.originItemSize,u.end=u.start+s[o],e.push(u.start),i[o]=n[a]=u,u}),void 0),{indexes:u,positionIndexes:[...e],positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:t.realSize+o,sizes:s}}(this.getCurrentState(),t);return Wr(this.store,r),r}}class me{constructor(t){this.viewports=t,this.stores=zr([...Jr,...Yr],((t,r)=>(t[r]=new we,t)),{})}setDimensionSize(t,r){this.stores[t].setDimensionSize(r),this.viewports.stores[t].setViewPortDimension(r)}setRealSize(t,r){this.viewports.stores[r].setViewport({realCount:t}),this.stores[r].setRealSize(t)}setData(t,r,e=!1){this.setRealSize(t.length,r),e&&this.setNoVirtual(r),this.setViewPortCoordinate({coordinate:this.viewports.stores[r].store.get("lastCoordinate"),type:r})}setNoVirtual(t){const r=this.stores[t].getCurrentState();this.viewports.stores[t].setViewport({virtualSize:r.realSize})}drop(){for(let t of Yr)this.stores[t].drop()}setColumns(t,r,e=!1){this.stores[t].setDimensionSize(r),e&&this.setNoVirtual(t),this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})}setViewPortCoordinate({coordinate:t,type:r}){const e=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,e)}getViewPortPos(t){return pe(this.stores[t.dimension].getCurrentState(),t.coordinate).start}setSettings(t,r){let e=[];switch(r){case"rgCol":e=Yr;break;case"rgRow":e=Jr}for(let r of e)this.stores[r].setStore(t)}}function Le(t,r,e){t.splice(e.end+1,0,...r),e.start>=e.end&&(e.start!==e.end||0!==e.start)&&(e.start+=r.length),e.end+=r.length}function be(t,r,e,n,i){const o=ke(n);return xe({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:e-(o.end-t.start),maxCount:r})}function xe(t,r=0){const e=[];let n=t.startIndex,i=r;for(;i<=t.maxSize&&n<t.maxCount;){const r=ye(n,t.sizes,t.origSize);e.push({start:t.start+i,end:t.start+i+r,itemIndex:n,size:r}),i+=r,n++}return e}function ye(t,r,e=0){return r&&r[t]?r[t]:e}function Ee(t){return t.items[t.start]}function ke(t){return t.items[t.end]}class Se{constructor(){this.store=Ur({items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}),this.store.onChange("realCount",(()=>this.clear()))}setViewPortCoordinate(t,r){let e=this.store.get("virtualSize");if(!e)return;const n=r.frameOffset;e+=2*n*r.originItemSize;let i=e;r.realSize>e&&(i=r.realSize-e);let o={lastCoordinate:t},s=t;s-=n*r.originItemSize,s=s<0?0:s<i?s:i;const a=Ee(this.getItems()),u=ke(this.getItems());if(function(t,r){return r&&t>=r.start&&t<=r.end}(s,a)){if(a&&this.store.get("virtualSize")+s>(null==u?void 0:u.end)){const t=be(a,this.store.get("realCount"),e+s-a.start,this.getItems(),r);if(t.length){const r=[...this.store.get("items")],e={start:this.store.get("start"),end:this.store.get("end")};Le(r,t,e),o=Object.assign(Object.assign(Object.assign({},o),{items:[...r]}),e),Wr(this.store,Object.assign({},o))}}}else o=Object.assign(Object.assign({},o),function(t,r,e,n,i){const o=ve(i,t),s=Ee(r);let a;if(s){let t=o.itemIndex-(s.itemIndex||0);if(t){const s=function(t,r){const e=[...r.items],n=e.length;let i={start:r.start,end:r.end};if(t>n)return null;if(r.positiveDirection){let o=ke(r),s=i.start;const a=s+t;for(;s<a;s++){const t=o.itemIndex+1,a=ye(t,r.sizes,r.originItemSize);if(o.end+a>r.realSize)break;let u=s%n;if(!e[u])throw new Error("incorrect index");e[u]=o={start:o.end,end:o.end+a,itemIndex:t,size:a},i.start++,i.end=u}}else{let o=Ee(r);const s=i.end;for(let a=0;a<t;a++){const t=o.itemIndex-1,u=ye(t,r.sizes,r.originItemSize);let c=s-a;if(c=(c<0?n+c:c)%n,!e[c])throw new Error("incorrect index");e[c]=o={start:o.start-u,end:o.start,itemIndex:t,size:u},i.start=c,i.end--}}return Object.assign({items:e},{start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n})}(Math.abs(t),Object.assign(Object.assign({positiveDirection:t>-1},i),r));if(s&&(a=s),a){const t=be(o,e,n,a,i);t.length&&Le(a.items,t,a)}}}if(!a){const t=xe({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:e,sizes:i.sizes});a={items:t,start:0,end:t.length-1}}return a}(s,this.getItems(),this.store.get("realCount"),e,r)),Wr(this.store,Object.assign({},o))}setViewPortDimension(t){const r=this.store.get("items"),e=r.length;if(!e)return;let n=0,i=0,o=this.store.get("start");for(;i<e;){const s=r[o];n&&(s.start+=n,s.end+=n);const a=t[s.itemIndex];a&&(n+=a-s.size,s.size=a,s.end=s.start+a),o++,i++,o===e&&(o=0)}Wr(this.store,{items:[...r]})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){Wr(this.store,t)}clear(){this.store.set("items",[])}}class Re{constructor(){this.stores=zr([...Jr,...Yr],((t,r)=>(t[r]=new Se,t)),{})}setViewport(t,r){this.stores[t].setViewport(r)}}!function(t){t.headerClickAutosize="headerClickAutoSize",t.autoSizeOnTextOverlap="autoSizeOnTextOverlap",t.autoSizeAll="autoSizeAll"}(se||(se={}));class je extends re{constructor(t,r,e){super(t),this.providers=r,this.config=e,this.autoSizeColumns=null,this.dataResolve=null,this.dataReject=null,this.letterBlockSize=(null==e?void 0:e.letterBlockSize)||7,(null==e?void 0:e.preciseSize)&&(this.precsizeCalculationArea=this.initiatePresizeElement(),t.appendChild(this.precsizeCalculationArea));const n=({detail:{source:t}})=>{this.setSource(t)},i=({detail:t})=>{this.afteredit(t)},o=({detail:t})=>{this.afterEditAll(t)},s=({detail:t})=>{const r=ie.getColumnType(t),e=this.getColumnSize(t.index,r);e&&this.providers.dimensionProvider.setDimensionSize(r,{[t.index]:e})};switch(this.addEventListener("beforecolumnsset",(({detail:{columns:t}})=>{this.columnSet(t)})),null==e?void 0:e.mode){case se.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",i);break;case se.autoSizeAll:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",o);break;default:this.addEventListener("headerdblClick",s)}}async setSource(t){let r=this.autoSizeColumns;if(this.dataReject&&(this.dataReject(),this.clearPromise()),!r){const t=new Promise(((t,r)=>{this.dataResolve=t,this.dataReject=r}));try{r=await t}catch(t){return}}Mr(r,((e,n)=>{const i={};Mr(r[n],(r=>{r.size=i[r.index]=t.reduce(((t,e)=>Math.max(t,this.getLength(e[r.prop]))),this.getLength(r.name||""))})),this.providers.dimensionProvider.setDimensionSize(n,i)}))}getLength(t){var r;if(!t)return 0;try{const e=t.toString();return(null===(r=this.config)||void 0===r?void 0:r.preciseSize)?(this.precsizeCalculationArea.innerText=e,this.precsizeCalculationArea.scrollWidth+30):e.length*this.letterBlockSize+30}catch(t){return 0}}afteredit(t){let r;r=this.isRangeEdit(t)?t.data:{0:{[t.prop]:t.val}},Mr(this.autoSizeColumns,((t,e)=>{const n={};Mr(t,(t=>{const e=zr(r,((r,e)=>void 0===e[t.prop]?r:Math.max(r||0,this.getLength(e[t.prop]))),void 0);e&&t.size<e&&(t.size=n[t.index]=e)})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}afterEditAll(t){const r={};this.isRangeEdit(t)?Mr(t.data,(t=>Mr(t,((t,e)=>r[e]=!0)))):r[t.prop]=!0,Mr(this.autoSizeColumns,((t,e)=>{const n={};Mr(t,(t=>{if(r[t.prop]){const r=this.getColumnSize(t.index,e);r&&(n[t.index]=r)}})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}getColumnSize(t,r){const e=this.autoSizeColumns[r][t];return e?zr(this.providers.dataProvider.stores,((t,r)=>{const n=zr(r.store.get("items"),((t,n,i)=>{const o=qr(r.store,i);return Math.max(t||0,this.getLength(o[e.prop]))}),0);return Math.max(t,n)}),e.size||0):0}columnSet(t){var r;for(let e of Yr){const n=e,i=t[n];for(let t in i)(i[t].autoSize||(null===(r=this.config)||void 0===r?void 0:r.allColumns))&&(this.autoSizeColumns||(this.autoSizeColumns={}),this.autoSizeColumns[n]||(this.autoSizeColumns[n]={}),this.autoSizeColumns[n][t]=Object.assign(Object.assign({},i[t]),{index:parseInt(t,10)}))}this.dataResolve&&(this.dataResolve(this.autoSizeColumns),this.clearPromise())}clearPromise(){this.dataResolve=null,this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){const t={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"},r=document.createElement("div");for(let e in t)r.style[e]=t[e];return r.classList.add("revo-test-container"),r}destroy(){var t;super.destroy(),null===(t=this.precsizeCalculationArea)||void 0===t||t.remove()}}const ze=(t,r)=>{if(void 0===t||null===t&&!r)return!0;"string"!=typeof t&&(t=JSON.stringify(t));const e=r.toString().toLocaleLowerCase();return 0===e.length||t.toLocaleLowerCase()===e},Oe=(t,r)=>!ze(t,r);Oe.extra="input",ze.extra="input";const Me=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t>e)};Me.extra="input";const Fe=function(t,r){return ze(t,r)||Me(t,r)};Fe.extra="input";const _e=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t<e)};_e.extra="input";const Ae=function(t,r){return ze(t,r)||_e(t,r)};Ae.extra="input";const De=t=>!(""===t||null==t),Ie=(t,r)=>!(!t||r&&("string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof r&&(r=JSON.stringify(r)),0!==t.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())));Ie.extra="input";const Te=(t,r)=>!!t&&(!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase().indexOf(r.toString().toLowerCase())>-1)),Pe=(t,r)=>!Te(t,r);Pe.extra="input",Te.extra="input";const $e={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:"<="},Ue={none:()=>!0,empty:t=>!De(t),notEmpty:De,eq:ze,notEq:Oe,begins:Ie,contains:Te,notContains:Pe,eqN:ze,neqN:Oe,gt:Me,gte:Fe,lt:_e,lte:Ae},He={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};class Ze extends re{constructor(t,r,n){var i;super(t),this.revogrid=t,this.filterCollection={},this.multiFilterItems={},this.possibleFilters=Object.assign({},He),this.possibleFilterNames=Object.assign({},$e),this.possibleFilterEntities=Object.assign({},Ue),n&&this.initConfig(n),this.addEventListener("headerclick",(t=>this.headerclick(t))),this.addEventListener("aftersourceset",(async()=>{const t=Object.keys(this.filterCollection);t.length>0&&t.forEach(((t,r)=>{this.multiFilterItems[t]||(this.multiFilterItems[t]=[{id:r,type:this.filterCollection[t].type,value:this.filterCollection[t].value,relation:"and"}])})),await this.runFiltering()})),this.revogrid.registerVNode([e("revogr-filter-panel",{uuid:`filter-${r}`,filterItems:this.multiFilterItems,filterNames:this.possibleFilterNames,filterEntities:this.possibleFilterEntities,filterCaptions:null===(i=null==n?void 0:n.localization)||void 0===i?void 0:i.captions,onFilterChange:t=>this.onFilterChange(t.detail),disableDynamicFiltering:null==n?void 0:n.disableDynamicFiltering,ref:t=>this.pop=t})])}initConfig(t){if(t.collection&&(this.filterCollection=Object.assign({},t.collection)),t.multiFilterItems&&(this.multiFilterItems=Object.assign({},t.multiFilterItems)),t.customFilters)for(let r in t.customFilters){const e=t.customFilters[r];this.possibleFilters[e.columnFilterType]||(this.possibleFilters[e.columnFilterType]=[]),this.possibleFilters[e.columnFilterType].push(r),this.possibleFilterEntities[r]=e.func,this.possibleFilterNames[r]=e.name}if(t.include){const r={};for(let e in this.possibleFilters){const n=this.possibleFilters[e].filter((r=>t.include.indexOf(r)>-1));n.length&&(r[e]=n)}Object.keys(r).length>0&&(this.possibleFilters=r)}t.localization&&t.localization.filterNames&&Object.entries(t.localization.filterNames).forEach((([t,r])=>{null!=this.possibleFilterNames[t]&&(this.possibleFilterNames[t]=r)}))}async headerclick(t){var r;const e=null===(r=t.detail.originalEvent)||void 0===r?void 0:r.target;if(!p(e))return;t.preventDefault();const n=await this.pop.getChanges();if(n&&(null==n?void 0:n.prop)===t.detail.prop)return void this.pop.show();const i=this.revogrid.getBoundingClientRect(),o=e.getBoundingClientRect(),s=t.detail.prop;this.pop.filterTypes=this.getColumnFilter(t.detail.filter),this.pop.show(Object.assign(Object.assign({},this.filterCollection[s]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:s}))}getColumnFilter(t){let r="string";if(!t)return{[r]:this.possibleFilters[r]};if(this.isValidType(t))r=t;else if("object"==typeof t&&t.length)return t.reduce(((t,r)=>(this.isValidType(r)&&(t[r]=this.possibleFilters[r]),t)),{});return{[r]:this.possibleFilters[r]}}isValidType(t){return!("string"!=typeof t||!this.possibleFilters[t])}async onFilterChange(t){this.multiFilterItems=t,this.runFiltering()}async doFiltering(t,r,e,n){const i=[];e.forEach((t=>{const r=Object.assign({},t),e=n[r.prop];r[C]&&!e&&(delete r[C],i.push(r)),!r[C]&&e&&(i.push(r),r[C]=!0)}));const o=this.getRowFilter(r,n),{defaultPrevented:s,detail:a}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:o,source:r,filterItems:n});s||(await this.revogrid.addTrimmed(a.itemsToFilter,"filter")).defaultPrevented||(await this.revogrid.updateColumns(i),this.emit("afterFilterApply"))}async clearFiltering(){this.multiFilterItems={},await this.runFiltering()}async runFiltering(){const t={},r=Object.keys(this.multiFilterItems);for(const e of r)if(this.multiFilterItems[e].length>0){const r=this.multiFilterItems[e][0];t[e]={filter:Ue[r.type],type:r.type,value:r.value}}this.filterCollection=t;const{source:e,columns:n}=await this.getData(),{defaultPrevented:i,detail:o}=this.emit("beforefilterapply",{collection:this.filterCollection,source:e,columns:n,filterItems:this.multiFilterItems});i||this.doFiltering(o.collection,o.source,o.columns,o.filterItems)}async getData(){return{source:await this.revogrid.getSource(),columns:await this.revogrid.getColumns()}}getRowFilter(t,r){const e=Object.keys(r),n={};let i=0,o=[];return t.forEach(((t,s)=>{for(const a of e){const e=r[a];i=0,o=[];for(const[r,n]of e.entries()){const s=this.possibleFilterEntities[n.type];if("or"===n.relation){if(o=[],s(t[a],n.value))continue;i++}else{o.push(!s(t[a],n.value));const u=e[r+1];if(!u||"and"!==u.relation){if(-1===o.indexOf(!0)){o=[];continue}i+=o.length,o=[]}}}i===e.length&&(n[s]=!0)}})),n}}var Be=function(t){return"string"==typeof t||!_(t)&&a(t)&&"[object String]"==u(t)},Ne=kr("length"),We=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ve="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ge="\\ud83c[\\udffb-\\udfff]",qe="[^\\ud800-\\udfff]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Je="(?:"+Ve+"|"+Ge+")?",Ye="[\\ufe0e\\ufe0f]?"+Je+"(?:\\u200d(?:"+[qe,Ke,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+Je+")*",Qe="(?:"+[qe+Ve+"?",Ve,Ke,Xe,"[\\ud800-\\udfff]"].join("|")+")",tn=RegExp(Ge+"(?="+Ge+")|"+Qe+Ye,"g"),rn=function(t){return function(t){return We.test(t)}(t)?function(t){for(var r=tn.lastIndex=0;tn.test(t);)++r;return r}(t):Ne(t)},en=function(t){if(null==t)return 0;if(J(t))return Be(t)?rn(t):t.length;var r=Kt(t);return"[object Map]"==r||"[object Set]"==r?t.size:K(t).length};class nn extends re{constructor(t){super(t),this.revogrid=t,this.sorting=null,this.sortingFunc=null,this.addEventListener("beforesourceset",(({detail:t})=>{if(this.hasSorting&&this.emit("beforesourcesortingapply").defaultPrevented)return;const r=this.setData(t.source,t.type);r&&(t.source=r)})),this.addEventListener("aftercolumnsset",(async({detail:{order:t}})=>{const r=await this.revogrid.getColumns(),e={};for(let n in t){const i=ie.getColumnByProp(r,n),o=(null==i?void 0:i.cellCompare)||this.defaultCellCompare;e[n]="desc"==t[n]?this.descCellCompare(o):o}this.sort(t,e)})),this.addEventListener("initialHeaderClick",(async t=>{var r,e;t.defaultPrevented||t.detail.column.sortable&&this.headerclick(t.detail.column,t.detail.index,null===(e=null===(r=t.detail)||void 0===r?void 0:r.originalEvent)||void 0===e?void 0:e.shiftKey)}))}get hasSorting(){return!!this.sorting}async headerclick(t,r,e){let n=this.getNextOrder(t.order);const i=this.emit("beforesorting",{column:t,order:n,additive:e});if(i.defaultPrevented)return;n=i.detail.order;const o=await this.revogrid.updateColumnSorting(i.detail.column,r,n,e),s=this.emit("beforesortingapply",{column:o,order:n,additive:e});if(s.defaultPrevented)return;n=s.detail.order;const a=(null==t?void 0:t.cellCompare)||this.defaultCellCompare,u="asc"==n?a:"desc"==n?this.descCellCompare(a):void 0;if(e&&this.sorting){const r={},e={};Object.assign(r,this.sorting),Object.assign(e,this.sortingFunc),t.prop in r&&en(r)>1&&void 0===n?(delete r[t.prop],delete e[t.prop]):(r[t.prop]=n,e[t.prop]=u),this.sort(r,e)}else this.sort({[t.prop]:n},{[t.prop]:u})}setData(t,r){if("rgRow"===r&&this.sortingFunc)return this.sortItems(t,this.sortingFunc)}async sort(t,r){if(!en(t))return this.sorting=null,void(this.sortingFunc=null);this.sorting=t,this.sortingFunc=r;const e=await this.revogrid.getSourceStore(),n=e.get("source"),i=this.sortIndexByItems([...e.get("proxyItems")],n,this.sortingFunc);Wr(e,{proxyItems:i,source:[...n]}),this.emit("afterSortingApply")}defaultCellCompare(t,r,e){var n,i;const o=null===(n=r[t])||void 0===n?void 0:n.toString().toLowerCase(),s=null===(i=e[t])||void 0===i?void 0:i.toString().toLowerCase();return o==s?0:o>s?1:-1}descCellCompare(t){return(r,e,n)=>-1*t(r,e,n)}sortIndexByItems(t,r,e){for(let r in e)if(void 0===e[r])return[...Array(t.length).keys()];return t.sort(((t,n)=>{let i=0;for(let o in e)if(i=(0,e[o])(o,r[t],r[n]),i)break;return i}))}sortItems(t,r){return t.sort(((t,e)=>{let n=0;for(let i in r){const o=r[i];if(o&&(n=o(i,t,e),n))break}return n}))}getNextOrder(t){switch(t){case void 0:return"asc";case"asc":return"desc";case"desc":return}}}var on=function(t,r,e,n){var i=t.length;for((e=Ar(e))<0&&(e=-e>i?0:i+e),(n=void 0===n||n>i?i:Ar(n))<0&&(n+=i),n=e>n?0:function(t){return t?(r=Ar(t),e=0,n=4294967295,r==r&&(void 0!==n&&(r=r<=n?r:n),void 0!==e&&(r=r>=e?r:e)),r):0;var r,e,n}(n);e<n;)t[e++]=r;return t};const sn="grid-uuid";function an(t,r,{prevExpanded:e,expandedAll:n}){const i=new Map;t.forEach(((t,e)=>{const n=r.map((r=>t[r]||null)),o=n.pop();let s=i;n.forEach((t=>{s.has(t)||s.set(t,new Map),s=s.get(t)})),s.has(o)||s.set(o,[]),t["__rvgr-original-index"]=e,s.get(o).push(t)}));let o=-1;const s=r.length,a={},u={},c={},l=[];return function t(r,i,s){const h=i.length;r.forEach(((r,f)=>{const d=[...i,f],g=d.join(","),v=s&&(!!n||!!(null==e?void 0:e[g]));l.push({"__rvgr-name":f,"__rvgr-depth":h,"__rvgr-id":JSON.stringify(d),"__rvgr-value":g,"__rvgr-expanded":v}),o+=1,!v&&h&&(a[o]=!0),Array.isArray(r)?(r.forEach((t=>{o+=1,v||(a[o]=!0),u[t["__rvgr-original-index"]]=o,d.map(((t,r)=>d.slice(0,r+1).join(","))).forEach((t=>{c[t]||(c[t]=[]),c[t].push(o)}))})),l.push(...r)):t(r,d,v)}))}(i,[],!0),{sourceWithGroups:l,depth:s,trimmed:a,oldNewIndexMap:u,childrenByGroup:c}}function un(t){return t&&void 0!==t["__rvgr-name"]}function cn(t){return t&&void 0!==t["__rvgr-column"]}function ln(t){const r=JSON.parse(t);return Array.isArray(r)?r:null}function hn(t,r,e){const n=ln(e["__rvgr-id"]);if(!n)return!1;const i=function(t,r){const e=t.length;let n=0;for(;n<e;n++)if(t[n]!==r[n])return n;return n}(t,n);return r["__rvgr-depth"]<i}const fn={mime:"text/csv",fileKind:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""},dn=String.fromCharCode(13),gn=String.fromCharCode(10),vn=String.fromCharCode(34),pn=String.fromCharCode(65279),Cn=new RegExp('"',"g");class wn{constructor(t={}){this.options=Object.assign(Object.assign({},fn),t)}doExport({data:t,headers:r,props:e}){let n=this.options.bom?pn:"";return(null==r?void 0:r.length)>0&&r.forEach((t=>{t.length&&(n+=this.prepareHeader(t,this.options.columnDelimiter),n+=this.options.rowDelimiter)})),t.forEach(((t,r)=>{r>0&&(n+=this.options.rowDelimiter),un(t)?n+=this.parseCell(function(t){return t&&t["__rvgr-name"]}(t),this.options.columnDelimiter):n+=e.map((r=>this.parseCell(t[r],this.options.columnDelimiter))).join(this.options.columnDelimiter)})),n}prepareHeader(t,r){let e="";return e+=t.map((t=>this.parseCell(t,r,!0))).join(r),e}parseCell(t,r,e=!1){let n=t;return"string"!=typeof t&&(n=JSON.stringify(t)),void 0===n?"":""!==n&&(e||[dn,vn,gn,r].some((t=>n.indexOf(t)>=0)))?`"${n.replace(Cn,'""')}"`:n}}var mn;!function(t){t.csv="csv"}(mn||(mn={}));class Ln extends re{async exportString(t={},r=mn.csv){const e=await this.beforeexport();return e?this.formatter(r,t).doExport(e):null}async exportBlob(t={},r=mn.csv){return await this.getBlob(this.formatter(r,t))}async exportFile(t={},r=mn.csv){const e=this.formatter(r,t),n=await this.getBlob(e),i=window.URL||window.webkitURL,o=document.createElement("a"),{filename:s,fileKind:a}=e.options,u=`${s}.${a}`,c=i.createObjectURL(n);o.style.display="none",o.setAttribute("href",c),o.setAttribute("download",u),this.revogrid.appendChild(o),o.dispatchEvent(new MouseEvent("click")),this.revogrid.removeChild(o),await ge(120),i.revokeObjectURL(c)}async getBlob(t){const r=`${t.options.mime};charset=${t.options.encoding}`;if("undefined"!=typeof Blob){const e=await this.beforeexport();return e?new Blob([t.doExport(e)],{type:r}):null}return null}async beforeexport(){let t=await this.getData();const r=this.emit("beforeexport",{data:t});return r.defaultPrevented?null:r.detail.data}async getData(){const t=await this.getSource(),r=[],e=[];Yr.forEach(((t,n)=>{e.push(this.getColPerSource(t).then((t=>r[n]=t)))})),await Promise.all(e);const n={headers:[],props:[]};for(let t of r)t.headers.forEach(((t,r)=>{n.headers[r]||(n.headers[r]=[]),n.headers[r].push(...t)})),n.props.push(...t.props);return Object.assign({data:t},n)}async getColPerSource(t){const r=await this.revogrid.getColumnStore(t),e=r.get("source"),n=r.get("items"),i=r.get("groupingDepth"),o=r.get("groups"),s=[],a=[],u=n.reduce(((t,r,n)=>{const i=e[r].prop;return s.push(e[r].name||""),a.push(i),t[i]=n,t}),{}),c=this.getGroupHeaders(i,o,n,u);return c.push(s),{headers:c,props:a}}getGroupHeaders(t,r,e,n){const i=[],o=(s=new Array(e.length),a="",(l=null==s?0:s.length)?(u&&"number"!=typeof u&&Br(s,a,u)&&(u=0,c=l),on(s,a,u,c)):[]);var s,a,u,c,l;for(let e=0;e<t;e++){const t=[...o];(i.push(t),r[e])&&r[e].forEach((r=>{const e=this.findGroupStartIndex(r.ids,n);"number"==typeof e&&(t[e]=r.name)}))}return i}findGroupStartIndex(t,r){let e;return t.forEach((t=>{const n=r[t];"number"==typeof n&&("number"!=typeof e||e>n)&&(e=n)})),e}async getSource(){const t=[],r=[];return Jr.forEach((e=>{const n=[];t.push(n);const i=this.revogrid.getVisibleSource(e).then((t=>n.push(...t)));r.push(i)})),await Promise.all(r),t.reduce(((t,r)=>(t.push(...r),t)),[])}formatter(t,r={}){switch(t){case mn.csv:return new wn(r);default:throw new Error("Unknown format")}}}class bn extends re{constructor(t,r){super(t),this.revogrid=t,this.providers=r}get hasProps(){var t,r,e;return(null===(t=this.options)||void 0===t?void 0:t.props)&&(null===(e=null===(r=this.options)||void 0===r?void 0:r.props)||void 0===e?void 0:e.length)}get store(){return this.providers.dataProvider.stores.rgRow.store}get rowItems(){return this.store.get("items")}get trimmed(){return this.store.get("trimmed")}onFocus(t){un(t.detail.model)&&t.preventDefault()}onExpand({virtualIndex:t}){const{source:r}=this.getSource();let e=this.trimmed.grouping,n=function(t,r){return t.get("items")[r]}(this.store,t);if(r[n]["__rvgr-expanded"]){const{trimmed:t}=function(t,r){const e=r[t],n=e["__rvgr-value"],i={};let o=t+1;const s=r.length;for(;o<s;){const t=r[o];if(un(t)){const r=t["__rvgr-value"];if(!r.length||!r.startsWith(n+","))break;t["__rvgr-expanded"]=!1}i[o++]=!0}return e["__rvgr-expanded"]=!1,{trimmed:i}}(n,r);e=Object.assign(Object.assign({},e),t),this.revogrid.clearFocus()}else{const{trimmed:n,items:i}=function(t,r,e){const n=e[t],i=r[n],o=ln(i["__rvgr-id"]),s={};if(!o)return{trimmed:s};const a=[];i["__rvgr-expanded"]=!0;let u=n+1;const c=r.length;let l=0;for(;u<c;){const t=r[u],e=un(t);if(e){if(!hn(o,i,t))break;l||(l=t["__rvgr-depth"])}(!l||e&&l===t["__rvgr-depth"])&&(s[u]=!1,a.push(u)),u++}const h={trimmed:s};if(a.length){const r=[...e];r.splice(t+1,0,...a),h.items=r}return h}(t,r,this.rowItems);e=Object.assign(Object.assign({},e),n),i&&Xr(this.store,i)}this.store.set("source",r),this.revogrid.addTrimmed(e,"grouping")}getSource(t=!1){const r=this.store.get("source"),e=this.store.get("proxyItems");let n=0;return e.reduce(((e,i)=>{const o=r[i];return t?(un(o)?o["__rvgr-expanded"]&&(e.prevExpanded[o["__rvgr-value"]]=!0):(e.source.push(o),e.oldNewIndexes[i]=n,n++),e):(e.source.push(o),e)}),{source:[],prevExpanded:{},oldNewIndexes:{}})}setColumnGrouping(t){return!!(null==t?void 0:t.length)&&(t[0]["__rvgr-column"]=!0,!0)}setColumns({columns:t}){for(let r of Yr)if(this.setColumnGrouping(t[r]))break}onDrag(t){const{from:r,to:e}=t.detail,n=e-r>=0,{source:i}=this.getSource(),o=this.rowItems;let s=n?r:e;const a=n?e:r;for(;s<a;s++)if(un(i[o[s]]))return void t.preventDefault()}beforeTrimmedApply(t,r){if("filter"===r){const r=this.store.get("source");for(let e in t)t[e]&&un(r[e])&&(t[e]=!1)}}subscribe(){this.addEventListener("beforesourceset",(({detail:t})=>this.onDataSet(t))),this.addEventListener("beforecolumnsset",(({detail:t})=>this.setColumns(t))),this.addEventListener("beforetrimmed",(({detail:{trimmed:t,trimmedType:r}})=>this.beforeTrimmedApply(t,r))),this.addEventListener("afterSortingApply",(()=>this.doSourceUpdate(Object.assign({},this.options)))),this.addEventListener("beforecellfocus",(t=>this.onFocus(t))),this.addEventListener("roworderchanged",(t=>this.onDrag(t))),this.addEventListener("groupExpandClick",(({detail:t})=>this.onExpand(t)))}doSourceUpdate(t){var r;if(!this.hasProps)return;const{source:e,prevExpanded:n,oldNewIndexes:i}=this.getSource(!0),{sourceWithGroups:o,depth:s,trimmed:a,oldNewIndexMap:u,childrenByGroup:c}=an(e,(null===(r=this.options)||void 0===r?void 0:r.props)||[],Object.assign({prevExpanded:n},t));this.providers.dataProvider.setData(o,"rgRow",{depth:s,customRenderer:null==t?void 0:t.groupLabelTemplate},!0),this.updateTrimmed(a,c,i,u)}onDataSet(t){var r;if(!this.hasProps||!(null==t?void 0:t.source)||!t.source.length)return;const e=t.source.filter((t=>!un(t))),n=this.revogrid.grouping||{},{sourceWithGroups:i,depth:o,trimmed:s,oldNewIndexMap:a,childrenByGroup:u}=an(e,(null===(r=this.options)||void 0===r?void 0:r.props)||[],Object.assign({},n||{}));t.source=i,this.providers.dataProvider.setGrouping({depth:o}),this.updateTrimmed(s,u,a)}setGrouping(t){if(this.clearSubscriptions(),this.options=t,!t.props||!Object.keys(t.props).length)return void this.clearGrouping();const{source:r}=this.getSource();r.length&&this.doSourceUpdate(Object.assign({},t));for(let t of Yr)if(this.setColumnGrouping(this.providers.columnProvider.getColumns(t))){this.providers.columnProvider.refreshByType(t);break}this.subscribe()}clearGrouping(){Yr.forEach((t=>{const r=this.providers.columnProvider.getColumns(t);let e=!1;r.forEach((t=>{cn(t)&&(delete t["__rvgr-column"],e=!0)})),e&&this.providers.columnProvider.refreshByType(t)}));const{source:t,oldNewIndexes:r}=this.getSource(!0);this.providers.dataProvider.setData(t,"rgRow",void 0,!0),this.updateTrimmed(void 0,void 0,r)}updateTrimmed(t={},r={},e,n){const i=function(t,r,e){const n={};for(let i in t){if("grouping"===i)continue;const o=t[i],s={};for(let t in o){let a=r[t];e&&(a=e[a]),o[t]&&(s[a]=!0,a!==parseInt(t,10)&&(n[i]=s))}}return n}(this.trimmed,e,n);for(let t in i)this.revogrid.addTrimmed(i[t],t);this.revogrid.addTrimmed(Object.assign({},t),"grouping")}}class xn{constructor(){this.parentY=0}start(t,{pos:r,text:e,event:n}){var i;const{top:o}=t.getBoundingClientRect();this.parentY=o,this.text&&(this.text.innerText=e),this.move(r),this.moveTip({x:n.x,y:n.y}),null===(i=this.el)||void 0===i||i.classList.remove("hidden")}end(){var t;null===(t=this.el)||void 0===t||t.classList.add("hidden")}move(t){this.moveElement(t.end-this.parentY)}moveTip({x:t,y:r}){this.draggable&&(this.draggable.style.left=`${t}px`,this.draggable.style.top=`${r}px`)}moveElement(t){this.rgRow&&(this.rgRow.style.transform=`translateY(${t}px)`)}}const yn=({ref:t})=>{const r=new xn;return t(r),e("div",{class:"draggable-wrapper hidden",ref:t=>r.el=t},e("div",{class:"draggable",ref:t=>r.draggable=t},e("span",{class:"revo-alt-icon"}),e("span",{ref:t=>r.text=t})),e("div",{class:"drag-position",ref:t=>r.rgRow=t}))},En=({viewports:t,dimensions:r,orderRef:n,nakedClick:i,registerElement:o,onScroll:s},a)=>{let u;return[e("div",{class:"main-viewport",ref:t=>u=t,onClick:t=>((t,r)=>{r===t.target&&i(t)})(t,u)},e("div",{class:"viewports"},a,e("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:t.rgRow.store,dimensionStore:r.rgRow.store,ref:t=>o(t,"rowScroll"),onScrollVirtual:t=>s(t.detail)}),e(yn,{ref:n}))),e("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:t.rgCol.store,dimensionStore:r.rgCol.store,ref:t=>o(t,"colScroll"),onScrollVirtual:t=>s(t.detail)})]};function kn(t){return t===zn}function Sn(t,r){const e=Object.assign({},t);let n=["x","y"];for(let r of n)t[r]<0&&(e[r]=0);for(let i of n)t[i]>=r[i]&&(e[i]=r[i]-1);return e}function Rn(t,r){return t&&r?{x:Math.min(t.x,r.x),y:Math.min(t.y,r.y),x1:Math.max(t.x,r.x),y1:Math.max(t.y,r.y)}:null}class jn{constructor(){this.unsubscribe=[],this.store=Ur({range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}),this.store.on("set",((t,r)=>{"tempRange"!==t||r||this.store.set("tempRangeType",null)}))}onChange(t,r){this.unsubscribe.push(this.store.onChange(t,r))}clearFocus(){Wr(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,r){Wr(this.store,{focus:t,range:Rn(t,r),edit:null,tempRange:null})}setTempArea(t){Wr(this.store,{tempRange:null==t?void 0:t.area,tempRangeType:null==t?void 0:t.type,edit:null})}clearTemp(){Wr(this.store,{tempRange:null})}setRangeArea(t){Wr(this.store,{range:t,edit:null,tempRange:null})}setRange(t,r){this.setRangeArea(Rn(t,r))}setLastCell(t){Wr(this.store,{lastCell:t})}setEdit(t){const r=this.store.get("focus");Wr(this.store,r&&"string"==typeof t?{edit:{x:r.x,y:r.y,val:t}}:{edit:null})}dispose(){this.unsubscribe.forEach((t=>t())),this.store.dispose()}}const zn=-1;class On{constructor(){this.dirty=!1,this.stores={},this.columnStores={},this.rowStores={},this.sections=[]}get focusedStore(){var t;for(let r in this.stores)for(let e in this.stores[r]){const n=null===(t=this.stores[r][e])||void 0===t?void 0:t.store.get("focus");if(n)return{entity:this.stores[r][e],cell:n,position:{x:parseInt(e,10),y:parseInt(r,10)}}}return null}get edit(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("edit")}get focused(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("focus")}get selectedRange(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("range")}registerSection(t){if(!t)return this.sections.length=0,void(this.dirty=!0);-1===this.sections.indexOf(t)&&this.sections.push(t)}beforeUpdate(){if(this.dirty){for(let t in this.stores)for(let r in this.stores[t])this.stores[t][r].dispose();this.dirty=!1}}registerColumn(t){return kn(t)?new jn:(this.columnStores[t]||(this.columnStores[t]=new jn),this.columnStores[t])}registerRow(t){return kn(t)?new jn:(this.rowStores[t]||(this.rowStores[t]=new jn),this.rowStores[t])}register({x:t,y:r}){var e,n;return kn(t)||kn(r)?new jn:(this.stores[r]||(this.stores[r]={}),this.stores[r][t]||(this.stores[r][t]=new jn,null===(e=this.stores[r][t])||void 0===e||e.onChange("range",(e=>{this.columnStores[t].setRangeArea(e),this.rowStores[r].setRangeArea(e)})),null===(n=this.stores[r][t])||void 0===n||n.store.on("dispose",(()=>{var e,n;null===(e=this.columnStores[t])||void 0===e||e.dispose(),null===(n=this.rowStores[r])||void 0===n||n.dispose(),delete this.rowStores[r],delete this.columnStores[t],this.stores[r]&&delete this.stores[r][t],Object.keys(this.stores[r]||{}).length||delete this.stores[r]}))),this.stores[r][t])}setEditByCell({x:t,y:r},e){this.focus(this.stores[r][t],{focus:e,end:e}),this.setEdit("")}focus(t,{focus:r,end:e}){let n;for(let r in this.stores)for(let e in this.stores[r]){const i=this.stores[r][e];i!==t?i.clearFocus():n={x:parseInt(e,10),y:parseInt(r,10)}}if(!n)return;const i=t.store.get("lastCell"),o=function(t,r){const e={};let n=["x","y"];for(let r of n)if(t[r]<0)return e[r]=t[r],e;for(let i of n)if(t[i]>=r[i])return e[i]=t[i]-r[i],e;return null}(r,i);let s;if(o)for(let t in o){let r,e=t;switch(e){case"x":r=this.getXStores(n.y);break;case"y":r=this.getYStores(n.x)}if(o[e]>=0)s=r[++n[e]];else{s=r[--n[e]];const t=null==s?void 0:s.store.get("lastCell");t&&(o[e]=t[e]+o[e])}}if(s){let t=Object.assign(Object.assign({},r),o);this.focus(s,{focus:t,end:t})}else r=Sn(r,i),e=Sn(r,i),t.setFocus(r,e)}clearAll(){var t;for(let r in this.stores)for(let e in this.stores[r])null===(t=this.stores[r][e])||void 0===t||t.clearFocus()}setEdit(t){this.focusedStore&&this.focusedStore.entity.setEdit(t)}getXStores(t){return this.stores[t]}getYStores(t){const r={};for(let e in this.stores)r[e]=this.stores[e][t];return r}}function Mn(t,r){return{x:t.viewports[t.colType].store.get("realCount"),y:t.viewports[r].store.get("realCount")}}var Fn=c((function(t,r){(function(){var e,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,u=1/0,c=9007199254740991,l=NaN,h=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],d="[object Arguments]",g="[object Array]",v="[object Boolean]",p="[object Date]",C="[object Error]",m="[object Function]",L="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Object]",E="[object Promise]",k="[object RegExp]",S="[object Set]",R="[object String]",j="[object Symbol]",z="[object WeakMap]",O="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",D="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(N.source),G=RegExp(W.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(tt.source),et=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,Lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Et="["+yt+"]",kt="["+Lt+"]",St="\\d+",Rt="["+bt+"]",jt="[^\\ud800-\\udfff"+yt+St+"\\u2700-\\u27bf"+bt+xt+"]",zt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+xt+"]",At="(?:"+Rt+"|"+jt+")",Dt="(?:"+_t+"|"+jt+")",It="(?:['’](?:d|ll|m|re|s|t|ve))?",Tt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Pt="(?:"+kt+"|"+zt+")?",$t="[\\ufe0e\\ufe0f]?",Ut=$t+Pt+"(?:\\u200d(?:"+[Ot,Mt,Ft].join("|")+")"+$t+Pt+")*",Ht="(?:"+["[\\u2700-\\u27bf]",Mt,Ft].join("|")+")"+Ut,Zt="(?:"+[Ot+kt+"?",kt,Mt,Ft,"[\\ud800-\\udfff]"].join("|")+")",Bt=RegExp("['’]","g"),Nt=RegExp(kt,"g"),Wt=RegExp(zt+"(?="+zt+")|"+Zt+Ut,"g"),Vt=RegExp([_t+"?"+Rt+"+"+It+"(?="+[Et,_t,"$"].join("|")+")",Dt+"+"+Tt+"(?="+[Et,_t+At,"$"].join("|")+")",_t+"?"+At+"+"+It,_t+"+"+Tt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Ht].join("|"),"g"),Gt=RegExp("[\\u200d\\ud800-\\udfff"+Lt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["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"],Xt=-1,Jt={};Jt[F]=Jt[_]=Jt[A]=Jt[D]=Jt[I]=Jt[T]=Jt[P]=Jt[$]=Jt[U]=!0,Jt[d]=Jt[g]=Jt[O]=Jt[v]=Jt[M]=Jt[p]=Jt[C]=Jt[m]=Jt[b]=Jt[x]=Jt[y]=Jt[k]=Jt[S]=Jt[R]=Jt[z]=!1;var Yt={};Yt[d]=Yt[g]=Yt[O]=Yt[M]=Yt[v]=Yt[p]=Yt[F]=Yt[_]=Yt[A]=Yt[D]=Yt[I]=Yt[b]=Yt[x]=Yt[y]=Yt[k]=Yt[S]=Yt[R]=Yt[j]=Yt[T]=Yt[P]=Yt[$]=Yt[U]=!0,Yt[C]=Yt[m]=Yt[z]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tr=parseFloat,rr=parseInt,er="object"==typeof w&&w&&w.Object===Object&&w,nr="object"==typeof self&&self&&self.Object===Object&&self,ir=er||nr||Function("return this")(),or=r&&!r.nodeType&&r,sr=or&&t&&!t.nodeType&&t,ar=sr&&sr.exports===or,ur=ar&&er.process,cr=function(){try{return sr&&sr.require&&sr.require("util").types||ur&&ur.binding&&ur.binding("util")}catch(t){}}(),lr=cr&&cr.isArrayBuffer,hr=cr&&cr.isDate,fr=cr&&cr.isMap,dr=cr&&cr.isRegExp,gr=cr&&cr.isSet,vr=cr&&cr.isTypedArray;function pr(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Cr(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n}function wr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}function mr(t,r){for(var e=null==t?0:t.length;e--&&!1!==r(t[e],e,t););return t}function Lr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(!r(t[e],e,t))return!1;return!0}function br(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}function xr(t,r){return!(null==t||!t.length)&&Fr(t,r,0)>-1}function yr(t,r,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(r,t[n]))return!0;return!1}function Er(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}function kr(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}function Sr(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e}function Rr(t,r,e,n){var i=null==t?0:t.length;for(n&&i&&(e=t[--i]);i--;)e=r(e,t[i],i,t);return e}function jr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}var zr=Ir("length");function Or(t,r,e){var n;return e(t,(function(t,e,i){if(r(t,e,i))return n=e,!1})),n}function Mr(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1}function Fr(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Mr(t,Ar,e)}function _r(t,r,e,n){for(var i=e-1,o=t.length;++i<o;)if(n(t[i],r))return i;return-1}function Ar(t){return t!=t}function Dr(t,r){var e=null==t?0:t.length;return e?$r(t,r)/e:l}function Ir(t){return function(r){return null==r?e:r[t]}}function Tr(t){return function(r){return null==t?e:t[r]}}function Pr(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e}function $r(t,r){for(var n,i=-1,o=t.length;++i<o;){var s=r(t[i]);s!==e&&(n=n===e?s:n+s)}return n}function Ur(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function Hr(t){return t?t.slice(0,oe(t)+1).replace(et,""):t}function Zr(t){return function(r){return t(r)}}function Br(t,r){return Er(r,(function(r){return t[r]}))}function Nr(t,r){return t.has(r)}function Wr(t,r){for(var e=-1,n=t.length;++e<n&&Fr(r,t[e],0)>-1;);return e}function Vr(t,r){for(var e=t.length;e--&&Fr(r,t[e],0)>-1;);return e}function Gr(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}var qr=Tr({À:"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"}),Kr=Tr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xr(t){return"\\"+Qt[t]}function Jr(t){return Gt.test(t)}function Yr(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function Qr(t,r){return function(e){return t(r(e))}}function te(t,r){for(var e=-1,n=t.length,i=0,s=[];++e<n;){var a=t[e];a!==r&&a!==o||(t[e]=o,s[i++]=e)}return s}function re(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}function ee(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=[t,t]})),e}function ne(t){return Jr(t)?function(t){for(var r=Wt.lastIndex=0;Wt.test(t);)++r;return r}(t):zr(t)}function ie(t){return Jr(t)?function(t){return t.match(Wt)||[]}(t):function(t){return t.split("")}(t)}function oe(t){for(var r=t.length;r--&&nt.test(t.charAt(r)););return r}var se=Tr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ae=function t(r){var w=(r=null==r?ir:ae.defaults(ir.Object(),r,ae.pick(ir,Kt))).Array,nt=r.Date,Lt=r.Error,bt=r.Function,xt=r.Math,yt=r.Object,Et=r.RegExp,kt=r.String,St=r.TypeError,Rt=w.prototype,jt=yt.prototype,zt=r["__core-js_shared__"],Ot=bt.prototype.toString,Mt=jt.hasOwnProperty,Ft=0,_t=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=jt.toString,Dt=Ot.call(yt),It=ir._,Tt=Et("^"+Ot.call(Mt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=ar?r.Buffer:e,$t=r.Symbol,Ut=r.Uint8Array,Ht=Pt?Pt.allocUnsafe:e,Zt=Qr(yt.getPrototypeOf,yt),Wt=yt.create,Gt=jt.propertyIsEnumerable,Qt=Rt.splice,er=$t?$t.isConcatSpreadable:e,nr=$t?$t.iterator:e,or=$t?$t.toStringTag:e,sr=function(){try{var t=ao(yt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ur=r.clearTimeout!==ir.clearTimeout&&r.clearTimeout,cr=nt&&nt.now!==ir.Date.now&&nt.now,zr=r.setTimeout!==ir.setTimeout&&r.setTimeout,Tr=xt.ceil,ue=xt.floor,ce=yt.getOwnPropertySymbols,le=Pt?Pt.isBuffer:e,he=r.isFinite,fe=Rt.join,de=Qr(yt.keys,yt),ge=xt.max,ve=xt.min,pe=nt.now,Ce=r.parseInt,we=xt.random,me=Rt.reverse,Le=ao(r,"DataView"),be=ao(r,"Map"),xe=ao(r,"Promise"),ye=ao(r,"Set"),Ee=ao(r,"WeakMap"),ke=ao(yt,"create"),Se=Ee&&new Ee,Re={},je=Do(Le),ze=Do(be),Oe=Do(xe),Me=Do(ye),Fe=Do(Ee),_e=$t?$t.prototype:e,Ae=_e?_e.valueOf:e,De=_e?_e.toString:e;function Ie(t){if(Ys(t)&&!Hs(t)&&!(t instanceof Ue)){if(t instanceof $e)return t;if(Mt.call(t,"__wrapped__"))return Io(t)}return new $e(t)}var Te=function(){function t(){}return function(r){if(!Js(r))return{};if(Wt)return Wt(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function Pe(){}function $e(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Ue(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function He(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ze(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Be(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ne(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new Be;++r<e;)this.add(t[r])}function We(t){var r=this.__data__=new Ze(t);this.size=r.size}function Ve(t,r){var e=Hs(t),n=!e&&Us(t),i=!e&&!n&&Ws(t),o=!e&&!n&&!i&&sa(t),s=e||n||i||o,a=s?Ur(t.length,kt):[],u=a.length;for(var c in t)!r&&!Mt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,u))||a.push(c);return a}function Ge(t){var r=t.length;return r?t[Nn(0,r-1)]:e}function qe(t,r){return Fo(ki(t),nn(r,0,t.length))}function Ke(t){return Fo(ki(t))}function Xe(t,r,n){(n!==e&&!Ts(t[r],n)||n===e&&!(r in t))&&rn(t,r,n)}function Je(t,r,n){var i=t[r];Mt.call(t,r)&&Ts(i,n)&&(n!==e||r in t)||rn(t,r,n)}function Ye(t,r){for(var e=t.length;e--;)if(Ts(t[e][0],r))return e;return-1}function Qe(t,r,e,n){return cn(t,(function(t,i,o){r(n,t,e(t),o)})),n}function tn(t,r){return t&&Si(r,ja(r),t)}function rn(t,r,e){"__proto__"==r&&sr?sr(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function en(t,r){for(var n=-1,i=r.length,o=w(i),s=null==t;++n<i;)o[n]=s?e:ya(t,r[n]);return o}function nn(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function on(t,r,n,i,o,s){var a,u=1&r,c=2&r,l=4&r;if(n&&(a=o?n(t,i,o,s):n(t)),a!==e)return a;if(!Js(t))return t;var h=Hs(t);if(h){if(a=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Mt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!u)return ki(t,a)}else{var f=lo(t),g=f==m||f==L;if(Ws(t))return mi(t,u);if(f==y||f==d||g&&!o){if(a=c||g?{}:fo(t),!u)return c?function(t,r){return Si(t,co(t),r)}(t,function(t,r){return t&&Si(r,za(r),t)}(a,t)):function(t,r){return Si(t,uo(t),r)}(t,tn(a,t))}else{if(!Yt[f])return o?t:{};a=function(t,r,e){var n=t.constructor;switch(r){case O:return Li(t);case v:case p:return new n(+t);case M:return function(t,r){var e=r?Li(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case F:case _:case A:case D:case I:case T:case P:case $:case U:return bi(t,e);case b:return new n;case x:case R:return new n(t);case k:return function(t){var r=new t.constructor(t.source,ht.exec(t));return r.lastIndex=t.lastIndex,r}(t);case S:return new n;case j:return Ae?yt(Ae.call(t)):{}}}(t,f,u)}}s||(s=new We);var C=s.get(t);if(C)return C;s.set(t,a),na(t)?t.forEach((function(e){a.add(on(e,r,n,e,t,s))})):Qs(t)&&t.forEach((function(e,i){a.set(i,on(e,r,n,i,t,s))}));var w=h?e:(l?c?to:Qi:c?za:ja)(t);return wr(w||t,(function(e,i){w&&(e=t[i=e]),Je(a,i,on(e,r,n,i,t,s))})),a}function sn(t,r,n){var i=n.length;if(null==t)return!i;for(t=yt(t);i--;){var o=n[i],s=t[o];if(s===e&&!(o in t)||!(0,r[o])(s))return!1}return!0}function an(t,r,i){if("function"!=typeof t)throw new St(n);return jo((function(){t.apply(e,i)}),r)}function un(t,r,e,n){var i=-1,o=xr,s=!0,a=t.length,u=[],c=r.length;if(!a)return u;e&&(r=Er(r,Zr(e))),n?(o=yr,s=!1):r.length>=200&&(o=Nr,s=!1,r=new Ne(r));t:for(;++i<a;){var l=t[i],h=null==e?l:e(l);if(l=n||0!==l?l:0,s&&h==h){for(var f=c;f--;)if(r[f]===h)continue t;u.push(l)}else o(r,h,n)||u.push(l)}return u}Ie.templateSettings={escape:q,evaluate:K,interpolate:X,variable:"",imports:{_:Ie}},(Ie.prototype=Pe.prototype).constructor=Ie,($e.prototype=Te(Pe.prototype)).constructor=$e,(Ue.prototype=Te(Pe.prototype)).constructor=Ue,He.prototype.clear=function(){this.__data__=ke?ke(null):{},this.size=0},He.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},He.prototype.get=function(t){var r=this.__data__;if(ke){var n=r[t];return n===i?e:n}return Mt.call(r,t)?r[t]:e},He.prototype.has=function(t){var r=this.__data__;return ke?r[t]!==e:Mt.call(r,t)},He.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ke&&r===e?i:r,this},Ze.prototype.clear=function(){this.__data__=[],this.size=0},Ze.prototype.delete=function(t){var r=this.__data__,e=Ye(r,t);return!(e<0||(e==r.length-1?r.pop():Qt.call(r,e,1),--this.size,0))},Ze.prototype.get=function(t){var r=this.__data__,n=Ye(r,t);return n<0?e:r[n][1]},Ze.prototype.has=function(t){return Ye(this.__data__,t)>-1},Ze.prototype.set=function(t,r){var e=this.__data__,n=Ye(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new He,map:new(be||Ze),string:new He}},Be.prototype.delete=function(t){var r=oo(this,t).delete(t);return this.size-=r?1:0,r},Be.prototype.get=function(t){return oo(this,t).get(t)},Be.prototype.has=function(t){return oo(this,t).has(t)},Be.prototype.set=function(t,r){var e=oo(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Ne.prototype.add=Ne.prototype.push=function(t){return this.__data__.set(t,i),this},Ne.prototype.has=function(t){return this.__data__.has(t)},We.prototype.clear=function(){this.__data__=new Ze,this.size=0},We.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},We.prototype.get=function(t){return this.__data__.get(t)},We.prototype.has=function(t){return this.__data__.has(t)},We.prototype.set=function(t,r){var e=this.__data__;if(e instanceof Ze){var n=e.__data__;if(!be||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(t,r),this.size=e.size,this};var cn=zi(Cn),ln=zi(wn,!0);function hn(t,r){var e=!0;return cn(t,(function(t,n,i){return e=!!r(t,n,i)})),e}function fn(t,r,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=r(s);if(null!=a&&(u===e?a==a&&!oa(a):n(a,u)))var u=a,c=s}return c}function dn(t,r){var e=[];return cn(t,(function(t,n,i){r(t,n,i)&&e.push(t)})),e}function gn(t,r,e,n,i){var o=-1,s=t.length;for(e||(e=go),i||(i=[]);++o<s;){var a=t[o];r>0&&e(a)?r>1?gn(a,r-1,e,n,i):kr(i,a):n||(i[i.length]=a)}return i}var vn=Oi(),pn=Oi(!0);function Cn(t,r){return t&&vn(t,r,ja)}function wn(t,r){return t&&pn(t,r,ja)}function mn(t,r){return br(r,(function(r){return qs(t[r])}))}function Ln(t,r){for(var n=0,i=(r=vi(r,t)).length;null!=t&&n<i;)t=t[Ao(r[n++])];return n&&n==i?t:e}function bn(t,r,e){var n=r(t);return Hs(t)?n:kr(n,e(t))}function xn(t){return null==t?t===e?"[object Undefined]":"[object Null]":or&&or in yt(t)?function(t){var r=Mt.call(t,or),n=t[or];try{t[or]=e;var i=!0}catch(t){}var o=At.call(t);return i&&(r?t[or]=n:delete t[or]),o}(t):function(t){return At.call(t)}(t)}function yn(t,r){return t>r}function En(t,r){return null!=t&&Mt.call(t,r)}function kn(t,r){return null!=t&&r in yt(t)}function Sn(t,r,n){for(var i=n?yr:xr,o=t[0].length,s=t.length,a=s,u=w(s),c=1/0,l=[];a--;){var h=t[a];a&&r&&(h=Er(h,Zr(r))),c=ve(h.length,c),u[a]=!n&&(r||o>=120&&h.length>=120)?new Ne(a&&h):e}h=t[0];var f=-1,d=u[0];t:for(;++f<o&&l.length<c;){var g=h[f],v=r?r(g):g;if(g=n||0!==g?g:0,!(d?Nr(d,v):i(l,v,n))){for(a=s;--a;){var p=u[a];if(!(p?Nr(p,v):i(t[a],v,n)))continue t}d&&d.push(v),l.push(g)}}return l}function Rn(t,r,n){var i=null==(t=Eo(t,r=vi(r,t)))?t:t[Ao(Go(r))];return null==i?e:pr(i,t,n)}function jn(t){return Ys(t)&&xn(t)==d}function zn(t,r,n,i,o){return t===r||(null==t||null==r||!Ys(t)&&!Ys(r)?t!=t&&r!=r:function(t,r,n,i,o,s){var a=Hs(t),u=Hs(r),c=a?g:lo(t),l=u?g:lo(r),h=(c=c==d?y:c)==y,f=(l=l==d?y:l)==y,w=c==l;if(w&&Ws(t)){if(!Ws(r))return!1;a=!0,h=!1}if(w&&!h)return s||(s=new We),a||sa(t)?Ji(t,r,n,i,o,s):function(t,r,e,n,i,o,s){switch(e){case M:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case O:return!(t.byteLength!=r.byteLength||!o(new Ut(t),new Ut(r)));case v:case p:case x:return Ts(+t,+r);case C:return t.name==r.name&&t.message==r.message;case k:case R:return t==r+"";case b:var a=Yr;case S:if(a||(a=re),t.size!=r.size&&!(1&n))return!1;var u=s.get(t);if(u)return u==r;n|=2,s.set(t,r);var c=Ji(a(t),a(r),n,i,o,s);return s.delete(t),c;case j:if(Ae)return Ae.call(t)==Ae.call(r)}return!1}(t,r,c,n,i,o,s);if(!(1&n)){var m=h&&Mt.call(t,"__wrapped__"),L=f&&Mt.call(r,"__wrapped__");if(m||L){var E=m?t.value():t,z=L?r.value():r;return s||(s=new We),o(E,z,n,i,s)}}return!!w&&(s||(s=new We),function(t,r,n,i,o,s){var a=1&n,u=Qi(t),c=u.length;if(c!=Qi(r).length&&!a)return!1;for(var l=c;l--;){var h=u[l];if(!(a?h in r:Mt.call(r,h)))return!1}var f=s.get(t),d=s.get(r);if(f&&d)return f==r&&d==t;var g=!0;s.set(t,r),s.set(r,t);for(var v=a;++l<c;){var p=t[h=u[l]],C=r[h];if(i)var w=a?i(C,p,h,r,t,s):i(p,C,h,t,r,s);if(!(w===e?p===C||o(p,C,n,i,s):w)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var m=t.constructor,L=r.constructor;m==L||!("constructor"in t)||!("constructor"in r)||"function"==typeof m&&m instanceof m&&"function"==typeof L&&L instanceof L||(g=!1)}return s.delete(t),s.delete(r),g}(t,r,n,i,o,s))}(t,r,n,i,zn,o))}function On(t,r,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;for(t=yt(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<s;){var c=(u=n[o])[0],l=t[c],h=u[1];if(a&&u[2]){if(l===e&&!(c in t))return!1}else{var f=new We;if(i)var d=i(l,h,c,t,r,f);if(!(d===e?zn(h,l,3,i,f):d))return!1}}return!0}function Mn(t){return!(!Js(t)||(r=t,_t&&_t in r))&&(qs(t)?Tt:gt).test(Do(t));var r}function Fn(t){return"function"==typeof t?t:null==t?tu:"object"==typeof t?Hs(t)?Tn(t[0],t[1]):In(t):cu(t)}function _n(t){if(!Lo(t))return de(t);var r=[];for(var e in yt(t))Mt.call(t,e)&&"constructor"!=e&&r.push(e);return r}function An(t,r){return t<r}function Dn(t,r){var e=-1,n=Bs(t)?w(t.length):[];return cn(t,(function(t,i,o){n[++e]=r(t,i,o)})),n}function In(t){var r=so(t);return 1==r.length&&r[0][2]?xo(r[0][0],r[0][1]):function(e){return e===t||On(e,t,r)}}function Tn(t,r){return Co(t)&&bo(r)?xo(Ao(t),r):function(n){var i=ya(n,t);return i===e&&i===r?Ea(n,t):zn(r,i,3)}}function Pn(t,r,n,i,o){t!==r&&vn(r,(function(s,a){if(o||(o=new We),Js(s))!function(t,r,n,i,o,s,a){var u=So(t,n),c=So(r,n),l=a.get(c);if(l)Xe(t,n,l);else{var h=s?s(u,c,n+"",t,r,a):e,f=h===e;if(f){var d=Hs(c),g=!d&&Ws(c),v=!d&&!g&&sa(c);h=c,d||g||v?Hs(u)?h=u:Ns(u)?h=ki(u):g?(f=!1,h=mi(c,!0)):v?(f=!1,h=bi(c,!0)):h=[]:ra(c)||Us(c)?(h=u,Us(u)?h=ga(u):Js(u)&&!qs(u)||(h=fo(c))):f=!1}f&&(a.set(c,h),o(h,c,i,s,a),a.delete(c)),Xe(t,n,h)}}(t,r,a,n,Pn,i,o);else{var u=i?i(So(t,a),s,a+"",t,r,o):e;u===e&&(u=s),Xe(t,a,u)}}),za)}function $n(t,r){var n=t.length;if(n)return vo(r+=r<0?n:0,n)?t[r]:e}function Un(t,r,e){r=r.length?Er(r,(function(t){return Hs(t)?function(r){return Ln(r,1===t.length?t[0]:t)}:t})):[tu];var n=-1;return r=Er(r,Zr(io())),function(t){var r=t.length;for(t.sort((function(t,r){return function(t,r,e){for(var n=-1,i=t.criteria,o=r.criteria,s=i.length,a=e.length;++n<s;){var u=xi(i[n],o[n]);if(u)return n>=a?u:u*("desc"==e[n]?-1:1)}return t.index-r.index}(t,r,e)}));r--;)t[r]=t[r].value;return t}(Dn(t,(function(t){return{criteria:Er(r,(function(r){return r(t)})),index:++n,value:t}})))}function Hn(t,r,e){for(var n=-1,i=r.length,o={};++n<i;){var s=r[n],a=Ln(t,s);e(a,s)&&Kn(o,vi(s,t),a)}return o}function Zn(t,r,e,n){var i=n?_r:Fr,o=-1,s=r.length,a=t;for(t===r&&(r=ki(r)),e&&(a=Er(t,Zr(e)));++o<s;)for(var u=0,c=r[o],l=e?e(c):c;(u=i(a,l,u,n))>-1;)a!==t&&Qt.call(a,u,1),Qt.call(t,u,1);return t}function Bn(t,r){for(var e=t?r.length:0,n=e-1;e--;){var i=r[e];if(e==n||i!==o){var o=i;vo(i)?Qt.call(t,i,1):ai(t,i)}}return t}function Nn(t,r){return t+ue(we()*(r-t+1))}function Wn(t,r){var e="";if(!t||r<1||r>c)return e;do{r%2&&(e+=t),(r=ue(r/2))&&(t+=t)}while(r);return e}function Vn(t,r){return zo(yo(t,r,tu),t+"")}function Gn(t){return Ge(Ta(t))}function qn(t,r){var e=Ta(t);return Fo(e,nn(r,0,e.length))}function Kn(t,r,n,i){if(!Js(t))return t;for(var o=-1,s=(r=vi(r,t)).length,a=s-1,u=t;null!=u&&++o<s;){var c=Ao(r[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=a){var h=u[c];(l=i?i(h,c,u):e)===e&&(l=Js(h)?h:vo(r[o+1])?[]:{})}Je(u,c,l),u=u[c]}return t}var Xn=Se?function(t,r){return Se.set(t,r),t}:tu,Jn=sr?function(t,r){return sr(t,"toString",{configurable:!0,enumerable:!1,value:Ja(r),writable:!0})}:tu;function Yn(t){return Fo(Ta(t))}function Qn(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=w(i);++n<i;)o[n]=t[n+r];return o}function ti(t,r){var e;return cn(t,(function(t,n,i){return!(e=r(t,n,i))})),!!e}function ri(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!oa(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return ei(t,r,tu,e)}function ei(t,r,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(r=n(r))!=r,u=null===r,c=oa(r),l=r===e;o<s;){var h=ue((o+s)/2),f=n(t[h]),d=f!==e,g=null===f,v=f==f,p=oa(f);if(a)var C=i||v;else C=l?v&&(i||d):u?v&&d&&(i||!g):c?v&&d&&!g&&(i||!p):!g&&!p&&(i?f<=r:f<r);C?o=h+1:s=h}return ve(s,4294967294)}function ni(t,r){for(var e=-1,n=t.length,i=0,o=[];++e<n;){var s=t[e],a=r?r(s):s;if(!e||!Ts(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function ii(t){return"number"==typeof t?t:oa(t)?l:+t}function oi(t){if("string"==typeof t)return t;if(Hs(t))return Er(t,oi)+"";if(oa(t))return De?De.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function si(t,r,e){var n=-1,i=xr,o=t.length,s=!0,a=[],u=a;if(e)s=!1,i=yr;else if(o>=200){var c=r?null:Wi(t);if(c)return re(c);s=!1,i=Nr,u=new Ne}else u=r?[]:a;t:for(;++n<o;){var l=t[n],h=r?r(l):l;if(l=e||0!==l?l:0,s&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;r&&u.push(h),a.push(l)}else i(u,h,e)||(u!==a&&u.push(h),a.push(l))}return a}function ai(t,r){return null==(t=Eo(t,r=vi(r,t)))||delete t[Ao(Go(r))]}function ui(t,r,e,n){return Kn(t,r,e(Ln(t,r)),n)}function ci(t,r,e,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&r(t[o],o,t););return e?Qn(t,n?0:o,n?o+1:i):Qn(t,n?o+1:0,n?i:o)}function li(t,r){var e=t;return e instanceof Ue&&(e=e.value()),Sr(r,(function(t,r){return r.func.apply(r.thisArg,kr([t],r.args))}),e)}function hi(t,r,e){var n=t.length;if(n<2)return n?si(t[0]):[];for(var i=-1,o=w(n);++i<n;)for(var s=t[i],a=-1;++a<n;)a!=i&&(o[i]=un(o[i]||s,t[a],r,e));return si(gn(o,1),r,e)}function fi(t,r,n){for(var i=-1,o=t.length,s=r.length,a={};++i<o;)n(a,t[i],i<s?r[i]:e);return a}function di(t){return Ns(t)?t:[]}function gi(t){return"function"==typeof t?t:tu}function vi(t,r){return Hs(t)?t:Co(t,r)?[t]:_o(va(t))}var pi=Vn;function Ci(t,r,n){var i=t.length;return n=n===e?i:n,!r&&n>=i?t:Qn(t,r,n)}var wi=ur||function(t){return ir.clearTimeout(t)};function mi(t,r){if(r)return t.slice();var e=t.length,n=Ht?Ht(e):new t.constructor(e);return t.copy(n),n}function Li(t){var r=new t.constructor(t.byteLength);return new Ut(r).set(new Ut(t)),r}function bi(t,r){var e=r?Li(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==e,i=null===t,o=t==t,s=oa(t),a=r!==e,u=null===r,c=r==r,l=oa(r);if(!u&&!l&&!s&&t>r||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<r||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}function yi(t,r,e,n){for(var i=-1,o=t.length,s=e.length,a=-1,u=r.length,c=ge(o-s,0),l=w(u+c),h=!n;++a<u;)l[a]=r[a];for(;++i<s;)(h||i<o)&&(l[e[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function Ei(t,r,e,n){for(var i=-1,o=t.length,s=-1,a=e.length,u=-1,c=r.length,l=ge(o-a,0),h=w(l+c),f=!n;++i<l;)h[i]=t[i];for(var d=i;++u<c;)h[d+u]=r[u];for(;++s<a;)(f||i<o)&&(h[d+e[s]]=t[i++]);return h}function ki(t,r){var e=-1,n=t.length;for(r||(r=w(n));++e<n;)r[e]=t[e];return r}function Si(t,r,n,i){var o=!n;n||(n={});for(var s=-1,a=r.length;++s<a;){var u=r[s],c=i?i(n[u],t[u],u,n,t):e;c===e&&(c=t[u]),o?rn(n,u,c):Je(n,u,c)}return n}function Ri(t,r){return function(e,n){var i=Hs(e)?Cr:Qe,o=r?r():{};return i(e,t,io(n,2),o)}}function ji(t){return Vn((function(r,n){var i=-1,o=n.length,s=o>1?n[o-1]:e,a=o>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(o--,s):e,a&&po(n[0],n[1],a)&&(s=o<3?e:s,o=1),r=yt(r);++i<o;){var u=n[i];u&&t(r,u,i,s)}return r}))}function zi(t,r){return function(e,n){if(null==e)return e;if(!Bs(e))return t(e,n);for(var i=e.length,o=r?i:-1,s=yt(e);(r?o--:++o<i)&&!1!==n(s[o],o,s););return e}}function Oi(t){return function(r,e,n){for(var i=-1,o=yt(r),s=n(r),a=s.length;a--;){var u=s[t?a:++i];if(!1===e(o[u],u,o))break}return r}}function Mi(t){return function(r){var n=Jr(r=va(r))?ie(r):e,i=n?n[0]:r.charAt(0),o=n?Ci(n,1).join(""):r.slice(1);return i[t]()+o}}function Fi(t){return function(r){return Sr(qa(Ua(r).replace(Bt,"")),t,"")}}function _i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=Te(t.prototype),n=t.apply(e,r);return Js(n)?n:e}}function Ai(t){return function(r,n,i){var o=yt(r);if(!Bs(r)){var s=io(n,3);r=ja(r),n=function(t){return s(o[t],t,o)}}var a=t(r,n,i);return a>-1?o[s?r[a]:a]:e}}function Di(t){return Yi((function(r){var i=r.length,o=i,s=$e.prototype.thru;for(t&&r.reverse();o--;){var a=r[o];if("function"!=typeof a)throw new St(n);if(s&&!u&&"wrapper"==eo(a))var u=new $e([],!0)}for(o=u?o:i;++o<i;){var c=eo(a=r[o]),l="wrapper"==c?ro(a):e;u=l&&wo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[eo(l[0])].apply(u,l[3]):1==a.length&&wo(a)?u[c]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&Hs(e))return u.plant(e).value();for(var n=0,o=i?r[n].apply(this,t):e;++n<i;)o=r[n].call(this,o);return o}}))}function Ii(t,r,n,i,o,s,u,c,l,h){var f=r&a,d=1&r,g=2&r,v=24&r,p=512&r,C=g?e:_i(t);return function e(){for(var a=arguments.length,m=w(a),L=a;L--;)m[L]=arguments[L];if(v)var b=no(e),x=Gr(m,b);if(i&&(m=yi(m,i,o,v)),s&&(m=Ei(m,s,u,v)),a-=x,v&&a<h){var y=te(m,b);return Bi(t,r,Ii,e.placeholder,n,m,y,c,l,h-a)}var E=d?n:this,k=g?E[t]:t;return a=m.length,c?m=ko(m,c):p&&a>1&&m.reverse(),f&&l<a&&(m.length=l),this&&this!==ir&&this instanceof e&&(k=C||_i(k)),k.apply(E,m)}}function Ti(t,r){return function(e,n){return function(t,r,e,n){return Cn(t,(function(t,i,o){r(n,e(t),i,o)})),n}(e,t,r(n),{})}}function Pi(t,r){return function(n,i){var o;if(n===e&&i===e)return r;if(n!==e&&(o=n),i!==e){if(o===e)return i;"string"==typeof n||"string"==typeof i?(n=oi(n),i=oi(i)):(n=ii(n),i=ii(i)),o=t(n,i)}return o}}function $i(t){return Yi((function(r){return r=Er(r,Zr(io())),Vn((function(e){var n=this;return t(r,(function(t){return pr(t,n,e)}))}))}))}function Ui(t,r){var n=(r=r===e?" ":oi(r)).length;if(n<2)return n?Wn(r,t):r;var i=Wn(r,Tr(t/ne(r)));return Jr(r)?Ci(ie(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(r,n,i){return i&&"number"!=typeof i&&po(r,n,i)&&(n=i=e),r=la(r),n===e?(n=r,r=0):n=la(n),function(t,r,e,n){for(var i=-1,o=ge(Tr((r-t)/(e||1)),0),s=w(o);o--;)s[n?o:++i]=t,t+=e;return s}(r,n,i=i===e?r<n?1:-1:la(i),t)}}function Zi(t){return function(r,e){return"string"==typeof r&&"string"==typeof e||(r=da(r),e=da(e)),t(r,e)}}function Bi(t,r,n,i,o,a,u,c,l,h){var f=8&r;r|=f?s:64,4&(r&=~(f?64:s))||(r&=-4);var d=[t,r,o,f?a:e,f?u:e,f?e:a,f?e:u,c,l,h],g=n.apply(e,d);return wo(t)&&Ro(g,d),g.placeholder=i,Oo(g,t,r)}function Ni(t){var r=xt[t];return function(t,e){if(t=da(t),(e=null==e?0:ve(ha(e),292))&&he(t)){var n=(va(t)+"e").split("e");return+((n=(va(r(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return r(t)}}var Wi=ye&&1/re(new ye([,-0]))[1]==u?function(t){return new ye(t)}:ou;function Vi(t){return function(r){var e=lo(r);return e==b?Yr(r):e==S?ee(r):function(t,r){return Er(r,(function(r){return[r,t[r]]}))}(r,t(r))}}function Gi(t,r,i,u,c,l,h,f){var d=2&r;if(!d&&"function"!=typeof t)throw new St(n);var g=u?u.length:0;if(g||(r&=-97,u=c=e),h=h===e?h:ge(ha(h),0),f=f===e?f:ha(f),g-=c?c.length:0,64&r){var v=u,p=c;u=c=e}var C=d?e:ro(t),m=[t,r,i,u,c,v,p,l,h,f];if(C&&function(t,r){var e=t[1],n=r[1],i=e|n;if(!(i<131||(n==a&&8==e||n==a&&256==e&&t[7].length<=r[8]||384==n&&r[7].length<=r[8]&&8==e)))return t;1&n&&(t[2]=r[2],i|=1&e?0:4);var s=r[3];if(s){var u=t[3];t[3]=u?yi(u,s,r[4]):s,t[4]=u?te(t[3],o):r[4]}(s=r[5])&&(t[5]=(u=t[5])?Ei(u,s,r[6]):s,t[6]=u?te(t[5],o):r[6]),(s=r[7])&&(t[7]=s),n&a&&(t[8]=null==t[8]?r[8]:ve(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i}(m,C),t=m[0],r=m[1],i=m[2],u=m[3],c=m[4],!(f=m[9]=m[9]===e?d?0:t.length:ge(m[9]-g,0))&&24&r&&(r&=-25),r&&1!=r)L=8==r||16==r?function(t,r,n){var i=_i(t);return function o(){for(var s=arguments.length,a=w(s),u=s,c=no(o);u--;)a[u]=arguments[u];var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:te(a,c);return(s-=l.length)<n?Bi(t,r,Ii,o.placeholder,e,a,l,e,e,n-s):pr(this&&this!==ir&&this instanceof o?i:t,this,a)}}(t,r,f):r!=s&&33!=r||c.length?Ii.apply(e,m):function(t,r,e,n){var i=1&r,o=_i(t);return function r(){for(var s=-1,a=arguments.length,u=-1,c=n.length,l=w(c+a),h=this&&this!==ir&&this instanceof r?o:t;++u<c;)l[u]=n[u];for(;a--;)l[u++]=arguments[++s];return pr(h,i?e:this,l)}}(t,r,i,u);else var L=function(t,r,e){var n=1&r,i=_i(t);return function r(){return(this&&this!==ir&&this instanceof r?i:t).apply(n?e:this,arguments)}}(t,r,i);return Oo((C?Xn:Ro)(L,m),t,r)}function qi(t,r,n,i){return t===e||Ts(t,jt[n])&&!Mt.call(i,n)?r:t}function Ki(t,r,n,i,o,s){return Js(t)&&Js(r)&&(s.set(r,t),Pn(t,r,e,Ki,s),s.delete(r)),t}function Xi(t){return ra(t)?e:t}function Ji(t,r,n,i,o,s){var a=1&n,u=t.length,c=r.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(t),h=s.get(r);if(l&&h)return l==r&&h==t;var f=-1,d=!0,g=2&n?new Ne:e;for(s.set(t,r),s.set(r,t);++f<u;){var v=t[f],p=r[f];if(i)var C=a?i(p,v,f,r,t,s):i(v,p,f,t,r,s);if(C!==e){if(C)continue;d=!1;break}if(g){if(!jr(r,(function(t,r){if(!Nr(g,r)&&(v===t||o(v,t,n,i,s)))return g.push(r)}))){d=!1;break}}else if(v!==p&&!o(v,p,n,i,s)){d=!1;break}}return s.delete(t),s.delete(r),d}function Yi(t){return zo(yo(t,e,Zo),t+"")}function Qi(t){return bn(t,ja,uo)}function to(t){return bn(t,za,co)}var ro=Se?function(t){return Se.get(t)}:ou;function eo(t){for(var r=t.name+"",e=Re[r],n=Mt.call(Re,r)?e.length:0;n--;){var i=e[n],o=i.func;if(null==o||o==t)return i.name}return r}function no(t){return(Mt.call(Ie,"placeholder")?Ie:t).placeholder}function io(){var t=Ie.iteratee||ru;return t=t===ru?Fn:t,arguments.length?t(arguments[0],arguments[1]):t}function oo(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map}function so(t){for(var r=ja(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,bo(i)]}return r}function ao(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return Mn(n)?n:e}var uo=ce?function(t){return null==t?[]:(t=yt(t),br(ce(t),(function(r){return Gt.call(t,r)})))}:fu,co=ce?function(t){for(var r=[];t;)kr(r,uo(t)),t=Zt(t);return r}:fu,lo=xn;function ho(t,r,e){for(var n=-1,i=(r=vi(r,t)).length,o=!1;++n<i;){var s=Ao(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Xs(i)&&vo(s,i)&&(Hs(t)||Us(t))}function fo(t){return"function"!=typeof t.constructor||Lo(t)?{}:Te(Zt(t))}function go(t){return Hs(t)||Us(t)||!!(er&&t&&t[er])}function vo(t,r){var e=typeof t;return!!(r=null==r?c:r)&&("number"==e||"symbol"!=e&&pt.test(t))&&t>-1&&t%1==0&&t<r}function po(t,r,e){if(!Js(e))return!1;var n=typeof r;return!!("number"==n?Bs(e)&&vo(r,e.length):"string"==n&&r in e)&&Ts(e[r],t)}function Co(t,r){if(Hs(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!oa(t))||Y.test(t)||!J.test(t)||null!=r&&t in yt(r)}function wo(t){var r=eo(t),e=Ie[r];if("function"!=typeof e||!(r in Ue.prototype))return!1;if(t===e)return!0;var n=ro(e);return!!n&&t===n[0]}(Le&&lo(new Le(new ArrayBuffer(1)))!=M||be&&lo(new be)!=b||xe&&lo(xe.resolve())!=E||ye&&lo(new ye)!=S||Ee&&lo(new Ee)!=z)&&(lo=function(t){var r=xn(t),n=r==y?t.constructor:e,i=n?Do(n):"";if(i)switch(i){case je:return M;case ze:return b;case Oe:return E;case Me:return S;case Fe:return z}return r});var mo=zt?qs:du;function Lo(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||jt)}function bo(t){return t==t&&!Js(t)}function xo(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in yt(n))}}function yo(t,r,n){return r=ge(r===e?t.length-1:r,0),function(){for(var e=arguments,i=-1,o=ge(e.length-r,0),s=w(o);++i<o;)s[i]=e[r+i];i=-1;for(var a=w(r+1);++i<r;)a[i]=e[i];return a[r]=n(s),pr(t,this,a)}}function Eo(t,r){return r.length<2?t:Ln(t,Qn(r,0,-1))}function ko(t,r){for(var n=t.length,i=ve(r.length,n),o=ki(t);i--;){var s=r[i];t[i]=vo(s,n)?o[s]:e}return t}function So(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}var Ro=Mo(Xn),jo=zr||function(t,r){return ir.setTimeout(t,r)},zo=Mo(Jn);function Oo(t,r,e){var n=r+"";return zo(t,function(t,r){var e=r.length;if(!e)return t;var n=e-1;return r[n]=(e>1?"& ":"")+r[n],r=r.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+r+"] */\n")}(n,function(t,r){return wr(f,(function(e){var n="_."+e[0];r&e[1]&&!xr(t,n)&&t.push(n)})),t.sort()}(function(t){var r=t.match(ot);return r?r[1].split(st):[]}(n),e)))}function Mo(t){var r=0,n=0;return function(){var i=pe(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Fo(t,r){var n=-1,i=t.length,o=i-1;for(r=r===e?i:r;++n<r;){var s=Nn(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=r,t}var _o=function(){var t=Ms((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Q,(function(t,e,n,i){r.push(n?i.replace(ct,"$1"):e||t)})),r}),(function(t){return 500===r.size&&r.clear(),t})),r=t.cache;return t}();function Ao(t){if("string"==typeof t||oa(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function Do(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Io(t){if(t instanceof Ue)return t.clone();var r=new $e(t.__wrapped__,t.__chain__);return r.__actions__=ki(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}var To=Vn((function(t,r){return Ns(t)?un(t,gn(r,1,Ns,!0)):[]})),Po=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?un(t,gn(r,1,Ns,!0),io(n,2)):[]})),$o=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?un(t,gn(r,1,Ns,!0),e,n):[]}));function Uo(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:ha(e);return i<0&&(i=ge(n+i,0)),Mr(t,io(r,3),i)}function Ho(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==e&&(o=ha(n),o=n<0?ge(i+o,0):ve(o,i-1)),Mr(t,io(r,3),o,!0)}function Zo(t){return null!=t&&t.length?gn(t,1):[]}function Bo(t){return t&&t.length?t[0]:e}var No=Vn((function(t){var r=Er(t,di);return r.length&&r[0]===t[0]?Sn(r):[]})),Wo=Vn((function(t){var r=Go(t),n=Er(t,di);return r===Go(n)?r=e:n.pop(),n.length&&n[0]===t[0]?Sn(n,io(r,2)):[]})),Vo=Vn((function(t){var r=Go(t),n=Er(t,di);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?Sn(n,e,r):[]}));function Go(t){var r=null==t?0:t.length;return r?t[r-1]:e}var qo=Vn(Ko);function Ko(t,r){return t&&t.length&&r&&r.length?Zn(t,r):t}var Xo=Yi((function(t,r){var e=null==t?0:t.length,n=en(t,r);return Bn(t,Er(r,(function(t){return vo(t,e)?+t:t})).sort(xi)),n}));function Jo(t){return null==t?t:me.call(t)}var Yo=Vn((function(t){return si(gn(t,1,Ns,!0))})),Qo=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),si(gn(t,1,Ns,!0),io(r,2))})),ts=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,si(gn(t,1,Ns,!0),e,r)}));function rs(t){if(!t||!t.length)return[];var r=0;return t=br(t,(function(t){if(Ns(t))return r=ge(t.length,r),!0})),Ur(r,(function(r){return Er(t,Ir(r))}))}function es(t,r){if(!t||!t.length)return[];var n=rs(t);return null==r?n:Er(n,(function(t){return pr(r,e,t)}))}var ns=Vn((function(t,r){return Ns(t)?un(t,r):[]})),is=Vn((function(t){return hi(br(t,Ns))})),os=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),hi(br(t,Ns),io(r,2))})),ss=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,hi(br(t,Ns),e,r)})),as=Vn(rs),us=Vn((function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,es(t,n)}));function cs(t){var r=Ie(t);return r.__chain__=!0,r}function ls(t,r){return r(t)}var hs=Yi((function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(r){return en(r,t)};return!(r>1||this.__actions__.length)&&i instanceof Ue&&vo(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:ls,args:[o],thisArg:e}),new $e(i,this.__chain__).thru((function(t){return r&&!t.length&&t.push(e),t}))):this.thru(o)})),fs=Ri((function(t,r,e){Mt.call(t,e)?++t[e]:rn(t,e,1)})),ds=Ai(Uo),gs=Ai(Ho);function vs(t,r){return(Hs(t)?wr:cn)(t,io(r,3))}function ps(t,r){return(Hs(t)?mr:ln)(t,io(r,3))}var Cs=Ri((function(t,r,e){Mt.call(t,e)?t[e].push(r):rn(t,e,[r])})),ws=Vn((function(t,r,e){var n=-1,i="function"==typeof r,o=Bs(t)?w(t.length):[];return cn(t,(function(t){o[++n]=i?pr(r,t,e):Rn(t,r,e)})),o})),ms=Ri((function(t,r,e){rn(t,e,r)}));function Ls(t,r){return(Hs(t)?Er:Dn)(t,io(r,3))}var bs=Ri((function(t,r,e){t[e?0:1].push(r)}),(function(){return[[],[]]})),xs=Vn((function(t,r){if(null==t)return[];var e=r.length;return e>1&&po(t,r[0],r[1])?r=[]:e>2&&po(r[0],r[1],r[2])&&(r=[r[0]]),Un(t,gn(r,1),[])})),ys=cr||function(){return ir.Date.now()};function Es(t,r,n){return r=n?e:r,Gi(t,a,e,e,e,e,r=t&&null==r?t.length:r)}function ks(t,r){var i;if("function"!=typeof r)throw new St(n);return t=ha(t),function(){return--t>0&&(i=r.apply(this,arguments)),t<=1&&(r=e),i}}var Ss=Vn((function(t,r,e){var n=1;if(e.length){var i=te(e,no(Ss));n|=s}return Gi(t,n,r,e,i)})),Rs=Vn((function(t,r,e){var n=3;if(e.length){var i=te(e,no(Rs));n|=s}return Gi(r,n,t,e,i)}));function js(t,r,i){var o,s,a,u,c,l,h=0,f=!1,d=!1,g=!0;if("function"!=typeof t)throw new St(n);function v(r){var n=o,i=s;return o=s=e,h=r,u=t.apply(i,n)}function p(t){return h=t,c=jo(w,r),f?v(t):u}function C(t){var n=t-l;return l===e||n>=r||n<0||d&&t-h>=a}function w(){var t=ys();if(C(t))return m(t);c=jo(w,function(t){var e=r-(t-l);return d?ve(e,a-(t-h)):e}(t))}function m(t){return c=e,g&&o?v(t):(o=s=e,u)}function L(){var t=ys(),n=C(t);if(o=arguments,s=this,l=t,n){if(c===e)return p(l);if(d)return wi(c),c=jo(w,r),v(l)}return c===e&&(c=jo(w,r)),u}return r=da(r)||0,Js(i)&&(f=!!i.leading,a=(d="maxWait"in i)?ge(da(i.maxWait)||0,r):a,g="trailing"in i?!!i.trailing:g),L.cancel=function(){c!==e&&wi(c),h=0,o=l=s=c=e},L.flush=function(){return c===e?u:m(ys())},L}var zs=Vn((function(t,r){return an(t,1,r)})),Os=Vn((function(t,r,e){return an(t,da(r)||0,e)}));function Ms(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new St(n);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(Ms.Cache||Be),e}function Fs(t){if("function"!=typeof t)throw new St(n);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}Ms.Cache=Be;var _s=pi((function(t,r){var e=(r=1==r.length&&Hs(r[0])?Er(r[0],Zr(io())):Er(gn(r,1),Zr(io()))).length;return Vn((function(n){for(var i=-1,o=ve(n.length,e);++i<o;)n[i]=r[i].call(this,n[i]);return pr(t,this,n)}))})),As=Vn((function(t,r){var n=te(r,no(As));return Gi(t,s,e,r,n)})),Ds=Vn((function(t,r){var n=te(r,no(Ds));return Gi(t,64,e,r,n)})),Is=Yi((function(t,r){return Gi(t,256,e,e,e,r)}));function Ts(t,r){return t===r||t!=t&&r!=r}var Ps=Zi(yn),$s=Zi((function(t,r){return t>=r})),Us=jn(function(){return arguments}())?jn:function(t){return Ys(t)&&Mt.call(t,"callee")&&!Gt.call(t,"callee")},Hs=w.isArray,Zs=lr?Zr(lr):function(t){return Ys(t)&&xn(t)==O};function Bs(t){return null!=t&&Xs(t.length)&&!qs(t)}function Ns(t){return Ys(t)&&Bs(t)}var Ws=le||du,Vs=hr?Zr(hr):function(t){return Ys(t)&&xn(t)==p};function Gs(t){if(!Ys(t))return!1;var r=xn(t);return r==C||"[object DOMException]"==r||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function qs(t){if(!Js(t))return!1;var r=xn(t);return r==m||r==L||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ks(t){return"number"==typeof t&&t==ha(t)}function Xs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Js(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ys(t){return null!=t&&"object"==typeof t}var Qs=fr?Zr(fr):function(t){return Ys(t)&&lo(t)==b};function ta(t){return"number"==typeof t||Ys(t)&&xn(t)==x}function ra(t){if(!Ys(t)||xn(t)!=y)return!1;var r=Zt(t);if(null===r)return!0;var e=Mt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ot.call(e)==Dt}var ea=dr?Zr(dr):function(t){return Ys(t)&&xn(t)==k},na=gr?Zr(gr):function(t){return Ys(t)&&lo(t)==S};function ia(t){return"string"==typeof t||!Hs(t)&&Ys(t)&&xn(t)==R}function oa(t){return"symbol"==typeof t||Ys(t)&&xn(t)==j}var sa=vr?Zr(vr):function(t){return Ys(t)&&Xs(t.length)&&!!Jt[xn(t)]},aa=Zi(An),ua=Zi((function(t,r){return t<=r}));function ca(t){if(!t)return[];if(Bs(t))return ia(t)?ie(t):ki(t);if(nr&&t[nr])return function(t){for(var r,e=[];!(r=t.next()).done;)e.push(r.value);return e}(t[nr]());var r=lo(t);return(r==b?Yr:r==S?re:Ta)(t)}function la(t){return t?(t=da(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var r=la(t),e=r%1;return r==r?e?r-e:r:0}function fa(t){return t?nn(ha(t),0,h):0}function da(t){if("number"==typeof t)return t;if(oa(t))return l;if(Js(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Js(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Hr(t);var e=dt.test(t);return e||vt.test(t)?rr(t.slice(2),e?2:8):ft.test(t)?l:+t}function ga(t){return Si(t,za(t))}function va(t){return null==t?"":oi(t)}var pa=ji((function(t,r){if(Lo(r)||Bs(r))Si(r,ja(r),t);else for(var e in r)Mt.call(r,e)&&Je(t,e,r[e])})),Ca=ji((function(t,r){Si(r,za(r),t)})),wa=ji((function(t,r,e,n){Si(r,za(r),t,n)})),ma=ji((function(t,r,e,n){Si(r,ja(r),t,n)})),La=Yi(en),ba=Vn((function(t,r){t=yt(t);var n=-1,i=r.length,o=i>2?r[2]:e;for(o&&po(r[0],r[1],o)&&(i=1);++n<i;)for(var s=r[n],a=za(s),u=-1,c=a.length;++u<c;){var l=a[u],h=t[l];(h===e||Ts(h,jt[l])&&!Mt.call(t,l))&&(t[l]=s[l])}return t})),xa=Vn((function(t){return t.push(e,Ki),pr(Ma,e,t)}));function ya(t,r,n){var i=null==t?e:Ln(t,r);return i===e?n:i}function Ea(t,r){return null!=t&&ho(t,r,kn)}var ka=Ti((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),t[r]=e}),Ja(tu)),Sa=Ti((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),Mt.call(t,r)?t[r].push(e):t[r]=[e]}),io),Ra=Vn(Rn);function ja(t){return Bs(t)?Ve(t):_n(t)}function za(t){return Bs(t)?Ve(t,!0):function(t){if(!Js(t))return function(t){var r=[];if(null!=t)for(var e in yt(t))r.push(e);return r}(t);var r=Lo(t),e=[];for(var n in t)("constructor"!=n||!r&&Mt.call(t,n))&&e.push(n);return e}(t)}var Oa=ji((function(t,r,e){Pn(t,r,e)})),Ma=ji((function(t,r,e,n){Pn(t,r,e,n)})),Fa=Yi((function(t,r){var e={};if(null==t)return e;var n=!1;r=Er(r,(function(r){return r=vi(r,t),n||(n=r.length>1),r})),Si(t,to(t),e),n&&(e=on(e,7,Xi));for(var i=r.length;i--;)ai(e,r[i]);return e})),_a=Yi((function(t,r){return null==t?{}:function(t,r){return Hn(t,r,(function(r,e){return Ea(t,e)}))}(t,r)}));function Aa(t,r){if(null==t)return{};var e=Er(to(t),(function(t){return[t]}));return r=io(r),Hn(t,e,(function(t,e){return r(t,e[0])}))}var Da=Vi(ja),Ia=Vi(za);function Ta(t){return null==t?[]:Br(t,ja(t))}var Pa=Fi((function(t,r,e){return r=r.toLowerCase(),t+(e?$a(r):r)}));function $a(t){return Ga(va(t).toLowerCase())}function Ua(t){return(t=va(t))&&t.replace(Ct,qr).replace(Nt,"")}var Ha=Fi((function(t,r,e){return t+(e?"-":"")+r.toLowerCase()})),Za=Fi((function(t,r,e){return t+(e?" ":"")+r.toLowerCase()})),Ba=Mi("toLowerCase"),Na=Fi((function(t,r,e){return t+(e?"_":"")+r.toLowerCase()})),Wa=Fi((function(t,r,e){return t+(e?" ":"")+Ga(r)})),Va=Fi((function(t,r,e){return t+(e?" ":"")+r.toUpperCase()})),Ga=Mi("toUpperCase");function qa(t,r,n){return t=va(t),(r=n?e:r)===e?function(t){return qt.test(t)}(t)?function(t){return t.match(Vt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(r)||[]}var Ka=Vn((function(t,r){try{return pr(t,e,r)}catch(t){return Gs(t)?t:new Lt(t)}})),Xa=Yi((function(t,r){return wr(r,(function(r){r=Ao(r),rn(t,r,Ss(t[r],t))})),t}));function Ja(t){return function(){return t}}var Ya=Di(),Qa=Di(!0);function tu(t){return t}function ru(t){return Fn("function"==typeof t?t:on(t,1))}var eu=Vn((function(t,r){return function(e){return Rn(e,t,r)}})),nu=Vn((function(t,r){return function(e){return Rn(t,e,r)}}));function iu(t,r,e){var n=ja(r),i=mn(r,n);null!=e||Js(r)&&(i.length||!n.length)||(e=r,r=t,t=this,i=mn(r,ja(r)));var o=!(Js(e)&&"chain"in e&&!e.chain),s=qs(t);return wr(i,(function(e){var n=r[e];t[e]=n,s&&(t.prototype[e]=function(){var r=this.__chain__;if(o||r){var e=t(this.__wrapped__),i=e.__actions__=ki(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),e.__chain__=r,e}return n.apply(t,kr([this.value()],arguments))})})),t}function ou(){}var su=$i(Er),au=$i(Lr),uu=$i(jr);function cu(t){return Co(t)?Ir(Ao(t)):function(t){return function(r){return Ln(r,t)}}(t)}var lu=Hi(),hu=Hi(!0);function fu(){return[]}function du(){return!1}var gu,vu=Pi((function(t,r){return t+r}),0),pu=Ni("ceil"),Cu=Pi((function(t,r){return t/r}),1),wu=Ni("floor"),mu=Pi((function(t,r){return t*r}),1),Lu=Ni("round"),bu=Pi((function(t,r){return t-r}),0);return Ie.after=function(t,r){if("function"!=typeof r)throw new St(n);return t=ha(t),function(){if(--t<1)return r.apply(this,arguments)}},Ie.ary=Es,Ie.assign=pa,Ie.assignIn=Ca,Ie.assignInWith=wa,Ie.assignWith=ma,Ie.at=La,Ie.before=ks,Ie.bind=Ss,Ie.bindAll=Xa,Ie.bindKey=Rs,Ie.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},Ie.chain=cs,Ie.chunk=function(t,r,n){r=(n?po(t,r,n):r===e)?1:ge(ha(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,s=0,a=w(Tr(i/r));o<i;)a[s++]=Qn(t,o,o+=r);return a},Ie.compact=function(t){for(var r=-1,e=null==t?0:t.length,n=0,i=[];++r<e;){var o=t[r];o&&(i[n++]=o)}return i},Ie.concat=function(){var t=arguments.length;if(!t)return[];for(var r=w(t-1),e=arguments[0],n=t;n--;)r[n-1]=arguments[n];return kr(Hs(e)?ki(e):[e],gn(r,1))},Ie.cond=function(t){var r=null==t?0:t.length,e=io();return t=r?Er(t,(function(t){if("function"!=typeof t[1])throw new St(n);return[e(t[0]),t[1]]})):[],Vn((function(e){for(var n=-1;++n<r;){var i=t[n];if(pr(i[0],this,e))return pr(i[1],this,e)}}))},Ie.conforms=function(t){return function(t){var r=ja(t);return function(e){return sn(e,t,r)}}(on(t,1))},Ie.constant=Ja,Ie.countBy=fs,Ie.create=function(t,r){var e=Te(t);return null==r?e:tn(e,r)},Ie.curry=function t(r,n,i){var o=Gi(r,8,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},Ie.curryRight=function t(r,n,i){var o=Gi(r,16,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},Ie.debounce=js,Ie.defaults=ba,Ie.defaultsDeep=xa,Ie.defer=zs,Ie.delay=Os,Ie.difference=To,Ie.differenceBy=Po,Ie.differenceWith=$o,Ie.drop=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=n||r===e?1:ha(r))<0?0:r,i):[]},Ie.dropRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,0,(r=i-(r=n||r===e?1:ha(r)))<0?0:r):[]},Ie.dropRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0,!0):[]},Ie.dropWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0):[]},Ie.fill=function(t,r,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&po(t,r,n)&&(n=0,i=o),function(t,r,n,i){var o=t.length;for((n=ha(n))<0&&(n=-n>o?0:o+n),(i=i===e||i>o?o:ha(i))<0&&(i+=o),i=n>i?0:fa(i);n<i;)t[n++]=r;return t}(t,r,n,i)):[]},Ie.filter=function(t,r){return(Hs(t)?br:dn)(t,io(r,3))},Ie.flatMap=function(t,r){return gn(Ls(t,r),1)},Ie.flatMapDeep=function(t,r){return gn(Ls(t,r),u)},Ie.flatMapDepth=function(t,r,n){return n=n===e?1:ha(n),gn(Ls(t,r),n)},Ie.flatten=Zo,Ie.flattenDeep=function(t){return null!=t&&t.length?gn(t,u):[]},Ie.flattenDepth=function(t,r){return null!=t&&t.length?gn(t,r=r===e?1:ha(r)):[]},Ie.flip=function(t){return Gi(t,512)},Ie.flow=Ya,Ie.flowRight=Qa,Ie.fromPairs=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var i=t[r];n[i[0]]=i[1]}return n},Ie.functions=function(t){return null==t?[]:mn(t,ja(t))},Ie.functionsIn=function(t){return null==t?[]:mn(t,za(t))},Ie.groupBy=Cs,Ie.initial=function(t){return null!=t&&t.length?Qn(t,0,-1):[]},Ie.intersection=No,Ie.intersectionBy=Wo,Ie.intersectionWith=Vo,Ie.invert=ka,Ie.invertBy=Sa,Ie.invokeMap=ws,Ie.iteratee=ru,Ie.keyBy=ms,Ie.keys=ja,Ie.keysIn=za,Ie.map=Ls,Ie.mapKeys=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,r(t,n,i),t)})),e},Ie.mapValues=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,n,r(t,n,i))})),e},Ie.matches=function(t){return In(on(t,1))},Ie.matchesProperty=function(t,r){return Tn(t,on(r,1))},Ie.memoize=Ms,Ie.merge=Oa,Ie.mergeWith=Ma,Ie.method=eu,Ie.methodOf=nu,Ie.mixin=iu,Ie.negate=Fs,Ie.nthArg=function(t){return t=ha(t),Vn((function(r){return $n(r,t)}))},Ie.omit=Fa,Ie.omitBy=function(t,r){return Aa(t,Fs(io(r)))},Ie.once=function(t){return ks(2,t)},Ie.orderBy=function(t,r,n,i){return null==t?[]:(Hs(r)||(r=null==r?[]:[r]),Hs(n=i?e:n)||(n=null==n?[]:[n]),Un(t,r,n))},Ie.over=su,Ie.overArgs=_s,Ie.overEvery=au,Ie.overSome=uu,Ie.partial=As,Ie.partialRight=Ds,Ie.partition=bs,Ie.pick=_a,Ie.pickBy=Aa,Ie.property=cu,Ie.propertyOf=function(t){return function(r){return null==t?e:Ln(t,r)}},Ie.pull=qo,Ie.pullAll=Ko,Ie.pullAllBy=function(t,r,e){return t&&t.length&&r&&r.length?Zn(t,r,io(e,2)):t},Ie.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?Zn(t,r,e,n):t},Ie.pullAt=Xo,Ie.range=lu,Ie.rangeRight=hu,Ie.rearg=Is,Ie.reject=function(t,r){return(Hs(t)?br:dn)(t,Fs(io(r,3)))},Ie.remove=function(t,r){var e=[];if(!t||!t.length)return e;var n=-1,i=[],o=t.length;for(r=io(r,3);++n<o;){var s=t[n];r(s,n,t)&&(e.push(s),i.push(n))}return Bn(t,i),e},Ie.rest=function(t,r){if("function"!=typeof t)throw new St(n);return Vn(t,r=r===e?r:ha(r))},Ie.reverse=Jo,Ie.sampleSize=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:ha(r),(Hs(t)?qe:qn)(t,r)},Ie.set=function(t,r,e){return null==t?t:Kn(t,r,e)},Ie.setWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:Kn(t,r,n,i)},Ie.shuffle=function(t){return(Hs(t)?Ke:Yn)(t)},Ie.slice=function(t,r,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&po(t,r,n)?(r=0,n=i):(r=null==r?0:ha(r),n=n===e?i:ha(n)),Qn(t,r,n)):[]},Ie.sortBy=xs,Ie.sortedUniq=function(t){return t&&t.length?ni(t):[]},Ie.sortedUniqBy=function(t,r){return t&&t.length?ni(t,io(r,2)):[]},Ie.split=function(t,r,n){return n&&"number"!=typeof n&&po(t,r,n)&&(r=n=e),(n=n===e?h:n>>>0)?(t=va(t))&&("string"==typeof r||null!=r&&!ea(r))&&!(r=oi(r))&&Jr(t)?Ci(ie(t),0,n):t.split(r,n):[]},Ie.spread=function(t,r){if("function"!=typeof t)throw new St(n);return r=null==r?0:ge(ha(r),0),Vn((function(e){var n=e[r],i=Ci(e,0,r);return n&&kr(i,n),pr(t,this,i)}))},Ie.tail=function(t){var r=null==t?0:t.length;return r?Qn(t,1,r):[]},Ie.take=function(t,r,n){return t&&t.length?Qn(t,0,(r=n||r===e?1:ha(r))<0?0:r):[]},Ie.takeRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=i-(r=n||r===e?1:ha(r)))<0?0:r,i):[]},Ie.takeRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!1,!0):[]},Ie.takeWhile=function(t,r){return t&&t.length?ci(t,io(r,3)):[]},Ie.tap=function(t,r){return r(t),t},Ie.throttle=function(t,r,e){var i=!0,o=!0;if("function"!=typeof t)throw new St(n);return Js(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),js(t,r,{leading:i,maxWait:r,trailing:o})},Ie.thru=ls,Ie.toArray=ca,Ie.toPairs=Da,Ie.toPairsIn=Ia,Ie.toPath=function(t){return Hs(t)?Er(t,Ao):oa(t)?[t]:ki(_o(va(t)))},Ie.toPlainObject=ga,Ie.transform=function(t,r,e){var n=Hs(t),i=n||Ws(t)||sa(t);if(r=io(r,4),null==e){var o=t&&t.constructor;e=i?n?new o:[]:Js(t)&&qs(o)?Te(Zt(t)):{}}return(i?wr:Cn)(t,(function(t,n,i){return r(e,t,n,i)})),e},Ie.unary=function(t){return Es(t,1)},Ie.union=Yo,Ie.unionBy=Qo,Ie.unionWith=ts,Ie.uniq=function(t){return t&&t.length?si(t):[]},Ie.uniqBy=function(t,r){return t&&t.length?si(t,io(r,2)):[]},Ie.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?si(t,e,r):[]},Ie.unset=function(t,r){return null==t||ai(t,r)},Ie.unzip=rs,Ie.unzipWith=es,Ie.update=function(t,r,e){return null==t?t:ui(t,r,gi(e))},Ie.updateWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:ui(t,r,gi(n),i)},Ie.values=Ta,Ie.valuesIn=function(t){return null==t?[]:Br(t,za(t))},Ie.without=ns,Ie.words=qa,Ie.wrap=function(t,r){return As(gi(r),t)},Ie.xor=is,Ie.xorBy=os,Ie.xorWith=ss,Ie.zip=as,Ie.zipObject=function(t,r){return fi(t||[],r||[],Je)},Ie.zipObjectDeep=function(t,r){return fi(t||[],r||[],Kn)},Ie.zipWith=us,Ie.entries=Da,Ie.entriesIn=Ia,Ie.extend=Ca,Ie.extendWith=wa,iu(Ie,Ie),Ie.add=vu,Ie.attempt=Ka,Ie.camelCase=Pa,Ie.capitalize=$a,Ie.ceil=pu,Ie.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=da(n))==n?n:0),r!==e&&(r=(r=da(r))==r?r:0),nn(da(t),r,n)},Ie.clone=function(t){return on(t,4)},Ie.cloneDeep=function(t){return on(t,5)},Ie.cloneDeepWith=function(t,r){return on(t,5,r="function"==typeof r?r:e)},Ie.cloneWith=function(t,r){return on(t,4,r="function"==typeof r?r:e)},Ie.conformsTo=function(t,r){return null==r||sn(t,r,ja(r))},Ie.deburr=Ua,Ie.defaultTo=function(t,r){return null==t||t!=t?r:t},Ie.divide=Cu,Ie.endsWith=function(t,r,n){t=va(t),r=oi(r);var i=t.length,o=n=n===e?i:nn(ha(n),0,i);return(n-=r.length)>=0&&t.slice(n,o)==r},Ie.eq=Ts,Ie.escape=function(t){return(t=va(t))&&G.test(t)?t.replace(W,Kr):t},Ie.escapeRegExp=function(t){return(t=va(t))&&rt.test(t)?t.replace(tt,"\\$&"):t},Ie.every=function(t,r,n){var i=Hs(t)?Lr:hn;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},Ie.find=ds,Ie.findIndex=Uo,Ie.findKey=function(t,r){return Or(t,io(r,3),Cn)},Ie.findLast=gs,Ie.findLastIndex=Ho,Ie.findLastKey=function(t,r){return Or(t,io(r,3),wn)},Ie.floor=wu,Ie.forEach=vs,Ie.forEachRight=ps,Ie.forIn=function(t,r){return null==t?t:vn(t,io(r,3),za)},Ie.forInRight=function(t,r){return null==t?t:pn(t,io(r,3),za)},Ie.forOwn=function(t,r){return t&&Cn(t,io(r,3))},Ie.forOwnRight=function(t,r){return t&&wn(t,io(r,3))},Ie.get=ya,Ie.gt=Ps,Ie.gte=$s,Ie.has=function(t,r){return null!=t&&ho(t,r,En)},Ie.hasIn=Ea,Ie.head=Bo,Ie.identity=tu,Ie.includes=function(t,r,e,n){t=Bs(t)?t:Ta(t),e=e&&!n?ha(e):0;var i=t.length;return e<0&&(e=ge(i+e,0)),ia(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&Fr(t,r,e)>-1},Ie.indexOf=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:ha(e);return i<0&&(i=ge(n+i,0)),Fr(t,r,i)},Ie.inRange=function(t,r,n){return r=la(r),n===e?(n=r,r=0):n=la(n),function(t,r,e){return t>=ve(r,e)&&t<ge(r,e)}(t=da(t),r,n)},Ie.invoke=Ra,Ie.isArguments=Us,Ie.isArray=Hs,Ie.isArrayBuffer=Zs,Ie.isArrayLike=Bs,Ie.isArrayLikeObject=Ns,Ie.isBoolean=function(t){return!0===t||!1===t||Ys(t)&&xn(t)==v},Ie.isBuffer=Ws,Ie.isDate=Vs,Ie.isElement=function(t){return Ys(t)&&1===t.nodeType&&!ra(t)},Ie.isEmpty=function(t){if(null==t)return!0;if(Bs(t)&&(Hs(t)||"string"==typeof t||"function"==typeof t.splice||Ws(t)||sa(t)||Us(t)))return!t.length;var r=lo(t);if(r==b||r==S)return!t.size;if(Lo(t))return!_n(t).length;for(var e in t)if(Mt.call(t,e))return!1;return!0},Ie.isEqual=function(t,r){return zn(t,r)},Ie.isEqualWith=function(t,r,n){var i=(n="function"==typeof n?n:e)?n(t,r):e;return i===e?zn(t,r,e,n):!!i},Ie.isError=Gs,Ie.isFinite=function(t){return"number"==typeof t&&he(t)},Ie.isFunction=qs,Ie.isInteger=Ks,Ie.isLength=Xs,Ie.isMap=Qs,Ie.isMatch=function(t,r){return t===r||On(t,r,so(r))},Ie.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,On(t,r,so(r),n)},Ie.isNaN=function(t){return ta(t)&&t!=+t},Ie.isNative=function(t){if(mo(t))throw new Lt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},Ie.isNil=function(t){return null==t},Ie.isNull=function(t){return null===t},Ie.isNumber=ta,Ie.isObject=Js,Ie.isObjectLike=Ys,Ie.isPlainObject=ra,Ie.isRegExp=ea,Ie.isSafeInteger=function(t){return Ks(t)&&t>=-9007199254740991&&t<=c},Ie.isSet=na,Ie.isString=ia,Ie.isSymbol=oa,Ie.isTypedArray=sa,Ie.isUndefined=function(t){return t===e},Ie.isWeakMap=function(t){return Ys(t)&&lo(t)==z},Ie.isWeakSet=function(t){return Ys(t)&&"[object WeakSet]"==xn(t)},Ie.join=function(t,r){return null==t?"":fe.call(t,r)},Ie.kebabCase=Ha,Ie.last=Go,Ie.lastIndexOf=function(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==e&&(o=(o=ha(n))<0?ge(i+o,0):ve(o,i-1)),r==r?function(t,r,e){for(var n=e+1;n--;)if(t[n]===r)return n;return n}(t,r,o):Mr(t,Ar,o,!0)},Ie.lowerCase=Za,Ie.lowerFirst=Ba,Ie.lt=aa,Ie.lte=ua,Ie.max=function(t){return t&&t.length?fn(t,tu,yn):e},Ie.maxBy=function(t,r){return t&&t.length?fn(t,io(r,2),yn):e},Ie.mean=function(t){return Dr(t,tu)},Ie.meanBy=function(t,r){return Dr(t,io(r,2))},Ie.min=function(t){return t&&t.length?fn(t,tu,An):e},Ie.minBy=function(t,r){return t&&t.length?fn(t,io(r,2),An):e},Ie.stubArray=fu,Ie.stubFalse=du,Ie.stubObject=function(){return{}},Ie.stubString=function(){return""},Ie.stubTrue=function(){return!0},Ie.multiply=mu,Ie.nth=function(t,r){return t&&t.length?$n(t,ha(r)):e},Ie.noConflict=function(){return ir._===this&&(ir._=It),this},Ie.noop=ou,Ie.now=ys,Ie.pad=function(t,r,e){t=va(t);var n=(r=ha(r))?ne(t):0;if(!r||n>=r)return t;var i=(r-n)/2;return Ui(ue(i),e)+t+Ui(Tr(i),e)},Ie.padEnd=function(t,r,e){t=va(t);var n=(r=ha(r))?ne(t):0;return r&&n<r?t+Ui(r-n,e):t},Ie.padStart=function(t,r,e){t=va(t);var n=(r=ha(r))?ne(t):0;return r&&n<r?Ui(r-n,e)+t:t},Ie.parseInt=function(t,r,e){return e||null==r?r=0:r&&(r=+r),Ce(va(t).replace(et,""),r||0)},Ie.random=function(t,r,n){if(n&&"boolean"!=typeof n&&po(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=la(t),r===e?(r=t,t=0):r=la(r)),t>r){var i=t;t=r,r=i}if(n||t%1||r%1){var o=we();return ve(t+o*(r-t+tr("1e-"+((o+"").length-1))),r)}return Nn(t,r)},Ie.reduce=function(t,r,e){var n=Hs(t)?Sr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,cn)},Ie.reduceRight=function(t,r,e){var n=Hs(t)?Rr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,ln)},Ie.repeat=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:ha(r),Wn(va(t),r)},Ie.replace=function(){var t=arguments,r=va(t[0]);return t.length<3?r:r.replace(t[1],t[2])},Ie.result=function(t,r,n){var i=-1,o=(r=vi(r,t)).length;for(o||(o=1,t=e);++i<o;){var s=null==t?e:t[Ao(r[i])];s===e&&(i=o,s=n),t=qs(s)?s.call(t):s}return t},Ie.round=Lu,Ie.runInContext=t,Ie.sample=function(t){return(Hs(t)?Ge:Gn)(t)},Ie.size=function(t){if(null==t)return 0;if(Bs(t))return ia(t)?ne(t):t.length;var r=lo(t);return r==b||r==S?t.size:_n(t).length},Ie.snakeCase=Na,Ie.some=function(t,r,n){var i=Hs(t)?jr:ti;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},Ie.sortedIndex=function(t,r){return ri(t,r)},Ie.sortedIndexBy=function(t,r,e){return ei(t,r,io(e,2))},Ie.sortedIndexOf=function(t,r){var e=null==t?0:t.length;if(e){var n=ri(t,r);if(n<e&&Ts(t[n],r))return n}return-1},Ie.sortedLastIndex=function(t,r){return ri(t,r,!0)},Ie.sortedLastIndexBy=function(t,r,e){return ei(t,r,io(e,2),!0)},Ie.sortedLastIndexOf=function(t,r){if(null!=t&&t.length){var e=ri(t,r,!0)-1;if(Ts(t[e],r))return e}return-1},Ie.startCase=Wa,Ie.startsWith=function(t,r,e){return t=va(t),e=null==e?0:nn(ha(e),0,t.length),r=oi(r),t.slice(e,e+r.length)==r},Ie.subtract=bu,Ie.sum=function(t){return t&&t.length?$r(t,tu):0},Ie.sumBy=function(t,r){return t&&t.length?$r(t,io(r,2)):0},Ie.template=function(t,r,n){var i=Ie.templateSettings;n&&po(t,r,n)&&(r=e),t=va(t),r=wa({},r,i,qi);var o,s,a=wa({},r.imports,i.imports,qi),u=ja(a),c=Br(a,u),l=0,h=r.interpolate||wt,f="__p += '",d=Et((r.escape||wt).source+"|"+h.source+"|"+(h===X?lt:wt).source+"|"+(r.evaluate||wt).source+"|$","g"),g="//# sourceURL="+(Mt.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";t.replace(d,(function(r,e,n,i,a,u){return n||(n=i),f+=t.slice(l,u).replace(mt,Xr),e&&(o=!0,f+="' +\n__e("+e+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+r.length,r})),f+="';\n";var v=Mt.call(r,"variable")&&r.variable;if(v){if(ut.test(v))throw new Lt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(Z,"$1").replace(B,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Ka((function(){return bt(u,g+"return "+f).apply(e,c)}));if(p.source=f,Gs(p))throw p;return p},Ie.times=function(t,r){if((t=ha(t))<1||t>c)return[];var e=h,n=ve(t,h);r=io(r),t-=h;for(var i=Ur(n,r);++e<t;)r(e);return i},Ie.toFinite=la,Ie.toInteger=ha,Ie.toLength=fa,Ie.toLower=function(t){return va(t).toLowerCase()},Ie.toNumber=da,Ie.toSafeInteger=function(t){return t?nn(ha(t),-9007199254740991,c):0===t?t:0},Ie.toString=va,Ie.toUpper=function(t){return va(t).toUpperCase()},Ie.trim=function(t,r,n){if((t=va(t))&&(n||r===e))return Hr(t);if(!t||!(r=oi(r)))return t;var i=ie(t),o=ie(r);return Ci(i,Wr(i,o),Vr(i,o)+1).join("")},Ie.trimEnd=function(t,r,n){if((t=va(t))&&(n||r===e))return t.slice(0,oe(t)+1);if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,0,Vr(i,ie(r))+1).join("")},Ie.trimStart=function(t,r,n){if((t=va(t))&&(n||r===e))return t.replace(et,"");if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,Wr(i,ie(r))).join("")},Ie.truncate=function(t,r){var n=30,i="...";if(Js(r)){var o="separator"in r?r.separator:o;n="length"in r?ha(r.length):n,i="omission"in r?oi(r.omission):i}var s=(t=va(t)).length;if(Jr(t)){var a=ie(t);s=a.length}if(n>=s)return t;var u=n-ne(i);if(u<1)return i;var c=a?Ci(a,0,u).join(""):t.slice(0,u);if(o===e)return c+i;if(a&&(u+=c.length-u),ea(o)){if(t.slice(u).search(o)){var l,h=c;for(o.global||(o=Et(o.source,va(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var f=l.index;c=c.slice(0,f===e?u:f)}}else if(t.indexOf(oi(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Ie.unescape=function(t){return(t=va(t))&&V.test(t)?t.replace(N,se):t},Ie.uniqueId=function(t){var r=++Ft;return va(t)+r},Ie.upperCase=Va,Ie.upperFirst=Ga,Ie.each=vs,Ie.eachRight=ps,Ie.first=Bo,iu(Ie,(gu={},Cn(Ie,(function(t,r){Mt.call(Ie.prototype,r)||(gu[r]=t)})),gu),{chain:!1}),Ie.VERSION="4.17.21",wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ie[t].placeholder=Ie})),wr(["drop","take"],(function(t,r){Ue.prototype[t]=function(n){n=n===e?1:ge(ha(n),0);var i=this.__filtered__&&!r?new Ue(this):this.clone();return i.__filtered__?i.__takeCount__=ve(n,i.__takeCount__):i.__views__.push({size:ve(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Ue.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}})),wr(["filter","map","takeWhile"],(function(t,r){var e=r+1,n=1==e||3==e;Ue.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:io(t,3),type:e}),r.__filtered__=r.__filtered__||n,r}})),wr(["head","last"],(function(t,r){var e="take"+(r?"Right":"");Ue.prototype[t]=function(){return this[e](1).value()[0]}})),wr(["initial","tail"],(function(t,r){var e="drop"+(r?"":"Right");Ue.prototype[t]=function(){return this.__filtered__?new Ue(this):this[e](1)}})),Ue.prototype.compact=function(){return this.filter(tu)},Ue.prototype.find=function(t){return this.filter(t).head()},Ue.prototype.findLast=function(t){return this.reverse().find(t)},Ue.prototype.invokeMap=Vn((function(t,r){return"function"==typeof t?new Ue(this):this.map((function(e){return Rn(e,t,r)}))})),Ue.prototype.reject=function(t){return this.filter(Fs(io(t)))},Ue.prototype.slice=function(t,r){t=ha(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Ue(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=ha(r))<0?n.dropRight(-r):n.take(r-t)),n)},Ue.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ue.prototype.toArray=function(){return this.take(h)},Cn(Ue.prototype,(function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=Ie[i?"take"+("last"==r?"Right":""):r],s=i||/^find/.test(r);o&&(Ie.prototype[r]=function(){var r=this.__wrapped__,a=i?[1]:arguments,u=r instanceof Ue,c=a[0],l=u||Hs(r),h=function(t){var r=o.apply(Ie,kr([t],a));return i&&f?r[0]:r};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,g=s&&!f,v=u&&!d;if(!s&&l){r=v?r:new Ue(this);var p=t.apply(r,a);return p.__actions__.push({func:ls,args:[h],thisArg:e}),new $e(p,f)}return g&&v?t.apply(this,a):(p=this.thru(h),g?i?p.value()[0]:p.value():p)})})),wr(["pop","push","shift","sort","splice","unshift"],(function(t){var r=Rt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Ie.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(Hs(i)?i:[],t)}return this[e]((function(e){return r.apply(Hs(e)?e:[],t)}))}})),Cn(Ue.prototype,(function(t,r){var e=Ie[r];if(e){var n=e.name+"";Mt.call(Re,n)||(Re[n]=[]),Re[n].push({name:r,func:e})}})),Re[Ii(e,2).name]=[{name:"wrapper",func:e}],Ue.prototype.clone=function(){var t=new Ue(this.__wrapped__);return t.__actions__=ki(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ki(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ki(this.__views__),t},Ue.prototype.reverse=function(){if(this.__filtered__){var t=new Ue(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ue.prototype.value=function(){var t=this.__wrapped__.value(),r=this.__dir__,e=Hs(t),n=r<0,i=e?t.length:0,o=function(t,r,e){for(var n=-1,i=e.length;++n<i;){var o=e[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":r-=s;break;case"take":r=ve(r,t+s);break;case"takeRight":t=ge(t,r-s)}}return{start:t,end:r}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,h=l.length,f=0,d=ve(u,this.__takeCount__);if(!e||!n&&i==u&&d==u)return li(t,this.__actions__);var g=[];t:for(;u--&&f<d;){for(var v=-1,p=t[c+=r];++v<h;){var C=l[v],w=C.type,m=(0,C.iteratee)(p);if(2==w)p=m;else if(!m){if(1==w)continue t;break t}}g[f++]=p}return g},Ie.prototype.at=hs,Ie.prototype.chain=function(){return cs(this)},Ie.prototype.commit=function(){return new $e(this.value(),this.__chain__)},Ie.prototype.next=function(){this.__values__===e&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Ie.prototype.plant=function(t){for(var r,n=this;n instanceof Pe;){var i=Io(n);i.__index__=0,i.__values__=e,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,r},Ie.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ue){var r=t;return this.__actions__.length&&(r=new Ue(this)),(r=r.reverse()).__actions__.push({func:ls,args:[Jo],thisArg:e}),new $e(r,this.__chain__)}return this.thru(Jo)},Ie.prototype.toJSON=Ie.prototype.valueOf=Ie.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Ie.prototype.first=Ie.prototype.head,nr&&(Ie.prototype[nr]=function(){return this}),Ie}();sr?((sr.exports=ae)._=ae,or._=ae):ir._=ae}).call(w)}));class _n{constructor(t,r){var e,n;this.sv=t,this.storesByType={},this.storesXToType={},this.storesYToType={},null===(e=this.sv.selectionStoreConnector)||void 0===e||e.beforeUpdate(),this.columns=this.getViewportColumnData(r),null===(n=this.sv.scrollingService)||void 0===n||n.unregister()}onColumnResize(t,r,e){var n;null===(n=this.sv.dimensionProvider)||void 0===n||n.setDimensionSize(t,r.detail);const i=Fn.reduce(r.detail||{},((t,r,n)=>{const i=qr(e,parseInt(n,10));return i&&(t[i.prop]=Object.assign(Object.assign({},i),{size:r})),t}),{});this.sv.resize(i)}getViewportColumnData(t){const r=[];let e=0;return Yr.forEach((n=>{const i=this.sv.columnProvider.stores[n].store;if(!i.get("items").length)return;const o={colType:n,position:{x:e,y:1},contentHeight:t,fixWidth:"rgCol"!==n,uuid:`${this.sv.uuid}-${e}`,viewports:this.sv.viewportProvider.stores,dimensions:this.sv.dimensionProvider.stores,rowStores:this.sv.dataProvider.stores,colStore:i,onHeaderresize:t=>this.onColumnResize(n,t,i)};"rgCol"===n&&(o.onResizeViewport=t=>{var r;return null===(r=this.sv.viewportProvider)||void 0===r?void 0:r.setViewport(t.detail.dimension,{virtualSize:t.detail.size})});const s=this.gatherColumnData(o),a=this.registerCol(s.position.x,n),u=this.dataViewPort(o).reduce(((t,r)=>{const e=this.registerSegment(r.position);e.setLastCell(r.lastCell);const n=this.registerRow(r.position.y,r.type),i=Object.assign(Object.assign({},r),{rowSelectionStore:n,segmentSelectionStore:e.store,ref:t=>this.sv.selectionStoreConnector.registerSection(t),onSetRange:t=>e.setRangeArea(t.detail),onSetTempRange:t=>e.setTempArea(t.detail),onFocusCell:t=>{e.clearFocus(),this.sv.selectionStoreConnector.focus(e,t.detail)}});return t.push(i),t}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:a,dataPorts:u})),e++})),r}registerSegment(t){return this.sv.selectionStoreConnector.register(t)}registerRow(t,r){return this.storesByType[r]=t,this.storesYToType[t]=r,this.sv.selectionStoreConnector.registerRow(t).store}registerCol(t,r){return this.storesByType[r]=t,this.storesXToType[t]=r,this.sv.selectionStoreConnector.registerColumn(t).store}gatherColumnData(t){const r=t.uuid,e=t.dimensions[t.colType].store.get("realSize"),n={contentWidth:e,class:t.colType,[`${sn}`]:t.uuid,contentHeight:t.contentHeight,key:t.colType,onResizeViewport:t.onResizeViewport};t.fixWidth&&(n.style={minWidth:`${e}px`});const i={parent:r,colData:Gr(t.colStore),dimensionCol:t.dimensions[t.colType].store,groups:t.colStore.get("groups"),groupingDepth:t.colStore.get("groupingDepth"),onHeaderresize:t.onHeaderresize};return{prop:n,position:t.position,headerProp:i,parent:r,viewportCol:t.viewports[t.colType].store}}dataViewPort(t){const r={rowPinStart:"header",rgRow:"content",rowPinEnd:"footer"};let e=0;return Jr.reduce(((n,i)=>{const o=t.viewports[i].store.get("realCount")||"rgRow"===i,s=Object.assign(Object.assign({},t),{position:Object.assign(Object.assign({},t.position),{y:o?e:zn})});return n.push(this.dataPartition(s,i,r[i],"rgRow"!==i)),o&&e++,n}),[])}dataPartition(t,r,e,n){return{colData:t.colStore,viewportCol:t.viewports[t.colType].store,viewportRow:t.viewports[r].store,lastCell:Mn(t,r),slot:e,type:r,canDrag:!n,position:t.position,uuid:`${t.uuid}-${t.position.x}-${t.position.y}`,dataStore:t.rowStores[r].store,dimensionCol:t.dimensions[t.colType].store,dimensionRow:t.dimensions[r].store,style:n?{height:`${t.dimensions[r].store.get("realSize")}px`}:void 0}}scrollToCell(t){for(let r in t)this.sv.scrollingService.onScroll({dimension:"x"===r?"rgCol":"rgRow",coordinate:t[r]})}clearFocused(){this.sv.selectionStoreConnector.clearAll()}clearEdit(){this.sv.selectionStoreConnector.setEdit(!1)}getFocused(){const t=this.sv.selectionStoreConnector.focusedStore;if(!t)return null;const r=this.storesXToType[t.position.x],e=this.sv.columnProvider.getColumn(t.cell.x,r),n=this.storesYToType[t.position.x];return{column:e,model:this.sv.dataProvider.getModel(t.cell.x,n),cell:t.cell,colType:r,rowType:n}}getSelectedRange(){return this.sv.selectionStoreConnector.selectedRange}setEdit(t,r,e,n){var i;const o=this.storesByType;null===(i=this.sv.selectionStoreConnector)||void 0===i||i.setEditByCell({x:o[e],y:o[n]},{x:r,y:t})}}const An=({resize:t,editors:r,rowClass:n,readonly:i,range:o,columns:s,useClipboard:a,columnFilter:u,registerElement:c,onEdit:l,onCancelEdit:h,onScroll:f})=>{const d=[];for(let g of s){const s=[e("revogr-header",Object.assign({viewportCol:g.viewportCol},g.headerProp,{selectionStore:g.columnSelectionStore,slot:"header",columnFilter:u,canResize:t}))];g.dataPorts.forEach(((t,u)=>{const c=g.prop.key+(u+1),f=e("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:a,onCancelEdit:()=>h(),onSetEdit:({detail:t})=>l(t)}),e("revogr-data",Object.assign({},t,{[sn]:t.uuid},{key:c,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:"data"})),e("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),e("revogr-focus",{colData:t.colData,dataStore:t.dataStore,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(f)})),d.push(e("revogr-viewport-scroll",Object.assign({},g.prop,{ref:t=>c(t,g.prop.key),onScrollViewport:t=>f(t.detail,g.prop.key)}),s))}return d};class Dn{constructor(t){this.setViewport=t,this.elements={}}async onScroll(t,r){let e;for(let n in this.elements)if(this.isPinnedColumn(r)&&"rgCol"===t.dimension){if(n===r||!t.delta)continue;for(let r of this.elements[n])r.changeScroll&&(e=r.changeScroll(t))}else{if("rgCol"===t.dimension&&"headerRow"===n)continue;for(let r of this.elements[n])r.setScroll(t)}let n=t;e&&(n=await e),this.setViewport(n)}isPinnedColumn(t){return["colPinStart","colPinEnd"].indexOf(t)>-1}registerElements(t){this.elements=t}registerElement(t,r){this.elements[r]||(this.elements[r]=[]),t?this.elements[r].push(t):this.elements[r]&&delete this.elements[r]}unregister(){delete this.elements,this.elements={}}}class In extends re{constructor(t,r){super(t),this.dimensionProvider=r,this.stretchedColumn=null,this.scrollSize=fe(document),this.addEventListener("beforecolumnapplied",(({detail:{columns:t}})=>this.applyStretch(t)))}setScroll({type:t,hasScroll:r}){var e;"rgRow"===t&&this.stretchedColumn&&(null===(e=this.stretchedColumn)||void 0===e?void 0:e.initialSize)===this.stretchedColumn.size&&r&&(this.stretchedColumn.size-=this.scrollSize,this.apply(),this.dropChanges())}activateChanges(){this.addEventListener("scrollchange",(({detail:t})=>this.setScroll(t)))}dropChanges(){this.stretchedColumn=null,this.removeEventListener("scrollchange")}apply(){this.stretchedColumn&&this.dimensionProvider.setDimensionSize("rgCol",{[this.stretchedColumn.index]:this.stretchedColumn.size})}applyStretch(t){this.dropChanges();let r=this.revogrid.clientWidth-1;if(Fn.each(t,((t,e)=>{const n=this.dimensionProvider.stores[e].store.get("realSize");r-=n})),r>0){const e=t.rgCol.length-1,n=t.rgCol[e],i=(null==n?void 0:n.size)||this.revogrid.colSize||0,o=r+i-1;n&&!n.autoSize&&i<o&&(this.stretchedColumn={initialSize:o,index:e,size:o},this.apply(),this.activateChanges())}}}class Tn{constructor(){this.offset=0}renderAutoscroll(t,r){r&&(this.autoscrollEl=document.createElement("div"),this.autoscrollEl.classList.add("drag-auto-scroll-y"),r.appendChild(this.autoscrollEl))}autoscroll(t,r,e="translateX"){if(!this.autoscrollEl)return;const n=Math.min(t+10,r-3);this.autoscrollEl.style.transform=`${e}(${n}px)`,this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})}start(t,{dataEl:r,gridRect:e,scrollEl:n},i="left"){const o=n.getBoundingClientRect();o&&(this.offset=o[i]-e[i]),this.renderAutoscroll(t,r)}stop(){var t;this.element&&(this.element.hidden=!0),this.offset=0,null===(t=this.autoscrollEl)||void 0===t||t.remove(),this.autoscrollEl=void 0}showHandler(t,r,e="translateX"){this.element&&(this.offset&&(t=Math.max(t,this.offset)),t=Math.min(t,r),this.element.style.transform=`${e}(${t}px)`,this.element.hidden=!1)}render(){return e("div",{class:"drag-position-y",hidden:!0,ref:t=>this.element=t})}}function Pn(t,r,e){const n=new CustomEvent(r,{detail:e,cancelable:!0,bubbles:!0});return null==t||t.dispatchEvent(n),n}class $n extends re{constructor(t,r){super(t),this.revogrid=t,this.providers=r,this.moveFunc=m((t=>this.doMove(t)),5),this.staticDragData=null,this.dragData=null,this.localSubscriptions={},this.orderUi=new Tn,t.registerVNode([this.orderUi.render()]),this.localSubscriptions.mouseleave={target:document,callback:t=>this.onMouseOut(t)},this.localSubscriptions.mouseup={target:document,callback:t=>this.onMouseUp(t)},this.localSubscriptions.mousemove={target:document,callback:t=>this.move(t)},this.addEventListener("column-click",(({detail:t})=>this.dragStart(t)))}dragStart({event:t,data:r}){if(t.defaultPrevented)return;const{defaultPrevented:e}=Pn(this.revogrid,"column-drag-start",r);if(e)return;this.clearOrder();const{mouseleave:n,mouseup:i,mousemove:o}=this.localSubscriptions;n.target.addEventListener("mouseleave",n.callback),i.target.addEventListener("mouseup",i.callback);const s=t.target.closest("revogr-header"),a=t.target.closest("revogr-viewport-scroll");if(!s||!a)return;if(ne(r))return;const u=this.getDimension(r.pin||"rgCol"),c=this.revogrid.getBoundingClientRect(),l=s.getBoundingClientRect(),h=ve(u,Un(t.x,c.left,l.left-c.left));this.staticDragData={startPos:t.x,startItem:h,data:r,dataEl:s,scrollEl:a,gridEl:this.revogrid,cols:u},this.dragData=this.getData(this.staticDragData),o.target.addEventListener("mousemove",o.callback),this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))}doMove(t){if(!this.staticDragData)return;const r=this.dragData=this.getData(this.staticDragData);if(r&&Math.abs(this.staticDragData.startPos-t.x)>10){const e=Un(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset),n=ve(this.staticDragData.cols,e);this.orderUi.autoscroll(e,r.elRect.width),this.orderUi.showHandler(n.end+r.scrollOffset,r.gridRect.width)}}move(t){Pn(this.revogrid,"column-mouse-move",Object.assign({},t)),this.moveFunc(t)}onMouseOut(t){this.clearOrder()}onMouseUp(t){if(this.dragData){let r=Un(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset);r<0&&(r=0);const e=ve(this.staticDragData.cols,r),n=this.providers.column.stores[this.dragData.type].store,i=[...n.get("items")],{defaultPrevented:o}=Pn(this.revogrid,"before-column-drag-end",Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:e,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]}));if(!o){const t=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice(e.itemIndex,0,...t),n.set("items",i)}Pn(this.revogrid,"column-drag-end",this.dragData)}this.clearOrder()}clearLocalSubscriptions(){Mr(this.localSubscriptions,(({target:t,callback:r},e)=>t.removeEventListener(e,r)))}clearOrder(){this.staticDragData=null,this.dragData=null,this.clearLocalSubscriptions(),this.orderUi.stop()}clearSubscriptions(){super.clearSubscriptions(),this.clearLocalSubscriptions()}getData({gridEl:t,dataEl:r,data:e}){const n=t.getBoundingClientRect(),i=r.getBoundingClientRect();return{elRect:i,gridRect:n,type:e.pin||"rgCol",scrollOffset:i.left-n.left}}getDimension(t){return this.providers.dimension.stores[t].getCurrentState()}}function Un(t,r,e){return t-r-e}const Hn=class{constructor(t){n(this,t),this.beforeedit=i(this,"beforeedit",7),this.beforerangeedit=i(this,"beforerangeedit",7),this.afteredit=i(this,"afteredit",7),this.beforeautofill=i(this,"beforeautofill",7),this.beforeaange=i(this,"beforeaange",7),this.afterfocus=i(this,"afterfocus",7),this.roworderchanged=i(this,"roworderchanged",7),this.beforesourcesortingapply=i(this,"beforesourcesortingapply",7),this.beforesortingapply=i(this,"beforesortingapply",7),this.beforesorting=i(this,"beforesorting",7),this.rowdragstart=i(this,"rowdragstart",7),this.headerclick=i(this,"headerclick",7),this.beforecellfocus=i(this,"beforecellfocus",7),this.beforefocuslost=i(this,"beforefocuslost",7),this.beforesourceset=i(this,"beforesourceset",7),this.aftersourceset=i(this,"aftersourceset",7),this.beforecolumnsset=i(this,"beforecolumnsset",7),this.beforecolumnapplied=i(this,"beforecolumnapplied",7),this.aftercolumnsset=i(this,"aftercolumnsset",7),this.beforefilterapply=i(this,"beforefilterapply",7),this.beforefiltertrimmed=i(this,"beforefiltertrimmed",7),this.beforetrimmed=i(this,"beforetrimmed",7),this.aftertrimmed=i(this,"aftertrimmed",7),this.viewportscroll=i(this,"viewportscroll",7),this.beforeexport=i(this,"beforeexport",7),this.beforeeditstart=i(this,"beforeeditstart",7),this.aftercolumnresize=i(this,"aftercolumnresize",7),this.frameSize=1,this.rowSize=0,this.colSize=100,this.range=!1,this.readonly=!1,this.resize=!1,this.canFocus=!0,this.useClipboard=!0,this.columns=[],this.source=[],this.pinnedTopSource=[],this.pinnedBottomSource=[],this.rowDefinitions=[],this.editors={},this.columnTypes={},this.theme="default",this.rowClass="",this.autoSizeColumn=!1,this.filter=!1,this.canMoveColumns=!1,this.trimmedRows={},this.exporting=!1,this.stretch=!0,this.extraElements=[],this.uuid=null,this.viewport=null,this.internalPlugins=[],this.subscribers={}}async refresh(t="all"){this.dataProvider.refresh(t)}async scrollToRow(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgRow"});await this.scrollToCoordinate({y:r})}async scrollToColumnIndex(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});await this.scrollToCoordinate({x:r})}async scrollToColumnProp(t){const r=this.columnProvider.getColumnIndexByProp(t,"rgCol");if(r<0)return;const e=this.dimensionProvider.getViewPortPos({coordinate:r,dimension:"rgCol"});await this.scrollToCoordinate({x:e})}async updateColumns(t){this.columnProvider.updateColumns(t)}async addTrimmed(t,r="external",e="rgRow"){const n=this.beforetrimmed.emit({trimmed:t,trimmedType:r,type:e});return n.defaultPrevented||(this.dataProvider.setTrimmed({[r]:n.detail.trimmed},e),this.aftertrimmed.emit()),n}async scrollToCoordinate(t){var r;null===(r=this.viewport)||void 0===r||r.scrollToCell(t)}async setCellEdit(t,r,e="rgRow"){var n;const i=ie.getColumnByProp(this.columns,r);if(!i)return;await ge();const o=i.pin||"rgCol";null===(n=this.viewport)||void 0===n||n.setEdit(t,this.columnProvider.getColumnIndexByProp(r,o),o,e)}async registerVNode(t){this.extraElements.push(...t),this.extraElements=[...this.extraElements]}async getSource(t="rgRow"){return this.dataProvider.stores[t].store.get("source")}async getVisibleSource(t="rgRow"){return Gr(this.dataProvider.stores[t].store)}async getSourceStore(t="rgRow"){return this.dataProvider.stores[t].store}async getColumnStore(t="rgCol"){return this.columnProvider.stores[t].store}async updateColumnSorting(t,r,e,n){return this.columnProvider.updateColumnSorting(t,r,e,n)}async clearSorting(){this.columnProvider.clearSorting()}async getColumns(){return this.columnProvider.getColumns()}async clearFocus(){var t;const r=await this.getFocused();this.beforefocuslost.emit(r).defaultPrevented||(this.selectionStoreConnector.clearAll(),null===(t=this.viewport)||void 0===t||t.clearFocused())}async getPlugins(){return[...this.internalPlugins]}async getFocused(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getFocused()}async getSelectedRange(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getSelectedRange()}handleOutsideClick({target:t}){(null==t?void 0:t.closest(`[${sn}="${this.uuid}"]`))||this.clearFocus()}onRowDragStarted(t){var r;t.cancelBubble=!0;const e=this.rowdragstart.emit(t.detail);e.defaultPrevented?t.preventDefault():null===(r=this.orderService)||void 0===r||r.start(this.element,Object.assign(Object.assign({},t.detail),e.detail))}onRowDragEnd(){var t;null===(t=this.orderService)||void 0===t||t.end()}onRowDrag({detail:t}){var r;null===(r=this.orderService)||void 0===r||r.move(t)}onRowMouseMove(t){var r;t.cancelBubble=!0,null===(r=this.orderService)||void 0===r||r.moveTip(t.detail)}async onBeforeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r,detail:e}=this.beforeedit.emit(t.detail);await ge(),r||(this.dataProvider.setCellData(e),this.afteredit.emit(e))}onBeforeRangeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforerangeedit.emit(t.detail);r?t.preventDefault():this.afteredit.emit(t.detail)}onRangeChanged(t){t.cancelBubble=!0,this.beforeaange.emit(t.detail).defaultPrevented&&t.preventDefault(),this.beforeautofill.emit(t.detail)}onRowDropped(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.roworderchanged.emit(t.detail);r&&t.preventDefault()}onHeaderClick(t){const{defaultPrevented:r}=this.headerclick.emit(Object.assign(Object.assign({},t.detail.column),{originalEvent:t.detail.originalEvent}));r&&t.preventDefault()}onCellFocus(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforecellfocus.emit(t.detail);this.canFocus&&!r||t.preventDefault()}columnChanged(t=[]){this.dimensionProvider.drop();const r=ie.getColumns(t,0,this.columnTypes);this.beforecolumnsset.emit(r);for(let t of Yr){const e=r.columns[t];this.dimensionProvider.setRealSize(e.length,t),this.dimensionProvider.setColumns(t,ie.getSizes(e),"rgCol"!==t)}this.beforecolumnapplied.emit(r);const e=this.columnProvider.setColumns(r);this.aftercolumnsset.emit({columns:e,order:this.columnProvider.order})}themeChanged(t){this.themeService.register(t),this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow"),this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")}dataChanged(t=[]){let r=[...t];r=this.beforesourceset.emit({type:"rgRow",source:r}).detail.source,r=this.dataProvider.setData(r,"rgRow"),this.aftersourceset.emit({type:"rgRow",source:r})}dataBottomChanged(t=[]){this.dataProvider.setData(t,"rowPinEnd")}dataTopChanged(t=[]){this.dataProvider.setData(t,"rowPinStart")}rowDefChanged(t=[]){if(!t.length)return;const r=zr(t,((t,r)=>(t[r.type]||(t[r.type]={}),r.size&&(t[r.type].sizes||(t[r.type].sizes={}),t[r.type].sizes[r.index]=r.size),t)),{});Mr(r,((t,r)=>{t.sizes&&this.dimensionProvider.setDimensionSize(r,t.sizes)}))}trimmedRowsChanged(t={}){this.addTrimmed(t)}groupingChanged(t={}){let r;for(let t of this.internalPlugins){const e=t;if(e.setGrouping){r=e;break}}r&&r.setGrouping(t||{})}applyStretch(t){"false"===t&&(t=!1);let r=this.internalPlugins.filter((t=>!!t.applyStretch))[0];if(t)r?r.applyStretch(this.columnProvider.getRawColumns()):this.internalPlugins.push(new In(this.element,this.dimensionProvider));else if(r){const t=this.internalPlugins.indexOf(r);this.internalPlugins.splice(t,1)}}connectedCallback(){this.viewportProvider=new Re,this.themeService=new k({rowSize:this.rowSize}),this.dimensionProvider=new me(this.viewportProvider),this.columnProvider=new ie,this.dataProvider=new oe(this.dimensionProvider),this.uuid=`${(new Date).getTime()}-rvgrid`;const t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};this.autoSizeColumn&&this.internalPlugins.push(new je(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},"object"==typeof this.autoSizeColumn?this.autoSizeColumn:void 0)),this.filter&&this.internalPlugins.push(new Ze(this.element,this.uuid,"object"==typeof this.filter?this.filter:void 0)),this.exporting&&this.internalPlugins.push(new Ln(this.element)),this.internalPlugins.push(new nn(this.element)),this.plugins&&this.plugins.forEach((r=>{this.internalPlugins.push(new r(this.element,t))})),this.canMoveColumns&&this.internalPlugins.push(new $n(this.element,t)),this.internalPlugins.push(new bn(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 On,this.scrollingService=new Dn((t=>{this.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension}),this.viewportscroll.emit(t)})),this.subscribers={click:this.handleOutsideClick.bind(this)};for(let t in this.subscribers)document.addEventListener(t,this.subscribers[t])}disconnectedCallback(){Mr(this.internalPlugins,(t=>t.destroy())),this.internalPlugins=[];for(let t in this.subscribers)document.removeEventListener(t,this.subscribers[t]),delete this.subscribers[t]}render(){const t=this.dimensionProvider.stores.rgRow.store.get("realSize");this.viewport=new _n({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:t=>this.aftercolumnresize.emit(t)},t);const r=[];if(this.rowHeaders){const n=this.viewport.columns[0];r.push(e("revogr-row-headers",{height:t,resize:this.resize,dataPorts:n.dataPorts,headerProp:n.headerProp,uiid:n.prop[sn],rowHeaderColumn:"object"==typeof this.rowHeaders?this.rowHeaders:void 0,onScrollViewport:({detail:t})=>this.scrollingService.onScroll(t,"headerRow"),onElementToScroll:({detail:t})=>this.scrollingService.registerElement(t,"headerRow")}))}return r.push(e(An,{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,onCancelEdit:()=>{this.selectionStoreConnector.setEdit(!1)},onEdit:t=>{this.beforeeditstart.emit(t).defaultPrevented||this.selectionStoreConnector.setEdit(t.val)},registerElement:(t,r)=>this.scrollingService.registerElement(t,r),onScroll:t=>this.scrollingService.onScroll(t)})),e(o,Object.assign({},{[`${sn}`]:this.uuid}),e(En,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:t=>this.orderService=t,registerElement:(t,r)=>this.scrollingService.registerElement(t,r),nakedClick:()=>this.viewport.clearEdit(),onScroll:t=>this.scrollingService.onScroll(t)},r),this.extraElements)}get element(){return s(this)}static get watchers(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}}};Hn.style=".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}";class Zn{constructor(t,r){this.dataStore=t,this.source=r,this.unsubscribe=[],this.hasGrouping=!1,this.unsubscribe.push(r.onChange("source",(t=>this.checkGrouping(t)))),this.checkGrouping(r.get("source"))}get columns(){return Gr(this.source)}checkGrouping(t){for(let r of t){if(cn(r))return void(this.hasGrouping=!0);this.hasGrouping=!1}}isReadOnly(t,r){var e;const n=null===(e=this.columns[r])||void 0===e?void 0:e.readonly;return"function"==typeof n?n(this.rowDataModel(t,r)):n}static doMerge(t,r){let e=Object.assign(Object.assign({},r),t);return r.class&&("object"==typeof r.class&&"object"==typeof e.class?e.class=Object.assign(Object.assign({},r.class),e.class):"string"==typeof r.class&&"object"==typeof e.class?e.class[r.class]=!0:"string"==typeof e.class&&(e.class+=" "+r.class)),r.style&&(e.style=Object.assign(Object.assign({},r.style),e.style)),e}mergeProperties(t,r,e){var n;const i={rgCell:!0,disabled:this.isReadOnly(t,r)};let o=Object.assign(Object.assign({},e),{class:i});const s=null===(n=this.columns[r])||void 0===n?void 0:n.cellProperties;if(s){const e=s(this.rowDataModel(t,r));return e?Zn.doMerge(o,e):o}return o}customRenderer(t,r,n){var i;const o=null===(i=this.columns[r])||void 0===i?void 0:i.cellTemplate;if(o)return o(e,n)}getRowClass(t,r){return(qr(this.dataStore,t)||{})[r]||""}getCellData(t,r){const e=this.rowDataModel(t,r);return Zn.getData(e.model[e.prop])}getSaveData(t,r,e){void 0===e&&(e=this.getCellData(t,r));const n=this.rowDataModel(t,r);return{prop:n.prop,rowIndex:t,val:e,model:n.model,type:this.dataStore.get("type")}}getCellEditor(t,r,e){var n;const i=null===(n=this.columns[r])||void 0===n?void 0:n.editor;if(i)return"string"==typeof i?e[i]:i}rowDataModel(t,r){const e=this.columns[r];return{prop:null==e?void 0:e.prop,model:qr(this.dataStore,t)||{},data:this.dataStore.get("source"),column:e,rowIndex:t}}getRangeData(t){const r={},e=t.oldProps.length,n=this.copyRangeArray(t.oldRange,t.oldProps,this.dataStore),i=n.length;for(let o=t.newRange.y,s=0;o<t.newRange.y1+1;o++,s++){const a=n[s%i];for(let n=t.newRange.x,i=0;n<t.newRange.x1+1;n++,i++){if(o>=t.oldRange.y&&o<=t.oldRange.y1&&n>=t.oldRange.x&&n<=t.oldRange.x1)continue;const s=this.columns[n].prop,u=i%e;this.isReadOnly(o,n)||(r[o]||(r[o]={}),r[o][s]=a[u])}}return r}getTransformedDataToApply(t,r){const e={},n=r.length,i=this.columns.length,o=this.dataStore.get("items").length;let s=t.y,a=0;for(let u=0;s<o&&u<n;s++,u++){const o=r[u%n],c=(null==o?void 0:o.length)||0;let l=t.x;for(let t=0;l<i&&t<c;l++,t++){const r=this.columns[l].prop,n=t%i;this.isReadOnly(s,l)||(e[s]||(e[s]={}),e[s][r]=o[n])}a=Math.max(a,l-1)}return{changed:e,range:Rn(t,{y:s-1,x:a})}}applyRangeData(t){const r={};for(let e in t){const n=r[e]=qr(this.dataStore,parseInt(e,10));for(let r in t[e])n[r]=t[e][r]}Kr(this.dataStore,r)}getRangeStaticData(t,r){const e={};for(let n=t.y,i=0;n<t.y1+1;n++,i++)for(let i=t.x,o=0;i<t.x1+1;i++,o++){const t=this.columns[i].prop;this.isReadOnly(n,i)||(e[n]||(e[n]={}),e[n][t]=r)}return e}copyRangeArray(t,r,e){const n=[];for(let i=t.y;i<t.y1+1;i++){const t=[];for(let n of r){const r=qr(e,i);t.push(r[n])}n.push(t)}return n}static getData(t){return null==t?"":t.toString()}destroy(){this.unsubscribe.forEach((t=>t()))}}const Bn=({model:t,canDrag:r,onDragStart:n})=>{const i=[];return t.column.rowDrag&&function(t,r){return"function"==typeof t?t(r):!!t}(t.column.rowDrag,t)&&i.push(r?e("span",{class:"revo-draggable",onMouseDown:t=>n(t)},e("span",{class:"revo-drag-icon"})):e("span",{class:"revo-draggable"})),i.push(`${Zn.getData(t.model[t.prop])}`),i},Nn=({rowClass:t,size:r,start:n,style:i,depth:o},s)=>e("div",{class:`rgRow ${t||""}`,style:Object.assign(Object.assign({},i),{height:`${r}px`,transform:`translateY(${n}px)`,paddingLeft:o?10*o+"px":void 0})},s);function Wn(t,r,e){const n=new CustomEvent("groupExpandClick",{detail:{model:r,virtualIndex:e},cancelable:!0,bubbles:!0});t.target.dispatchEvent(n)}const Vn=t=>{const{model:r,itemIndex:n,hasExpand:i,groupingCustomRenderer:o}=t,s=r["__rvgr-name"],a=r["__rvgr-expanded"],u=parseInt(r["__rvgr-depth"],10)||0;return i?o?e(Nn,Object.assign({},t,{rowClass:"groupingRow",depth:u}),e("div",{onClick:t=>Wn(t,r,n)},o(e,{name:s,itemIndex:n,expanded:a,depth:u}))):e(Nn,Object.assign({},t,{rowClass:"groupingRow",depth:u}),e("button",{class:{"group-expand":!0},onClick:t=>Wn(t,r,n)},e("svg",{"aria-hidden":"true",style:{transform:`rotate(${a?0:-90}deg)`},focusable:"false",viewBox:"0 0 448 512"},e("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),s):e(Nn,Object.assign({},t,{rowClass:"groupingRow",depth:u}))},Gn=class{constructor(t){n(this,t),this.dragStartCell=i(this,"dragStartCell",7)}onStoreChange(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Zn(this.dataStore,this.colData)}connectedCallback(){this.onStoreChange()}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}render(){var t;const r=this.viewportRow.get("items"),n=this.viewportCol.get("items");if(!this.columnService.columns.length||!r.length||!n.length)return"";const i=null===(t=this.rowSelectionStore)||void 0===t?void 0:t.get("range"),o=[],s=this.dataStore.get("groupingDepth"),a=this.dataStore.get("groupingCustomRenderer");for(let t of r){const r=qr(this.dataStore,t.itemIndex);if(un(r)){o.push(e(Vn,Object.assign({},t,{model:r,groupingCustomRenderer:a,hasExpand:this.columnService.hasGrouping})));continue}const u=[];let c=this.rowClass?this.columnService.getRowClass(t.itemIndex,this.rowClass):"";i&&t.itemIndex>=i.y&&t.itemIndex<=i.y1&&(c+=" focused-rgRow");for(let r of n)u.push(this.getCellRenderer(t,r,this.canDrag,this.columnService.hasGrouping?s:0));o.push(e(Nn,{rowClass:c,size:t.size,start:t.start},u))}return o}getCellRenderer(t,r,n=!1,i=0){const o=this.columnService.rowDataModel(t.itemIndex,r.itemIndex),s={"data-rgCol":r.itemIndex,"data-rgRow":t.itemIndex,style:{width:`${r.size}px`,transform:`translateX(${r.start}px)`}};i&&!r.itemIndex&&(s.style.paddingLeft=10*i+"px");const a=this.columnService.mergeProperties(t.itemIndex,r.itemIndex,s),u=this.columnService.customRenderer(t.itemIndex,r.itemIndex,o);return void 0!==u?e("div",Object.assign({},a),u):o.column?e("div",Object.assign({},a),e(Bn,{model:o,canDrag:n,onDragStart:t=>this.dragStartCell.emit(t)})):void console.error("Investigate column problem")}get element(){return s(this)}static get watchers(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}}};var qn,Kn;Gn.style=".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}",function(t){t[t.MOUSE_LEFT=1]="MOUSE_LEFT",t[t.MOUSE_RIGHT=3]="MOUSE_RIGHT",t[t.MOUSE_MIDDLE=2]="MOUSE_MIDDLE",t[t.BACKSPACE=8]="BACKSPACE",t[t.COMMA=188]="COMMA",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.END=35]="END",t[t.ENTER=13]="ENTER",t[t.ESCAPE=27]="ESCAPE",t[t.CONTROL=17]="CONTROL",t[t.COMMAND_LEFT=91]="COMMAND_LEFT",t[t.COMMAND_RIGHT=93]="COMMAND_RIGHT",t[t.COMMAND_FIREFOX=224]="COMMAND_FIREFOX",t[t.ALT=18]="ALT",t[t.HOME=36]="HOME",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.PAGE_UP=33]="PAGE_UP",t[t.PERIOD=190]="PERIOD",t[t.SPACE=32]="SPACE",t[t.SHIFT=16]="SHIFT",t[t.CAPS_LOCK=20]="CAPS_LOCK",t[t.TAB=9]="TAB",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.A=65]="A",t[t.C=67]="C",t[t.D=68]="D",t[t.F=70]="F",t[t.L=76]="L",t[t.O=79]="O",t[t.P=80]="P",t[t.S=83]="S",t[t.V=86]="V",t[t.X=88]="X"}(qn||(qn={})),function(t){t.ENTER="Enter",t.ENTER_NUM="NumpadEnter",t.V="KeyV",t.C="KeyC",t.ESCAPE="Escape",t.TAB="Tab",t.BACKSPACE="Backspace",t.DELETE="Delete",t.ARROW_RIGHT="ArrowRight",t.ARROW_LEFT="ArrowLeft",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.SHIFT="Shift"}(Kn||(Kn={}));const Xn=qn;var Jn;!function(t){t.mac="Mac"}(Jn||(Jn={}));const Yn=Jn;var Qn=function(t){return t!=t},ti=function(t){return null==t?[]:function(t,r){return dr(r,(function(r){return t[r]}))}(t,Y(t))},ri=Math.max,ei=function(t,r,e,n){t=J(t)?t:ti(t),e=e&&!n?Ar(e):0;var i=t.length;return e<0&&(e=ri(i+e,0)),Be(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&function(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Fr(t,Qn,e)}(t,r,e)>-1};function ni(t,r){return r.includes(Yn.mac)?ei([Xn.COMMAND_LEFT,Xn.COMMAND_RIGHT,Xn.COMMAND_FIREFOX],t):Xn.CONTROL===t}function ii(t){return t===Kn.ENTER||t===Kn.ENTER_NUM}class oi{constructor(t,r){this.column=t,this.saveCallback=r,this.element=null,this.editCell=null}async componentDidRender(){var t;this.editInput&&(await ge(),null===(t=this.editInput)||void 0===t||t.focus())}onKeyDown(t){const r=ii(t.code),e=Kn.TAB===t.code;(e||r)&&t.target&&this.saveCallback&&!t.isComposing&&(this.editInput.blur(),this.saveCallback(t.target.value,e))}render(){var t;return e("input",{type:"text",value:(null===(t=this.editCell)||void 0===t?void 0:t.val)||"",ref:t=>{this.editInput=t},onKeyDown:t=>this.onKeyDown(t)})}}const si=class{constructor(t){n(this,t),this.cellEdit=i(this,"cellEdit",3),this.closeEdit=i(this,"closeEdit",3),this.currentEditor=null}onSave(t,r){this.editCell&&this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:t,preventFocus:r})}componentWillRender(){this.currentEditor||(this.currentEditor=this.editor?new this.editor(this.column,((t,r)=>this.onSave(t,r)),(t=>this.closeEdit.emit(t))):new oi(this.column,((t,r)=>this.onSave(t,r))))}componentDidRender(){this.currentEditor&&(this.currentEditor.element=this.element.firstElementChild,this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender())}disconnectedCallback(){this.currentEditor&&(this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback(),this.currentEditor.element&&(this.currentEditor.element=null),this.currentEditor=null)}render(){return this.currentEditor?(this.currentEditor.editCell=this.editCell,e(o,{class:"edit-input-wrapper"},this.currentEditor.render(e))):""}get element(){return s(this)}};function ai({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s,height:a,width:u}=e.getBoundingClientRect();let c=r-o;c>=a&&(c=a-1);let l=t-s;l>=u&&(l=u-1);const h=ve(n,c),f=ve(i,l);return f.itemIndex<0&&(f.itemIndex=0),h.itemIndex<0&&(h.itemIndex=0),{x:f.itemIndex,y:h.itemIndex}}function ui({x:t,y:r},{lastCell:e}){return t>=e.x||r>=e.y}function ci({x:t,y:r,x1:e,y1:n},i,o){const s=pe(i,r).start,a=pe(o,t).start,u=pe(i,n).end,c=pe(o,e).end;return{left:a,right:c,top:s,bottom:u,width:c-a,height:u-s}}function li(t,r,e){return{left:`${(n=ci(t,r,e)).left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`};var n}si.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";const hi=class{constructor(t){n(this,t),this.afterFocus=i(this,"afterfocus",7)}changed(t,r){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"});const e=qr(this.dataStore,r.y),n=qr(this.colData,r.x);this.afterFocus.emit({model:e,column:n})}componentDidRender(){const t=this.selectionStore.get("focus");t&&this.el&&this.changed(this.el,t)}render(){const t=this.selectionStore.get("focus");if(t){const r=li(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:"focused-cell",style:r})}}get el(){return s(this)}};hi.style=".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 fi,di=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),gi=function(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n},vi=function(t,r,e,n){return Q(t,(function(t,i,o){r(n,t,e(t),o)})),n},pi=(fi=function(t,r,e){!function(t,r,e){"__proto__"==r&&di?di(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}(t,e,r)},function(t,r){var e={};return(_(t)?gi:vi)(t,fi,Rr(r),e)});const Ci=({column:t})=>e("i",{class:t.order});var wi;!function(t){t.start="resize:start",t.move="resize:move",t.end="resize:end"}(wi||(wi={}));const mi={"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"}};class Li{constructor(t,r){var e;this.initialProps=t,this.$event=r,this.mouseX=0,this.mouseY=0,this.width=0,this.height=0,this.changeX=0,this.changeY=0,this.disableCalcMap=15,this.props=(e=t,Object.assign(Object.assign({},e),{fitParent:e.fitParent||!1,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})),this.mouseMoveFunc=this.handleMove.bind(this),this.mouseUpFunc=this.handleUp.bind(this),this.minW=this.props.minWidth,this.minH=this.props.minHeight,this.maxW=this.props.maxWidth,this.maxH=this.props.maxHeight,this.parent={width:0,height:0},this.resizeState=0}set(t){this.$el=t,this.props.disableAttributes.forEach((t=>{switch(t){case"l":this.disableCalcMap&=-2;break;case"t":this.disableCalcMap&=-3;break;case"w":this.disableCalcMap&=-5;break;case"h":this.disableCalcMap&=-9}}))}emitEvent(t,r){this.$event&&this.$event(Object.assign({eventName:t,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},r))}static isTouchEvent(t){var r;return(null===(r=t.touches)||void 0===r?void 0:r.length)>=0}handleMove(t){if(!this.resizeState)return;let r,e;Li.isTouchEvent(t)?(r=t.touches[0].clientY,e=t.touches[0].clientX):(r=t.clientY,e=t.clientX);let n=this.resizeState&mi["resizable-r"].bit||this.resizeState&mi["resizable-l"].bit;if((this.resizeState&mi["resizable-t"].bit||this.resizeState&mi["resizable-b"].bit)&&8&this.disableCalcMap){let t=this.changeY+(r-this.mouseY);const e=this.height+t;e<this.minH&&(t=-(this.height-this.minH)),this.maxH&&e>this.maxH&&(t=this.maxH-this.height),this.changeY=t,this.mouseY=r,this.activeResizer&&(this.activeResizer.style.bottom=-this.changeY+"px")}if(n&&4&this.disableCalcMap){let t=this.changeX+(e-this.mouseX);const r=this.width+t;r<this.minW&&(t=-(this.width-this.minW)),this.maxW&&r>this.maxW&&(t=this.maxW-this.width),this.changeX=t,this.mouseX=e,this.activeResizer&&(this.activeResizer.style.right=-this.changeX+"px")}this.emitEvent(wi.move)}handleDown(t){if(!t.defaultPrevented){t.preventDefault(),this.dropInitial();for(let r in mi){const e=t.target;if(this.$el.contains(e)&&(null==e?void 0:e.classList.contains(r))){document.body.style.cursor=mi[r].cursor,Li.isTouchEvent(t)?this.setInitials(t.touches[0],e):(t.preventDefault&&t.preventDefault(),this.setInitials(t,e)),this.resizeState=mi[r].bit,this.emitEvent(wi.start);break}}this.bindMove()}}handleUp(t){t.preventDefault(),0!==this.resizeState&&(this.resizeState=0,document.body.style.cursor="",this.emitEvent(wi.end)),this.dropInitial(),this.unbindMove()}setInitials({clientX:t,clientY:r},e){const n=getComputedStyle(this.$el);if(this.$el.classList.add("active"),this.activeResizer=e,4&this.disableCalcMap){this.mouseX=t,this.width=this.$el.clientWidth,this.parent.width=this.$el.parentElement.clientWidth;const r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);this.minW=Math.max(r,this.initialProps.minWidth||0),this.initialProps.maxWidth&&(this.maxW=Math.max(this.width,this.initialProps.maxWidth))}if(8&this.disableCalcMap){this.mouseY=r,this.height=this.$el.clientHeight,this.parent.height=this.$el.parentElement.clientHeight;const t=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);this.minH=Math.max(t,this.initialProps.minHeight||0),this.initialProps.maxHeight&&(this.maxH=Math.max(this.height,this.initialProps.maxHeight))}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH,this.width=this.height=0,this.activeResizer&&this.activeResizer.removeAttribute("style"),this.$el.classList.remove("active"),this.activeResizer=null}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.addEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.removeEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const bi=(t,r)=>{const n=[],i=t.canResize&&new Li(t,(r=>{r.eventName===wi.end&&t.onResize&&t.onResize(r)}))||null;if(t.canResize){if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},onMouseDown:t=>null==i?void 0:i.handleDown(t),onTouchStart:t=>null==i?void 0:i.handleDown(t),class:`resizable resizable-${t.active[r]}`}))}else if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},class:`no-resize resizable resizable-${t.active[r]}`}));return e("div",Object.assign({},t,{ref:t=>null==i?void 0:i.set(t)}),r,n)},xi=({data:t,props:r},n)=>{let i=(null==t?void 0:t.name)||"",o=r;if((null==t?void 0:t.columnTemplate)&&(i=t.columnTemplate(e,t)),null==t?void 0:t.columnProperties){const e=t.columnProperties(t);e&&"object"==typeof e&&(o=Zn.doMerge(r,e))}return e(bi,Object.assign({},o,{onMouseDown:r=>{Pn(r.currentTarget,"column-click",{data:t,event:r})}}),e("div",{class:"header-content"},i),n)},yi=t=>{var r,n,i,o,s,a;const u={rgHeaderCell:!0,sortable:!!(null===(r=t.data)||void 0===r?void 0:r.sortable)};(null===(n=t.data)||void 0===n?void 0:n.order)&&(u[t.data.order]=!0);const c={"data-rgCol":t.column.itemIndex,canResize:t.canResize,minWidth:(null===(i=t.data)||void 0===i?void 0:i.minSize)||30,maxWidth:null===(o=t.data)||void 0===o?void 0:o.maxSize,active:["r"],class:u,style:{width:`${t.column.size}px`,transform:`translateX(${t.column.start}px)`},onResize:t.onResize,onDoubleClick(r){t.onDoubleClick({column:t.data,index:t.column.itemIndex,originalEvent:r})},onClick(r){!r.defaultPrevented&&t.onClick&&t.onClick({column:t.data,index:t.column.itemIndex,originalEvent:r})}};return t.range&&t.column.itemIndex>=t.range.x&&t.column.itemIndex<=t.range.x1&&"object"==typeof c.class&&(c.class["focused-cell"]=!0),e(xi,{data:t.data,props:c},(null===(s=t.data)||void 0===s?void 0:s.order)?e(Ci,{column:t.data}):"",t.canFilter&&!1!==(null===(a=t.data)||void 0===a?void 0:a.filter)?e(L,{column:t.data}):"")},Ei=t=>e(xi,{data:t.group,props:{canResize:t.canResize,minWidth:30*t.group.ids.length,maxWidth:0,active:["r"],class:{rgHeaderCell:!0},style:{transform:`translateX(${t.start}px)`,width:t.end-t.start+"px"},onResize:t.onResize}}),ki=({depth:t,groups:r,visibleProps:n,dimensionCol:i,canResize:o,onResize:s})=>{const a=[];for(let u=0;u<t;u++){if(r[u])for(let t of r[u]){const r=Ir(t.ids,(t=>"number"==typeof n[t]));if(r>-1){const u=n[t.ids[r]]-r,c=u+t.ids.length-1,l=pe(i,u).start,h=pe(i,c).end;a.push(e(Ei,{start:l,end:h,group:t,canResize:o,onResize:t=>s(t.changedX,u,c)}))}}a.push(e("div",{class:"header-rgRow group"}))}return a},Si=class{constructor(t){n(this,t),this.initialHeaderClick=i(this,"initialHeaderClick",7),this.headerresize=i(this,"headerresize",7),this.headerdblClick=i(this,"headerdblClick",7),this.parent="",this.groupingDepth=0}onResize({width:t},r){this.headerresize.emit({[r]:t||0})}onResizeGroup(t,r,e){const n={},i=pi(this.viewportCol.get("items"),"itemIndex"),o=t/(e-r+1);for(let t=r;t<=e;t++){const r=i[t];r&&(n[t]=r.size+o)}this.headerresize.emit(n)}render(){var t;const r=this.viewportCol.get("items"),n=null===(t=this.selectionStore)||void 0===t?void 0:t.get("range"),i=[],o={};for(let t of r){const r=this.colData[t.itemIndex];i.push(e(yi,{range:n,column:t,data:r,canFilter:!!this.columnFilter,canResize:this.canResize,onResize:r=>this.onResize(r,t.itemIndex),onDoubleClick:t=>this.headerdblClick.emit(t),onClick:t=>this.initialHeaderClick.emit(t)})),o[null==r?void 0:r.prop]=t.itemIndex}return[e("div",{class:"group-rgRow"},e(ki,{canResize:this.canResize,visibleProps:o,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:(t,r,e)=>this.onResizeGroup(t,r,e)})),e("div",{class:"header-rgRow actual-rgRow"},i)]}get element(){return s(this)}};Si.style="@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}";class Ri{constructor(t){this.config=t,this.currentCell=null,this.previousRow=null}endOrder(t,r){if(null===this.currentCell)return;const e=this.getCell(t,r);e.y!==this.currentCell.y&&(e.y<0?e.y=0:e.y<this.currentCell.y&&e.y++,this.config.positionChanged(this.currentCell.y,e.y)),this.clear()}startOrder(t,r){return this.currentCell=this.getCell(t,r),this.currentCell}move(t,r){const e=this.getRow(t,r);return this.previousRow===e.itemIndex||e.itemIndex<-1?null:(this.previousRow=e.itemIndex,e)}clear(){this.currentCell=null,this.previousRow=null}getRow(t,{el:r,rows:e}){const{top:n}=r.getBoundingClientRect(),i=ve(e,t-n);return{itemIndex:i.itemIndex,start:i.start+n,end:i.end+n}}getCell({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s}=e.getBoundingClientRect(),a=t-s,u=ve(n,r-o);return{x:ve(i,a).itemIndex,y:u.itemIndex}}}const ji=class{constructor(t){n(this,t),this.internalRowDragStart=i(this,"internalRowDragStart",7),this.internalRowDragEnd=i(this,"internalRowDragEnd",7),this.internalRowDrag=i(this,"internalRowDrag",7),this.internalRowMouseMove=i(this,"internalRowMouseMove",7),this.initialRowDropped=i(this,"initialRowDropped",7),this.rowMoveFunc=m((t=>{const r=this.rowOrderService.move(t,this.getData());null!==r&&this.internalRowDrag.emit(r)}),5)}onMouseOut(){this.clearOrder()}onMouseUp(t){this.endOrder(t)}async dragStart(t){t.preventDefault(),this.moveFunc&&this.clearOrder();const r=this.getData(),e=this.rowOrderService.startOrder(t,r),n=this.rowOrderService.getRow(t.y,r);this.internalRowDragStart.emit({cell:e,text:"Draggable item",pos:n,event:t}).defaultPrevented||(this.moveFunc=t=>this.move(t),document.addEventListener("mousemove",this.moveFunc))}async endOrder(t){this.rowOrderService.endOrder(t,this.getData()),this.clearOrder()}async clearOrder(){this.rowOrderService.clear(),document.removeEventListener("mousemove",this.moveFunc),this.moveFunc=null,this.internalRowDragEnd.emit()}move({x:t,y:r}){this.internalRowMouseMove.emit({x:t,y:r}),this.rowMoveFunc(r)}connectedCallback(){this.rowOrderService=new Ri({positionChanged:(t,r)=>this.onPositionChanged(t,r)})}onPositionChanged(t,r){if(this.initialRowDropped.emit({from:t,to:r}).defaultPrevented)return;const e=[...this.dataStore.get("items")],n=e.splice(t,1);e.splice(r,0,...n),Xr(this.dataStore,e)}getData(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}}};class zi{constructor(t,r){this.store=t,this.config=r,this.store=t}get edited(){return this.store.get("edit")}get focused(){return this.store.get("focus")}get ranged(){return this.store.get("range")}changeRange(t){return this.config.changeRange(t)}focus(t,r=!1){if(!t)return!1;let e=t;if(r){let t=this.store.get("focus");if(t)return this.config.changeRange(Rn(t,e))}return this.config.focus(t,e)}}class Oi{constructor(t){this.sv=t,this.ctrlDown=!1}async keyDown(t,r){var e;if(this.sv.selectionStoreService.focused)if(ni(t.keyCode,navigator.platform)&&(this.ctrlDown=!0),Kn.TAB!==t.code)if(this.sv.selectionStoreService.edited)switch(t.code){case Kn.ESCAPE:this.sv.cancelEdit()}else Kn.BACKSPACE!==(e=t.code)&&Kn.DELETE!==e?ii(t.code)?this.sv.doEdit():this.isCopy(t)||(this.isPaste(t)?this.sv.internalPaste():function(t){return 32===t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}(t.keyCode)?this.sv.doEdit(t.key):await this.keyChangeSelection(t,r)):this.sv.clearCell();else this.keyChangeSelection(t,r)}async keyChangeSelection(t,r){const e=this.changeDirectionKey(t,r);if(!e)return!1;await ge();const n=this.sv.selectionStore.get("range"),i=this.sv.selectionStore.get("focus");return this.keyPositionChange(e.changes,this.sv.getData(),n,i,e.isMulti)}keyPositionChange(t,r,e,n,i=!1){if(!e||!n)return!1;const o=function(t,r,e,n=!1){const i=i=>{const o={x:t.x,y:t.y},s=n?{x:t.x1,y:t.y1}:o;return(s[i]>r[i]?s:o)[i]+=e[i],{start:o,end:s}};return e.x?i("x"):e.y?i("y"):null}(e,n,t,i);if(!o)return!1;if(i){if(ui(o.end,r)||function({x:t,y:r}){return t<0||r<0}(o.start))return!1;const t=Rn(o.start,o.end);return this.sv.selectionStoreService.changeRange(t)}return this.sv.selectionStoreService.focus(o.start)}keyUp(t){ni(t.keyCode,navigator.platform)&&(this.ctrlDown=!1)}isCopy(t){return this.ctrlDown&&t.code==Kn.C}isPaste(t){return this.ctrlDown&&t.code==Kn.V}changeDirectionKey(t,r){const e=r&&t.shiftKey;switch(t.code){case Kn.TAB:case Kn.ARROW_UP:case Kn.ARROW_DOWN:case Kn.ARROW_LEFT:case Kn.ARROW_RIGHT:t.preventDefault()}switch(t.code){case Kn.ARROW_UP:return{changes:{y:-1},isMulti:e};case Kn.ARROW_DOWN:return{changes:{y:1},isMulti:e};case Kn.ARROW_LEFT:return{changes:{x:-1},isMulti:e};case Kn.TAB:case Kn.ARROW_RIGHT:return{changes:{x:1},isMulti:e}}}}var Mi,Fi=function(t,r,e){var n=null==t?0:t.length;return n?(e&&"number"!=typeof e&&Br(t,r,e)?(r=0,e=n):(r=null==r?0:Ar(r),e=void 0===e?n:Ar(e)),function(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+r];return o}(t,r,e)):[]};!function(t){t.selection="Selection",t.autoFill="AutoFill"}(Mi||(Mi={}));class _i{constructor(t){this.sv=t,this.autoFillType=null,this.autoFillInitial=null,this.autoFillStart=null,this.autoFillLast=null}renderAutofill(t,r){let n;return n=ci(t||Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state),e("div",{class:"autofill-handle",style:{left:`${n.right}px`,top:`${n.bottom}px`},onMouseDown:t=>this.selectionStart(t,this.sv.getData(),Mi.autoFill)})}get isAutoFill(){return!!this.autoFillType}selectionMouseMove(t){this.onMouseMoveAutofill||(this.onMouseMoveAutofill=m(((t,r)=>this.doAutofillMouseMove(t,r)),5)),this.isAutoFill&&this.onMouseMoveAutofill(t,this.sv.getData())}getFocus(){let t=this.sv.selectionStoreService.focused;const r=this.sv.selectionStoreService.ranged;return r&&(t={x:r.x,y:r.y}),t||r?t:null}doAutofillMouseMove({x:t,y:r},e){if(!this.autoFillInitial)return;let n,i=ai({x:t,y:r},e);this.autoFillLast&&(n=function(t,r){const e=["x","y"];for(let n of e)if(t[n]!==r[n])return{[n]:1};return null}(this.autoFillStart,this.autoFillLast)),this.autoFillLast&&n||(n=function(t,r){const e={},n=["x","y"];for(let i of n)e[i]=Math.abs(t[i]-r[i]);return e.x>e.y?{x:1}:e.y>e.x?{y:1}:null}(this.autoFillStart,i),this.autoFillLast||(this.autoFillLast=this.autoFillStart)),n&&(Mr(n,((t,r)=>{t&&(i=Object.assign(Object.assign({},this.autoFillLast),{[r]:i[r]}))})),ui(i,e)||(this.autoFillLast=i,this.sv.setTempRange({area:Rn(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})))}selectionStart(t,r,e=Mi.selection){const{top:n,left:i}=t.target.getBoundingClientRect();this.autoFillInitial=this.getFocus(),this.autoFillType=e,this.autoFillStart=ai({x:i,y:n},r),t.preventDefault()}clearAutoFillSelection(){this.autoFillInitial&&(this.autoFillInitial=this.getFocus(),this.autoFillType===Mi.autoFill?this.applyRangeWithData(this.autoFillInitial,this.autoFillLast):this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)),this.autoFillType=null,this.autoFillInitial=null,this.autoFillLast=null,this.autoFillStart=null}onRangeApply(t,r){const e={};for(let r in t)e[r]=qr(this.sv.dataStore,parseInt(r,10));this.sv.internalRangeDataApply({data:t,models:e,type:this.sv.dataStore.get("type")}).defaultPrevented||this.sv.columnService.applyRangeData(t),this.sv.setRange(r)}applyRangeWithData(t,r){if(!t||!r)return;const e=this.sv.selectionStoreService.ranged,n=Rn(t,r),i=[...this.sv.columnService.columns],o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:e,newProps:Fi(i,n.x,n.x1+1).map((t=>t.prop)),oldProps:Fi(i,e.x,e.x1+1).map((t=>t.prop))};o.newData=this.sv.columnService.getRangeData(o),this.sv.internalSelectionChanged(o).defaultPrevented?this.sv.setTempRange(null):this.onRangeApply(o.newData,n)}applyRangeOnly(t,r){if(!t||!r)return;const e=Rn(t,r);this.sv.setRange(e)}}class Ai{constructor(t){this.sv=t}onCopy(t){if(this.sv.internalCopy().defaultPrevented)return!1;let r,e=this.sv.selectionStoreService.focused,n=this.sv.selectionStoreService.ranged;if(n||(n=Rn(e,e)),n){const t=[...this.sv.columnService.columns],e=Fi(t,n.x,n.x1+1).map((t=>t.prop));r=this.sv.columnService.copyRangeArray(n,e,this.sv.dataStore)}return this.clipboard.doCopy(t,r),!0}renderClipboard(){return e("revogr-clipboard",{onCopyRegion:t=>this.onCopy(t.detail),ref:t=>this.clipboard=t,onPasteRegion:t=>this.onPaste(t.detail)})}onPaste(t){const r=this.sv.selectionStoreService.focused;if(!r||null!==this.sv.selectionStoreService.edited)return;const{changed:e,range:n}=this.sv.columnService.getTransformedDataToApply(r,t);this.sv.onRangeApply(e,n)}}const Di=class{constructor(t){n(this,t),this.internalCopy=i(this,"internalCopy",7),this.internalPaste=i(this,"internalPaste",7),this.internalCellEdit=i(this,"internalCellEdit",7),this.internalFocusCell=i(this,"internalFocusCell",7),this.setEdit=i(this,"setEdit",3),this.cancelEdit=i(this,"cancelEdit",7),this.setRange=i(this,"setRange",7),this.setTempRange=i(this,"setTempRange",7),this.focusCell=i(this,"focusCell",3),this.internalSelectionChanged=i(this,"internalSelectionChanged",7),this.internalRangeDataApply=i(this,"internalRangeDataApply",7),this.keyboardService=null,this.autoFillService=null,this.clipboardService=null}onMouseMove(t){this.selectionStoreService.focused&&this.autoFillService.selectionMouseMove(t)}onMouseOut(){this.autoFillService.clearAutoFillSelection()}onMouseUp(){this.autoFillService.clearAutoFillSelection()}onCellDrag(t){var r;null===(r=this.orderEditor)||void 0===r||r.dragStart(t.detail)}onKeyUp(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyUp(t)}onKeyDown(t){var r;t.defaultPrevented||null===(r=this.keyboardService)||void 0===r||r.keyDown(t,this.range)}selectionServiceSet(t){this.selectionStoreService=new zi(t,{changeRange:t=>{var r;return!(null===(r=this.setRange.emit(t))||void 0===r?void 0:r.defaultPrevented)},focus:(t,r)=>{var e;const n={focus:t,end:r},{defaultPrevented:i}=this.internalFocusCell.emit(this.columnService.getSaveData(t.y,t.x));return!i&&!(null===(e=this.focusCell.emit(n))||void 0===e?void 0:e.defaultPrevented)}}),this.keyboardService=new Oi({selectionStoreService:this.selectionStoreService,selectionStore:t,doEdit:t=>this.doEdit(t),cancelEdit:()=>this.closeEdit(),clearCell:()=>this.clearCell(),getData:()=>this.getData(),internalPaste:()=>this.internalPaste.emit()}),this.createAutoFillService(),this.createClipboardService()}createAutoFillService(){this.autoFillService=new _i({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:t=>this.setTempRange.emit(t),internalSelectionChanged:t=>this.internalSelectionChanged.emit(t),internalRangeDataApply:t=>this.internalRangeDataApply.emit(t),setRange:t=>this.setRange.emit(t),getData:()=>this.getData()})}columnServiceSet(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Zn(this.dataStore,this.colData),this.createAutoFillService(),this.createClipboardService()}createClipboardService(){this.clipboardService=new Ai({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:(t,r)=>this.autoFillService.onRangeApply(t,r),internalCopy:()=>this.internalCopy.emit()})}connectedCallback(){this.columnServiceSet(),this.selectionServiceSet(this.selectionStore)}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}renderRange(t){const r=li(t,this.dimensionRow.state,this.dimensionCol.state);return[e("div",{class:"selection-border-range",style:r})]}renderEditCell(){const t=this.selectionStore.get("edit");if(this.readonly||!t)return;const r=t.val||this.columnService.getCellData(t.y,t.x),n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r)),i=li(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e("revogr-edit",{onCellEdit:t=>this.onCellEdit(t.detail),onCloseEdit:t=>this.closeEdit(t),editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})}render(){const t=this.selectionStoreService.ranged,r=this.selectionStoreService.focused,n=[];(t||r)&&this.useClipboard&&n.push(this.clipboardService.renderClipboard()),t&&n.push(...this.renderRange(t));const i=this.renderEditCell();return i&&n.push(i),r&&!this.readonly&&!i&&this.range&&n.push(this.autoFillService.renderAutofill(t,r)),this.canDrag&&n.push(e("revogr-order-editor",{ref:t=>this.orderEditor=t,dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:t=>this.onRowDragStart(t)})),e(o,{onDblClick:()=>this.doEdit(),onMouseDown:t=>this.onElementMouseDown(t)},n,e("slot",{name:"data"}))}onElementMouseDown(t){if(null==(r=t.target)?void 0:r.closest(".edit-input-wrapper"))return;var r;const e=this.getData();if(t.defaultPrevented)return;const n=ai({x:t.x,y:t.y},e);this.selectionStoreService.focus(n,this.range&&t.shiftKey),this.range&&this.autoFillService.selectionStart(t,e)}doEdit(t=""){var r;if(this.canEdit()){const e=this.selectionStore.get("focus"),n=this.columnService.getSaveData(e.y,e.x);null===(r=this.setEdit)||void 0===r||r.emit(Object.assign(Object.assign({},n),{val:t}))}}closeEdit(t){this.cancelEdit.emit(),(null==t?void 0:t.detail)&&this.focusNext()}async focusNext(){await this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:Kn.ARROW_DOWN}),this.range)||this.closeEdit()}clearCell(){if(!this.selectionStoreService.ranged||(t=this.selectionStoreService.ranged).x===t.x1&&t.y===t.y1){if(this.canEdit()){const t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},!0)}}else{const t=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(t,this.selectionStoreService.ranged)}var t}onCellEdit(t,r=!1){const e=this.columnService.getSaveData(t.rgRow,t.rgCol,t.val);this.internalCellEdit.emit(e),r||t.preventFocus||this.focusNext()}onRowDragStart({detail:t}){t.text=this.columnService.getCellData(t.cell.y,t.cell.x)}canEdit(){var t;if(this.readonly)return!1;const r=this.selectionStoreService.focused;return r&&!(null===(t=this.columnService)||void 0===t?void 0:t.isReadOnly(r.y,r.x))}getData(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}}get element(){return s(this)}static get watchers(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}}};Di.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";const Ii=t=>(r,{rowIndex:e})=>t+e,Ti=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.elementToScroll=i(this,"elementToScroll",3)}render(){var t;const r=[],n=new Se;let i=1;for(let t of this.dataPorts){const o=t.dataStore.get("items").length,s=new Vr(t.type);s.updateData(t.dataStore.get("source"));const a=new Vr("colPinStart"),u=Object.assign({cellTemplate:Ii(i)},this.rowHeaderColumn);a.updateData([u]);const c=Object.assign(Object.assign({},t),{dataStore:s.store,colData:a.store,viewportCol:n.store,readonly:!0,range:!1});r.push(e("revogr-data",Object.assign({},c))),i+=o}const s=(null===(t=this.rowHeaderColumn)||void 0===t?void 0:t.size)||10*(i.toString().length+1);n.setViewport({realCount:1,virtualSize:0,items:[{size:s,start:0,end:s,itemIndex:0}]});const a=`${this.uiid}-rowHeaders`,u={[sn]:a,contentHeight:this.height,contentWidth:0,style:{minWidth:`${s}px`},ref:t=>this.elementToScroll.emit(t),onScrollViewport:t=>this.scrollViewport.emit(t.detail)},c=Object.assign(Object.assign({},this.headerProp),{colData:"object"==typeof this.rowHeaderColumn?[this.rowHeaderColumn]:[],viewportCol:n.store,canResize:!1,parent:a,slot:"header"});return e(o,{class:"rowHeaders",key:"rowHeaders"},e("revogr-viewport-scroll",Object.assign({},u),e("revogr-header",Object.assign({},c)),r))}},Pi={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};class $i{constructor(t){this.cfg=t,this.preventArtificialScroll={rgRow:null,rgCol:null},this.previousScroll={rgRow:0,rgCol:0},this.params={rgRow:Object.assign({},Pi),rgCol:Object.assign({},Pi)}}static getVirtualContentSize(t,r,e=0){return t+(e?r-e:0)}setParams(t,r){const e=$i.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:e-t.clientSize,virtualContentSize:e})}setScroll(t){this.cancelScroll(t.dimension),this.preventArtificialScroll[t.dimension]=window.requestAnimationFrame((()=>{const r=this.getParams(t.dimension);t.coordinate=Math.ceil(t.coordinate),this.previousScroll[t.dimension]=this.wrapCoordinate(t.coordinate,r),this.preventArtificialScroll[t.dimension]=null,this.cfg.afterScroll(Object.assign(Object.assign({},t),{coordinate:r.virtualSize?this.convert(t.coordinate,r,!1):t.coordinate}))}))}scroll(t,r,e=!1,n){if(this.cancelScroll(r),!e&&this.previousScroll[r]===t)return void(this.previousScroll[r]=0);const i=this.getParams(r);this.cfg.beforeScroll({dimension:r,coordinate:i.virtualSize?this.convert(t,i):t,delta:n})}getParams(t){return this.params[t]}wrapCoordinate(t,r){return t<0?0:t>r.maxSize?r.maxSize:t}cancelScroll(t){return"number"==typeof this.preventArtificialScroll[t]&&(window.cancelAnimationFrame(this.preventArtificialScroll[t]),this.preventArtificialScroll[t]=null,!0)}convert(t,r,e=!0){const n=[0,r.virtualContentSize-r.clientSize],i=[0,r.contentSize-r.virtualSize];return e?de(t,n,i):de(t,i,n)}}const Ui=class{constructor(t){n(this,t),this.scrollVirtual=i(this,"scrollVirtual",7),this.scrollSize=0,this.isAutoHide=!1,this.autoHideTimeout=0,this.dimension="rgRow"}async setScroll(t){var r;this.dimension===t.dimension&&(null===(r=this.scrollService)||void 0===r||r.setScroll(t))}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.element.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.element.scrollTop+t.delta}this.setScroll(t)}return t}set size(t){"rgRow"!==this.dimension?this.element.style.minHeight=`${t}px`:this.element.style.minWidth=`${t}px`}get size(){return"rgRow"===this.dimension?this.element.clientHeight:this.element.clientWidth}connectedCallback(){this.scrollService=new $i({beforeScroll:t=>this.scrollVirtual.emit(t),afterScroll:t=>{this.element["rgRow"===t.dimension?"scrollTop":"scrollLeft"]=t.coordinate}})}disconnectedCallback(){clearTimeout(this.autoHideTimeout)}componentWillLoad(){this.scrollSize=fe(document),this.isAutoHide=!this.scrollSize}componentDidRender(){this.size=this.element["rgRow"===this.dimension?"scrollHeight":"scrollWidth"]>this.size?this.scrollSize:0,this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)}onScroll(t){var r;let e="scrollLeft";"rgRow"===this.dimension&&(e="scrollTop"),this.isAutoHide&&(this.size=20,this.autoHideTimeout=this.autoHide(this.autoHideTimeout)),null===(r=this.scrollService)||void 0===r||r.scroll(t.target[e]||0,this.dimension)}autoHide(t){return clearTimeout(t),setTimeout((()=>{this.size=0}),6e3)}render(){const t="rgRow"===this.dimension?"height":"width";return e(o,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:t=>this.onScroll(t)}),e("div",{style:{[t]:`${this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize"))}px`}}))}extContentSize(t,r){return $i.getVirtualContentSize(r,this.size,t)}get element(){return s(this)}};Ui.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";const Hi=class{constructor(t){n(this,t),this.onChange=Fn.throttle((t=>this.doChange(t)),300)}doChange(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.onChange(this.el)}render(){const t=this.selectionStore.get("tempRange"),r=this.selectionStore.get("tempRangeType");if(!t)return;let n="bottom",i="right";const s=this.getRange();if(!s)return;t.y<s.y&&(n="top"),t.x<s.x&&(i="left");const a=`${i} ${n}`,u=li(t,this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:{"temp-bg-range":!0,[r||""]:!0},style:u},e("div",{class:a,ref:t=>this.el=t}))}getRange(){const t=this.selectionStore.get("range");if(t)return t;const r=this.selectionStore.get("focus");return r?Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}):null}};Hi.style=".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}";class Zi{constructor(t,r){this.events=r,this.resizeObserver=null,this.resize=function(t,r,e){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return f(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),m(t,r,{leading:n,maxWait:r,trailing:i})}(((t,r)=>{var e;return null===(e=this.events)||void 0===e?void 0:e.resize(t,r)}),10),this.init(t)}async init(t){var r;await async function(){if(!("ResizeObserver"in window)){const t=await __sc_import_revo_grid("./resize-observer-00c48d78.js");window.ResizeObserver=t.ResizeObserver}}(),this.resizeObserver=new ResizeObserver(this.resize),null===(r=this.resizeObserver)||void 0===r||r.observe(t)}destroy(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=null}}const Bi=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.resizeViewport=i(this,"resizeViewport",7),this.scrollchange=i(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}}async setScroll(t){var r;this.latestScrollUpdate(t.dimension),null===(r=this.scrollService)||void 0===r||r.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.horizontalScroll.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.verticalScroll.scrollTop+t.delta}this.setScroll(t)}return t}connectedCallback(){"ontouchstart"in document.documentElement?this.scrollThrottling=0:(this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY"),this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")),this.scrollService=new $i({beforeScroll:t=>this.scrollViewport.emit(t),afterScroll:t=>{switch(t.dimension){case"rgCol":this.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":this.verticalScroll.scrollTop=t.coordinate}}})}componentDidLoad(){this.horisontalResize=new Zi(this.horizontalScroll,{resize:t=>{var r,e;let n=(null===(r=t[0])||void 0===r?void 0:r.contentRect.height)||0;n&&(n-=this.header.clientHeight+this.footer.clientHeight);const i={rgRow:{size:n,contentSize:this.contentHeight,scroll:this.verticalScroll.scrollTop},rgCol:{size:(null===(e=t[0])||void 0===e?void 0:e.contentRect.width)||0,contentSize:this.contentWidth,scroll:this.horizontalScroll.scrollLeft}};Mr(i,((t,r)=>{var e;this.resizeViewport.emit({dimension:r,size:t.size}),null===(e=this.scrollService)||void 0===e||e.scroll(t.scroll,r,!0),this.setScrollVisibility(r,t.size,t.contentSize)}))}})}setScrollVisibility(t,r,e){const n=r<e;let i,o;switch(t){case"rgCol":i=this.horizontalScroll,o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll,o=this.verticalMouseWheel}n?(i.classList.add(`scroll-${t}`),i.addEventListener("mousewheel",o)):(i.classList.remove(`scroll-${t}`),i.removeEventListener("mousewheel",o)),this.scrollchange.emit({type:t,hasScroll:n})}disconnectedCallback(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel),this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel),this.horisontalResize.destroy()}async componentDidRender(){this.contentHeight<this.oldValY&&this.verticalScroll&&(this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY),this.oldValY=this.contentHeight,this.contentWidth<this.oldValX&&(this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX),this.oldValX=this.contentWidth,this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow"),this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol"),this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight),this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth)}render(){return e(o,{onScroll:t=>this.onScroll("rgCol",t)},e("div",{class:"inner-content-table",style:{width:`${this.contentWidth}px`}},e("div",{class:"header-wrapper",ref:t=>this.header=t},e("slot",{name:"header"})),e("div",{class:"vertical-inner",ref:t=>this.verticalScroll=t,onScroll:t=>this.onScroll("rgRow",t)},e("div",{class:"content-wrapper",style:{height:`${this.contentHeight}px`}},e("slot",{name:"content"}))),e("div",{class:"footer-wrapper",ref:t=>this.footer=t},e("slot",{name:"footer"}))))}onScroll(t,r){var e;const n=r.target;let i=0;switch(t){case"rgCol":i=null==n?void 0:n.scrollLeft;break;case"rgRow":i=null==n?void 0:n.scrollTop}(new Date).getTime()-this.mouseWheelScroll[t]>this.scrollThrottling&&(null===(e=this.scrollService)||void 0===e||e.scroll(i,t))}latestScrollUpdate(t){this.mouseWheelScroll[t]=(new Date).getTime()}onVerticalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.verticalScroll.scrollTop+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}onHorizontalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.horizontalScroll.scrollLeft+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}get horizontalScroll(){return s(this)}};Bi.style=".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%}";export{Hn as revo_grid,Gn as revogr_data,si as revogr_edit,hi as revogr_focus,Si as revogr_header,ji as revogr_order_editor,Di as revogr_overlay_selection,Ti as revogr_row_headers,Ui as revogr_scroll_virtual,Hi as revogr_temp_range,Bi as revogr_viewport_scroll}
|