@danielgindi/dgtable.js 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +65 -56
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +65 -56
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +65 -56
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/dist/private_types.d.ts +8 -6
- package/dist/private_types.d.ts.map +1 -1
- package/dist/rendering.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/private_types.ts +7 -6
- package/src/rendering.ts +62 -55
package/dist/lib.cjs.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dgtable.js 2.0.
|
|
2
|
+
* @danielgindi/dgtable.js 2.0.11
|
|
3
3
|
* git://github.com/danielgindi/dgtable.js.git
|
|
4
4
|
*/
|
|
5
|
-
"use strict";var e,t,r=require("@danielgindi/dom-utils/lib/ScrollHelper.js"),n=require("@danielgindi/dom-utils/lib/Css.js"),i=require("@danielgindi/dom-utils/lib/DomCompat.js"),o=require("@danielgindi/dom-utils/lib/DomEventsSink.js"),l=require("@danielgindi/virtual-list-helper"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function u(){if(t)return e;t=1;var r=function(e){return e&&e.Math===Math&&e};return e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s&&s)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var c,d,h,f,m,v,p,g,b={};function w(){return d?c:(d=1,c=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(f)return h;f=1;var e=w();return h=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function C(){if(v)return m;v=1;var e=w();return m=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function S(){if(g)return p;g=1;var e=C(),t=Function.prototype.call;return p=e?t.bind(t):function(){return t.apply(t,arguments)},p}var R,x,W,L,P,k,_,N,E,O,T,A,F,z,I,M,H,j,B,U,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue,ce={};function de(){if(R)return ce;R=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ce.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ce}function he(){return W?x:(W=1,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function fe(){if(P)return L;P=1;var e=C(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return L=e?n:function(e){return function(){return r.apply(e,arguments)}},L}function me(){if(_)return k;_=1;var e=fe(),t=e({}.toString),r=e("".slice);return k=function(e){return r(t(e),8,-1)}}function ve(){if(E)return N;E=1;var e=fe(),t=w(),r=me(),n=Object,i=e("".split);return N=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function pe(){return T?O:(T=1,O=function(e){return null==e})}function ge(){if(F)return A;F=1;var e=pe(),t=TypeError;return A=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function be(){if(I)return z;I=1;var e=ve(),t=ge();return z=function(r){return e(t(r))}}function we(){if(H)return M;H=1;var e="object"==typeof document&&document.all;return M=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(B)return j;B=1;var e=we();return j=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(q)return U;q=1;var e=u(),t=we();return U=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},U}function Se(){if(V)return D;V=1;var e=fe();return D=e({}.isPrototypeOf)}function Re(){if(G)return $;G=1;var e=u().navigator,t=e&&e.userAgent;return $=t?String(t):""}function xe(){if(Y)return X;Y=1;var e,t,r=u(),n=Re(),i=r.process,o=r.Deno,l=i&&i.versions||o&&o.version,s=l&&l.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),X=t}function We(){if(K)return J;K=1;var e=xe(),t=w(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Le(){if(Z)return Q;Z=1;var e=We();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Pe(){if(te)return ee;te=1;var e=Ce(),t=we(),r=Se(),n=Le(),i=Object;return ee=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function ke(){if(ne)return re;ne=1;var e=String;return re=function(t){try{return e(t)}catch(e){return"Object"}}}function _e(){if(oe)return ie;oe=1;var e=we(),t=ke(),r=TypeError;return ie=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ne(){if(se)return le;se=1;var e=_e(),t=pe();return le=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function Ee(){if(ue)return ae;ue=1;var e=S(),t=we(),r=ye(),n=TypeError;return ae=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Oe,Te,Ae,Fe,ze,Ie,Me,He,je,Be,Ue,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt,rt={exports:{}};function nt(){return Te?Oe:(Te=1,Oe=!1)}function it(){if(Fe)return Ae;Fe=1;var e=u(),t=Object.defineProperty;return Ae=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function ot(){if(ze)return rt.exports;ze=1;var e=nt(),t=u(),r=it(),n="__core-js_shared__",i=rt.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rt.exports}function lt(){if(Me)return Ie;Me=1;var e=ot();return Ie=function(t,r){return e[t]||(e[t]=r||{})}}function st(){if(je)return He;je=1;var e=ge(),t=Object;return He=function(r){return t(e(r))}}function at(){if(Ue)return Be;Ue=1;var e=fe(),t=st(),r=e({}.hasOwnProperty);return Be=Object.hasOwn||function(e,n){return r(t(e),n)}}function ut(){if(De)return qe;De=1;var e=fe(),t=0,r=Math.random(),n=e(1.1.toString);return qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function ct(){if($e)return Ve;$e=1;var e=u(),t=lt(),r=at(),n=ut(),i=We(),o=Le(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return Ve=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function dt(){if(Xe)return Ge;Xe=1;var e=S(),t=ye(),r=Pe(),n=Ne(),i=Ee(),o=ct(),l=TypeError,s=o("toPrimitive");return Ge=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function ht(){if(Je)return Ye;Je=1;var e=dt(),t=Pe();return Ye=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ft(){if(Qe)return Ke;Qe=1;var e=u(),t=ye(),r=e.document,n=t(r)&&t(r.createElement);return Ke=function(e){return n?r.createElement(e):{}}}function mt(){if(et)return Ze;et=1;var e=y(),t=w(),r=ft();return Ze=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function vt(){if(tt)return b;tt=1;var e=y(),t=S(),r=de(),n=he(),i=be(),o=ht(),l=at(),s=mt(),a=Object.getOwnPropertyDescriptor;return b.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},b}var pt,gt,bt,wt,yt,Ct,St,Rt={};function xt(){if(gt)return pt;gt=1;var e=y(),t=w();return pt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Wt(){if(wt)return bt;wt=1;var e=ye(),t=String,r=TypeError;return bt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Lt(){if(yt)return Rt;yt=1;var e=y(),t=mt(),r=xt(),n=Wt(),i=ht(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Rt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Rt}function Pt(){if(St)return Ct;St=1;var e=y(),t=Lt(),r=he();return Ct=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var kt,_t,Nt,Et,Ot,Tt,At,Ft,zt,It,Mt,Ht,jt,Bt,Ut,qt={exports:{}};function Dt(){if(_t)return kt;_t=1;var e=y(),t=at(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return kt={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Vt(){if(Et)return Nt;Et=1;var e=fe(),t=we(),r=ot(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Nt=r.inspectSource}function $t(){if(Ft)return At;Ft=1;var e=lt(),t=ut(),r=e("keys");return At=function(e){return r[e]||(r[e]=t(e))}}function Gt(){return It?zt:(It=1,zt={})}function Xt(){if(Ht)return Mt;Ht=1;var e,t,r,n=function(){if(Tt)return Ot;Tt=1;var e=u(),t=we(),r=e.WeakMap;return Ot=t(r)&&/native code/.test(String(r))}(),i=u(),o=ye(),l=Pt(),s=at(),a=ot(),c=$t(),d=Gt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||a.state){var v=a.state||(a.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,e=function(e,t){if(v.has(e))throw new f(h);return t.facade=e,v.set(e,t),t},t=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var p=c("state");d[p]=!0,e=function(e,t){if(s(e,p))throw new f(h);return t.facade=e,l(e,p,t),t},t=function(e){return s(e,p)?e[p]:{}},r=function(e){return s(e,p)}}return Mt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Yt(){if(jt)return qt.exports;jt=1;var e=fe(),t=w(),r=we(),n=at(),i=y(),o=Dt().CONFIGURABLE,l=Vt(),s=Xt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),v=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),p=String(String).split("String"),g=qt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(p,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),qt.exports}function Jt(){if(Ut)return Bt;Ut=1;var e=we(),t=Lt(),r=Yt(),n=it();return Bt=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr,mr={};function vr(){if(er)return Zt;er=1;var e=function(){if(Qt)return Kt;Qt=1;var e=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Zt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function pr(){if(rr)return tr;rr=1;var e=vr(),t=Math.max,r=Math.min;return tr=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function gr(){if(ir)return nr;ir=1;var e=vr(),t=Math.min;return nr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function br(){if(lr)return or;lr=1;var e=gr();return or=function(t){return e(t.length)}}function wr(){if(cr)return ur;cr=1;var e=fe(),t=at(),r=be(),n=function(){if(ar)return sr;ar=1;var e=be(),t=pr(),r=br(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return sr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Gt(),o=e([].push);return ur=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c}}function yr(){return hr?dr:(hr=1,dr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Cr,Sr,Rr,xr,Wr,Lr,Pr,kr,_r,Nr,Er,Or,Tr,Ar,Fr,zr,Ir,Mr,Hr,jr,Br,Ur,qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr={};function Qr(){return Cr||(Cr=1,Kr.f=Object.getOwnPropertySymbols),Kr}function Zr(){if(Rr)return Sr;Rr=1;var e=Ce(),t=fe(),r=function(){if(fr)return mr;fr=1;var e=wr(),t=yr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},mr}(),n=Qr(),i=Wt(),o=t([].concat);return Sr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function en(){if(Wr)return xr;Wr=1;var e=at(),t=Zr(),r=vt(),n=Lt();return xr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function tn(){if(_r)return kr;_r=1;var e=u(),t=vt().f,r=Pt(),n=Jt(),i=it(),o=en(),l=function(){if(Pr)return Lr;Pr=1;var e=w(),t=we(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Lr=n}();return kr=function(s,a){var u,c,d,h,f,m=s.target,v=s.global,p=s.stat;if(u=v?e:p?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=s.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!l(v?c:m+(p?".":"#")+c,s.forced)&&void 0!==d){if(typeof h==typeof d)continue;o(h,d)}(s.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,s)}}}function rn(){if(Er)return Nr;Er=1;var e=ke(),t=TypeError;return Nr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}function nn(){if(Fr)return Ar;Fr=1;var e=function(){if(Tr)return Or;Tr=1;var e={};return e[ct()("toStringTag")]="z",Or="[object z]"===String(e)}(),t=we(),r=me(),n=ct()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Ar=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a}}function on(){if(Ir)return zr;Ir=1;var e=nn(),t=String;return zr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function ln(){if(Hr)return Mr;Hr=1;var e=fe();return Mr=e([].slice)}function sn(){if(Br)return jr;Br=1;var e=ln(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,v=0;m<h||v<f;)n[m+v]=m<h&&v<f?i(c[m],d[v])<=0?c[m++]:d[v++]:m<h?c[m++]:d[v++];return n};return jr=r}function an(){if(qr)return Ur;qr=1;var e=w();return Ur=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Jr)return a;Jr=1;var e=tn(),t=fe(),r=_e(),n=st(),i=br(),o=rn(),l=on(),s=w(),u=sn(),c=an(),d=function(){if(Vr)return Dr;Vr=1;var e=Re().match(/firefox\/(\d+)/i);return Dr=!!e&&+e[1]}(),h=function(){if(Gr)return $r;Gr=1;var e=Re();return $r=/MSIE|Trident/.test(e)}(),f=xe(),m=function(){if(Yr)return Xr;Yr=1;var e=Re().match(/AppleWebKit\/(\d+)\./);return Xr=!!e&&+e[1]}(),v=[],p=t(v.sort),g=t(v.push),b=s(function(){v.sort(void 0)}),y=s(function(){v.sort(null)}),C=c("sort"),S=!s(function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort(function(e,t){return t.v-e.v}),n=0;n<v.length;n++)t=v[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!C||!S},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(S)return void 0===e?p(t):p(t,e);var s,a,c=[],d=i(t);for(a=0;a<d;a++)a in t&&g(c,t[a]);for(u(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),a=0;a<s;)t[a]=c[a++];for(;a<d;)o(t,a++);return t}})}();var un,cn,dn,hn,fn,mn,vn,pn,gn,bn,wn,yn,Cn,Sn,Rn,xn,Wn,Ln,Pn,kn,_n,Nn,En,On,Tn,An,Fn,zn,In,Mn,Hn,jn,Bn,Un,qn,Dn,Vn,$n,Gn,Xn,Yn={},Jn={};function Kn(){if(mn)return fn;mn=1;var e=wr(),t=yr();return fn=Object.keys||function(r){return e(r,t)}}function Qn(){if(gn)return pn;gn=1;var e=Ce();return pn=e("document","documentElement")}function Zn(){if(wn)return bn;wn=1;var e,t=Wt(),r=function(){if(vn)return Jn;vn=1;var e=y(),t=xt(),r=Lt(),n=Wt(),i=be(),o=Kn();return Jn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Jn}(),n=yr(),i=Gt(),o=Qn(),l=ft(),s=$t(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,bn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)}}function ei(){if(Cn)return yn;Cn=1;var e=ct(),t=Zn(),r=Lt().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),yn=function(e){i[n][e]=!0}}function ti(){return Rn?Sn:(Rn=1,Sn={})}function ri(){if(Pn)return Ln;Pn=1;var e=at(),t=we(),r=st(),n=$t(),i=function(){if(Wn)return xn;Wn=1;var e=w();return xn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Ln=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null}}function ni(){if(_n)return kn;_n=1;var e,t,r,n=w(),i=we(),o=ye(),l=Zn(),s=ri(),a=Jt(),u=ct(),c=nt(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),kn={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function ii(){if(En)return Nn;En=1;var e=Lt().f,t=at(),r=ct()("toStringTag");return Nn=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function oi(){if(Tn)return On;Tn=1;var e=ni().IteratorPrototype,t=Zn(),r=he(),n=ii(),i=ti(),o=function(){return this};return On=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function li(){if(In)return zn;In=1;var e=ye();return zn=function(t){return e(t)||null===t}}function si(){if(Hn)return Mn;Hn=1;var e=li(),t=String,r=TypeError;return Mn=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ai(){if(qn)return Un;qn=1;var e=tn(),t=S(),r=nt(),n=Dt(),i=we(),o=oi(),l=ri(),s=function(){if(Bn)return jn;Bn=1;var e=function(){if(Fn)return An;Fn=1;var e=fe(),t=_e();return An=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ye(),r=ge(),n=si();return jn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0)}(),a=ii(),u=Pt(),c=Jt(),d=ct(),h=ti(),f=ni(),m=n.PROPER,v=n.CONFIGURABLE,p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",y="values",C="entries",R=function(){return this};return Un=function(n,d,f,S,x,W,L){o(f,d,S);var P,k,_,N=function(e){if(e===x&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case w:case y:case C:return function(){return new f(this,e)}}return function(){return new f(this)}},E=d+" Iterator",O=!1,T=n.prototype,A=T[b]||T["@@iterator"]||x&&T[x],F=!g&&A||N(x),z="Array"===d&&T.entries||A;if(z&&(P=l(z.call(new n)))!==Object.prototype&&P.next&&(r||l(P)===p||(s?s(P,p):i(P[b])||c(P,b,R)),a(P,E,!0,!0),r&&(h[E]=R)),m&&x===y&&A&&A.name!==y&&(!r&&v?u(T,"name",y):(O=!0,F=function(){return t(A,this)})),x)if(k={values:N(y),keys:W?F:N(w),entries:N(C)},L)for(_ in k)(g||O||!(_ in T))&&c(T,_,k[_]);else e({target:d,proto:!0,forced:g||O},k);return r&&!L||T[b]===F||c(T,b,F,{name:x}),h[d]=F,k}}function ui(){return Vn?Dn:(Vn=1,Dn=function(e,t){return{value:e,done:t}})}function ci(){if(Gn)return $n;Gn=1;var e=be(),t=ei(),r=ti(),n=Xt(),i=Lt().f,o=ai(),l=ui(),s=nt(),a=y(),u="Array Iterator",c=n.set,d=n.getterFor(u);$n=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return $n}!function(){if(Xn)return Yn;Xn=1;var e=u(),t=cn?un:(cn=1,un={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(hn)return dn;hn=1;var e=ft()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return dn=t===Object.prototype?void 0:t}(),n=ci(),i=Pt(),o=ii(),l=ct()("iterator"),s=n.values,a=function(e,r){if(e){if(e[l]!==s)try{i(e,l,s)}catch(t){e[l]=s}if(o(e,r,!0),t[r])for(var a in n)if(e[a]!==n[a])try{i(e,a,n[a])}catch(t){e[a]=n[a]}}};for(var c in t)a(e[c]&&e[c].prototype,c);a(r,"DOMTokenList")}();var di,hi,fi,mi,vi,pi,gi,bi,wi,yi,Ci,Si,Ri,xi,Wi,Li,Pi,ki,_i,Ni,Ei,Oi,Ti,Ai,Fi,zi,Ii,Mi,Hi,ji,Bi,Ui,qi,Di,Vi,$i,Gi,Xi,Yi,Ji={},Ki={};function Qi(){if(hi)return di;hi=1;var e=fe(),t=vr(),r=on(),n=ge(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return di={codeAt:s(!1),charAt:s(!0)}}function Zi(){if(vi)return mi;vi=1;var e=w(),t=ct(),r=y(),n=nt(),i=t("iterator");return mi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function eo(){if(wi)return bi;wi=1;var e=function(){if(gi)return pi;gi=1;var e=me(),t=fe();return pi=function(r){if("Function"===e(r))return t(r)}}(),t=_e(),r=C(),n=e(e.bind);return bi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},bi}function to(){if(Ci)return yi;Ci=1;var e=Yt(),t=Lt();return yi=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}function ro(){if(Ri)return Si;Ri=1;var e=Se(),t=TypeError;return Si=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function no(){if(Pi)return Li;Pi=1;var e=S(),t=Wt(),r=Ne();return Li=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function io(){if(_i)return ki;_i=1;var e=Wt(),t=no();return ki=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function oo(){if(Ei)return Ni;Ei=1;var e=ct(),t=ti(),r=e("iterator"),n=Array.prototype;return Ni=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function lo(){if(Ti)return Oi;Ti=1;var e=fe(),t=w(),r=we(),n=nn(),i=Ce(),o=Vt(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,Oi=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function so(){if(Fi)return Ai;Fi=1;var e=y(),t=Lt(),r=he();return Ai=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function ao(){if(Ii)return zi;Ii=1;var e=me();return zi=Array.isArray||function(t){return"Array"===e(t)}}function uo(){if(Bi)return ji;Bi=1;var e=nn(),t=Ne(),r=pe(),n=ti(),i=ct()("iterator");return ji=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function co(){if(qi)return Ui;qi=1;var e=S(),t=_e(),r=Wt(),n=ke(),i=uo(),o=TypeError;return Ui=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},Ui}function ho(){if(Vi)return Di;Vi=1;var e=eo(),t=S(),r=st(),n=io(),i=oo(),o=lo(),l=br(),s=so(),a=function(){if(Hi)return Mi;Hi=1;var e=y(),t=ao(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return Mi=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t}}(),u=co(),c=uo(),d=Array;return Di=function(h){var f=r(h),m=o(this),v=arguments.length,p=v>1?arguments[1]:void 0,g=void 0!==p;g&&(p=e(p,v>2?arguments[2]:void 0));var b,w,y,C,S,R,x=c(f),W=0;if(!x||this===d&&i(x))for(b=l(f),w=m?new this(b):d(b);b>W;W++)R=g?p(f[W],W):f[W],s(w,W,R);else for(w=m?new this:[],S=(C=u(f,x)).next;!(y=t(S,C)).done;W++)R=g?n(C,p,[y.value,W],!0):y.value,s(w,W,R);return a(w,W),w},Di}function fo(){if(Yi)return Xi;Yi=1;var e=TypeError;return Xi=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var mo,vo,po,go,bo,wo,yo,Co,So,Ro={};function xo(){if(po)return vo;po=1;var e=u(),t=y(),r=Object.getOwnPropertyDescriptor;return vo=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function Wo(){if(bo)return go;bo=1;var e=Jt();return go=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function Lo(){if(yo)return wo;yo=1,ci(),function(){if(mo)return Ro;mo=1;var e=tn(),t=fe(),r=pr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=tn(),t=u(),r=xo(),n=Ce(),i=S(),o=fe(),l=y(),s=Zi(),a=Jt(),c=to(),d=Wo(),h=ii(),f=oi(),m=Xt(),v=ro(),p=we(),g=at(),b=eo(),w=nn(),C=Wt(),R=ye(),x=on(),W=Zn(),L=he(),P=co(),k=uo(),_=ui(),N=fo(),E=ct(),O=sn(),T=E("iterator"),A="URLSearchParams",F=A+"Iterator",z=m.set,I=m.getterFor(A),M=m.getterFor(F),H=r("fetch"),j=r("Request"),B=r("Headers"),U=j&&j.prototype,q=B&&B.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=o("".charAt),J=o([].join),K=o([].push),Q=o("".replace),Z=o([].shift),ee=o([].splice),te=o("".split),re=o("".slice),ne=o(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ae(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return de[e]},ve=function(e){return Q(V(e),ce,me)},pe=f(function(e,t){z(this,{type:F,target:I(e).entries,index:0,kind:t})},A,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,_(void 0,!0);var n=t[r];switch(e.kind){case"keys":return _(n.key,!1);case"values":return _(n.value,!1)}return _([n.key,n.value],!1)},!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:x(e)))};ge.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=k(e);if(c)for(r=(t=P(e,c)).next;!(n=i(r,t)).done;){if(l=(o=P(C(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:x(s.value),value:x(a.value)})}else for(var d in e)g(e,d)&&K(u,{key:d,value:x(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(Z(r)),value:ue(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,ve(e.key)+"="+ve(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var be=function(){v(this,Se);var e=z(this,new ge(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},Se=be.prototype;if(d(Se,{append:function(e,t){var r=I(this);N(arguments.length,2),K(r.entries,{key:x(e),value:x(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=I(this),r=N(arguments.length,1),n=t.entries,i=x(e),o=r<2?void 0:arguments[1],s=void 0===o?o:x(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=I(this).entries,r=N(arguments.length,1),n=x(e),i=r<2?void 0:arguments[1],o=void 0===i?i:x(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=I(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,s=x(e),a=x(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=I(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),a(Se,T,Se.entries,{name:"entries"}),a(Se,"toString",function(){return I(this).serialize()},{enumerable:!0}),l&&c(Se,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),h(be,A),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:be}),!s&&p(B)){var Re=o(q.has),xe=o(q.set),We=function(e){if(R(e)){var t,r=e.body;if(w(r)===A)return t=e.headers?new B(e.headers):new B,Re(t,"content-type")||xe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(e,{body:L(0,x(r)),headers:L(0,t)})}return e};if(p(H)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?We(arguments[1]):{})}}),p(j)){var Le=function(e){return v(this,U),new j(e,arguments.length>1?We(arguments[1]):{})};U.constructor=Le,Le.prototype=U,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Le})}}return wo={URLSearchParams:be,getState:I}}So||(So=1,function(){if(Co)return Ji;Co=1,function(){if(fi)return Ki;fi=1;var e=Qi().charAt,t=on(),r=Xt(),n=ai(),i=ui(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=tn(),r=y(),n=Zi(),i=u(),o=eo(),l=fe(),s=Jt(),a=to(),c=ro(),d=at(),h=function(){if(Wi)return xi;Wi=1;var e=y(),t=fe(),r=S(),n=w(),i=Kn(),o=Qr(),l=de(),s=st(),a=ve(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return xi=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var v,p=a(arguments[h++]),g=f?d(i(p),f(p)):i(p),b=g.length,w=0;b>w;)v=g[w++],e&&!r(m,p,v)||(u[v]=p[v]);return u}:u,xi}(),f=ho(),m=ln(),v=Qi().codeAt,p=function(){if(Gi)return $i;Gi=1;var e=fe(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),v=function(e){return e+22+75*(e<26)},p=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,w=b;for(b&&d(r,"-");w<h;){var y=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<y&&(y=l);var C=w+1;if(y-f>s((t-m)/C))throw new o(i);for(m+=(y-f)*C,f=y,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,R=36;;){var x=R<=g?1:R>=g+26?26:R-g;if(S<x)break;var W=S-x,L=36-x;d(r,a(v(x+W%L))),S=s(W/L),R+=36}d(r,a(v(S))),g=p(m,C,w===b),m=0,w++}}m++,f++}return c(r,"")};return $i=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),g=on(),b=ii(),C=fo(),R=Lo(),x=Xt(),W=x.set,L=x.getterFor("URL"),P=R.URLSearchParams,k=R.getState,_=i.URL,N=i.TypeError,E=i.parseInt,O=Math.floor,T=Math.pow,A=l("".charAt),F=l(/./.exec),z=l([].join),I=l(1.1.toString),M=l([].pop),H=l([].push),j=l("".replace),B=l([].shift),U=l("".split),q=l("".slice),D=l("".toLowerCase),V=l([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=O(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=I(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),he=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=v(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,A(e,0))&&(":"===(r=A(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===D(e)},ye=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},Re={},xe={},We={},Le={},Pe={},ke={},_e={},Ne={},Ee={},Oe={},Te={},Ae={},Fe={},ze={},Ie={},Me={},He={},je={},Be={},Ue=function(e,t,r){var n,i,o,l=g(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ue(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=k(new P)).bindURL(this),this.searchParams=o}};Ue.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",v=!1,p=!1,b=!1;for(t=g(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=Re;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=Re,c=0;continue}if(r&&(a.isSpecial()!==d(pe,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&pe[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ae:a.isSpecial()&&n&&n.scheme===a.scheme?u=xe:a.isSpecial()?u=ke:"/"===i[c+1]?(u=We,c++):(a.cannotBeABaseURL=!0,H(a.path,""),u=He)}break;case Re:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Be;break}u="file"===n.scheme?Ae:Le;continue;case xe:if("/"!==o||"/"!==i[c+1]){u=Le;continue}u=_e,c++;break;case We:if("/"===o){u=Ne;break}u=Me;continue;case Le:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=Pe;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be}break;case Pe:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=_e;break;case ke:if(u=_e,"/"!==o||"/"!==A(h,c+1))continue;c++;break;case _e:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){v&&(h="%40"+h),v=!0,l=f(h);for(var w=0;w<l.length;w++){var y=l[w];if(":"!==y||b){var C=me(y,he);b?a.password+=C:a.username+=C}else b=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(v&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=Ee}else h+=o;break;case Ee:case Oe:if(r&&"file"===a.scheme){u=ze;continue}if(":"!==o||p){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=Ie,r)return;continue}"["===o?p=!0:"]"===o&&(p=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Te,r===Oe)return}break;case Te:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=E(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===pe[a.scheme]?null:S,h=""}if(r)return;u=Ie;continue}return X}h+=o;break;case Ae:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be;break;default:be(z(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=ze;break}n&&"file"===n.scheme&&!be(z(m(i,c),""))&&(ge(n.path[0],!0)?H(a.path,n.path[0]):a.host=n.host),u=Me;continue;case ze:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Me;else if(""===h){if(a.host="",r)return;u=Ie}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=Ie}continue}h+=o;break;case Ie:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Be;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(ye(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||H(a.path,"")):we(h)?"/"===o||"\\"===o&&a.isSpecial()||H(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=A(h,0)+":"),H(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)B(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Be)}else h+=me(o,ce);break;case He:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Be):o!==e&&(a.path[0]+=me(o,ae));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":me(o,ae)):(a.fragment="",u=Be);break;case Be:o!==e&&(a.fragment+=me(o,ue))}c++}},parseHost:function(e){var t,r,n;if("["===A(e,0)){if("]"!==A(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return A(e,d)};if(":"===h()){if(":"!==A(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+E(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=E(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=p(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=U(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===A(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=E(i,o)}H(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=T(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=me(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+z(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=g(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=g(e))?this.query=null:("?"===A(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=g(e))?("#"===A(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=C(arguments.length,1)>1?arguments[1]:void 0,i=W(t,new Ue(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return L(this)[e]()},set:t&&function(e){return L(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(De,"href",Ve("serialize","setHref")),a(De,"origin",Ve("getOrigin")),a(De,"protocol",Ve("getProtocol","setProtocol")),a(De,"username",Ve("getUsername","setUsername")),a(De,"password",Ve("getPassword","setPassword")),a(De,"host",Ve("getHost","setHost")),a(De,"hostname",Ve("getHostname","setHostname")),a(De,"port",Ve("getPort","setPort")),a(De,"pathname",Ve("getPathname","setPathname")),a(De,"search",Ve("getSearch","setSearch")),a(De,"searchParams",Ve("getSearchParams")),a(De,"hash",Ve("getHash","setHash"))),s(De,"toJSON",function(){return L(this).serialize()},{enumerable:!0}),s(De,"toString",function(){return L(this).serialize()},{enumerable:!0}),_){var $e=_.createObjectURL,Ge=_.revokeObjectURL;$e&&s(qe,"createObjectURL",o($e,_)),Ge&&s(qe,"revokeObjectURL",o(Ge,_))}b(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var Po,ko,_o={};!function(){if(Po)return _o;Po=1;var e=tn(),t=S();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),ko||(ko=1,Lo());var No,Eo,Oo,To,Ao,Fo,zo,Io,Mo,Ho,jo,Bo={};function Uo(){if(Eo)return No;Eo=1;var e=Wt();return No=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function qo(){if(Ho)return Mo;Ho=1;var e,t,r=S(),n=fe(),i=on(),o=Uo(),l=function(){if(To)return Oo;To=1;var e=w(),t=u().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Oo={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=lt(),a=Zn(),c=Xt().get,d=function(){if(Fo)return Ao;Fo=1;var e=w(),t=u().RegExp;return Ao=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),h=function(){if(Io)return zo;Io=1;var e=w(),t=u().RegExp;return zo=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,p=n("".charAt),g=n("".indexOf),b=n("".replace),y=n("".slice),C=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),R=l.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(C||x||R||d||h)&&(v=function(e){var t,n,l,s,u,d,h,w=this,S=c(w),W=i(e),L=S.raw;if(L)return L.lastIndex=w.lastIndex,t=r(v,L,W),w.lastIndex=L.lastIndex,t;var P=S.groups,k=R&&w.sticky,_=r(o,w),N=w.source,E=0,O=W;if(k&&(_=b(_,"y",""),-1===g(_,"g")&&(_+="g"),O=y(W,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==p(W,w.lastIndex-1))&&(N="(?: "+N+")",O=" "+O,E++),n=new RegExp("^(?:"+N+")",_)),x&&(n=new RegExp("^"+N+"$(?!\\s)",_)),C&&(l=w.lastIndex),s=r(m,k?n:w,O),k?s?(s.input=y(s.input,E),s[0]=y(s[0],E),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:C&&s&&(w.lastIndex=w.global?s.index+s[0].length:l),x&&s&&s.length>1&&r(f,s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s&&P)for(s.groups=d=a(null),u=0;u<P.length;u++)d[(h=P[u])[0]]=s[h[1]];return s}),Mo=v}function Do(){if(jo)return Bo;jo=1;var e=tn(),t=qo();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Bo}Do();var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el,tl,rl,nl,il,ol,ll={};function sl(){if(Jo)return Yo;Jo=1;var e=Qi().charAt;return Yo=function(t,r,n){return r+(n?e(t,r).length:1)}}function al(){if(Qo)return Ko;Qo=1;var e=fe(),t=st(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Ko=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,v=s;return void 0!==d&&(d=t(d),v=l),i(h,v,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}function ul(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function cl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(ol)return ll;ol=1;var e=function(){if($o)return Vo;$o=1;var e=C(),t=Function.prototype,r=t.apply,n=t.call;return Vo="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Vo}(),t=S(),r=fe(),n=function(){if(Xo)return Go;Xo=1,Do();var e=S(),t=Jt(),r=qo(),n=w(),i=ct(),o=Pt(),l=i("species"),s=RegExp.prototype;return Go=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var v=/./[h],p=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(v,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,p[0]),t(s,h,p[1])}d&&o(s[h],"sham",!0)}}(),i=w(),o=Wt(),l=we(),s=ye(),a=vr(),c=gr(),d=on(),h=ge(),f=sl(),m=Ne(),v=al(),p=function(){if(rl)return tl;rl=1;var e=S(),t=at(),r=Se(),n=function(){if(el)return Zo;el=1;var e=u(),t=w(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return Zo={correct:n}}(),i=Uo(),o=RegExp.prototype;return tl=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),g=function(){if(il)return nl;il=1;var e=S(),t=Wt(),r=we(),n=me(),i=qo(),o=TypeError;return nl=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")}}(),b=ct()("replace"),y=Math.max,R=Math.min,x=r([].concat),W=r([].push),L=r("".indexOf),P=r("".slice),k=function(e){return void 0===e?e:String(e)},_="$0"==="a".replace(/./,"$0"),N=!!/./[b]&&""===/./[b]("a","$0");n("replace",function(r,n,i){var u=N?"$":"$0";return[function(e,r){var i=h(this),o=s(e)?m(e,b):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var s=o(this),h=d(t);if("string"==typeof r&&-1===L(r,u)&&-1===L(r,"$<")){var m=i(n,s,h,r);if(m.done)return m.value}var b=l(r);b||(r=d(r));var w,C=d(p(s)),S=-1!==L(C,"g");S&&(w=-1!==L(C,"u"),s.lastIndex=0);for(var _,N=[];null!==(_=g(s,h))&&(W(N,_),S);)""===d(_[0])&&(s.lastIndex=f(h,c(s.lastIndex),w));for(var E="",O=0,T=0;T<N.length;T++){for(var A,F=d((_=N[T])[0]),z=y(R(a(_.index),h.length),0),I=[],M=1;M<_.length;M++)W(I,k(_[M]));var H=_.groups;if(b){var j=x([F],I,z,h);void 0!==H&&W(j,H),A=d(e(r,void 0,j))}else A=v(F,h,z,I,H,r);z>=O&&(E+=P(h,O,z)+A,O=z+F.length)}return E+P(h,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!_||N)}();var dl,hl={};!function(){if(dl)return hl;dl=1;var e=tn(),t=y(),r=u(),n=fe(),i=at(),o=we(),l=Se(),s=on(),a=to(),c=en(),d=r.Symbol,h=d&&d.prototype;if(t&&o(d)&&(!("description"in h)||void 0!==d().description)){var f={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};c(m,d),m.prototype=h,h.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),p=n(h.valueOf),g=n(h.toString),b=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),C=n("".slice);a(h,"description",{configurable:!0,get:function(){var e=p(this);if(i(f,e))return"";var t=g(e),r=v?C(t,7,-1):w(t,b,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:m})}}();const fl=Symbol("safe"),ml=Symbol("hover_in"),vl=Symbol("hover_out"),pl=Symbol("row_click"),gl=Symbol("preview_cell"),bl=Symbol("cell"),wl=Symbol("related_touch"),yl=Symbol("original_row_index"),Cl=Symbol("destroyed");class Sl extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new Sl({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[yl]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=Rl(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function Rl(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class xl extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function Wl(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const Ll={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Pl=document.createElement.bind(document);function kl(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function _l(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function Nl(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function El(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function Ol(e,t){const r=e._o.tableClassName,i=Pl("div");i.className=e.el.className;const o=Pl("div");o.className=r+"-header";const l=Pl("div");l.className=r+"-header-row";const s=Pl("div");s.className=r+"-header-cell";const a=Pl("div");a.textContent=t,s.appendChild(a),l.appendChild(s),o.appendChild(l),i.appendChild(o),n.setCssProps(i,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(i);const u=n.getElementWidth(s);return i.remove(),u}function Tl(e){const t=e._o,r=e._p;let i,o=0,l=0;r.table&&(o=r.table?r.table.scrollTop:0,l=r.table?r.table.scrollLeft:0,t.virtualTable&&(i=r.table.style.display,r.table.style.display="none"));let s=n.getElementWidth(e.el);r.table&&(t.virtualTable&&void 0!==i&&(r.table.style.display=i),r.table.scrollTop=o,r.table.scrollLeft=l,r.header&&(r.header.scrollLeft=l));const a=t.tableClassName,u=Pl("div");u.className=e.el.className,n.setCssProps(u,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const c=Pl("div");c.className="".concat(a,"-header"),u.appendChild(c);const d=Pl("div");d.index=null,d.vIndex=null,d.className="".concat(a,"-header-row"),c.appendChild(d);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=Pl("div");n.className="".concat(a,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(Pl("div")),d.appendChild(n)}document.body.appendChild(u),s-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(d);const h=d.querySelectorAll("div.".concat(a,"-header-cell"));for(const e of h){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){s-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+Nl(e);const n=e.columnName,i=r.columns.get(n);i&&(s-=i.arrowProposedWidth||0)}}return u.remove(),Math.max(0,s)}function Al(e){const t=e._p,r=e._o.tableClassName,i=r+"-row",o=r+"-cell",l=t.visibleColumns,s=l.length,a=Pl("div");a.className=i,a.style.float="left";let u=0;for(let e=0;e<s;e++){var c,d;const t=l[e],r=Pl("div");r.className=o,r.style.width=(null!==(c=t.actualWidth)&&void 0!==c?c:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Pl("div")),a.appendChild(r),u+=null!==(d=t.actualWidth)&&void 0!==d?d:0}const h=Pl("div");h.className=e.el.className,n.setCssProps(h,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Pl("div");f.className=r,h.appendChild(f);const m=Pl("div");m.className=r+"-body",m.style.width=u+1e4+"px",f.appendChild(m),m.appendChild(a),document.body.appendChild(h);const v=Pl("div");n.setCssProps(v,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(v);const p=parseFloat(getComputedStyle(v).borderWidth),g=Math.round(p)!==p;v.remove();let b=n.getElementWidth(a,!0,!0,!0);return b-=t.scrollbarWidth||0,g&&b++,h.remove(),b}function Fl(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function zl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class Il{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const Ml=document.createElement.bind(document);function Hl(e,t){var r,i,o;const l=e._o,s=Fl(e);let a=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!a)return null;a[bl]&&(a=a[bl]);let u=a.previousSibling;for(;u&&1!==u.nodeType;)u=u.previousSibling;const c=!u,d=t,h=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=d.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t,f=(h.pageX||h.clientX||0)-n.getElementOffset(a).left;if(s){var m,v,p;if(!c&&n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(m=null===(v=u)||void 0===v?void 0:v.columnName)&&void 0!==m?m:null;if(f<=l.resizeAreaWidth/2)return null!==(p=a.columnName)&&void 0!==p?p:null}else{var g,b,w;if(!c&&f<=l.resizeAreaWidth/2)return null!==(g=null===(b=u)||void 0===b?void 0:b.columnName)&&void 0!==g?g:null;if(n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(w=a.columnName)&&void 0!==w?w:null}return null}function jl(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Bl(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const i=e._o,o=e._p,l=Hl(e,t);if(l){const r=o.columns.get(l);if(!i.resizableColumns||!r||!r.resizable)return!1;const s=Fl(e);o.resizer&&o.resizer.remove(),o.resizer=Ml("div"),o.resizer.className=i.resizerClassName,n.setCssProps(o.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(o.resizer);const a=r.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=n.getElementOffset(a),f=n.getElementOffset(u);f.left+=parseFloat(c.borderLeftWidth)||0,f.top+=parseFloat(c.borderTopWidth)||0,h.left-=f.left,h.top-=f.top,h.top-=parseFloat(d.borderTopWidth)||0;const m=n.getElementWidth(o.resizer,!0,!0,!0);s?(h.left-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),h.left-=Math.ceil(m/2)):(h.left+=n.getElementWidth(a,!0,!0,!0),h.left+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),h.left-=Math.ceil(m/2)),n.setCssProps(o.resizer,{"z-index":"10",visibility:"visible",left:h.left+"px",top:h.top+"px",height:n.getElementHeight(e.el,!1,!1,!1)+"px"}),o.resizer.columnName=a.columnName;try{o.resizer.style.zIndex=""}catch(e){}o.eventsSink.add(document,"mousemove.colresize",t=>Ul(e,t)).add(document,"touchmove.colresize",t=>Ul(e,t)).add(document,"mouseup.colresize",t=>ql(e,t)).add(document,"touchend.colresize",t=>ql(e,t)),t.preventDefault()}}function Ul(e,t){var r,i,o;const l=e._p;if(!l.resizer)return;const s=l.columns.get(l.resizer.columnName);if(!s)return;const a=Fl(e),u=s.element,c=l.resizer.parentNode,d=getComputedStyle(c),h=getComputedStyle(u),f=n.getElementOffset(u),m=n.getElementOffset(c);m.left+=parseFloat(d.borderLeftWidth)||0,f.left-=m.left;const v=n.getElementWidth(l.resizer,!0,!0,!0),p="border-box"===h.boxSizing,g=t;let b=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=g.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-m.left,w=f.left;w-=Math.ceil(v/2),a?(w+=n.getElementWidth(u,!0,!0,!0),w-=s.ignoreMin?0:e._o.minColumnWidth,p||(w-=Math.ceil((parseFloat(h.borderLeftWidth)||0)/2),w-=Nl(u)),b>w&&(b=w)):(w+=s.ignoreMin?0:e._o.minColumnWidth,p||(w+=Math.ceil((parseFloat(h.borderRightWidth)||0)/2),w+=Nl(u)),b<w&&(b=w)),l.resizer.style.left=b+"px"}function ql(e,t){var r,i,o;const l=e._o,s=e._p;if(!s.resizer)return;s.eventsSink.remove(document,".colresize");const a=s.columns.get(s.resizer.columnName);if(!a)return s.resizer.remove(),void(s.resizer=null);const u=Fl(e),c=a.element,d=c.firstChild,h=s.resizer.parentNode,f=getComputedStyle(h),m=getComputedStyle(c),v=n.getElementOffset(c),p=n.getElementOffset(h);p.left+=parseFloat(f.borderLeftWidth)||0,v.left-=p.left;const g=n.getElementWidth(s.resizer,!0,!0,!0),b="border-box"===m.boxSizing,w=t;let y=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=w.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-p.left,C=v.left,S=0;if(C-=Math.ceil(g/2),u){if(!b){y+=Nl(c);const e=getComputedStyle(d||c);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=a.arrowProposedWidth||0}C+=n.getElementWidth(c,!0,!0,!0);const t=C-(a.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),S=C-y}else{if(!b){y-=Nl(c);const e=getComputedStyle(d||c);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=a.arrowProposedWidth||0}const t=C+(a.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),S=y-C}s.resizer.remove(),s.resizer=null;let R=S;if(2===a.widthMode){let t=Tl(e),r=0,n=0;for(let e=0;e<s.visibleColumns.length;e++){const i=s.visibleColumns[e];var x;i.name!==a.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&s.table&&(t=s.table.clientWidth),R=S/t,n>0){const e=R/((1-R)/r);r+=R,(r<1&&l.relativeWidthGrowsToFillWidth||r>1&&l.relativeWidthShrinksToFillWidth)&&(R=e)}R*=100,R+="%"}e.setColumnWidth(a.name,R)}function Dl(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Hl(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Vl(e,t){var r,i,o;const l=e._o,s=t,a=t,u=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=s.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:{pageX:a.pageX,pageY:a.pageY},c=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!c)return;const d=n.getElementOffset(c);d.width=n.getElementWidth(c,!0,!0,!0),d.height=n.getElementHeight(c,!0,!0,!0),e.emit("headercontextmenu",{columnName:c.columnName,pageX:u.pageX,pageY:u.pageY,bounds:d})}function $l(e,t){if(_l(t))return;if(Hl(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const Gl=Array.prototype.indexOf,Xl=document.createElement.bind(document);function Yl(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Jl(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function Kl(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}Zl(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Ql(e,t){const r=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Al(e);if(i.tbody.style.minWidth=o+"px",i.headerRow.style.minWidth=o+(i.scrollbarWidth||0)+"px",i.eventsSink.remove(i.table,"scroll"),r.width===Ll.AUTO)n.setElementWidth(i.table,n.getElementWidth(i.tbody,!0,!0,!0)),n.setElementWidth(e.el,n.getElementWidth(i.table,!0,!0,!0));else if(r.width===Ll.SCROLL){if(t){const t=i.table?i.table.scrollTop:0,r=i.table?i.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),i.table.scrollTop=t,i.table.scrollLeft=r,i.header&&(i.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,es(e)}(e);i.eventsSink.add(i.table,"scroll",r)}return e}function Zl(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=Fl(e),s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky&&!l||"end"===n.sticky&&l?(n.stickyPos={direction:"left",offset:a},e.style.left=a+"px",a+=t,m.length=0,f=[e],d.push(f)):(n.stickyPos={direction:"right",offset:u},e.style.right=u+s+"px",u+=t,h.push([e,...m]),m.length=0)}else{var p;delete n.stickyPos,null===(p=f)||void 0===p||p.push(e),null==m||m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesLeft=d,r.stickiesRight=h,es(e)}function es(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesLeft,n=t.stickiesRight,i=t.stickiesSetLeft,o=t.stickiesSetRight,l=t.stickiesSetLeft=new Set,s=t.stickiesSetRight=new Set;if(null!=r&&r.length||null==n||!n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],a=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const u=e.getBoundingClientRect();let c=!1;if(s&&a){const e=s.getBoundingClientRect(),r=a.getBoundingClientRect();c=t?u.right-o>e.left&&u.left+o<r.right:u.left+o<r.right&&u.right-o>e.left}e.classList.toggle(t?"is-sticky-left":"is-sticky-right",c),c&&r.add(Gl.call(i,e))}};a(r,!0,l),a(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,left:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,right:!0});if(i)for(const e of i)l.has(e)||u.push({index:e,left:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,right:!0});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const t of u){var d;null===(d=e[t.index])||void 0===d||d.classList.remove(t.left?"is-sticky-left":"is-sticky-right")}for(const t of a){var h;null===(h=e[t.index])||void 0===h||h.classList.add(t.left?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"left");for(const e of s)t.isStickyColumns.set(e,"right")}function ts(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function rs(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,o=i.scopedSelectorAll(t.headerRow,">div.".concat(e,"-header-cell.sorted")),l=Array.prototype.slice.call(o,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of l){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of o)e.classList.remove("sorted","desc")}return e}function ns(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Xl("span");var s;return l.className="sort-arrow",o.element&&(o.element.className+=r?" sorted desc":" sorted",null===(s=o.element.firstChild)||void 0===s||s.insertBefore(l,o.element.firstChild.firstChild)),2!==o.widthMode&&i.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=l.scrollWidth+(parseFloat(getComputedStyle(l).marginRight)||0)+(parseFloat(getComputedStyle(l).marginLeft)||0)),!0}function is(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Bl(e,t)),t.addEventListener("mousemove",t=>Dl(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Vl(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[wl]=t.changedTouches[0],Bl(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{_l(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(jl(e),Vl(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),_l(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[wl]=i,$l(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[wl]=i,Dl(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);var i;o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>$l(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;null!=i&&i.contains(n.firstChild)||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t){var r;t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function os(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function ls(e,t){let r=os(t.width,t.ignoreMin?0:e.minColumnWidth),n={name:t.name,label:void 0===t.label?t.name:t.label,width:r.width,widthMode:r.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,dataPath:[],comparePath:[],order:0};const i=void 0===t.dataPath?[n.name]:t.dataPath;n.dataPath="string"==typeof i?i.split("."):i;const o=void 0===t.comparePath?n.dataPath:t.comparePath;return n.comparePath="string"==typeof o?o.split("."):o,n}function ss(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function as(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||Wl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function us(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[fl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const cs=Array.prototype.indexOf,ds=document.createElement.bind(document);function hs(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[bl];let o;try{o=Il.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&Il.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[gl],delete n[bl],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const fs=Object.prototype.hasOwnProperty;class ms{constructor(e){this.VERSION=ms.VERSION;const t=this._o={},r=this._p={eventsSink:new o,mitt:{all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var i;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Ll.NONE:e.width,t.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,t.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),t.height=e.height,this.setColumns(e.columns||[],!1);let l=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,n=t.length;e<n;e++){var s;let n=t[e];"string"==typeof n&&(n={column:n,descending:!1});let i=r.columns.get(n.column);i&&l.push({column:n.column,comparePath:i.comparePath||i.dataPath,descending:null!==(s=n.descending)&&void 0!==s&&s})}}r.rows=new Sl({sortColumn:l}),r.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,i=t.relatedTarget;i===r||r.contains(i)||r[gl]&&(i===r[gl]||r[gl].contains(i))||function(e,t){var r,i;const o=e._o,l=e._p,s=t.firstElementChild;if(!s)return;if(!(s.scrollWidth-s.clientWidth>1||s.scrollHeight-s.clientHeight>1))return;hs(e),l.abortCellPreview=!1;const a=t.parentElement;if(!a)return;const u=ds("div");u.innerHTML=t.innerHTML,u.className=o.cellPreviewClassName;const c=t.classList.contains("".concat(o.tableClassName,"-header-cell"));c&&(u.classList.add("header"),t.classList.contains("sortable")&&u.classList.add("sortable"),u.draggable=!0,is(e,u));const d=getComputedStyle(t),h=getComputedStyle(s),f="right"===d.float,m=f?"right":"left",v=parseFloat(d.paddingLeft)||0,p=parseFloat(d.paddingRight)||0,g=parseFloat(d.paddingTop)||0,b=parseFloat(d.paddingBottom)||0;let w=s.scrollWidth+(t.clientWidth-s.offsetWidth);const y="border-box"===d.boxSizing;if(y?u.style.boxSizing="border-box":(w-=v+p,u.style.marginTop=(parseFloat(d.borderTopWidth)||0)+"px"),!l.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",l.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",l.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const C={"box-sizing":y?"border-box":"content-box",width:w,"min-height":Math.max(n.getElementHeight(t),/%/.test(d.minHeight)?0:parseFloat(d.minHeight)||0)+"px","padding-left":v,"padding-right":p,"padding-top":g,"padding-bottom":b,overflow:"hidden",position:"absolute","z-index":"-1",[m]:"0",top:"0",cursor:d.cursor};let S=d.backgroundColor;S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S=getComputedStyle(a).backgroundColor),S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S="#fff"),C["background-color"]=S,n.setCssProps(u,C),u.firstChild&&n.setCssProps(u.firstChild,{direction:h.direction,"white-space":h.whiteSpace,"min-height":h.minHeight,"line-height":h.lineHeight,font:h.font}),e.el.appendChild(u),c&&El(u),u.rowVIndex=a.vIndex;const R=u.rowIndex=a.index;u.columnName=null===(r=l.visibleColumns[cs.call(a.childNodes,t)])||void 0===r?void 0:r.name;try{const e=Il.saveSelection(t);e&&Il.restoreSelection(u,e)}catch(e){}if(e.emit("cellpreview",{el:u.firstElementChild,name:u.columnName,rowIndex:null!=R?R:null,rowData:null==R?null:l.rows[R],cell:t,cellEl:s}),l.abortCellPreview)return void u.remove();null!=R&&u.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:a.vIndex,rowIndex:R,rowEl:a,rowData:l.rows[R]})});const x=e.el,W=x===window?document:x,L=getComputedStyle(x),P=n.getElementOffset(t),k=n.getElementOffset(x);if(f){const e=window.innerWidth;P.right=e-(P.left+n.getElementWidth(t,!0,!0,!0)),k.right=e-(k.left+n.getElementWidth(x,!0,!0,!0))}P.left-=parseFloat(L.borderLeftWidth)||0,"right"===m&&void 0!==P.right&&void 0!==k.right&&(P.right-=parseFloat(L.borderRightWidth)||0),P.top-=parseFloat(L.borderTopWidth)||0,"left"===m?P.left+=parseFloat(d.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(d.borderRightWidth)||0),P.top+=parseFloat(d.borderTopWidth)||parseFloat(d.borderBottomWidth)||0,P.left-=k.left,"right"===m&&void 0!==P.right&&void 0!==k.right&&(P.right-=k.right),P.top-=k.top;const _=n.getElementWidth(x,!1,!1,!1)-n.getElementWidth(u,!0,!0,!0),N="left"===m?P.left:null!==(i=P.right)&&void 0!==i?i:0,E=N<0?0:N>_?_:N;"left"===m?P.left=E:P.right=E;const O=n.getElementHeight(t,!0,!0,!0),T=("scrollTop"in W?W.scrollTop:0)+n.getElementHeight(x,!0)-O;P.top>T&&(P.top=Math.max(0,T));const A={top:P.top+"px","z-index":9999};A[m]=("left"===m?P.left:P.right)+"px",n.setCssProps(u,A),u[bl]=t,l.cellPreviewCell=u,t[gl]=u,l._bindCellHoverOut(t),l._bindCellHoverOut(u),u.addEventListener("wheel",()=>{hs(e)})}(e,r)},i=t=>{let r=t.currentTarget[bl]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[gl]&&(n===r[gl]||r[gl].contains(n))||function(e){hs(e)}(e)};t._bindCellHoverIn=e=>{e[ml]||e.addEventListener("mouseover",e[ml]=r)},t._unbindCellHoverIn=e=>{e[ml]&&(e.removeEventListener("mouseover",e[ml]),e[ml]=null)},t._bindCellHoverOut=e=>{e[vl]||e.addEventListener("mouseout",e[vl]=i)},t._unbindCellHoverOut=e=>{e[vl]&&(e.removeEventListener("mouseout",e[vl]),e[vl]=null)}}(this)}on(e,t){return this[Cl]||this._p.mitt.on(e,t),this}once(e,t){if(this[Cl])return this;const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return this[Cl]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[Cl]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[Cl]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,Yl(this),null===(t=n.table)||void 0===t||t.remove(),null===(r=n.tbody)||void 0===r||r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)fs.call(this,e)&&(this[e]=null);return this[Cl]=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this[Cl]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var i;t.tableSkeletonNeedsRendering=!1,e.width===Ll.AUTO&&rs(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,s=t.table&&t.table.parentNode?r.getScrollHorz(t.table):NaN;!function(e){var t;const r=e._p,i=e._o;null===(t=r.virtualListHelper)||void 0===t||t.destroy(),r.virtualListHelper=null,r.table&&i.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Yl(e),r.currentTouchId=null,r.header&&r.header.remove();const o=i.tableClassName,l=Xl("div"),s=Xl("div");l.className="".concat(o,"-header"),s.className="".concat(o,"-header-row"),r.header=l,r.headerRow=s,l.appendChild(s),e.el.prepend(l),kl(e.el),i.width===Ll.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!i.height&&i.virtualTable&&(i.height=n.getElementHeight(e.el,!0))}(this),function(e){const t=e._p,r=e._o,i=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Xl("div"),t=e.appendChild(Xl("div")),r=t.appendChild(Xl("div"));return e.className="".concat(i,"-row"),t.className="".concat(i,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},o=Xl("div");o.className=e.el.className,n.setCssProps(o,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const l=Xl("div");l.className=i,o.appendChild(l);const s=Xl("div");s.className="".concat(i,"-body"),s.style.width="99999px",l.appendChild(s),document.body.appendChild(o);const a=r(),u=r(),c=r();s.appendChild(a),s.appendChild(u),s.appendChild(c),t.virtualRowHeight=n.getElementHeight(u,!0,!0,!0),o.remove()}if(!t.table){var o;const s=document.createDocumentFragment(),a=Xl("div");a.className=i,r.virtualTable&&(a.className+=" virtual");const u=getComputedStyle(a);let c=(null!==(o=r.height)&&void 0!==o?o:0)-n.getElementHeight(t.header,!0,!0,!0);"border-box"!==u.boxSizing&&(c-=parseFloat(u.borderTopWidth)||0,c-=parseFloat(u.borderBottomWidth)||0,c-=parseFloat(u.paddingTop)||0,c-=parseFloat(u.paddingBottom)||0),n.setCssProps(a,{height:r.height?c+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Ll.SCROLL?"auto":"hidden"}),s.appendChild(a);const d=Xl("div");d.className=r.tableClassName+"-body",d.style.minHeight="1px",t.table=a,t.tbody=d,kl(d),kl(a),a.appendChild(d),e.el.appendChild(s),function(e){var t;const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",s=i+"-row-alt",a=i+"-cell",u=i+"-sticky";let c=r.visibleColumns,d=c.length;r.notifyRendererOfColumnsConfig=()=>{c=r.visibleColumns,d=c.length;for(let e=0;e<d;e++){const t=c[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new l({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Xl("div"),onItemRender:(t,i)=>{const l=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+s);const v=l[i],p=h?v[yl]:i;t.vIndex=i,t.index=p;for(let e=0;e<d;e++){var g;const i=c[e],o=Xl("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=a,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+u,o.style.position="sticky",o.style[i.stickyPos.direction]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"left"===t?o.classList.add("is-sticky-left"):"right"===t&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Xl("div")).innerHTML=us(n,v,i),t.appendChild(o)}t.addEventListener("click",t[pl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})},onItemUnrender:t=>{t[pl]&&t.removeEventListener("click",t[pl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&Kl(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Xl("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Xl("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,is(e,c),El(c)}}Zl(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(i=t.filteredRows)&&void 0!==i?i:t.rows).length),Jl(this),Kl(this,!0),Ql(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)ns(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(o)||(t.table.scrollTop=o),isNaN(s)||(r.setScrollHorz(t.table,s),r.setScrollHorz(t.header,s)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new xl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=ls(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),ss(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=ls(this._o,e);l.order=o?o.order:i.getMaxOrder()+1;for(let e=i.getMaxOrder(),t=l.order;e>=t;e--){let t=i.getByOrder(e);t&&t.order++}i.push(l),i.normalizeOrder(),n.visibleColumns=i.getVisibleColumns(),ss(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),ss(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(e,t){let r=this._p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(let e=0;e<r.element.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,o=this._p;let l,s,a=o.columns,u=r?o.visibleColumns:a.getColumns();if("string"==typeof e?l=a.get(e):"number"==typeof e&&(l=u[e]),"string"==typeof t?s=a.get(t):"number"==typeof t&&(s=u[t]),l&&s&&e!==t){let e=l.order,t=s.order,r=a.moveColumn(l,s).getVisibleColumns();if(o.visibleColumns.length!==r.length||o.visibleColumns.some((e,t)=>e!==r[t]))if(o.visibleColumns=r,ss(this),n.virtualTable)this.clearAndRender();else{var c,d;const r=i.scopedSelectorAll(o.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let l=e<t?t+1:t,s=e;r[0].parentNode.insertBefore(r[s],r[l]);let a=o.visibleColumns[e],u=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=o.visibleColumns[t],f=(null!==(d=h.actualWidthConsideringScrollbarWidth||h.actualWidth)&&void 0!==d?d:0)+"px",m=o.tbody.childNodes;for(let r=0,n=m.length;r<n;r++){let n=m[r];1===n.nodeType&&(n.insertBefore(n.childNodes[s],n.childNodes[l]),n.childNodes[t].firstChild.style.width=f,n.childNodes[e].firstChild.style.width=u)}}this.emit("movecolumn",{name:l.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),ss(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=os(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=zl(r);r.width=n.width,r.widthMode=n.mode;let t=zl(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?zl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:zl(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){const e=this._p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t}setSortableColumns(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=i.scopedSelectorAll(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn;if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,comparePath:o.comparePath||o.dataPath,descending:!!t})}else l.length=0;rs(this);for(let e=0;e<l.length;e++)ns(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),i.virtualListHelper&&i.virtualListHelper.invalidate().render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?cl(e):e;t[fl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?cl(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||Wl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return us(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?us(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():as(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Jl(this),Kl(this),this.render(),Ql(this,!1)):i.tbody&&(this.render(),Kl(this),Ql(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(as(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Jl(this),Kl(this),this.render(),Ql(this,!1)):(this.render(),Kl(this),Ql(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(e){let t=this._p;if(e<0||e>t.rows.length-1)return null;let r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():as(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Tl(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],c=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){let i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=Ol(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(a=n.notifyRendererOfColumnsConfig)||void 0===a||a.call(n),t){let e=Al(this);s<e&&Ql(this,!1);for(let e=0;e<u.length;e++)ts(this,u[e]);s>e&&Ql(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let i=n.getElementHeight(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return i!==e.height&&(e.height=i,t.tbody&&(t.tbody.style.height=Math.max(e.height-n.getElementHeight(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return hs(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return jl(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(e){let t=this._p;if(t.workerListeners)for(let r=0;r<t.workerListeners.length;r++)t.workerListeners[r].worker===e&&(e.removeEventListener("message",t.workerListeners[r].listener,!1),t.workerListeners.splice(r,1),r--);return this}}ms.VERSION="@@VERSION",ms.Width=Ll,module.exports=ms;
|
|
5
|
+
"use strict";var e,t,r=require("@danielgindi/dom-utils/lib/ScrollHelper.js"),n=require("@danielgindi/dom-utils/lib/Css.js"),i=require("@danielgindi/dom-utils/lib/DomCompat.js"),o=require("@danielgindi/dom-utils/lib/DomEventsSink.js"),l=require("@danielgindi/virtual-list-helper"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function u(){if(t)return e;t=1;var r=function(e){return e&&e.Math===Math&&e};return e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s&&s)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var c,d,h,f,m,v,p,g,b={};function w(){return d?c:(d=1,c=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(f)return h;f=1;var e=w();return h=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function C(){if(v)return m;v=1;var e=w();return m=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function S(){if(g)return p;g=1;var e=C(),t=Function.prototype.call;return p=e?t.bind(t):function(){return t.apply(t,arguments)},p}var R,x,W,P,L,k,_,N,E,O,T,A,F,z,I,M,H,j,B,U,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue,ce={};function de(){if(R)return ce;R=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ce.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ce}function he(){return W?x:(W=1,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function fe(){if(L)return P;L=1;var e=C(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return P=e?n:function(e){return function(){return r.apply(e,arguments)}},P}function me(){if(_)return k;_=1;var e=fe(),t=e({}.toString),r=e("".slice);return k=function(e){return r(t(e),8,-1)}}function ve(){if(E)return N;E=1;var e=fe(),t=w(),r=me(),n=Object,i=e("".split);return N=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function pe(){return T?O:(T=1,O=function(e){return null==e})}function ge(){if(F)return A;F=1;var e=pe(),t=TypeError;return A=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function be(){if(I)return z;I=1;var e=ve(),t=ge();return z=function(r){return e(t(r))}}function we(){if(H)return M;H=1;var e="object"==typeof document&&document.all;return M=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(B)return j;B=1;var e=we();return j=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(q)return U;q=1;var e=u(),t=we();return U=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},U}function Se(){if(V)return D;V=1;var e=fe();return D=e({}.isPrototypeOf)}function Re(){if(G)return $;G=1;var e=u().navigator,t=e&&e.userAgent;return $=t?String(t):""}function xe(){if(Y)return X;Y=1;var e,t,r=u(),n=Re(),i=r.process,o=r.Deno,l=i&&i.versions||o&&o.version,s=l&&l.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),X=t}function We(){if(K)return J;K=1;var e=xe(),t=w(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Pe(){if(Z)return Q;Z=1;var e=We();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Le(){if(te)return ee;te=1;var e=Ce(),t=we(),r=Se(),n=Pe(),i=Object;return ee=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function ke(){if(ne)return re;ne=1;var e=String;return re=function(t){try{return e(t)}catch(e){return"Object"}}}function _e(){if(oe)return ie;oe=1;var e=we(),t=ke(),r=TypeError;return ie=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ne(){if(se)return le;se=1;var e=_e(),t=pe();return le=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function Ee(){if(ue)return ae;ue=1;var e=S(),t=we(),r=ye(),n=TypeError;return ae=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Oe,Te,Ae,Fe,ze,Ie,Me,He,je,Be,Ue,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt,rt={exports:{}};function nt(){return Te?Oe:(Te=1,Oe=!1)}function it(){if(Fe)return Ae;Fe=1;var e=u(),t=Object.defineProperty;return Ae=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function ot(){if(ze)return rt.exports;ze=1;var e=nt(),t=u(),r=it(),n="__core-js_shared__",i=rt.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rt.exports}function lt(){if(Me)return Ie;Me=1;var e=ot();return Ie=function(t,r){return e[t]||(e[t]=r||{})}}function st(){if(je)return He;je=1;var e=ge(),t=Object;return He=function(r){return t(e(r))}}function at(){if(Ue)return Be;Ue=1;var e=fe(),t=st(),r=e({}.hasOwnProperty);return Be=Object.hasOwn||function(e,n){return r(t(e),n)}}function ut(){if(De)return qe;De=1;var e=fe(),t=0,r=Math.random(),n=e(1.1.toString);return qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function ct(){if($e)return Ve;$e=1;var e=u(),t=lt(),r=at(),n=ut(),i=We(),o=Pe(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return Ve=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function dt(){if(Xe)return Ge;Xe=1;var e=S(),t=ye(),r=Le(),n=Ne(),i=Ee(),o=ct(),l=TypeError,s=o("toPrimitive");return Ge=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function ht(){if(Je)return Ye;Je=1;var e=dt(),t=Le();return Ye=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ft(){if(Qe)return Ke;Qe=1;var e=u(),t=ye(),r=e.document,n=t(r)&&t(r.createElement);return Ke=function(e){return n?r.createElement(e):{}}}function mt(){if(et)return Ze;et=1;var e=y(),t=w(),r=ft();return Ze=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function vt(){if(tt)return b;tt=1;var e=y(),t=S(),r=de(),n=he(),i=be(),o=ht(),l=at(),s=mt(),a=Object.getOwnPropertyDescriptor;return b.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},b}var pt,gt,bt,wt,yt,Ct,St,Rt={};function xt(){if(gt)return pt;gt=1;var e=y(),t=w();return pt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Wt(){if(wt)return bt;wt=1;var e=ye(),t=String,r=TypeError;return bt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Pt(){if(yt)return Rt;yt=1;var e=y(),t=mt(),r=xt(),n=Wt(),i=ht(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Rt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Rt}function Lt(){if(St)return Ct;St=1;var e=y(),t=Pt(),r=he();return Ct=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var kt,_t,Nt,Et,Ot,Tt,At,Ft,zt,It,Mt,Ht,jt,Bt,Ut,qt={exports:{}};function Dt(){if(_t)return kt;_t=1;var e=y(),t=at(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return kt={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Vt(){if(Et)return Nt;Et=1;var e=fe(),t=we(),r=ot(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Nt=r.inspectSource}function $t(){if(Ft)return At;Ft=1;var e=lt(),t=ut(),r=e("keys");return At=function(e){return r[e]||(r[e]=t(e))}}function Gt(){return It?zt:(It=1,zt={})}function Xt(){if(Ht)return Mt;Ht=1;var e,t,r,n=function(){if(Tt)return Ot;Tt=1;var e=u(),t=we(),r=e.WeakMap;return Ot=t(r)&&/native code/.test(String(r))}(),i=u(),o=ye(),l=Lt(),s=at(),a=ot(),c=$t(),d=Gt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||a.state){var v=a.state||(a.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,e=function(e,t){if(v.has(e))throw new f(h);return t.facade=e,v.set(e,t),t},t=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var p=c("state");d[p]=!0,e=function(e,t){if(s(e,p))throw new f(h);return t.facade=e,l(e,p,t),t},t=function(e){return s(e,p)?e[p]:{}},r=function(e){return s(e,p)}}return Mt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Yt(){if(jt)return qt.exports;jt=1;var e=fe(),t=w(),r=we(),n=at(),i=y(),o=Dt().CONFIGURABLE,l=Vt(),s=Xt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),v=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),p=String(String).split("String"),g=qt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(p,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),qt.exports}function Jt(){if(Ut)return Bt;Ut=1;var e=we(),t=Pt(),r=Yt(),n=it();return Bt=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr,mr={};function vr(){if(er)return Zt;er=1;var e=function(){if(Qt)return Kt;Qt=1;var e=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Zt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function pr(){if(rr)return tr;rr=1;var e=vr(),t=Math.max,r=Math.min;return tr=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function gr(){if(ir)return nr;ir=1;var e=vr(),t=Math.min;return nr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function br(){if(lr)return or;lr=1;var e=gr();return or=function(t){return e(t.length)}}function wr(){if(cr)return ur;cr=1;var e=fe(),t=at(),r=be(),n=function(){if(ar)return sr;ar=1;var e=be(),t=pr(),r=br(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return sr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Gt(),o=e([].push);return ur=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c}}function yr(){return hr?dr:(hr=1,dr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Cr,Sr,Rr,xr,Wr,Pr,Lr,kr,_r,Nr,Er,Or,Tr,Ar,Fr,zr,Ir,Mr,Hr,jr,Br,Ur,qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr={};function Qr(){return Cr||(Cr=1,Kr.f=Object.getOwnPropertySymbols),Kr}function Zr(){if(Rr)return Sr;Rr=1;var e=Ce(),t=fe(),r=function(){if(fr)return mr;fr=1;var e=wr(),t=yr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},mr}(),n=Qr(),i=Wt(),o=t([].concat);return Sr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function en(){if(Wr)return xr;Wr=1;var e=at(),t=Zr(),r=vt(),n=Pt();return xr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function tn(){if(_r)return kr;_r=1;var e=u(),t=vt().f,r=Lt(),n=Jt(),i=it(),o=en(),l=function(){if(Lr)return Pr;Lr=1;var e=w(),t=we(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Pr=n}();return kr=function(s,a){var u,c,d,h,f,m=s.target,v=s.global,p=s.stat;if(u=v?e:p?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=s.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!l(v?c:m+(p?".":"#")+c,s.forced)&&void 0!==d){if(typeof h==typeof d)continue;o(h,d)}(s.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,s)}}}function rn(){if(Er)return Nr;Er=1;var e=ke(),t=TypeError;return Nr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}function nn(){if(Fr)return Ar;Fr=1;var e=function(){if(Tr)return Or;Tr=1;var e={};return e[ct()("toStringTag")]="z",Or="[object z]"===String(e)}(),t=we(),r=me(),n=ct()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Ar=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a}}function on(){if(Ir)return zr;Ir=1;var e=nn(),t=String;return zr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function ln(){if(Hr)return Mr;Hr=1;var e=fe();return Mr=e([].slice)}function sn(){if(Br)return jr;Br=1;var e=ln(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,v=0;m<h||v<f;)n[m+v]=m<h&&v<f?i(c[m],d[v])<=0?c[m++]:d[v++]:m<h?c[m++]:d[v++];return n};return jr=r}function an(){if(qr)return Ur;qr=1;var e=w();return Ur=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Jr)return a;Jr=1;var e=tn(),t=fe(),r=_e(),n=st(),i=br(),o=rn(),l=on(),s=w(),u=sn(),c=an(),d=function(){if(Vr)return Dr;Vr=1;var e=Re().match(/firefox\/(\d+)/i);return Dr=!!e&&+e[1]}(),h=function(){if(Gr)return $r;Gr=1;var e=Re();return $r=/MSIE|Trident/.test(e)}(),f=xe(),m=function(){if(Yr)return Xr;Yr=1;var e=Re().match(/AppleWebKit\/(\d+)\./);return Xr=!!e&&+e[1]}(),v=[],p=t(v.sort),g=t(v.push),b=s(function(){v.sort(void 0)}),y=s(function(){v.sort(null)}),C=c("sort"),S=!s(function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort(function(e,t){return t.v-e.v}),n=0;n<v.length;n++)t=v[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!C||!S},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(S)return void 0===e?p(t):p(t,e);var s,a,c=[],d=i(t);for(a=0;a<d;a++)a in t&&g(c,t[a]);for(u(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),a=0;a<s;)t[a]=c[a++];for(;a<d;)o(t,a++);return t}})}();var un,cn,dn,hn,fn,mn,vn,pn,gn,bn,wn,yn,Cn,Sn,Rn,xn,Wn,Pn,Ln,kn,_n,Nn,En,On,Tn,An,Fn,zn,In,Mn,Hn,jn,Bn,Un,qn,Dn,Vn,$n,Gn,Xn,Yn={},Jn={};function Kn(){if(mn)return fn;mn=1;var e=wr(),t=yr();return fn=Object.keys||function(r){return e(r,t)}}function Qn(){if(gn)return pn;gn=1;var e=Ce();return pn=e("document","documentElement")}function Zn(){if(wn)return bn;wn=1;var e,t=Wt(),r=function(){if(vn)return Jn;vn=1;var e=y(),t=xt(),r=Pt(),n=Wt(),i=be(),o=Kn();return Jn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Jn}(),n=yr(),i=Gt(),o=Qn(),l=ft(),s=$t(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,bn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)}}function ei(){if(Cn)return yn;Cn=1;var e=ct(),t=Zn(),r=Pt().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),yn=function(e){i[n][e]=!0}}function ti(){return Rn?Sn:(Rn=1,Sn={})}function ri(){if(Ln)return Pn;Ln=1;var e=at(),t=we(),r=st(),n=$t(),i=function(){if(Wn)return xn;Wn=1;var e=w();return xn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Pn=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null}}function ni(){if(_n)return kn;_n=1;var e,t,r,n=w(),i=we(),o=ye(),l=Zn(),s=ri(),a=Jt(),u=ct(),c=nt(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),kn={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function ii(){if(En)return Nn;En=1;var e=Pt().f,t=at(),r=ct()("toStringTag");return Nn=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function oi(){if(Tn)return On;Tn=1;var e=ni().IteratorPrototype,t=Zn(),r=he(),n=ii(),i=ti(),o=function(){return this};return On=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function li(){if(In)return zn;In=1;var e=ye();return zn=function(t){return e(t)||null===t}}function si(){if(Hn)return Mn;Hn=1;var e=li(),t=String,r=TypeError;return Mn=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ai(){if(qn)return Un;qn=1;var e=tn(),t=S(),r=nt(),n=Dt(),i=we(),o=oi(),l=ri(),s=function(){if(Bn)return jn;Bn=1;var e=function(){if(Fn)return An;Fn=1;var e=fe(),t=_e();return An=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ye(),r=ge(),n=si();return jn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0)}(),a=ii(),u=Lt(),c=Jt(),d=ct(),h=ti(),f=ni(),m=n.PROPER,v=n.CONFIGURABLE,p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",y="values",C="entries",R=function(){return this};return Un=function(n,d,f,S,x,W,P){o(f,d,S);var L,k,_,N=function(e){if(e===x&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case w:case y:case C:return function(){return new f(this,e)}}return function(){return new f(this)}},E=d+" Iterator",O=!1,T=n.prototype,A=T[b]||T["@@iterator"]||x&&T[x],F=!g&&A||N(x),z="Array"===d&&T.entries||A;if(z&&(L=l(z.call(new n)))!==Object.prototype&&L.next&&(r||l(L)===p||(s?s(L,p):i(L[b])||c(L,b,R)),a(L,E,!0,!0),r&&(h[E]=R)),m&&x===y&&A&&A.name!==y&&(!r&&v?u(T,"name",y):(O=!0,F=function(){return t(A,this)})),x)if(k={values:N(y),keys:W?F:N(w),entries:N(C)},P)for(_ in k)(g||O||!(_ in T))&&c(T,_,k[_]);else e({target:d,proto:!0,forced:g||O},k);return r&&!P||T[b]===F||c(T,b,F,{name:x}),h[d]=F,k}}function ui(){return Vn?Dn:(Vn=1,Dn=function(e,t){return{value:e,done:t}})}function ci(){if(Gn)return $n;Gn=1;var e=be(),t=ei(),r=ti(),n=Xt(),i=Pt().f,o=ai(),l=ui(),s=nt(),a=y(),u="Array Iterator",c=n.set,d=n.getterFor(u);$n=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return $n}!function(){if(Xn)return Yn;Xn=1;var e=u(),t=cn?un:(cn=1,un={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(hn)return dn;hn=1;var e=ft()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return dn=t===Object.prototype?void 0:t}(),n=ci(),i=Lt(),o=ii(),l=ct()("iterator"),s=n.values,a=function(e,r){if(e){if(e[l]!==s)try{i(e,l,s)}catch(t){e[l]=s}if(o(e,r,!0),t[r])for(var a in n)if(e[a]!==n[a])try{i(e,a,n[a])}catch(t){e[a]=n[a]}}};for(var c in t)a(e[c]&&e[c].prototype,c);a(r,"DOMTokenList")}();var di,hi,fi,mi,vi,pi,gi,bi,wi,yi,Ci,Si,Ri,xi,Wi,Pi,Li,ki,_i,Ni,Ei,Oi,Ti,Ai,Fi,zi,Ii,Mi,Hi,ji,Bi,Ui,qi,Di,Vi,$i,Gi,Xi,Yi,Ji={},Ki={};function Qi(){if(hi)return di;hi=1;var e=fe(),t=vr(),r=on(),n=ge(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return di={codeAt:s(!1),charAt:s(!0)}}function Zi(){if(vi)return mi;vi=1;var e=w(),t=ct(),r=y(),n=nt(),i=t("iterator");return mi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function eo(){if(wi)return bi;wi=1;var e=function(){if(gi)return pi;gi=1;var e=me(),t=fe();return pi=function(r){if("Function"===e(r))return t(r)}}(),t=_e(),r=C(),n=e(e.bind);return bi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},bi}function to(){if(Ci)return yi;Ci=1;var e=Yt(),t=Pt();return yi=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}function ro(){if(Ri)return Si;Ri=1;var e=Se(),t=TypeError;return Si=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function no(){if(Li)return Pi;Li=1;var e=S(),t=Wt(),r=Ne();return Pi=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function io(){if(_i)return ki;_i=1;var e=Wt(),t=no();return ki=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function oo(){if(Ei)return Ni;Ei=1;var e=ct(),t=ti(),r=e("iterator"),n=Array.prototype;return Ni=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function lo(){if(Ti)return Oi;Ti=1;var e=fe(),t=w(),r=we(),n=nn(),i=Ce(),o=Vt(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,Oi=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function so(){if(Fi)return Ai;Fi=1;var e=y(),t=Pt(),r=he();return Ai=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function ao(){if(Ii)return zi;Ii=1;var e=me();return zi=Array.isArray||function(t){return"Array"===e(t)}}function uo(){if(Bi)return ji;Bi=1;var e=nn(),t=Ne(),r=pe(),n=ti(),i=ct()("iterator");return ji=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function co(){if(qi)return Ui;qi=1;var e=S(),t=_e(),r=Wt(),n=ke(),i=uo(),o=TypeError;return Ui=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},Ui}function ho(){if(Vi)return Di;Vi=1;var e=eo(),t=S(),r=st(),n=io(),i=oo(),o=lo(),l=br(),s=so(),a=function(){if(Hi)return Mi;Hi=1;var e=y(),t=ao(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return Mi=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t}}(),u=co(),c=uo(),d=Array;return Di=function(h){var f=r(h),m=o(this),v=arguments.length,p=v>1?arguments[1]:void 0,g=void 0!==p;g&&(p=e(p,v>2?arguments[2]:void 0));var b,w,y,C,S,R,x=c(f),W=0;if(!x||this===d&&i(x))for(b=l(f),w=m?new this(b):d(b);b>W;W++)R=g?p(f[W],W):f[W],s(w,W,R);else for(w=m?new this:[],S=(C=u(f,x)).next;!(y=t(S,C)).done;W++)R=g?n(C,p,[y.value,W],!0):y.value,s(w,W,R);return a(w,W),w},Di}function fo(){if(Yi)return Xi;Yi=1;var e=TypeError;return Xi=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var mo,vo,po,go,bo,wo,yo,Co,So,Ro={};function xo(){if(po)return vo;po=1;var e=u(),t=y(),r=Object.getOwnPropertyDescriptor;return vo=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function Wo(){if(bo)return go;bo=1;var e=Jt();return go=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function Po(){if(yo)return wo;yo=1,ci(),function(){if(mo)return Ro;mo=1;var e=tn(),t=fe(),r=pr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=tn(),t=u(),r=xo(),n=Ce(),i=S(),o=fe(),l=y(),s=Zi(),a=Jt(),c=to(),d=Wo(),h=ii(),f=oi(),m=Xt(),v=ro(),p=we(),g=at(),b=eo(),w=nn(),C=Wt(),R=ye(),x=on(),W=Zn(),P=he(),L=co(),k=uo(),_=ui(),N=fo(),E=ct(),O=sn(),T=E("iterator"),A="URLSearchParams",F=A+"Iterator",z=m.set,I=m.getterFor(A),M=m.getterFor(F),H=r("fetch"),j=r("Request"),B=r("Headers"),U=j&&j.prototype,q=B&&B.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=o("".charAt),J=o([].join),K=o([].push),Q=o("".replace),Z=o([].shift),ee=o([].splice),te=o("".split),re=o("".slice),ne=o(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ae(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return de[e]},ve=function(e){return Q(V(e),ce,me)},pe=f(function(e,t){z(this,{type:F,target:I(e).entries,index:0,kind:t})},A,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,_(void 0,!0);var n=t[r];switch(e.kind){case"keys":return _(n.key,!1);case"values":return _(n.value,!1)}return _([n.key,n.value],!1)},!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:x(e)))};ge.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=k(e);if(c)for(r=(t=L(e,c)).next;!(n=i(r,t)).done;){if(l=(o=L(C(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:x(s.value),value:x(a.value)})}else for(var d in e)g(e,d)&&K(u,{key:d,value:x(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(Z(r)),value:ue(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,ve(e.key)+"="+ve(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var be=function(){v(this,Se);var e=z(this,new ge(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},Se=be.prototype;if(d(Se,{append:function(e,t){var r=I(this);N(arguments.length,2),K(r.entries,{key:x(e),value:x(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=I(this),r=N(arguments.length,1),n=t.entries,i=x(e),o=r<2?void 0:arguments[1],s=void 0===o?o:x(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=I(this).entries,r=N(arguments.length,1),n=x(e),i=r<2?void 0:arguments[1],o=void 0===i?i:x(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=I(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,s=x(e),a=x(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=I(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),a(Se,T,Se.entries,{name:"entries"}),a(Se,"toString",function(){return I(this).serialize()},{enumerable:!0}),l&&c(Se,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),h(be,A),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:be}),!s&&p(B)){var Re=o(q.has),xe=o(q.set),We=function(e){if(R(e)){var t,r=e.body;if(w(r)===A)return t=e.headers?new B(e.headers):new B,Re(t,"content-type")||xe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(e,{body:P(0,x(r)),headers:P(0,t)})}return e};if(p(H)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?We(arguments[1]):{})}}),p(j)){var Pe=function(e){return v(this,U),new j(e,arguments.length>1?We(arguments[1]):{})};U.constructor=Pe,Pe.prototype=U,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pe})}}return wo={URLSearchParams:be,getState:I}}So||(So=1,function(){if(Co)return Ji;Co=1,function(){if(fi)return Ki;fi=1;var e=Qi().charAt,t=on(),r=Xt(),n=ai(),i=ui(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=tn(),r=y(),n=Zi(),i=u(),o=eo(),l=fe(),s=Jt(),a=to(),c=ro(),d=at(),h=function(){if(Wi)return xi;Wi=1;var e=y(),t=fe(),r=S(),n=w(),i=Kn(),o=Qr(),l=de(),s=st(),a=ve(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return xi=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var v,p=a(arguments[h++]),g=f?d(i(p),f(p)):i(p),b=g.length,w=0;b>w;)v=g[w++],e&&!r(m,p,v)||(u[v]=p[v]);return u}:u,xi}(),f=ho(),m=ln(),v=Qi().codeAt,p=function(){if(Gi)return $i;Gi=1;var e=fe(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),v=function(e){return e+22+75*(e<26)},p=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,w=b;for(b&&d(r,"-");w<h;){var y=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<y&&(y=l);var C=w+1;if(y-f>s((t-m)/C))throw new o(i);for(m+=(y-f)*C,f=y,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,R=36;;){var x=R<=g?1:R>=g+26?26:R-g;if(S<x)break;var W=S-x,P=36-x;d(r,a(v(x+W%P))),S=s(W/P),R+=36}d(r,a(v(S))),g=p(m,C,w===b),m=0,w++}}m++,f++}return c(r,"")};return $i=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),g=on(),b=ii(),C=fo(),R=Po(),x=Xt(),W=x.set,P=x.getterFor("URL"),L=R.URLSearchParams,k=R.getState,_=i.URL,N=i.TypeError,E=i.parseInt,O=Math.floor,T=Math.pow,A=l("".charAt),F=l(/./.exec),z=l([].join),I=l(1.1.toString),M=l([].pop),H=l([].push),j=l("".replace),B=l([].shift),U=l("".split),q=l("".slice),D=l("".toLowerCase),V=l([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=O(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=I(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),he=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=v(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,A(e,0))&&(":"===(r=A(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===D(e)},ye=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},Re={},xe={},We={},Pe={},Le={},ke={},_e={},Ne={},Ee={},Oe={},Te={},Ae={},Fe={},ze={},Ie={},Me={},He={},je={},Be={},Ue=function(e,t,r){var n,i,o,l=g(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ue(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=k(new L)).bindURL(this),this.searchParams=o}};Ue.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",v=!1,p=!1,b=!1;for(t=g(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=Re;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=Re,c=0;continue}if(r&&(a.isSpecial()!==d(pe,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&pe[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ae:a.isSpecial()&&n&&n.scheme===a.scheme?u=xe:a.isSpecial()?u=ke:"/"===i[c+1]?(u=We,c++):(a.cannotBeABaseURL=!0,H(a.path,""),u=He)}break;case Re:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Be;break}u="file"===n.scheme?Ae:Pe;continue;case xe:if("/"!==o||"/"!==i[c+1]){u=Pe;continue}u=_e,c++;break;case We:if("/"===o){u=Ne;break}u=Me;continue;case Pe:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=Le;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be}break;case Le:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=_e;break;case ke:if(u=_e,"/"!==o||"/"!==A(h,c+1))continue;c++;break;case _e:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){v&&(h="%40"+h),v=!0,l=f(h);for(var w=0;w<l.length;w++){var y=l[w];if(":"!==y||b){var C=me(y,he);b?a.password+=C:a.username+=C}else b=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(v&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=Ee}else h+=o;break;case Ee:case Oe:if(r&&"file"===a.scheme){u=ze;continue}if(":"!==o||p){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=Ie,r)return;continue}"["===o?p=!0:"]"===o&&(p=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Te,r===Oe)return}break;case Te:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=E(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===pe[a.scheme]?null:S,h=""}if(r)return;u=Ie;continue}return X}h+=o;break;case Ae:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be;break;default:be(z(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=ze;break}n&&"file"===n.scheme&&!be(z(m(i,c),""))&&(ge(n.path[0],!0)?H(a.path,n.path[0]):a.host=n.host),u=Me;continue;case ze:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Me;else if(""===h){if(a.host="",r)return;u=Ie}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=Ie}continue}h+=o;break;case Ie:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Be;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(ye(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||H(a.path,"")):we(h)?"/"===o||"\\"===o&&a.isSpecial()||H(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=A(h,0)+":"),H(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)B(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Be)}else h+=me(o,ce);break;case He:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Be):o!==e&&(a.path[0]+=me(o,ae));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":me(o,ae)):(a.fragment="",u=Be);break;case Be:o!==e&&(a.fragment+=me(o,ue))}c++}},parseHost:function(e){var t,r,n;if("["===A(e,0)){if("]"!==A(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return A(e,d)};if(":"===h()){if(":"!==A(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+E(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=E(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=p(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=U(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===A(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=E(i,o)}H(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=T(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=me(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+z(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=g(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=g(e))?this.query=null:("?"===A(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=g(e))?("#"===A(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=C(arguments.length,1)>1?arguments[1]:void 0,i=W(t,new Ue(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return P(this)[e]()},set:t&&function(e){return P(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(De,"href",Ve("serialize","setHref")),a(De,"origin",Ve("getOrigin")),a(De,"protocol",Ve("getProtocol","setProtocol")),a(De,"username",Ve("getUsername","setUsername")),a(De,"password",Ve("getPassword","setPassword")),a(De,"host",Ve("getHost","setHost")),a(De,"hostname",Ve("getHostname","setHostname")),a(De,"port",Ve("getPort","setPort")),a(De,"pathname",Ve("getPathname","setPathname")),a(De,"search",Ve("getSearch","setSearch")),a(De,"searchParams",Ve("getSearchParams")),a(De,"hash",Ve("getHash","setHash"))),s(De,"toJSON",function(){return P(this).serialize()},{enumerable:!0}),s(De,"toString",function(){return P(this).serialize()},{enumerable:!0}),_){var $e=_.createObjectURL,Ge=_.revokeObjectURL;$e&&s(qe,"createObjectURL",o($e,_)),Ge&&s(qe,"revokeObjectURL",o(Ge,_))}b(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var Lo,ko,_o={};!function(){if(Lo)return _o;Lo=1;var e=tn(),t=S();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),ko||(ko=1,Po());var No,Eo,Oo,To,Ao,Fo,zo,Io,Mo,Ho,jo,Bo={};function Uo(){if(Eo)return No;Eo=1;var e=Wt();return No=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function qo(){if(Ho)return Mo;Ho=1;var e,t,r=S(),n=fe(),i=on(),o=Uo(),l=function(){if(To)return Oo;To=1;var e=w(),t=u().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Oo={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=lt(),a=Zn(),c=Xt().get,d=function(){if(Fo)return Ao;Fo=1;var e=w(),t=u().RegExp;return Ao=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),h=function(){if(Io)return zo;Io=1;var e=w(),t=u().RegExp;return zo=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,p=n("".charAt),g=n("".indexOf),b=n("".replace),y=n("".slice),C=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),R=l.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(C||x||R||d||h)&&(v=function(e){var t,n,l,s,u,d,h,w=this,S=c(w),W=i(e),P=S.raw;if(P)return P.lastIndex=w.lastIndex,t=r(v,P,W),w.lastIndex=P.lastIndex,t;var L=S.groups,k=R&&w.sticky,_=r(o,w),N=w.source,E=0,O=W;if(k&&(_=b(_,"y",""),-1===g(_,"g")&&(_+="g"),O=y(W,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==p(W,w.lastIndex-1))&&(N="(?: "+N+")",O=" "+O,E++),n=new RegExp("^(?:"+N+")",_)),x&&(n=new RegExp("^"+N+"$(?!\\s)",_)),C&&(l=w.lastIndex),s=r(m,k?n:w,O),k?s?(s.input=y(s.input,E),s[0]=y(s[0],E),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:C&&s&&(w.lastIndex=w.global?s.index+s[0].length:l),x&&s&&s.length>1&&r(f,s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s&&L)for(s.groups=d=a(null),u=0;u<L.length;u++)d[(h=L[u])[0]]=s[h[1]];return s}),Mo=v}function Do(){if(jo)return Bo;jo=1;var e=tn(),t=qo();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Bo}Do();var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el,tl,rl,nl,il,ol,ll={};function sl(){if(Jo)return Yo;Jo=1;var e=Qi().charAt;return Yo=function(t,r,n){return r+(n?e(t,r).length:1)}}function al(){if(Qo)return Ko;Qo=1;var e=fe(),t=st(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Ko=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,v=s;return void 0!==d&&(d=t(d),v=l),i(h,v,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}function ul(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function cl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(ol)return ll;ol=1;var e=function(){if($o)return Vo;$o=1;var e=C(),t=Function.prototype,r=t.apply,n=t.call;return Vo="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Vo}(),t=S(),r=fe(),n=function(){if(Xo)return Go;Xo=1,Do();var e=S(),t=Jt(),r=qo(),n=w(),i=ct(),o=Lt(),l=i("species"),s=RegExp.prototype;return Go=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var v=/./[h],p=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(v,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,p[0]),t(s,h,p[1])}d&&o(s[h],"sham",!0)}}(),i=w(),o=Wt(),l=we(),s=ye(),a=vr(),c=gr(),d=on(),h=ge(),f=sl(),m=Ne(),v=al(),p=function(){if(rl)return tl;rl=1;var e=S(),t=at(),r=Se(),n=function(){if(el)return Zo;el=1;var e=u(),t=w(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return Zo={correct:n}}(),i=Uo(),o=RegExp.prototype;return tl=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),g=function(){if(il)return nl;il=1;var e=S(),t=Wt(),r=we(),n=me(),i=qo(),o=TypeError;return nl=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")}}(),b=ct()("replace"),y=Math.max,R=Math.min,x=r([].concat),W=r([].push),P=r("".indexOf),L=r("".slice),k=function(e){return void 0===e?e:String(e)},_="$0"==="a".replace(/./,"$0"),N=!!/./[b]&&""===/./[b]("a","$0");n("replace",function(r,n,i){var u=N?"$":"$0";return[function(e,r){var i=h(this),o=s(e)?m(e,b):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var s=o(this),h=d(t);if("string"==typeof r&&-1===P(r,u)&&-1===P(r,"$<")){var m=i(n,s,h,r);if(m.done)return m.value}var b=l(r);b||(r=d(r));var w,C=d(p(s)),S=-1!==P(C,"g");S&&(w=-1!==P(C,"u"),s.lastIndex=0);for(var _,N=[];null!==(_=g(s,h))&&(W(N,_),S);)""===d(_[0])&&(s.lastIndex=f(h,c(s.lastIndex),w));for(var E="",O=0,T=0;T<N.length;T++){for(var A,F=d((_=N[T])[0]),z=y(R(a(_.index),h.length),0),I=[],M=1;M<_.length;M++)W(I,k(_[M]));var H=_.groups;if(b){var j=x([F],I,z,h);void 0!==H&&W(j,H),A=d(e(r,void 0,j))}else A=v(F,h,z,I,H,r);z>=O&&(E+=L(h,O,z)+A,O=z+F.length)}return E+L(h,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!_||N)}();var dl,hl={};!function(){if(dl)return hl;dl=1;var e=tn(),t=y(),r=u(),n=fe(),i=at(),o=we(),l=Se(),s=on(),a=to(),c=en(),d=r.Symbol,h=d&&d.prototype;if(t&&o(d)&&(!("description"in h)||void 0!==d().description)){var f={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};c(m,d),m.prototype=h,h.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),p=n(h.valueOf),g=n(h.toString),b=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),C=n("".slice);a(h,"description",{configurable:!0,get:function(){var e=p(this);if(i(f,e))return"";var t=g(e),r=v?C(t,7,-1):w(t,b,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:m})}}();const fl=Symbol("safe"),ml=Symbol("hover_in"),vl=Symbol("hover_out"),pl=Symbol("row_click"),gl=Symbol("preview_cell"),bl=Symbol("cell"),wl=Symbol("related_touch"),yl=Symbol("original_row_index"),Cl=Symbol("destroyed");class Sl extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new Sl({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[yl]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=Rl(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function Rl(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class xl extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function Wl(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const Pl={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Ll=document.createElement.bind(document);function kl(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function _l(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function Nl(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function El(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function Ol(e,t){const r=e._o.tableClassName,i=Ll("div");i.className=e.el.className;const o=Ll("div");o.className=r+"-header";const l=Ll("div");l.className=r+"-header-row";const s=Ll("div");s.className=r+"-header-cell";const a=Ll("div");a.textContent=t,s.appendChild(a),l.appendChild(s),o.appendChild(l),i.appendChild(o),n.setCssProps(i,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(i);const u=n.getElementWidth(s);return i.remove(),u}function Tl(e){const t=e._o,r=e._p;let i,o=0,l=0;r.table&&(o=r.table?r.table.scrollTop:0,l=r.table?r.table.scrollLeft:0,t.virtualTable&&(i=r.table.style.display,r.table.style.display="none"));let s=n.getElementWidth(e.el);r.table&&(t.virtualTable&&void 0!==i&&(r.table.style.display=i),r.table.scrollTop=o,r.table.scrollLeft=l,r.header&&(r.header.scrollLeft=l));const a=t.tableClassName,u=Ll("div");u.className=e.el.className,n.setCssProps(u,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const c=Ll("div");c.className="".concat(a,"-header"),u.appendChild(c);const d=Ll("div");d.index=null,d.vIndex=null,d.className="".concat(a,"-header-row"),c.appendChild(d);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=Ll("div");n.className="".concat(a,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(Ll("div")),d.appendChild(n)}document.body.appendChild(u),s-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(d);const h=d.querySelectorAll("div.".concat(a,"-header-cell"));for(const e of h){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){s-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+Nl(e);const n=e.columnName,i=r.columns.get(n);i&&(s-=i.arrowProposedWidth||0)}}return u.remove(),Math.max(0,s)}function Al(e){const t=e._p,r=e._o.tableClassName,i=r+"-row",o=r+"-cell",l=t.visibleColumns,s=l.length,a=Ll("div");a.className=i,a.style.float="left";let u=0;for(let e=0;e<s;e++){var c,d;const t=l[e],r=Ll("div");r.className=o,r.style.width=(null!==(c=t.actualWidth)&&void 0!==c?c:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Ll("div")),a.appendChild(r),u+=null!==(d=t.actualWidth)&&void 0!==d?d:0}const h=Ll("div");h.className=e.el.className,n.setCssProps(h,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Ll("div");f.className=r,h.appendChild(f);const m=Ll("div");m.className=r+"-body",m.style.width=u+1e4+"px",f.appendChild(m),m.appendChild(a),document.body.appendChild(h);const v=Ll("div");n.setCssProps(v,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(v);const p=parseFloat(getComputedStyle(v).borderWidth),g=Math.round(p)!==p;v.remove();let b=n.getElementWidth(a,!0,!0,!0);return b-=t.scrollbarWidth||0,g&&b++,h.remove(),b}function Fl(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function zl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class Il{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const Ml=document.createElement.bind(document);function Hl(e,t){var r,i,o;const l=e._o,s=Fl(e);let a=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!a)return null;a[bl]&&(a=a[bl]);let u=a.previousSibling;for(;u&&1!==u.nodeType;)u=u.previousSibling;const c=!u,d=t,h=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=d.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t,f=(h.pageX||h.clientX||0)-n.getElementOffset(a).left;if(s){var m,v,p;if(!c&&n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(m=null===(v=u)||void 0===v?void 0:v.columnName)&&void 0!==m?m:null;if(f<=l.resizeAreaWidth/2)return null!==(p=a.columnName)&&void 0!==p?p:null}else{var g,b,w;if(!c&&f<=l.resizeAreaWidth/2)return null!==(g=null===(b=u)||void 0===b?void 0:b.columnName)&&void 0!==g?g:null;if(n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(w=a.columnName)&&void 0!==w?w:null}return null}function jl(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Bl(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const i=e._o,o=e._p,l=Hl(e,t);if(l){const r=o.columns.get(l);if(!i.resizableColumns||!r||!r.resizable)return!1;const s=Fl(e);o.resizer&&o.resizer.remove(),o.resizer=Ml("div"),o.resizer.className=i.resizerClassName,n.setCssProps(o.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(o.resizer);const a=r.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=n.getElementOffset(a),f=n.getElementOffset(u);f.left+=parseFloat(c.borderLeftWidth)||0,f.top+=parseFloat(c.borderTopWidth)||0,h.left-=f.left,h.top-=f.top,h.top-=parseFloat(d.borderTopWidth)||0;const m=n.getElementWidth(o.resizer,!0,!0,!0);s?(h.left-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),h.left-=Math.ceil(m/2)):(h.left+=n.getElementWidth(a,!0,!0,!0),h.left+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),h.left-=Math.ceil(m/2)),n.setCssProps(o.resizer,{"z-index":"10",visibility:"visible",left:h.left+"px",top:h.top+"px",height:n.getElementHeight(e.el,!1,!1,!1)+"px"}),o.resizer.columnName=a.columnName;try{o.resizer.style.zIndex=""}catch(e){}o.eventsSink.add(document,"mousemove.colresize",t=>Ul(e,t)).add(document,"touchmove.colresize",t=>Ul(e,t)).add(document,"mouseup.colresize",t=>ql(e,t)).add(document,"touchend.colresize",t=>ql(e,t)),t.preventDefault()}}function Ul(e,t){var r,i,o;const l=e._p;if(!l.resizer)return;const s=l.columns.get(l.resizer.columnName);if(!s)return;const a=Fl(e),u=s.element,c=l.resizer.parentNode,d=getComputedStyle(c),h=getComputedStyle(u),f=n.getElementOffset(u),m=n.getElementOffset(c);m.left+=parseFloat(d.borderLeftWidth)||0,f.left-=m.left;const v=n.getElementWidth(l.resizer,!0,!0,!0),p="border-box"===h.boxSizing,g=t;let b=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=g.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-m.left,w=f.left;w-=Math.ceil(v/2),a?(w+=n.getElementWidth(u,!0,!0,!0),w-=s.ignoreMin?0:e._o.minColumnWidth,p||(w-=Math.ceil((parseFloat(h.borderLeftWidth)||0)/2),w-=Nl(u)),b>w&&(b=w)):(w+=s.ignoreMin?0:e._o.minColumnWidth,p||(w+=Math.ceil((parseFloat(h.borderRightWidth)||0)/2),w+=Nl(u)),b<w&&(b=w)),l.resizer.style.left=b+"px"}function ql(e,t){var r,i,o;const l=e._o,s=e._p;if(!s.resizer)return;s.eventsSink.remove(document,".colresize");const a=s.columns.get(s.resizer.columnName);if(!a)return s.resizer.remove(),void(s.resizer=null);const u=Fl(e),c=a.element,d=c.firstChild,h=s.resizer.parentNode,f=getComputedStyle(h),m=getComputedStyle(c),v=n.getElementOffset(c),p=n.getElementOffset(h);p.left+=parseFloat(f.borderLeftWidth)||0,v.left-=p.left;const g=n.getElementWidth(s.resizer,!0,!0,!0),b="border-box"===m.boxSizing,w=t;let y=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=w.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-p.left,C=v.left,S=0;if(C-=Math.ceil(g/2),u){if(!b){y+=Nl(c);const e=getComputedStyle(d||c);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=a.arrowProposedWidth||0}C+=n.getElementWidth(c,!0,!0,!0);const t=C-(a.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),S=C-y}else{if(!b){y-=Nl(c);const e=getComputedStyle(d||c);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=a.arrowProposedWidth||0}const t=C+(a.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),S=y-C}s.resizer.remove(),s.resizer=null;let R=S;if(2===a.widthMode){let t=Tl(e),r=0,n=0;for(let e=0;e<s.visibleColumns.length;e++){const i=s.visibleColumns[e];var x;i.name!==a.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&s.table&&(t=s.table.clientWidth),R=S/t,n>0){const e=R/((1-R)/r);r+=R,(r<1&&l.relativeWidthGrowsToFillWidth||r>1&&l.relativeWidthShrinksToFillWidth)&&(R=e)}R*=100,R+="%"}e.setColumnWidth(a.name,R)}function Dl(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Hl(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Vl(e,t){var r,i,o;const l=e._o,s=t,a=t,u=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=s.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:{pageX:a.pageX,pageY:a.pageY},c=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!c)return;const d=n.getElementOffset(c);d.width=n.getElementWidth(c,!0,!0,!0),d.height=n.getElementHeight(c,!0,!0,!0),e.emit("headercontextmenu",{columnName:c.columnName,pageX:u.pageX,pageY:u.pageY,bounds:d})}function $l(e,t){if(_l(t))return;if(Hl(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const Gl=Array.prototype.indexOf,Xl=document.createElement.bind(document);function Yl(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Jl(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function Kl(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}Zl(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Ql(e,t){const r=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Al(e);if(i.tbody.style.minWidth=o+"px",i.headerRow.style.minWidth=o+(i.scrollbarWidth||0)+"px",i.eventsSink.remove(i.table,"scroll"),r.width===Pl.AUTO)n.setElementWidth(i.table,n.getElementWidth(i.tbody,!0,!0,!0)),n.setElementWidth(e.el,n.getElementWidth(i.table,!0,!0,!0));else if(r.width===Pl.SCROLL){if(t){const t=i.table?i.table.scrollTop:0,r=i.table?i.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),i.table.scrollTop=t,i.table.scrollLeft=r,i.header&&(i.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,es(e)}(e);i.eventsSink.add(i.table,"scroll",r)}return e}function Zl(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=Fl(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;if(null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky){const r=n.stickyPos={direction:"start",absDirection:l?"right":"left",offset:a};e.style[r.absDirection]=a+"px",a+=t,m.length=0,f=[e],d.push(f)}else{const r=n.stickyPos={direction:"end",absDirection:l?"left":"right",offset:u};e.style[r.absDirection]=u+s+"px",u+=t,h.push([e,...m]),m.length=0}}else{var p;delete n.stickyPos,null===(p=f)||void 0===p||p.push(e),null==m||m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesStart=d,r.stickiesEnd=h,es(e)}function es(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesStart,n=t.stickiesEnd,i=t.stickiesSetStart,o=t.stickiesSetEnd,l=t.stickiesSetStart=new Set,s=t.stickiesSetEnd=new Set;if(null!=r&&r.length||null!=n&&n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=t.lastIsRtl,u=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],u=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const c=e.getBoundingClientRect(),d=t!==a;let h=!1;if(s&&u){const e=s.getBoundingClientRect(),r=u.getBoundingClientRect();h=t?a?c.right-o>r.left&&c.left+o<e.right:c.right-o>e.left&&c.left+o<r.right:a?c.left+o<e.right&&c.right-o>r.left:c.left+o<r.right&&c.right-o>e.left}e.classList.toggle(d?"is-sticky-left":"is-sticky-right",h),h&&r.add(Gl.call(i,e))}};u(r,!0,l),u(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,start:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,start:!1});if(i)for(const e of i)l.has(e)||u.push({index:e,start:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,start:!1});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const r of u){var d;null===(d=e[r.index])||void 0===d||d.classList.remove(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}for(const r of a){var h;null===(h=e[r.index])||void 0===h||h.classList.add(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"start");for(const e of s)t.isStickyColumns.set(e,"end")}function ts(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function rs(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,o=i.scopedSelectorAll(t.headerRow,">div.".concat(e,"-header-cell.sorted")),l=Array.prototype.slice.call(o,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of l){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of o)e.classList.remove("sorted","desc")}return e}function ns(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Xl("span");var s;return l.className="sort-arrow",o.element&&(o.element.className+=r?" sorted desc":" sorted",null===(s=o.element.firstChild)||void 0===s||s.insertBefore(l,o.element.firstChild.firstChild)),2!==o.widthMode&&i.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=l.scrollWidth+(parseFloat(getComputedStyle(l).marginRight)||0)+(parseFloat(getComputedStyle(l).marginLeft)||0)),!0}function is(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Bl(e,t)),t.addEventListener("mousemove",t=>Dl(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Vl(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[wl]=t.changedTouches[0],Bl(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{_l(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(jl(e),Vl(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),_l(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[wl]=i,$l(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[wl]=i,Dl(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);var i;o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>$l(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;null!=i&&i.contains(n.firstChild)||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t){var r;t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function os(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function ls(e,t){let r=os(t.width,t.ignoreMin?0:e.minColumnWidth),n={name:t.name,label:void 0===t.label?t.name:t.label,width:r.width,widthMode:r.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,dataPath:[],comparePath:[],order:0};const i=void 0===t.dataPath?[n.name]:t.dataPath;n.dataPath="string"==typeof i?i.split("."):i;const o=void 0===t.comparePath?n.dataPath:t.comparePath;return n.comparePath="string"==typeof o?o.split("."):o,n}function ss(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function as(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||Wl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function us(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[fl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const cs=Array.prototype.indexOf,ds=document.createElement.bind(document);function hs(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[bl];let o;try{o=Il.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&Il.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[gl],delete n[bl],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const fs=Object.prototype.hasOwnProperty;class ms{constructor(e){this.VERSION=ms.VERSION;const t=this._o={},r=this._p={eventsSink:new o,mitt:{all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var i;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Pl.NONE:e.width,t.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,t.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),t.height=e.height,this.setColumns(e.columns||[],!1);let l=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,n=t.length;e<n;e++){var s;let n=t[e];"string"==typeof n&&(n={column:n,descending:!1});let i=r.columns.get(n.column);i&&l.push({column:n.column,comparePath:i.comparePath||i.dataPath,descending:null!==(s=n.descending)&&void 0!==s&&s})}}r.rows=new Sl({sortColumn:l}),r.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,i=t.relatedTarget;i===r||r.contains(i)||r[gl]&&(i===r[gl]||r[gl].contains(i))||function(e,t){var r,i;const o=e._o,l=e._p,s=t.firstElementChild;if(!s)return;if(!(s.scrollWidth-s.clientWidth>1||s.scrollHeight-s.clientHeight>1))return;hs(e),l.abortCellPreview=!1;const a=t.parentElement;if(!a)return;const u=ds("div");u.innerHTML=t.innerHTML,u.className=o.cellPreviewClassName;const c=t.classList.contains("".concat(o.tableClassName,"-header-cell"));c&&(u.classList.add("header"),t.classList.contains("sortable")&&u.classList.add("sortable"),u.draggable=!0,is(e,u));const d=getComputedStyle(t),h=getComputedStyle(s),f="right"===d.float,m=f?"right":"left",v=parseFloat(d.paddingLeft)||0,p=parseFloat(d.paddingRight)||0,g=parseFloat(d.paddingTop)||0,b=parseFloat(d.paddingBottom)||0;let w=s.scrollWidth+(t.clientWidth-s.offsetWidth);const y="border-box"===d.boxSizing;if(y?u.style.boxSizing="border-box":(w-=v+p,u.style.marginTop=(parseFloat(d.borderTopWidth)||0)+"px"),!l.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",l.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",l.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const C={"box-sizing":y?"border-box":"content-box",width:w,"min-height":Math.max(n.getElementHeight(t),/%/.test(d.minHeight)?0:parseFloat(d.minHeight)||0)+"px","padding-left":v,"padding-right":p,"padding-top":g,"padding-bottom":b,overflow:"hidden",position:"absolute","z-index":"-1",[m]:"0",top:"0",cursor:d.cursor};let S=d.backgroundColor;S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S=getComputedStyle(a).backgroundColor),S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S="#fff"),C["background-color"]=S,n.setCssProps(u,C),u.firstChild&&n.setCssProps(u.firstChild,{direction:h.direction,"white-space":h.whiteSpace,"min-height":h.minHeight,"line-height":h.lineHeight,font:h.font}),e.el.appendChild(u),c&&El(u),u.rowVIndex=a.vIndex;const R=u.rowIndex=a.index;u.columnName=null===(r=l.visibleColumns[cs.call(a.childNodes,t)])||void 0===r?void 0:r.name;try{const e=Il.saveSelection(t);e&&Il.restoreSelection(u,e)}catch(e){}if(e.emit("cellpreview",{el:u.firstElementChild,name:u.columnName,rowIndex:null!=R?R:null,rowData:null==R?null:l.rows[R],cell:t,cellEl:s}),l.abortCellPreview)return void u.remove();null!=R&&u.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:a.vIndex,rowIndex:R,rowEl:a,rowData:l.rows[R]})});const x=e.el,W=x===window?document:x,P=getComputedStyle(x),L=n.getElementOffset(t),k=n.getElementOffset(x);if(f){const e=window.innerWidth;L.right=e-(L.left+n.getElementWidth(t,!0,!0,!0)),k.right=e-(k.left+n.getElementWidth(x,!0,!0,!0))}L.left-=parseFloat(P.borderLeftWidth)||0,"right"===m&&void 0!==L.right&&void 0!==k.right&&(L.right-=parseFloat(P.borderRightWidth)||0),L.top-=parseFloat(P.borderTopWidth)||0,"left"===m?L.left+=parseFloat(d.borderLeftWidth)||0:void 0!==L.right&&(L.right+=parseFloat(d.borderRightWidth)||0),L.top+=parseFloat(d.borderTopWidth)||parseFloat(d.borderBottomWidth)||0,L.left-=k.left,"right"===m&&void 0!==L.right&&void 0!==k.right&&(L.right-=k.right),L.top-=k.top;const _=n.getElementWidth(x,!1,!1,!1)-n.getElementWidth(u,!0,!0,!0),N="left"===m?L.left:null!==(i=L.right)&&void 0!==i?i:0,E=N<0?0:N>_?_:N;"left"===m?L.left=E:L.right=E;const O=n.getElementHeight(t,!0,!0,!0),T=("scrollTop"in W?W.scrollTop:0)+n.getElementHeight(x,!0)-O;L.top>T&&(L.top=Math.max(0,T));const A={top:L.top+"px","z-index":9999};A[m]=("left"===m?L.left:L.right)+"px",n.setCssProps(u,A),u[bl]=t,l.cellPreviewCell=u,t[gl]=u,l._bindCellHoverOut(t),l._bindCellHoverOut(u),u.addEventListener("wheel",()=>{hs(e)})}(e,r)},i=t=>{let r=t.currentTarget[bl]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[gl]&&(n===r[gl]||r[gl].contains(n))||function(e){hs(e)}(e)};t._bindCellHoverIn=e=>{e[ml]||e.addEventListener("mouseover",e[ml]=r)},t._unbindCellHoverIn=e=>{e[ml]&&(e.removeEventListener("mouseover",e[ml]),e[ml]=null)},t._bindCellHoverOut=e=>{e[vl]||e.addEventListener("mouseout",e[vl]=i)},t._unbindCellHoverOut=e=>{e[vl]&&(e.removeEventListener("mouseout",e[vl]),e[vl]=null)}}(this)}on(e,t){return this[Cl]||this._p.mitt.on(e,t),this}once(e,t){if(this[Cl])return this;const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return this[Cl]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[Cl]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[Cl]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,Yl(this),null===(t=n.table)||void 0===t||t.remove(),null===(r=n.tbody)||void 0===r||r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)fs.call(this,e)&&(this[e]=null);return this[Cl]=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this[Cl]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var i;t.tableSkeletonNeedsRendering=!1,e.width===Pl.AUTO&&rs(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,s=t.table&&t.table.parentNode?r.getScrollHorz(t.table):NaN;!function(e){var t;const r=e._p,i=e._o;null===(t=r.virtualListHelper)||void 0===t||t.destroy(),r.virtualListHelper=null,r.table&&i.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Yl(e),r.currentTouchId=null,r.header&&r.header.remove();const o=i.tableClassName,l=Xl("div"),s=Xl("div");l.className="".concat(o,"-header"),s.className="".concat(o,"-header-row"),r.header=l,r.headerRow=s,l.appendChild(s),e.el.prepend(l),kl(e.el),i.width===Pl.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!i.height&&i.virtualTable&&(i.height=n.getElementHeight(e.el,!0))}(this),function(e){const t=e._p,r=e._o,i=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Xl("div"),t=e.appendChild(Xl("div")),r=t.appendChild(Xl("div"));return e.className="".concat(i,"-row"),t.className="".concat(i,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},o=Xl("div");o.className=e.el.className,n.setCssProps(o,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const l=Xl("div");l.className=i,o.appendChild(l);const s=Xl("div");s.className="".concat(i,"-body"),s.style.width="99999px",l.appendChild(s),document.body.appendChild(o);const a=r(),u=r(),c=r();s.appendChild(a),s.appendChild(u),s.appendChild(c),t.virtualRowHeight=n.getElementHeight(u,!0,!0,!0),o.remove()}if(!t.table){var o;const s=document.createDocumentFragment(),a=Xl("div");a.className=i,r.virtualTable&&(a.className+=" virtual");const u=getComputedStyle(a);let c=(null!==(o=r.height)&&void 0!==o?o:0)-n.getElementHeight(t.header,!0,!0,!0);"border-box"!==u.boxSizing&&(c-=parseFloat(u.borderTopWidth)||0,c-=parseFloat(u.borderBottomWidth)||0,c-=parseFloat(u.paddingTop)||0,c-=parseFloat(u.paddingBottom)||0),n.setCssProps(a,{height:r.height?c+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Pl.SCROLL?"auto":"hidden"}),s.appendChild(a);const d=Xl("div");d.className=r.tableClassName+"-body",d.style.minHeight="1px",t.table=a,t.tbody=d,kl(d),kl(a),a.appendChild(d),e.el.appendChild(s),function(e){var t;const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",s=i+"-row-alt",a=i+"-cell",u=i+"-sticky";let c=r.visibleColumns,d=c.length;r.notifyRendererOfColumnsConfig=()=>{c=r.visibleColumns,d=c.length;for(let e=0;e<d;e++){const t=c[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new l({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Xl("div"),onItemRender:(t,i)=>{const l=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+s);const v=l[i],p=h?v[yl]:i;t.vIndex=i,t.index=p;for(let e=0;e<d;e++){var g;const i=c[e],o=Xl("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=a,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+u,o.style.position="sticky",o.style[i.stickyPos.absDirection]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"start"===t&&!r.lastIsRtl||"end"===t&&r.lastIsRtl?o.classList.add("is-sticky-left"):("start"===t&&r.lastIsRtl||"end"===t&&!r.lastIsRtl)&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Xl("div")).innerHTML=us(n,v,i),t.appendChild(o)}t.addEventListener("click",t[pl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})},onItemUnrender:t=>{t[pl]&&t.removeEventListener("click",t[pl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&Kl(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Xl("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Xl("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,is(e,c),El(c)}}Zl(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(i=t.filteredRows)&&void 0!==i?i:t.rows).length),Jl(this),Kl(this,!0),Ql(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)ns(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(o)||(t.table.scrollTop=o),isNaN(s)||(r.setScrollHorz(t.table,s),r.setScrollHorz(t.header,s)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new xl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=ls(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),ss(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=ls(this._o,e);l.order=o?o.order:i.getMaxOrder()+1;for(let e=i.getMaxOrder(),t=l.order;e>=t;e--){let t=i.getByOrder(e);t&&t.order++}i.push(l),i.normalizeOrder(),n.visibleColumns=i.getVisibleColumns(),ss(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),ss(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(e,t){let r=this._p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(let e=0;e<r.element.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,o=this._p;let l,s,a=o.columns,u=r?o.visibleColumns:a.getColumns();if("string"==typeof e?l=a.get(e):"number"==typeof e&&(l=u[e]),"string"==typeof t?s=a.get(t):"number"==typeof t&&(s=u[t]),l&&s&&e!==t){let e=l.order,t=s.order,r=a.moveColumn(l,s).getVisibleColumns();if(o.visibleColumns.length!==r.length||o.visibleColumns.some((e,t)=>e!==r[t]))if(o.visibleColumns=r,ss(this),n.virtualTable)this.clearAndRender();else{var c,d;const r=i.scopedSelectorAll(o.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let l=e<t?t+1:t,s=e;r[0].parentNode.insertBefore(r[s],r[l]);let a=o.visibleColumns[e],u=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=o.visibleColumns[t],f=(null!==(d=h.actualWidthConsideringScrollbarWidth||h.actualWidth)&&void 0!==d?d:0)+"px",m=o.tbody.childNodes;for(let r=0,n=m.length;r<n;r++){let n=m[r];1===n.nodeType&&(n.insertBefore(n.childNodes[s],n.childNodes[l]),n.childNodes[t].firstChild.style.width=f,n.childNodes[e].firstChild.style.width=u)}}this.emit("movecolumn",{name:l.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),ss(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=os(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=zl(r);r.width=n.width,r.widthMode=n.mode;let t=zl(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?zl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:zl(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){const e=this._p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t}setSortableColumns(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=i.scopedSelectorAll(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn;if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,comparePath:o.comparePath||o.dataPath,descending:!!t})}else l.length=0;rs(this);for(let e=0;e<l.length;e++)ns(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),i.virtualListHelper&&i.virtualListHelper.invalidate().render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?cl(e):e;t[fl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?cl(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||Wl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return us(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?us(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():as(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Jl(this),Kl(this),this.render(),Ql(this,!1)):i.tbody&&(this.render(),Kl(this),Ql(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(as(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Jl(this),Kl(this),this.render(),Ql(this,!1)):(this.render(),Kl(this),Ql(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(e){let t=this._p;if(e<0||e>t.rows.length-1)return null;let r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():as(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Tl(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],c=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){let i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=Ol(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(a=n.notifyRendererOfColumnsConfig)||void 0===a||a.call(n),t){let e=Al(this);s<e&&Ql(this,!1);for(let e=0;e<u.length;e++)ts(this,u[e]);s>e&&Ql(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let i=n.getElementHeight(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return i!==e.height&&(e.height=i,t.tbody&&(t.tbody.style.height=Math.max(e.height-n.getElementHeight(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return hs(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return jl(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(e){let t=this._p;if(t.workerListeners)for(let r=0;r<t.workerListeners.length;r++)t.workerListeners[r].worker===e&&(e.removeEventListener("message",t.workerListeners[r].listener,!1),t.workerListeners.splice(r,1),r--);return this}}ms.VERSION="@@VERSION",ms.Width=Pl,module.exports=ms;
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=lib.cjs.min.js.map
|