jquery.dgtable 2.0.34 → 2.0.38
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/README.md +17 -17
- package/dist/lib.cjs.js +217 -611
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +1 -1
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +217 -611
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +1 -1
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +7735 -7853
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +1 -1
- package/dist/lib.umd.min.js.map +1 -1
- package/package.json +11 -11
package/dist/lib.umd.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTableJQuery=t(e.jQuery)}(this,function(e){"use strict";var t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function o(){if(r)return t;r=1;var e=function(e){return e&&e.Math===Math&&e};return t=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var l,s,a,u,c,d,h,f,m={};function p(){return s?l:(s=1,l=function(e){try{return!!e()}catch(e){return!0}})}function v(){if(u)return a;u=1;var e=p();return a=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g(){if(d)return c;d=1;var e=p();return c=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function b(){if(f)return h;f=1;var e=g(),t=Function.prototype.call;return h=e?t.bind(t):function(){return t.apply(t,arguments)},h}var y,C,w,S,x,R,W,_,I,P,k,E,N,L,T,A,F,O,M,H,z,j,U,B,D,q,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le={};function se(){if(y)return le;y=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return le.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,le}function ae(){return w?C:(w=1,C=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ue(){if(x)return S;x=1;var e=g(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return S=e?n:function(e){return function(){return r.apply(e,arguments)}},S}function ce(){if(W)return R;W=1;var e=ue(),t=e({}.toString),r=e("".slice);return R=function(e){return r(t(e),8,-1)}}function de(){if(I)return _;I=1;var e=ue(),t=p(),r=ce(),n=Object,i=e("".split);return _=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function he(){return k?P:(k=1,P=function(e){return null==e})}function fe(){if(N)return E;N=1;var e=he(),t=TypeError;return E=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function me(){if(T)return L;T=1;var e=de(),t=fe();return L=function(r){return e(t(r))}}function pe(){if(F)return A;F=1;var e="object"==typeof document&&document.all;return A=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ve(){if(M)return O;M=1;var e=pe();return O=function(t){return"object"==typeof t?null!==t:e(t)}}function ge(){if(z)return H;z=1;var e=o(),t=pe();return H=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},H}function be(){if(U)return j;U=1;var e=ue();return j=e({}.isPrototypeOf)}function ye(){if(D)return B;D=1;var e=o().navigator,t=e&&e.userAgent;return B=t?String(t):""}function Ce(){if(V)return q;V=1;var e,t,r=o(),n=ye(),i=r.process,l=r.Deno,s=i&&i.versions||l&&l.version,a=s&&s.v8;return a&&(t=(e=a.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]),q=t}function we(){if(G)return $;G=1;var e=Ce(),t=p(),r=o().String;return $=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Se(){if(Y)return X;Y=1;var e=we();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function xe(){if(K)return J;K=1;var e=ge(),t=pe(),r=be(),n=Se(),i=Object;return J=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function Re(){if(Z)return Q;Z=1;var e=String;return Q=function(t){try{return e(t)}catch(e){return"Object"}}}function We(){if(te)return ee;te=1;var e=pe(),t=Re(),r=TypeError;return ee=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function _e(){if(ne)return re;ne=1;var e=We(),t=he();return re=function(r,n){var i=r[n];return t(i)?void 0:e(i)},re}function Ie(){if(oe)return ie;oe=1;var e=b(),t=pe(),r=ve(),n=TypeError;return ie=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 Pe,ke,Ee,Ne,Le,Te,Ae,Fe,Oe,Me,He,ze,je,Ue,Be,De,qe,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe={exports:{}};function Ze(){return ke?Pe:(ke=1,Pe=!1)}function et(){if(Ne)return Ee;Ne=1;var e=o(),t=Object.defineProperty;return Ee=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function tt(){if(Le)return Qe.exports;Le=1;var e=Ze(),t=o(),r=et(),n="__core-js_shared__",i=Qe.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"}),Qe.exports}function rt(){if(Ae)return Te;Ae=1;var e=tt();return Te=function(t,r){return e[t]||(e[t]=r||{})}}function nt(){if(Oe)return Fe;Oe=1;var e=fe(),t=Object;return Fe=function(r){return t(e(r))}}function it(){if(He)return Me;He=1;var e=ue(),t=nt(),r=e({}.hasOwnProperty);return Me=Object.hasOwn||function(e,n){return r(t(e),n)}}function ot(){if(je)return ze;je=1;var e=ue(),t=0,r=Math.random(),n=e(1.1.toString);return ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function lt(){if(Be)return Ue;Be=1;var e=o(),t=rt(),r=it(),n=ot(),i=we(),l=Se(),s=e.Symbol,a=t("wks"),u=l?s.for||s:s&&s.withoutSetter||n;return Ue=function(e){return r(a,e)||(a[e]=i&&r(s,e)?s[e]:u("Symbol."+e)),a[e]}}function st(){if(qe)return De;qe=1;var e=b(),t=ve(),r=xe(),n=_e(),i=Ie(),o=lt(),l=TypeError,s=o("toPrimitive");return De=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 at(){if($e)return Ve;$e=1;var e=st(),t=xe();return Ve=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ut(){if(Xe)return Ge;Xe=1;var e=o(),t=ve(),r=e.document,n=t(r)&&t(r.createElement);return Ge=function(e){return n?r.createElement(e):{}}}function ct(){if(Je)return Ye;Je=1;var e=v(),t=p(),r=ut();return Ye=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function dt(){if(Ke)return m;Ke=1;var e=v(),t=b(),r=se(),n=ae(),i=me(),o=at(),l=it(),s=ct(),a=Object.getOwnPropertyDescriptor;return m.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])},m}var ht,ft,mt,pt,vt,gt,bt,yt={};function Ct(){if(ft)return ht;ft=1;var e=v(),t=p();return ht=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function wt(){if(pt)return mt;pt=1;var e=ve(),t=String,r=TypeError;return mt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function St(){if(vt)return yt;vt=1;var e=v(),t=ct(),r=Ct(),n=wt(),i=at(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return yt.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},yt}function xt(){if(bt)return gt;bt=1;var e=v(),t=St(),r=ae();return gt=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var Rt,Wt,_t,It,Pt,kt,Et,Nt,Lt,Tt,At,Ft,Ot,Mt,Ht,zt={exports:{}};function jt(){if(Wt)return Rt;Wt=1;var e=v(),t=it(),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 Rt={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Ut(){if(It)return _t;It=1;var e=ue(),t=pe(),r=tt(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),_t=r.inspectSource}function Bt(){if(Nt)return Et;Nt=1;var e=rt(),t=ot(),r=e("keys");return Et=function(e){return r[e]||(r[e]=t(e))}}function Dt(){return Tt?Lt:(Tt=1,Lt={})}function qt(){if(Ft)return At;Ft=1;var e,t,r,n=function(){if(kt)return Pt;kt=1;var e=o(),t=pe(),r=e.WeakMap;return Pt=t(r)&&/native code/.test(String(r))}(),i=o(),l=ve(),s=xt(),a=it(),u=tt(),c=Bt(),d=Dt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||u.state){var p=u.state||(u.state=new m);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(h);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var v=c("state");d[v]=!0,e=function(e,t){if(a(e,v))throw new f(h);return t.facade=e,s(e,v,t),t},t=function(e){return a(e,v)?e[v]:{}},r=function(e){return a(e,v)}}return At={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(!l(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Vt(){if(Ot)return zt.exports;Ot=1;var e=ue(),t=p(),r=pe(),n=it(),i=v(),o=jt().CONFIGURABLE,l=Ut(),s=qt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),g=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),y=zt.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),g&&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(b,"string"==typeof t?t:"")),e};return Function.prototype.toString=y(function(){return r(this)&&u(this).source||l(this)},"toString"),zt.exports}function $t(){if(Ht)return Mt;Ht=1;var e=pe(),t=St(),r=Vt(),n=et();return Mt=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},Mt}var Gt,Xt,Yt,Jt,Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr={};function dr(){if(Jt)return Yt;Jt=1;var e=function(){if(Xt)return Gt;Xt=1;var e=Math.ceil,t=Math.floor;return Gt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Gt}();return Yt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function hr(){if(Qt)return Kt;Qt=1;var e=dr(),t=Math.max,r=Math.min;return Kt=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function fr(){if(er)return Zt;er=1;var e=dr(),t=Math.min;return Zt=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function mr(){if(rr)return tr;rr=1;var e=fr();return tr=function(t){return e(t.length)}}function pr(){if(lr)return or;lr=1;var e=ue(),t=it(),r=me(),n=function(){if(ir)return nr;ir=1;var e=me(),t=hr(),r=mr(),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 nr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Dt(),o=e([].push);return or=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},or}function vr(){return ar?sr:(ar=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var gr,br,yr,Cr,wr,Sr,xr,Rr,Wr,_r,Ir,Pr,kr,Er,Nr,Lr,Tr,Ar,Fr={};function Or(){return gr||(gr=1,Fr.f=Object.getOwnPropertySymbols),Fr}function Mr(){if(yr)return br;yr=1;var e=ge(),t=ue(),r=function(){if(ur)return cr;ur=1;var e=pr(),t=vr().concat("length","prototype");return cr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},cr}(),n=Or(),i=wt(),o=t([].concat);return br=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function Hr(){if(wr)return Cr;wr=1;var e=it(),t=Mr(),r=dt(),n=St();return Cr=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 zr(){if(Wr)return Rr;Wr=1;var e=o(),t=dt().f,r=xt(),n=$t(),i=et(),l=Hr(),s=function(){if(xr)return Sr;xr=1;var e=p(),t=pe(),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 Sr=n}();return Rr=function(o,a){var u,c,d,h,f,m=o.target,p=o.global,v=o.stat;if(u=p?e:v?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=o.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!s(p?c:m+(v?".":"#")+c,o.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(o.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,o)}}}function jr(){if(kr)return Pr;kr=1;var e=function(){if(Ir)return _r;Ir=1;var e={};return e[lt()("toStringTag")]="z",_r="[object z]"===String(e)}(),t=pe(),r=ce(),n=lt()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Pr=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},Pr}function Ur(){if(Nr)return Er;Nr=1;var e=jr(),t=String;return Er=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Br(){if(Tr)return Lr;Tr=1;var e=Vt(),t=St();return Lr=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(){if(Ar)return i;Ar=1;var e=zr(),t=v(),r=o(),n=ue(),l=it(),s=pe(),a=be(),u=Ur(),c=Br(),d=Hr(),h=r.Symbol,f=h&&h.prototype;if(t&&s(h)&&(!("description"in f)||void 0!==h().description)){var m={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=a(f,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};d(p,h),p.prototype=f,f.constructor=p;var g="Symbol(description detection)"===String(h("description detection")),b=n(f.valueOf),y=n(f.toString),C=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),S=n("".slice);c(f,"description",{configurable:!0,get:function(){var e=b(this);if(l(m,e))return"";var t=y(e),r=g?S(t,7,-1):w(t,C,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var Dr,qr,Vr,$r,Gr,Xr,Yr,Jr,Kr,Qr,Zr,en,tn,rn,nn,on={};function ln(){if(qr)return Dr;qr=1;var e=Re(),t=TypeError;return Dr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},Dr}function sn(){if($r)return Vr;$r=1;var e=ue();return Vr=e([].slice)}function an(){if(Xr)return Gr;Xr=1;var e=sn(),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,p=0;m<h||p<f;)n[m+p]=m<h&&p<f?i(c[m],d[p])<=0?c[m++]:d[p++]:m<h?c[m++]:d[p++];return n};return Gr=r}function un(){if(Jr)return Yr;Jr=1;var e=p();return Yr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(nn)return on;nn=1;var e=zr(),t=ue(),r=We(),n=nt(),i=mr(),o=ln(),l=Ur(),s=p(),a=an(),u=un(),c=function(){if(Qr)return Kr;Qr=1;var e=ye().match(/firefox\/(\d+)/i);return Kr=!!e&&+e[1]}(),d=function(){if(en)return Zr;en=1;var e=ye();return Zr=/MSIE|Trident/.test(e)}(),h=Ce(),f=function(){if(rn)return tn;rn=1;var e=ye().match(/AppleWebKit\/(\d+)\./);return tn=!!e&&+e[1]}(),m=[],v=t(m.sort),g=t(m.push),b=s(function(){m.sort(void 0)}),y=s(function(){m.sort(null)}),C=u("sort"),w=!s(function(){if(h)return h<70;if(!(c&&c>3)){if(d)return!0;if(f)return f<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++)m.push({k:t+n,v:r})}for(m.sort(function(e,t){return t.v-e.v}),n=0;n<m.length;n++)t=m[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!C||!w},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(w)return void 0===e?v(t):v(t,e);var s,u,c=[],d=i(t);for(u=0;u<d;u++)u in t&&g(c,t[u]);for(a(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),u=0;u<s;)t[u]=c[u++];for(;u<d;)o(t,u++);return t}})}();var cn,dn,hn,fn,mn={};function pn(){if(dn)return cn;dn=1;var e=wt();return cn=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}}var vn,gn,bn,yn,Cn,wn,Sn,xn,Rn,Wn,_n,In,Pn,kn,En={};function Nn(){if(gn)return vn;gn=1;var e=pr(),t=vr();return vn=Object.keys||function(r){return e(r,t)},vn}function Ln(){if(Cn)return yn;Cn=1;var e=ge();return yn=e("document","documentElement")}function Tn(){if(Sn)return wn;Sn=1;var e,t=wt(),r=function(){if(bn)return En;bn=1;var e=v(),t=Ct(),r=St(),n=wt(),i=me(),o=Nn();return En.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},En}(),n=vr(),i=Dt(),o=Ln(),l=ut(),s=Bt(),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,wn=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)},wn}function An(){if(Pn)return In;Pn=1;var e,t,r=b(),n=ue(),i=Ur(),l=pn(),s=function(){if(fn)return hn;fn=1;var e=p(),t=o().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 hn={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=rt(),u=Tn(),c=qt().get,d=function(){if(Rn)return xn;Rn=1;var e=p(),t=o().RegExp;return xn=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),xn}(),h=function(){if(_n)return Wn;_n=1;var e=p(),t=o().RegExp;return Wn=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Wn}(),f=a("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,g=n("".charAt),y=n("".indexOf),C=n("".replace),w=n("".slice),S=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),x=s.BROKEN_CARET,R=void 0!==/()??/.exec("")[1];return(S||R||x||d||h)&&(v=function(e){var t,n,o,s,a,d,h,p=this,b=c(p),W=i(e),_=b.raw;if(_)return _.lastIndex=p.lastIndex,t=r(v,_,W),p.lastIndex=_.lastIndex,t;var I=b.groups,P=x&&p.sticky,k=r(l,p),E=p.source,N=0,L=W;if(P&&(k=C(k,"y",""),-1===y(k,"g")&&(k+="g"),L=w(W,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(W,p.lastIndex-1))&&(E="(?: "+E+")",L=" "+L,N++),n=new RegExp("^(?:"+E+")",k)),R&&(n=new RegExp("^"+E+"$(?!\\s)",k)),S&&(o=p.lastIndex),s=r(m,P?n:p,L),P?s?(s.input=w(s.input,N),s[0]=w(s[0],N),s.index=p.lastIndex,p.lastIndex+=s[0].length):p.lastIndex=0:S&&s&&(p.lastIndex=p.global?s.index+s[0].length:o),R&&s&&s.length>1&&r(f,s[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(s[a]=void 0)}),s&&I)for(s.groups=d=u(null),a=0;a<I.length;a++)d[(h=I[a])[0]]=s[h[1]];return s}),In=v}function Fn(){if(kn)return mn;kn=1;var e=zr(),t=An();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),mn}Fn();var On,Mn,Hn,zn,jn,Un,Bn,Dn,qn,Vn,$n,Gn,Xn,Yn,Jn,Kn,Qn,Zn={};function ei(){if(Un)return jn;Un=1;var e=ue(),t=dr(),r=Ur(),n=fe(),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 jn={codeAt:s(!1),charAt:s(!0)}}function ti(){if(Dn)return Bn;Dn=1;var e=ei().charAt;return Bn=function(t,r,n){return r+(n?e(t,r).length:1)},Bn}function ri(){if(Vn)return qn;Vn=1;var e=ue(),t=nt(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return qn=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,p=s;return void 0!==d&&(d=t(d),p=l),i(h,p,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})},qn}!function(){if(Qn)return Zn;Qn=1;var e=function(){if(Mn)return On;Mn=1;var e=g(),t=Function.prototype,r=t.apply,n=t.call;return On="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),On}(),t=b(),r=ue(),n=function(){if(zn)return Hn;zn=1,Fn();var e=b(),t=$t(),r=An(),n=p(),i=lt(),o=xt(),l=i("species"),s=RegExp.prototype;return Hn=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 p=/./[h],v=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(p,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,v[0]),t(s,h,v[1])}d&&o(s[h],"sham",!0)},Hn}(),i=p(),l=wt(),s=pe(),a=ve(),u=dr(),c=fr(),d=Ur(),h=fe(),f=ti(),m=_e(),v=ri(),y=function(){if(Yn)return Xn;Yn=1;var e=b(),t=it(),r=be(),n=function(){if(Gn)return $n;Gn=1;var e=o(),t=p(),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 $n={correct:n}}(),i=pn(),l=RegExp.prototype;return Xn=n.correct?function(e){return e.flags}:function(o){return n.correct||!r(l,o)||t(o,"flags")?o.flags:e(i,o)}}(),C=function(){if(Kn)return Jn;Kn=1;var e=b(),t=wt(),r=pe(),n=ce(),i=An(),o=TypeError;return Jn=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")},Jn}(),w=lt()("replace"),S=Math.max,x=Math.min,R=r([].concat),W=r([].push),_=r("".indexOf),I=r("".slice),P=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),E=!!/./[w]&&""===/./[w]("a","$0"),N=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});n("replace",function(r,n,i){var o=E?"$":"$0";return[function(e,r){var i=h(this),o=a(e)?m(e,w):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var a=l(this),h=d(t);if("string"==typeof r&&-1===_(r,o)&&-1===_(r,"$<")){var m=i(n,a,h,r);if(m.done)return m.value}var p=s(r);p||(r=d(r));var g,b=d(y(a)),w=-1!==_(b,"g");w&&(g=-1!==_(b,"u"),a.lastIndex=0);for(var k,E=[];null!==(k=C(a,h))&&(W(E,k),w);)""===d(k[0])&&(a.lastIndex=f(h,c(a.lastIndex),g));for(var N="",L=0,T=0;T<E.length;T++){for(var A,F=d((k=E[T])[0]),O=S(x(u(k.index),h.length),0),M=[],H=1;H<k.length;H++)W(M,P(k[H]));var z=k.groups;if(p){var j=R([F],M,O,h);void 0!==z&&W(j,z),A=d(e(r,void 0,j))}else A=v(F,h,O,M,z,r);O>=L&&(N+=I(h,L,O)+A,L=O+F.length)}return N+I(h,L)}]},!N||!k||E)}();var ni,ii,oi,li,si,ai,ui,ci={};function di(){return ii?ni:(ii=1,ni="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(ui)return ci;ui=1;var e=zr(),t=function(){if(li)return oi;li=1;var e=ue(),t=fe(),r=Ur(),n=di(),i=e("".replace),o=RegExp("^["+n+"]+"),l=RegExp("(^|[^"+n+"])["+n+"]+$"),s=function(e){return function(n){var s=r(t(n));return 1&e&&(s=i(s,o,"")),2&e&&(s=i(s,l,"$1")),s}};return oi={start:s(1),end:s(2),trim:s(3)}}().trim,r=function(){if(ai)return si;ai=1;var e=jt().PROPER,t=p(),r=di();return si=function(n){return t(function(){return!!r[n]()||"
"!=="
"[n]()||e&&r[n].name!==n})}}();e({target:"String",proto:!0,forced:r("trim")},{trim:function(){return t(this)}})}();var hi,fi,mi,pi,vi,gi,bi,yi,Ci,wi,Si,xi,Ri,Wi,_i,Ii,Pi,ki,Ei,Ni,Li,Ti,Ai,Fi,Oi,Mi,Hi,zi,ji,Ui,Bi,Di,qi,Vi={};function $i(){if(gi)return vi;gi=1;var e=lt(),t=Tn(),r=St().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),vi=function(e){i[n][e]=!0}}function Gi(){return yi?bi:(yi=1,bi={})}function Xi(){if(xi)return Si;xi=1;var e=it(),t=pe(),r=nt(),n=Bt(),i=function(){if(wi)return Ci;wi=1;var e=p();return Ci=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ci}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Si=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},Si}function Yi(){if(Wi)return Ri;Wi=1;var e,t,r,n=p(),i=pe(),o=ve(),l=Tn(),s=Xi(),a=$t(),u=lt(),c=Ze(),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}),Ri={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Ji(){if(Ii)return _i;Ii=1;var e=St().f,t=it(),r=lt()("toStringTag");return _i=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function Ki(){if(ki)return Pi;ki=1;var e=Yi().IteratorPrototype,t=Tn(),r=ae(),n=Ji(),i=Gi(),o=function(){return this};return Pi=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 Qi(){if(Ti)return Li;Ti=1;var e=ve();return Li=function(t){return e(t)||null===t}}function Zi(){if(Fi)return Ai;Fi=1;var e=Qi(),t=String,r=TypeError;return Ai=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function eo(){if(zi)return Hi;zi=1;var e=zr(),t=b(),r=Ze(),n=jt(),i=pe(),o=Ki(),l=Xi(),s=function(){if(Mi)return Oi;Mi=1;var e=function(){if(Ni)return Ei;Ni=1;var e=ue(),t=We();return Ei=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ve(),r=fe(),n=Zi();return Oi=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),Oi}(),a=Ji(),u=xt(),c=$t(),d=lt(),h=Gi(),f=Yi(),m=n.PROPER,p=n.CONFIGURABLE,v=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,y=d("iterator"),C="keys",w="values",S="entries",x=function(){return this};return Hi=function(n,d,f,b,R,W,_){o(f,d,b);var I,P,k,E=function(e){if(e===R&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case C:case w:case S:return function(){return new f(this,e)}}return function(){return new f(this)}},N=d+" Iterator",L=!1,T=n.prototype,A=T[y]||T["@@iterator"]||R&&T[R],F=!g&&A||E(R),O="Array"===d&&T.entries||A;if(O&&(I=l(O.call(new n)))!==Object.prototype&&I.next&&(r||l(I)===v||(s?s(I,v):i(I[y])||c(I,y,x)),a(I,N,!0,!0),r&&(h[N]=x)),m&&R===w&&A&&A.name!==w&&(!r&&p?u(T,"name",w):(L=!0,F=function(){return t(A,this)})),R)if(P={values:E(w),keys:W?F:E(C),entries:E(S)},_)for(k in P)(g||L||!(k in T))&&c(T,k,P[k]);else e({target:d,proto:!0,forced:g||L},P);return r&&!_||T[y]===F||c(T,y,F,{name:R}),h[d]=F,P}}function to(){return Ui?ji:(Ui=1,ji=function(e,t){return{value:e,done:t}})}function ro(){if(Di)return Bi;Di=1;var e=me(),t=$i(),r=Gi(),n=qt(),i=St().f,o=eo(),l=to(),s=Ze(),a=v(),u="Array Iterator",c=n.set,d=n.getterFor(u);Bi=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 Bi}!function(){if(qi)return Vi;qi=1;var e=o(),t=fi?hi:(fi=1,hi={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(pi)return mi;pi=1;var e=ut()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return mi=t===Object.prototype?void 0:t}(),n=ro(),i=xt(),l=Ji(),s=lt()("iterator"),a=n.values,u=function(e,r){if(e){if(e[s]!==a)try{i(e,s,a)}catch(t){e[s]=a}if(l(e,r,!0),t[r])for(var o in n)if(e[o]!==n[o])try{i(e,o,n[o])}catch(t){e[o]=n[o]}}};for(var c in t)u(e[c]&&e[c].prototype,c);u(r,"DOMTokenList")}();var no,io,oo,lo,so,ao,uo,co,ho,fo,mo,po,vo,go,bo,yo,Co,wo,So,xo,Ro,Wo,_o,Io,Po,ko,Eo,No,Lo,To,Ao,Fo,Oo,Mo,Ho,zo={},jo={};function Uo(){if(oo)return io;oo=1;var e=p(),t=lt(),r=v(),n=Ze(),i=t("iterator");return io=!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 Bo(){if(uo)return ao;uo=1;var e=function(){if(so)return lo;so=1;var e=ce(),t=ue();return lo=function(r){if("Function"===e(r))return t(r)}}(),t=We(),r=g(),n=e(e.bind);return ao=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},ao}function Do(){if(ho)return co;ho=1;var e=be(),t=TypeError;return co=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function qo(){if(vo)return po;vo=1;var e=b(),t=wt(),r=_e();return po=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 Vo(){if(bo)return go;bo=1;var e=wt(),t=qo();return go=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function $o(){if(Co)return yo;Co=1;var e=lt(),t=Gi(),r=e("iterator"),n=Array.prototype;return yo=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Go(){if(So)return wo;So=1;var e=ue(),t=p(),r=pe(),n=jr(),i=ge(),o=Ut(),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,wo=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function Xo(){if(Ro)return xo;Ro=1;var e=v(),t=St(),r=ae();return xo=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function Yo(){if(_o)return Wo;_o=1;var e=ce();return Wo=Array.isArray||function(t){return"Array"===e(t)}}function Jo(){if(Eo)return ko;Eo=1;var e=jr(),t=_e(),r=he(),n=Gi(),i=lt()("iterator");return ko=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function Ko(){if(Lo)return No;Lo=1;var e=b(),t=We(),r=wt(),n=Re(),i=Jo(),o=TypeError;return No=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")},No}function Qo(){if(Ao)return To;Ao=1;var e=Bo(),t=b(),r=nt(),n=Vo(),i=$o(),o=Go(),l=mr(),s=Xo(),a=function(){if(Po)return Io;Po=1;var e=v(),t=Yo(),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 Io=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},Io}(),u=Ko(),c=Jo(),d=Array;return To=function(h){var f=r(h),m=o(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=e(v,p>2?arguments[2]:void 0));var b,y,C,w,S,x,R=c(f),W=0;if(!R||this===d&&i(R))for(b=l(f),y=m?new this(b):d(b);b>W;W++)x=g?v(f[W],W):f[W],s(y,W,x);else for(y=m?new this:[],S=(w=u(f,R)).next;!(C=t(S,w)).done;W++)x=g?n(w,v,[C.value,W],!0):C.value,s(y,W,x);return a(y,W),y},To}function Zo(){if(Ho)return Mo;Ho=1;var e=TypeError;return Mo=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var el,tl,rl,nl,il,ol,ll,sl,al,ul={};function cl(){if(rl)return tl;rl=1;var e=o(),t=v(),r=Object.getOwnPropertyDescriptor;return tl=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function dl(){if(il)return nl;il=1;var e=$t();return nl=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function hl(){if(ll)return ol;ll=1,ro(),function(){if(el)return ul;el=1;var e=zr(),t=ue(),r=hr(),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=zr(),t=o(),r=cl(),n=ge(),i=b(),l=ue(),s=v(),a=Uo(),u=$t(),c=Br(),d=dl(),h=Ji(),f=Ki(),m=qt(),p=Do(),g=pe(),y=it(),C=Bo(),w=jr(),S=wt(),x=ve(),R=Ur(),W=Tn(),_=ae(),I=Ko(),P=Jo(),k=to(),E=Zo(),N=lt(),L=an(),T=N("iterator"),A="URLSearchParams",F=A+"Iterator",O=m.set,M=m.getterFor(A),H=m.getterFor(F),z=r("fetch"),j=r("Request"),U=r("Headers"),B=j&&j.prototype,D=U&&U.prototype,q=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=l("".charAt),J=l([].join),K=l([].push),Q=l("".replace),Z=l([].shift),ee=l([].splice),te=l("".split),re=l("".slice),ne=l(/./.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},ce=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},de=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=ce(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},he=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return fe[e]},be=function(e){return Q(V(e),he,me)},ye=f(function(e,t){O(this,{type:F,target:M(e).entries,index:0,kind:t})},A,function(){var e=H(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,k(void 0,!0);var n=t[r];switch(e.kind){case"keys":return k(n.key,!1);case"values":return k(n.value,!1)}return k([n.key,n.value],!1)},!0),Ce=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:R(e)))};Ce.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=P(e);if(c)for(r=(t=I(e,c)).next;!(n=i(r,t)).done;){if(l=(o=I(S(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new q("Expected sequence with length 2");K(u,{key:R(s.value),value:R(a.value)})}else for(var d in e)y(e,d)&&K(u,{key:d,value:R(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:de(Z(r)),value:de(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,be(e.key)+"="+be(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var we=function(){p(this,Se);var e=O(this,new Ce(arguments.length>0?arguments[0]:void 0));s||(this.size=e.entries.length)},Se=we.prototype;if(d(Se,{append:function(e,t){var r=M(this);E(arguments.length,2),K(r.entries,{key:R(e),value:R(t)}),s||this.size++,r.updateURL()},delete:function(e){for(var t=M(this),r=E(arguments.length,1),n=t.entries,i=R(e),o=r<2?void 0:arguments[1],l=void 0===o?o:R(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==l&&u.value!==l)a++;else if(ee(n,a,1),void 0!==l)break}s||(this.size=n.length),t.updateURL()},get:function(e){var t=M(this).entries;E(arguments.length,1);for(var r=R(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=M(this).entries;E(arguments.length,1);for(var r=R(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=M(this).entries,r=E(arguments.length,1),n=R(e),i=r<2?void 0:arguments[1],o=void 0===i?i:R(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=M(this);E(arguments.length,1);for(var n,i=r.entries,o=!1,l=R(e),a=R(t),u=0;u<i.length;u++)(n=i[u]).key===l&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:l,value:a}),s||(this.size=i.length),r.updateURL()},sort:function(){var e=M(this);L(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=M(this).entries,n=C(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 ye(this,"keys")},values:function(){return new ye(this,"values")},entries:function(){return new ye(this,"entries")}},{enumerable:!0}),u(Se,T,Se.entries,{name:"entries"}),u(Se,"toString",function(){return M(this).serialize()},{enumerable:!0}),s&&c(Se,"size",{get:function(){return M(this).entries.length},configurable:!0,enumerable:!0}),h(we,A),e({global:!0,constructor:!0,forced:!a},{URLSearchParams:we}),!a&&g(U)){var xe=l(D.has),Re=l(D.set),We=function(e){if(x(e)){var t,r=e.body;if(w(r)===A)return t=e.headers?new U(e.headers):new U,xe(t,"content-type")||Re(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(e,{body:_(0,R(r)),headers:_(0,t)})}return e};if(g(z)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return z(e,arguments.length>1?We(arguments[1]):{})}}),g(j)){var _e=function(e){return p(this,B),new j(e,arguments.length>1?We(arguments[1]):{})};B.constructor=_e,_e.prototype=B,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:_e})}}return ol={URLSearchParams:we,getState:M}}al||(al=1,function(){if(sl)return zo;sl=1,function(){if(no)return jo;no=1;var e=ei().charAt,t=Ur(),r=qt(),n=eo(),i=to(),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=zr(),r=v(),n=Uo(),i=o(),l=Bo(),s=ue(),a=$t(),u=Br(),c=Do(),d=it(),h=function(){if(mo)return fo;mo=1;var e=v(),t=ue(),r=b(),n=p(),i=Nn(),o=Or(),l=se(),s=nt(),a=de(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return fo=!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 p,v=a(arguments[h++]),g=f?d(i(v),f(v)):i(v),b=g.length,y=0;b>y;)p=g[y++],e&&!r(m,v,p)||(u[p]=v[p]);return u}:u,fo}(),f=Qo(),m=sn(),g=ei().codeAt,y=function(){if(Oo)return Fo;Oo=1;var e=ue(),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),p=function(e){return e+22+75*(e<26)},v=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,y=b;for(b&&d(r,"-");y<h;){var C=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<C&&(C=l);var w=y+1;if(C-f>s((t-m)/w))throw new o(i);for(m+=(C-f)*w,f=C,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,x=36;;){var R=x<=g?1:x>=g+26?26:x-g;if(S<R)break;var W=S-R,_=36-R;d(r,a(p(R+W%_))),S=s(W/_),x+=36}d(r,a(p(S))),g=v(m,w,y===b),m=0,y++}}m++,f++}return c(r,"")};return Fo=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,".")}}(),C=Ur(),w=Ji(),S=Zo(),x=hl(),R=qt(),W=R.set,_=R.getterFor("URL"),I=x.URLSearchParams,P=x.getState,k=i.URL,E=i.TypeError,N=i.parseInt,L=Math.floor,T=Math.pow,A=s("".charAt),F=s(/./.exec),O=s([].join),M=s(1.1.toString),H=s([].pop),z=s([].push),j=s("".replace),U=s([].shift),B=s("".split),D=s("".slice),q=s("".toLowerCase),V=s([].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,ae=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=L(e/256);return O(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+=M(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ce={},he=h({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},he,{"#":1,"?":1,"{":1,"}":1}),me=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(e,t){var r=g(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},ve={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(D(e,0,2))&&(2===e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===q(e)},Ce=function(e){return".."===(e=q(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},Se={},xe={},Re={},We={},_e={},Ie={},Pe={},ke={},Ee={},Ne={},Le={},Te={},Ae={},Fe={},Oe={},Me={},He={},ze={},je={},Ue={},Be=function(e,t,r){var n,i,o,l=C(e);if(t){if(i=this.parse(l))throw new E(i);this.searchParams=null}else{if(void 0!==r&&(n=new Be(r,!0)),i=this.parse(l,null,n))throw new E(i);(o=P(new I)).bindURL(this),this.searchParams=o}};Be.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||we,c=0,h="",p=!1,v=!1,g=!1;for(t=C(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 we:if(!o||!F(Y,o)){if(r)return $;u=xe;continue}h+=q(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=q(o);else{if(":"!==o){if(r)return $;h="",u=xe,c=0;continue}if(r&&(a.isSpecial()!==d(ve,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&ve[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ae:a.isSpecial()&&n&&n.scheme===a.scheme?u=Re:a.isSpecial()?u=Pe:"/"===i[c+1]?(u=We,c++):(a.cannotBeABaseURL=!0,z(a.path,""),u=ze)}break;case xe: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=Ue;break}u="file"===n.scheme?Ae:_e;continue;case Re:if("/"!==o||"/"!==i[c+1]){u=_e;continue}u=ke,c++;break;case We:if("/"===o){u=Ee;break}u=He;continue;case _e: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=Ie;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=He;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=Ue}break;case Ie:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=He;continue}u=Ee}else u=ke;break;case Pe:if(u=ke,"/"!==o||"/"!==A(h,c+1))continue;c++;break;case ke:if("/"!==o&&"\\"!==o){u=Ee;continue}break;case Ee:if("@"===o){p&&(h="%40"+h),p=!0,l=f(h);for(var b=0;b<l.length;b++){var y=l[b];if(":"!==y||g){var w=pe(y,me);g?a.password+=w:a.username+=w}else g=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(p&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=Ne}else h+=o;break;case Ne:case Le:if(r&&"file"===a.scheme){u=Oe;continue}if(":"!==o||v){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=Me,r)return;continue}"["===o?v=!0:"]"===o&&(v=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Te,r===Le)return}break;case Te:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=N(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===ve[a.scheme]?null:S,h=""}if(r)return;u=Me;continue}return X}h+=o;break;case Ae:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=He;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=Ue;break;default:be(O(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=He;continue}}break;case Fe:if("/"===o||"\\"===o){u=Oe;break}n&&"file"===n.scheme&&!be(O(m(i,c),""))&&(ge(n.path[0],!0)?z(a.path,n.path[0]):a.host=n.host),u=He;continue;case Oe:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=He;else if(""===h){if(a.host="",r)return;u=Me}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=Me}continue}h+=o;break;case Me:if(a.isSpecial()){if(u=He,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=He,"/"!==o))continue}else a.fragment="",u=Ue;else a.query="",u=je;break;case He:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(Ce(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||z(a.path,"")):ye(h)?"/"===o||"\\"===o&&a.isSpecial()||z(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=A(h,0)+":"),z(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)U(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Ue)}else h+=pe(o,fe);break;case ze:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Ue):o!==e&&(a.path[0]+=pe(o,ce));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":pe(o,ce)):(a.fragment="",u=Ue);break;case Ue:o!==e&&(a.fragment+=pe(o,he))}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+N(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=N(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}(D(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=B(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=D(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=N(i,o)}z(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=H(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+=pe(r[n],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ve,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+=ae(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+O(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new E(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(C(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=f(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pe(t[r],me)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pe(t[r],me)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ne)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":C(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=C(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+O(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Me))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=C(e))?this.query=null:("?"===A(e,0)&&(e=D(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=C(e))?("#"===A(e,0)&&(e=D(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=c(this,qe),n=S(arguments.length,1)>1?arguments[1]:void 0,i=W(t,new Be(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())},qe=De.prototype,Ve=function(e,t){return{get:function(){return _(this)[e]()},set:t&&function(e){return _(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(u(qe,"href",Ve("serialize","setHref")),u(qe,"origin",Ve("getOrigin")),u(qe,"protocol",Ve("getProtocol","setProtocol")),u(qe,"username",Ve("getUsername","setUsername")),u(qe,"password",Ve("getPassword","setPassword")),u(qe,"host",Ve("getHost","setHost")),u(qe,"hostname",Ve("getHostname","setHostname")),u(qe,"port",Ve("getPort","setPort")),u(qe,"pathname",Ve("getPathname","setPathname")),u(qe,"search",Ve("getSearch","setSearch")),u(qe,"searchParams",Ve("getSearchParams")),u(qe,"hash",Ve("getHash","setHash"))),a(qe,"toJSON",function(){return _(this).serialize()},{enumerable:!0}),a(qe,"toString",function(){return _(this).serialize()},{enumerable:!0}),k){var $e=k.createObjectURL,Ge=k.revokeObjectURL;$e&&a(De,"createObjectURL",l($e,k)),Ge&&a(De,"revokeObjectURL",l(Ge,k))}w(De,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:De})}());var fl,ml,pl={};let vl;!function(){if(fl)return pl;fl=1;var e=zr(),t=b();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),ml||(ml=1,hl());const gl=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function bl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===vl&&(vl=gl()),!t)return e.scrollLeft;switch(vl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function yl(e,t,r){e.scrollLeft=function(e,t,r){return void 0===r&&(r="rtl"===getComputedStyle(e).direction),function(e,t,r){if(void 0===r&&(r="rtl"===getComputedStyle(e).direction),!0===r&&void 0===vl&&(vl=gl()),!r)return t;switch(vl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}(e,r?e.scrollWidth-e.clientWidth-t:t,r)}(e,t,r)}const Cl=function(e,t){for(let[r,n]of Object.entries(t))e.style[r]=null==n?"":String(n)},wl=function(e,t,r,n,i){return function(){let o,l,s,a,u=arguments.length<=0?void 0:arguments[0];if(e?(o=arguments.length<=1?void 0:arguments[1],l=!!(arguments.length<=2?void 0:arguments[2]),s=!!(arguments.length<=3?void 0:arguments[3]),a=!!(arguments.length<=4?void 0:arguments[4])):(l=!!(arguments.length<=1?void 0:arguments[1]),s=!!(arguments.length<=2?void 0:arguments[2]),a=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(r)];if(9===u.nodeType){const e=u.documentElement,t=u.body;return Math.max(t["scroll".concat(r)],e["scroll".concat(r)],t["offset".concat(r)],e["offset".concat(r)],e["client".concat(r)])}{let c,d,h=!1,f=!1;if(!e&&"getBoundingClientRect"in u&&(c=u.getBoundingClientRect()[t],h=!0,f=!0),(void 0===c||a||h!==l||f!==s)&&(d=e?getComputedStyle(u,o):getComputedStyle(u)),void 0===c){let e=d[t];"auto"===e?(c=u["client".concat(r)],h=!0):c=parseFloat(e),"border-box"===d.boxSizing&&(h=!0,f=!0)}if(l!==h){let e=parseFloat(d["padding-".concat(n)]||0)+parseFloat(d["padding-".concat(i)]||0);l?c+=e:c-=e}if(s!==f){let e=parseFloat(d["border-".concat(n,"-width")]||0)+parseFloat(d["border-".concat(i,"-width")]||0);s?c+=e:c-=e}return c<0&&(c=0),a&&(c+=parseFloat(d["margin-".concat(n)]||0)+parseFloat(d["margin-".concat(i)]||0)),c}}},Sl=wl(!1,"width","Width","left","right"),xl=wl(!1,"height","Height","top","bottom"),Rl=(Wl="left",_l="right",function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e===window)return;if(9===e.nodeType)return;const o=getComputedStyle(e);let l=!1;if("border-box"===o.boxSizing&&(l=!0),r=!!r,n=!!n,i=!!i,i&&(t-=(parseFloat(o["margin-".concat(Wl)])||0)+(parseFloat(o["margin-".concat(_l)])||0)),r!==l){let e=parseFloat(o["padding-".concat(Wl)]||0)+parseFloat(o["padding-".concat(_l)]||0);r?t-=e:t+=e}if(n!==l){let e=(parseFloat(o["border-".concat(Wl,"-width")])||0)+(parseFloat(o["border-".concat(_l,"-width")])||0);n?t-=e:t+=e}t<0&&(t=0),e.style.width=t+"px"});var Wl,_l;const Il=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}};let Pl=null;const kl=function(e,t){if(null===Pl&&(()=>{try{document.createElement("div").querySelector(":scope > div"),Pl=!0}catch(e){Pl=!1}})(),!0===Pl)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let r=e.id;const n="ID_"+Date.now();e.id=n,t=t.replace(/((?:^|,)\s*)/g,"$1#"+n);try{return e.querySelectorAll(t)}finally{this.id=r}}};class El{constructor(){this._events=[]}add(e,t,r,n){let i=t.split("."),o=i[0],l=i[1];e.addEventListener(o,r,n||!1);let s=!0===n||"object"==typeof n&&!0===n.capture;return this._events.push({el:e,name:o,namespace:l,handler:r,useCapture:s}),this}remove(e,t,r,n){let i=t?t.split("."):"",o=i[0],l=i[1],s=!0===n||"object"==typeof n&&!0===n.capture,a=[],u=[];if(e||o||l||r||void 0!==n)for(let t of this._events)e&&t.el!==e||o&&t.name!==o||l&&t.namespace!==l||r&&t.handler!==r||void 0!==n&&t.useCapture!==s?a.push(t):u.push(t);else u=this._events;this._events=a;for(let e of u)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}const Nl=Object.prototype.hasOwnProperty,Ll=void 0!==Element.prototype.insertAdjacentElement;function Tl(e,t,r){t?!1===Ll||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function Al(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(Tl(t,r,n),t=null),e.nextSibling!==r&&Tl(e,r,n)),t}const Fl=Symbol("destroyed");class Ol{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,setVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:zl,onItemRender:null,onItemUnrender:null,onScrollHeightChange:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender),"function"==typeof e.onScrollHeightChange&&this.setOnScrollHeightChange(e.onScrollHeightChange)}destroy(){this[Fl]||(this[Fl]=!0,this._unhookEvents().invalidate()._destroyElements())}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidate()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||zl,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}setOnScrollHeightChange(e){return this._p.onScrollHeightChange=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}invalidate(){const e=this._p;this.invalidatePositions(),e.virtual||this._destroyElements();for(let t of e.existingEls)delete t[Ml];return this}render(){if(this[Fl])return;const e=this._p,t=e.list,r=e.virtual;let n=e.virtualWrapper,i=e.currentItemsParent,o=t.scrollTop,l=o+t.clientHeight,s=e.count,a=e.buffer,u=e.onItemUnrender,c=e.existingEls,d=c.length;if(r){const r=t.clientWidth;n||(n=e.virtualWrapper=e.userItemsParent,n||(n=e.virtualWrapper=document.createElement("div"),t.appendChild(n)),this._resetCurrentItemsParent(),i=e.currentItemsParent,e.autoVirtualWrapperWidth?(n.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<d;e++)c[e][Hl]=!0;this._calculateItemPosition(e.count-1);let u=this._getExistingElsRange(),f=jl(e.cachedItemPositions,o),m=Math.max(0,f-a),p=m,v=this._calculateItemPosition(p),g=a,b=Math.max(p,jl(e.cachedItemPositions,l-1)+1+a),y=[],C=null,w=n.childNodes[0];const S=function(e){let t;return-1!==u.firstIndex&&e>=u.firstIndex&&e<=u.lastIndex&&(t=c.find(t=>t[Ml]===e&&!0===t[Hl])),void 0===t&&(t=(u.firstIndex<m||u.firstValidArrayIndex>0?c.find(e=>(e[Ml]<m||!1===Nl.call(e,Ml))&&!0===e[Hl]):void 0)||Bl(c,e=>!0===e[Hl])),void 0!==t&&delete t[Hl],t};for(;p<s&&p<b;p++){let e=S(p);w&&w===e&&(w=w.nextSibling);const t=this._dequeueElementForIndex(e,p,w,!0);y.push([t,p]),C=Al(t,C,w,i)}C&&C.childNodes.length>0&&Tl(C,w,i);for(let t of y){const r=t[1];this._insertItemAndFlow(t[0],r,!1),v=e.cachedItemPositions[r]+e.cachedItemHeights[r]}if(v<l)for(;(v<l||g-- >0)&&p<s;p++){let t=S(p);w&&w===t&&(w=w.nextSibling),this._dequeueElementForIndex(t,p,w,!1),v=e.cachedItemPositions[p]+e.cachedItemHeights[p]}let x=this.estimateFullHeight(),R=x+"px";var h;n.style.height!==R&&(n.style.height=R,null===(h=e.onScrollHeightChange)||void 0===h||h.call(e,x)),r!==t.clientWidth&&this.render()}else if(s!==c.length){for(let e=0;e<d;e++)c[e][Hl]=!0;let e=i.childNodes[0],t=null;for(let r=0;r<s;r++){let n=c.find(e=>e[Ml]===r&&!0===e[Hl]);void 0!==n&&delete n[Hl],e&&e===n&&(e=e.nextSibling),t=Al(this._dequeueElementForIndex(n,r,e,!0),t,e,i)}t&&t.childNodes.length>0&&Tl(t,e,i)}d=c.length;for(let e=0;e<d;e++){const t=c[e];if(!0!==t[Hl])continue;let r=t.parentNode;r&&r.removeChild(t),u&&void 0!==t[Ml]&&u(t),c.splice(e,1),e--,d--}}addItemsAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if("number"!=typeof e||e<=0)return this;const r=this._p;if((t<0||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;const o=r.currentItemsParent;let l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let s=n[l-1]?n[l-1].nextSibling:n[0],a=null;for(let r=t,n=t+e;r<n;r++)a=Al(this._dequeueElementForIndex(void 0,r,s,!0),a,s,o);a&&a.childNodes.length>0&&Tl(a,s,o)}return this}removeItemsAt(e,t){const r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const o=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<n.length){for(let t=0;t<e;t++){let e=n[l+t],r=e.parentNode;r&&r.removeChild(e),o&&void 0!==e[Ml]&&o(e)}n.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){let t=r[n.firstValidArrayIndex+e-n.firstIndex];delete t[Ml],this._dequeueElementForIndex(t,e,t.nextSibling,!1)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const n=t.list;return Il(r).top-Il(n).top+n.scrollTop}}}getItemIndexFromElement(e){return e?e[Ml]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e-1];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,n,i=t.scrollTop,o=t.clientHeight;if(e.virtual)r=jl(e.cachedItemPositions,i),n=jl(e.cachedItemPositions,i+o,r);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=Ul(e.count,t,i),n=Ul(e.count,t,i+o,r)}return this.getItemPosition(n)===i+o&&n--,n-r+1}createGhostItemElement(e,t,r){const n=this._p;let i=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}n.onItemUnrender&&n.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const n=r[e];let i=n.parentNode;i&&i.removeChild(n),t&&void 0!==n[Ml]&&t(n)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let n=r.existingEls,i=n.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=o.firstIndex&&e<=o.lastIndex))for(let r=o.firstValidArrayIndex+e-o.firstIndex,l=0;r<i&&l<t;r++,l++)delete n[r][Ml]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,n=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let o=i.firstValidArrayIndex+e-i.firstIndex;o<n;o++)r[o][Ml]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const n=t.count,i=t.cachedItemHeights,o=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==n&&(i.length=n,o.length=n,r.length=n);let a=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;a>0&&(c=r[a-1]);for(let e=a;e<=u;e++){if(0===e){r[e]=c;continue}const t=e-1;let n=i[t];void 0===n&&(n=s?s(t):null,"number"!=typeof n&&(n=l),o[t]=n),c+=n,r[e]=c}t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){let n=t.cachedItemHeights[e-1];return void 0===n&&(n=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof n&&(n=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=n),r[e-1]+n}return r[e]}_dequeueElementForIndex(e,t,r,n){const i=this._p,o=i.virtualWrapper;i.currentItemsParent;const l=i.existingEls,s=i.onItemRender,a=i.onItemUnrender,u=!e,c=u||t!==e[Ml];if(e?a&&c&&a(e):(e=i.itemElementCreatorFn(),o&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let i=r?l.indexOf(r):-1;-1===i?l.push(e):l.splice(i,0,e),n||this._insertItemAndFlow(e,t,r)}return e[Ml]=t,e}_insertItemAndFlow(e,t,r){const n=this._p,i=n.virtualWrapper,o=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===o&&e.nextSibling===r||Tl(e,r,o)),i){let r=e.getBoundingClientRect().height,i=n.cachedItemHeights[t];i!==r&&(n.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let o=this._calculateItemPosition(t);const l=ql();!1===l?e.style.top="".concat(o,"px"):e.style[l]="translateY(".concat(o,"px)")}}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,n=e.length;r<n;r++)if(!1!==Nl.call(e[r],Ml)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==Nl.call(e[t],Ml)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][Ml]:-1,lastIndex:-1!==r?e[r][Ml]:-1}}}const Ml=Symbol("index"),Hl=Symbol("reuse"),zl=()=>document.createElement("li"),jl=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=e.length;if(n<0&&(n+=i),n<=r)return n;for(;r<=n;){let o=Math.floor(r+(n-r)/2),l=e[o];if(l===t||l<=t&&o<i&&e[o+1]>t){for(;o>0&&e[o-1]===l;)o--;return o}l<t?r=o+1:n=o-1}return-1===n?0:i-1},Ul=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(i<0&&(i+=e),i<=n)return i;for(;n<=i;){let o=Math.floor(n+(i-n)/2),l=t(o);if(l===r||l<=r&&o<e&&t(o+1)>r){for(;o>0&&t(o-1)===l;)o--;return o}l<r?n=o+1:i=o-1}return-1===i?0:t(e-1)},Bl=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let Dl=null;const ql=()=>{if(null===Dl){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");Dl=!1;for(let r of e)if(t&&void 0!==t.style[r]){Dl=r;break}}return Dl};function Vl(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 $l(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}const Gl=Symbol("safe"),Xl=Symbol("hover_in"),Yl=Symbol("hover_out"),Jl=Symbol("row_click"),Kl=Symbol("preview_cell"),Ql=Symbol("cell"),Zl=Symbol("related_touch"),es=Symbol("original_row_index"),ts=Symbol("destroyed");class rs 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 rs({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[es]=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=ns(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 ns(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 is 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 os(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 ls={NONE:"none",AUTO:"auto",SCROLL:"scroll"},ss=document.createElement.bind(document);function as(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function us(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function cs(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function ds(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 hs(e,t){const r=e._o.tableClassName,n=ss("div");n.className=e.el.className;const i=ss("div");i.className=r+"-header";const o=ss("div");o.className=r+"-header-row";const l=ss("div");l.className=r+"-header-cell";const s=ss("div");s.textContent=t,l.appendChild(s),o.appendChild(l),i.appendChild(o),n.appendChild(i),Cl(n,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(n);const a=Sl(l);return n.remove(),a}function fs(e){const t=e._o,r=e._p;let n,i=0,o=0;r.table&&(i=r.table?r.table.scrollTop:0,o=r.table?r.table.scrollLeft:0,t.virtualTable&&(n=r.table.style.display,r.table.style.display="none"));let l=Sl(e.el);r.table&&(t.virtualTable&&void 0!==n&&(r.table.style.display=n),r.table.scrollTop=i,r.table.scrollLeft=o,r.header&&(r.header.scrollLeft=o));const s=t.tableClassName,a=ss("div");a.className=e.el.className,Cl(a,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const u=ss("div");u.className="".concat(s,"-header"),a.appendChild(u);const c=ss("div");c.index=null,c.vIndex=null,c.className="".concat(s,"-header-row"),u.appendChild(c);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=ss("div");n.className="".concat(s,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(ss("div")),c.appendChild(n)}document.body.appendChild(a),l-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(c);const d=c.querySelectorAll("div.".concat(s,"-header-cell"));for(const e of d){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){l-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+cs(e);const n=e.columnName,i=r.columns.get(n);i&&(l-=i.arrowProposedWidth||0)}}return a.remove(),Math.max(0,l)}function ms(e){const t=e._p,r=e._o.tableClassName,n=r+"-row",i=r+"-cell",o=t.visibleColumns,l=o.length,s=ss("div");s.className=n,s.style.float="left";let a=0;for(let e=0;e<l;e++){var u,c;const t=o[e],r=ss("div");r.className=i,r.style.width=(null!==(u=t.actualWidth)&&void 0!==u?u:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(ss("div")),s.appendChild(r),a+=null!==(c=t.actualWidth)&&void 0!==c?c:0}const d=ss("div");d.className=e.el.className,Cl(d,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const h=ss("div");h.className=r,d.appendChild(h);const f=ss("div");f.className=r+"-body",f.style.width=a+1e4+"px",h.appendChild(f),f.appendChild(s),document.body.appendChild(d);const m=ss("div");Cl(m,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(m);const p=parseFloat(getComputedStyle(m).borderWidth),v=Math.round(p)!==p;m.remove();let g=Sl(s,!0,!0,!0);return g-=t.scrollbarWidth||0,v&&g++,d.remove(),g}function ps(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function vs(e){var t;const r=null!=e.unconvertedWidth?e.unconvertedWidth:e.width,n=null!=e.unconvertedWidth&&null!==(t=e.unconvertedWidthMode)&&void 0!==t?t:e.widthMode;return 0===n?"auto":2===n?100*r+"%":3===n?"rest":r}class gs{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 bs=document.createElement.bind(document);function ys(e){var t,r,n;const i=e;return null!==(t=null!==(r=e[Zl])&&void 0!==r?r:null===(n=i.changedTouches)||void 0===n?void 0:n[0])&&void 0!==t?t:e}function Cs(e){var t;const r=e._p;if(null==r.columnResizeStartTimeout)return;clearTimeout(r.columnResizeStartTimeout),r.columnResizeStartTimeout=null;const n=null===(t=r.lastResizeAreaClick)||void 0===t?void 0:t.columnName;r.lastResizeAreaClick=null,n&&function(e,t){const r=e._o,n=e._p,i=n.columns.get(t);if(!r.resizableColumns||!i||!i.resizable)return void Ss(e);const o=ps(e);n.resizer=bs("div"),n.resizer.className=r.resizerClassName,Cl(n.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(n.resizer);const l=i.element,s=n.resizer.parentNode,a=getComputedStyle(s),u=getComputedStyle(l),c=Il(l),d=Il(s);d.left+=parseFloat(a.borderLeftWidth)||0,d.top+=parseFloat(a.borderTopWidth)||0,c.left-=d.left,c.top-=d.top,c.top-=parseFloat(u.borderTopWidth)||0;const h=Sl(n.resizer,!0,!0,!0);o?(c.left-=Math.ceil((parseFloat(u.borderLeftWidth)||0)/2),c.left-=Math.ceil(h/2)):(c.left+=Sl(l,!0,!0,!0),c.left+=Math.ceil((parseFloat(u.borderRightWidth)||0)/2),c.left-=Math.ceil(h/2)),Cl(n.resizer,{"z-index":"10",visibility:"visible",left:c.left+"px",top:c.top+"px",height:xl(e.el,!1,!1,!1)+"px"}),n.resizer.columnName=l.columnName;try{n.resizer.style.zIndex=""}catch(e){}}(e,n)}function ws(e,t){const r=e._o,n=ps(e);let i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return null;i[Ql]&&(i=i[Ql]);let o=i.previousSibling;for(;o&&1!==o.nodeType;)o=o.previousSibling;const l=!o,s=ys(t),a=(s.pageX||s.clientX||0)-Il(i).left;if(n){var u,c,d;if(!l&&Sl(i,!0,!0,!0)-a<=r.resizeAreaWidth/2)return null!==(u=null===(c=o)||void 0===c?void 0:c.columnName)&&void 0!==u?u:null;if(a<=r.resizeAreaWidth/2)return null!==(d=i.columnName)&&void 0!==d?d:null}else{var h,f,m;if(!l&&a<=r.resizeAreaWidth/2)return null!==(h=null===(f=o)||void 0===f?void 0:f.columnName)&&void 0!==h?h:null;if(Sl(i,!0,!0,!0)-a<=r.resizeAreaWidth/2)return null!==(m=i.columnName)&&void 0!==m?m:null}return null}function Ss(e){const t=e._p;return null!=t.columnResizeStartTimeout&&(clearTimeout(t.columnResizeStartTimeout),t.columnResizeStartTimeout=null),t.resizer&&(t.resizer.remove(),t.resizer=null),t.eventsSink.remove(document,".colresize"),e}function xs(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const n=e._o,i=e._p,o=ws(e,t);if(o){const r=i.columns.get(o);if(!n.resizableColumns||!r||!r.resizable)return!1;if(function(e,t,r){const n=e._p,i=e._o,o=ys(t),l=Date.now(),s=function(e){return e.type.startsWith("touch")?"touch":"mouse"}(t),a=n.lastResizeAreaClick;if(n.lastResizeAreaClick={columnName:r,time:l,pageX:o.pageX||o.clientX||0,pageY:o.pageY||0,pointerType:s},!a||a.columnName!==r||a.pointerType!==s)return!1;const u=l-a.time;return!(u<0||u>i.resizeAreaDoubleClickDuration)&&Math.sqrt(Math.pow(n.lastResizeAreaClick.pageX-a.pageX,2)+Math.pow(n.lastResizeAreaClick.pageY-a.pageY,2))<=Math.max(i.resizeAreaWidth,12)}(e,t,r.name))return Ss(e),function(e,t,r,n){const i=e._o,o=e._p,l=o.columns.get(r);if(!i.resizableColumns||!l||!l.resizable)return!1;const s=Date.now();return(null===(n=o.lastResizeAreaDoubleClick)||void 0===n?void 0:n.columnName)===l.name&&s-o.lastResizeAreaDoubleClick.time<100?(t.preventDefault(),!0):(o.lastResizeAreaClick=null,o.lastResizeAreaDoubleClick={columnName:l.name,time:s},e.emit("columnresizeareadoubleclick",{name:l.name,columnName:l.name,event:t}),i.autoFitColumnOnResizeDoubleClick&&e.autoFitColumn(l.name),t.preventDefault(),!0)}(e,t,r.name);Ss(e),i.columnResizeStartTimeout=setTimeout(()=>Cs(e),n.resizeAreaDoubleClickDuration),i.eventsSink.add(document,"mousemove.colresize",t=>Rs(e,t)).add(document,"touchmove.colresize",t=>Rs(e,t)).add(document,"mouseup.colresize",t=>Ws(e,t)).add(document,"touchend.colresize",t=>Ws(e,t)),t.preventDefault()}}function Rs(e,t){const r=e._p;if(null!=r.columnResizeStartTimeout&&!function(e,t){const r=e._p.lastResizeAreaClick;if(!r)return!1;const n=ys(t),i=n.pageX||n.clientX||0,o=n.pageY||0;return Math.sqrt(Math.pow(i-r.pageX,2)+Math.pow(o-r.pageY,2))>4}(e,t))return;if(Cs(e),!r.resizer)return;const n=r.columns.get(r.resizer.columnName);if(!n)return;const i=ps(e),o=n.element,l=r.resizer.parentNode,s=getComputedStyle(l),a=getComputedStyle(o),u=Il(o),c=Il(l);c.left+=parseFloat(s.borderLeftWidth)||0,u.left-=c.left;const d=Sl(r.resizer,!0,!0,!0),h="border-box"===a.boxSizing;let f=ys(t).pageX-c.left,m=u.left;m-=Math.ceil(d/2),i?(m+=Sl(o,!0,!0,!0),m-=n.ignoreMin?0:e._o.minColumnWidth,h||(m-=Math.ceil((parseFloat(a.borderLeftWidth)||0)/2),m-=cs(o)),f>m&&(f=m)):(m+=n.ignoreMin?0:e._o.minColumnWidth,h||(m+=Math.ceil((parseFloat(a.borderRightWidth)||0)/2),m+=cs(o)),f<m&&(f=m)),r.resizer.style.left=f+"px"}function Ws(e,t){var r,n,i;const o=e._o,l=e._p;if(null!=l.columnResizeStartTimeout)return void Ss(e);if(!l.resizer)return;l.eventsSink.remove(document,".colresize");const s=l.columns.get(l.resizer.columnName);if(!s)return l.resizer.remove(),void(l.resizer=null);const a=ps(e),u=s.element,c=u.firstChild,d=l.resizer.parentNode,h=getComputedStyle(d),f=getComputedStyle(u),m=Il(u),p=Il(d);p.left+=parseFloat(h.borderLeftWidth)||0,m.left-=p.left;const v=Sl(l.resizer,!0,!0,!0),g="border-box"===f.boxSizing,b=t;let y=(null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=b.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-p.left,C=m.left,w=0;if(C-=Math.ceil(v/2),a){if(!g){y+=cs(u);const e=getComputedStyle(c||u);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=s.arrowProposedWidth||0}C+=Sl(u,!0,!0,!0);const t=C-(s.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),w=C-y}else{if(!g){y-=cs(u);const e=getComputedStyle(c||u);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=s.arrowProposedWidth||0}const t=C+(s.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),w=y-C}l.resizer.remove(),l.resizer=null;let S=w;if(2===s.widthMode){let t=fs(e),r=0,n=0;for(let e=0;e<l.visibleColumns.length;e++){var x;const i=l.visibleColumns[e];i.name!==s.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t<=0&&l.table&&(t=l.table.clientWidth),t>Math.max(o.minColumnWidth,1)){if(S=w/t,n>0){const e=S/((1-S)/r);r+=S,(r<1&&o.relativeWidthGrowsToFillWidth||r>1&&o.relativeWidthShrinksToFillWidth)&&(S=e)}S*=100,S+="%"}}e.setColumnWidth(s.name,S)}function _s(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=ws(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 Is(e,t){var r,n,i;const o=e._o,l=t,s=t,a=null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=l.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:{pageX:s.pageX,pageY:s.pageY},u=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!u)return;const c=Il(u);c.width=Sl(u,!0,!0,!0),c.height=xl(u,!0,!0,!0),e.emit("headercontextmenu",{columnName:u.columnName,pageX:a.pageX,pageY:a.pageY,bounds:c})}function Ps(e,t){if(us(t))return;if(ws(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 ks=Array.prototype.indexOf,Es=document.createElement.bind(document);function Ns(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Ls(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 Ts(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}Fs(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function As(e,t){const r=e._o,n=e._p;if(!n.tbody||!n.table||!n.headerRow)return e;const i=ms(e);if(n.tbody.style.minWidth=i+"px",n.headerRow.style.minWidth=i+(n.scrollbarWidth||0)+"px",n.eventsSink.remove(n.table,"scroll"),r.width===ls.AUTO)Rl(n.table,Sl(n.tbody,!0,!0,!0)),Rl(e.el,Sl(n.table,!0,!0,!0));else if(r.width===ls.SCROLL){if(t){const t=n.table?n.table.scrollTop:0,r=n.table?n.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),n.table.scrollTop=t,n.table.scrollLeft=r,n.header&&(n.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,Os(e)}(e);n.eventsSink.add(n.table,"scroll",r)}return e}function Fs(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=ps(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0,a=r.lastDetectedWidth,u=n.maxStickyColumnRelativeWidth,c="number"==typeof u&&a?a*u:null;let d=0,h=0,f=null;const m=[],p=[];let v=null,g=[],b=null,y=0,C=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){var w,S;const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(!n)continue;n.headerScrollbarCompensation=0;let o="start"===n.sticky||"end"===n.sticky;if(o&&null!==c&&y+(null!==(w=n.actualWidth)&&void 0!==w?w:0)>c&&(o=!1),o){var x,R,W,_,I;let t=null!==(x=n.actualWidth)&&void 0!==x?x:0;y+=0,e.className+=" "+i,e.style.position="sticky";let o,a=null;null===f&&(a=getComputedStyle(e),f=a.boxSizing),"content-box"===f&&(null===a&&(a=getComputedStyle(e)),t+=(parseFloat(a.paddingLeft)||0)+(parseFloat(a.paddingRight)||0)+(parseFloat(a.borderLeftWidth)||0)+(parseFloat(a.borderRightWidth)||0)),"start"===n.sticky?(o={direction:"start",absDirection:l?"right":"left",offset:d},e.style[o.absDirection]=d+"px",d+=t,g.length=0,v=[e],m.push(v)):(b=e,o={direction:"end",absDirection:l?"left":"right",offset:h},e.style[o.absDirection]=h+s+"px",e.style.width=(null!==(R=n.actualWidth)&&void 0!==R?R:0)+"px",h+=t,p.push([e,...g]),g.length=0),o.direction===(null===(W=n.stickyPos)||void 0===W?void 0:W.direction)&&o.offset===(null===(_=n.stickyPos)||void 0===_?void 0:_.offset)&&o.absDirection===(null===(I=n.stickyPos)||void 0===I?void 0:I.absDirection)||C.push(r.visibleColumns.indexOf(n)),n.stickyPos=o}else n.stickyPos&&C.push(r.visibleColumns.indexOf(n)),delete n.stickyPos,null!==(S=v)&&void 0!==S&&S.push(e),null!=g&&g.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}b&&(b.style[l?"left":"right"]="0px"),r.stickiesStart=m,r.stickiesEnd=p,C.length>0&&e.refreshAllVirtualRows(),r.lastStickyScrollLeft=void 0,Os(e)}function Os(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;let u=null;const c=(e,r,n)=>{if(e&&e.length){for(const t of e){r||(u=t);const e=t[0],l=t.slice(1),s=l[0],c=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const d=e.getBoundingClientRect(),h=r!==a;let f=!1;if(s&&c){const e=s.getBoundingClientRect(),t=c.getBoundingClientRect();f=r?a?d.right-o>t.left&&d.left+o<e.right:d.right-o>e.left&&d.left+o<t.right:a?d.left+o<e.right&&d.right-o>t.left:d.left+o<t.right&&d.right-o>e.left}e.classList.toggle(h?"is-sticky-left":"is-sticky-right",f),f&&n.add(ks.call(i,e))}if(u){var l,s,c,d;const e=u[0],r=t.columns.get(e.getAttribute("data-column")),n=a?"marginRight":"marginLeft";e.style[n]="",e.style.width=(null!==(l=null!==(s=r.actualWidthConsideringScrollbarWidth)&&void 0!==s?s:r.actualWidth)&&void 0!==l?l:0)+"px";let i=0;if(t.scrollbarWidth>0){const r=e.getBoundingClientRect(),o=e.offsetParent.getBoundingClientRect(),l=a?r.left-o.left:o.right-r.right;l<=t.scrollbarWidth&&(i=Math.min(t.scrollbarWidth,Math.max(0,t.scrollbarWidth-l+1)),i<t.scrollbarWidth&&(e.style[n]=-i+"px"))}r.headerScrollbarCompensation=i,e.style.width=(null!==(c=null!==(d=r.actualWidthConsideringScrollbarWidth)&&void 0!==d?d:r.actualWidth)&&void 0!==c?c:0)+i+"px"}}};c(r,!0,l),c(n,!1,s)}const a=[],u=[];for(const e of l)(null==i?void 0:i.has(e))||a.push({index:e,start:!0});for(const e of s)(null==o?void 0: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 Ms(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){var l,s,a;const e=null!==(l=o.headerScrollbarCompensation)&&void 0!==l?l:0;i.style.width=(null!==(s=null!==(a=o.actualWidthConsideringScrollbarWidth)&&void 0!==a?a:o.actualWidth)&&void 0!==s?s:0)+e+"px";const n=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",u=r.tbody.childNodes;for(let e=0,r=u.length;e<r;e++){const r=u[e];1===r.nodeType&&(r.childNodes[t].style.width=n)}}return e}function Hs(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=kl(t.headerRow,">div.".concat(e,"-header-cell.sorted")),o=Array.prototype.slice.call(i,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of o){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 i)e.classList.remove("sorted","desc")}return e}function zs(e,t,r){var n;const i=e._p,o=e._o,l=i.columns.get(t);if(!l)return!1;const s=Es("span");return s.className="sort-arrow",l.element&&(l.element.className+=r?" sorted desc":" sorted",null!==(n=l.element.firstChild)&&void 0!==n&&n.insertBefore(s,l.element.firstChild.firstChild)),2!==l.widthMode&&o.adjustColumnWidthForSortArrow&&(l.arrowProposedWidth=s.scrollWidth+(parseFloat(getComputedStyle(s).marginRight)||0)+(parseFloat(getComputedStyle(s).marginLeft)||0)),!0}function js(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>xs(e,t)),t.addEventListener("mousemove",t=>_s(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Is(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[Zl]=t.changedTouches[0],!0!==xs(e,t)?(l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{us(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&&(Ss(e),Is(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=Vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),us(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[Zl]=i,Ps(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=Vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[Zl]=i,_s(e,n)))})):r.currentTouchId=null}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;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);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=>Ps(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?void 0:i.contains(n.firstChild))||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t,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 Us(e,t){let r=0;if("string"==typeof e){const t=e.trim().toLowerCase();if("rest"===t)return{width:0,mode:3};if("auto"===t)return{width:0,mode:0}}let n=parseFloat(e);return Number.isFinite(n)||(n=0),n=Math.max(0,n),n>0&&("string"==typeof e&&e.trim().endsWith("%")?(r=2,n/=100):n>0&&n<1?r=2:(n<t&&(n=t),r=1)),{width:n,mode:r}}function Bs(e,t){var r;let n=Us(t.width,t.ignoreMin?0:e.minColumnWidth),i={name:t.name,label:void 0===t.label?t.name:t.label,width:n.width,widthMode:n.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,allowPreview:!(null!==(r=t.allowPreview)&&void 0!==r&&!r),dataPath:[],comparePath:[],order:0};const o=void 0===t.dataPath?i.name:t.dataPath,l=void 0===t.comparePath?o:t.comparePath;return i.dataPath="string"==typeof o?o.split("."):o,i.comparePath="string"==typeof l?l.split("."):l,i}function Ds(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 qs(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||os;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function Vs(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[Gl])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 $s=Array.prototype.indexOf,Gs=document.createElement.bind(document);function Xs(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Ql];let o;try{o=gs.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&gs.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[Kl],delete n[Ql],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const Ys=Object.prototype.hasOwnProperty,Js=document.createElement.bind(document);class Ks{constructor(e){var t,r;this.VERSION=Ks.VERSION;const n=this._o={},i=this._p={eventsSink:new El,mitt:{all:o=o||new Map,on:function(e,t){var r=o.get(e);r?r.push(t):o.set(e,[t])},off:function(e,t){var r=o.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):o.set(e,[]))},emit:function(e,t){var r=o.get(e);r&&r.slice().map(function(e){e(t)}),(r=o.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var o;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"),i.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),i.isWheelScrolling=!1,i.eventsSink.add(this.el,"wheel",e=>{if(i.cellPreviewCell){let t=!1,r=e.target;for(;r&&r!==i.cellPreviewCell;){const e=getComputedStyle(r),n=e.overflowY,i=e.overflowX,o=("auto"===n||"scroll"===n)&&r.scrollHeight>r.clientHeight,l=("auto"===i||"scroll"===i)&&r.scrollWidth>r.clientWidth;if(o||l){t=!0;break}r=r.parentElement}if(t)return}i.isWheelScrolling=!0,Xs(this),i.wheelScrollTimeout&&clearTimeout(i.wheelScrollTimeout),i.wheelScrollTimeout=setTimeout(()=>{i.isWheelScrolling=!1,i.wheelScrollTimeout=void 0},100)},{passive:!0}),n.virtualTable=void 0===e.virtualTable||!!e.virtualTable,n.estimatedRowHeight=e.estimatedRowHeight||void 0,n.rowsBufferSize=e.rowsBufferSize||3,n.minColumnWidth=Math.max(e.minColumnWidth||35,0),n.maxStickyColumnRelativeWidth=e.maxStickyColumnRelativeWidth||null,n.resizeAreaWidth=e.resizeAreaWidth||8,n.resizeAreaDoubleClickDuration=e.resizeAreaDoubleClickDuration||300,n.autoFitColumnOnResizeDoubleClick=void 0!==e.autoFitColumnOnResizeDoubleClick&&!!e.autoFitColumnOnResizeDoubleClick,n.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,n.movableColumns=void 0===e.movableColumns||!!e.movableColumns;const l=null!==(t=e.maxColumnsSortCount)&&void 0!==t?t:e.sortableColumns;n.sortableColumns=void 0===l?1:Number(l)||1,n.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,n.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,n.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,n.autoFillLastColumn=void 0===e.autoFillLastColumn||!!e.autoFillLastColumn,n.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,n.cellClasses=void 0===e.cellClasses?"":e.cellClasses,n.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,n.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,n.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,n.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,n.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,n.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,n.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,n.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,n.width=void 0===e.width?ls.NONE:e.width,n.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,n.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),n.height=e.height,this.setColumns(e.columns||[],!1);let s=[];const a=null!==(r=e.sortedColumns)&&void 0!==r?r:e.sortColumn;if(a){let e=Array.isArray(a)?a:[a];for(let t=0,r=e.length;t<r;t++){var u;let r=e[t];"string"==typeof r&&(r={column:r,descending:!1});let n=i.columns.get(r.column);n&&s.push({column:r.column,comparePath:n.comparePath||n.dataPath,descending:null!==(u=r.descending)&&void 0!==u&&u})}}i.rows=new rs({sortColumn:s}),i.rows.onComparatorRequired=(e,t,r)=>{if(n.onComparatorRequired)return n.onComparatorRequired(e,t,r)},i.rows.customSortingProvider=(e,t)=>n.customSortingProvider?n.customSortingProvider(e,t):t(e),i.filteredRows=null,i.scrollbarWidth=0,i._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,n=t.relatedTarget;n===r||r.contains(n)||r[Kl]&&(n===r[Kl]||r[Kl].contains(n))||function(e,t,r,n){const i=e._o,o=e._p;if(o.isWheelScrolling)return;const l=t.firstElementChild;if(!l)return;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;Xs(e),o.abortCellPreview=!1;const s=t.parentElement;if(!s)return;const a=null===(r=o.visibleColumns[$s.call(s.childNodes,t)])||void 0===r?void 0:r.name,u=a?o.columns.get(a):null;if(!u)return;const c=s.index;if(e.emit("cellhoveroverflow",{name:a,rowIndex:null!=c?c:null,rowData:null==c?null:o.rows[c],cell:t,cellEl:l}),!1===u.allowPreview)return;const d=Gs("div");d.innerHTML=t.innerHTML,d.className=i.cellPreviewClassName+" "+(u.cellClasses||"");const h=t.classList.contains("".concat(i.tableClassName,"-header-cell"));h&&(d.classList.add("header"),t.classList.contains("sortable")&&d.classList.add("sortable"),d.draggable=!0,js(e,d));const f=getComputedStyle(t),m=getComputedStyle(l),p="right"===f.float,v=p?"right":"left",g=parseFloat(f.paddingLeft)||0,b=parseFloat(f.paddingRight)||0,y=parseFloat(f.paddingTop)||0,C=parseFloat(f.paddingBottom)||0;let w=l.scrollWidth+(t.clientWidth-l.offsetWidth);const S="border-box"===f.boxSizing;if(S?d.style.boxSizing="border-box":(w-=g+b,d.style.marginTop=(parseFloat(f.borderTopWidth)||0)+"px"),!o.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",o.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const x={"box-sizing":S?"border-box":"content-box",width:w+"px","min-height":Math.max(xl(t),/%/.test(f.minHeight)?0:parseFloat(f.minHeight)||0)+"px","padding-left":g+"px","padding-right":b+"px","padding-top":y+"px","padding-bottom":C+"px",overflow:"hidden",position:"absolute","z-index":"-1",[v]:"0",top:"0",cursor:f.cursor};let R=f.backgroundColor;R!==o.transparentBgColor1&&R!==o.transparentBgColor2||(R=getComputedStyle(s).backgroundColor),R!==o.transparentBgColor1&&R!==o.transparentBgColor2||(R="#fff"),x["background-color"]=R,Cl(d,x),d.firstChild&&Cl(d.firstChild,{direction:m.direction,"white-space":m.whiteSpace,"min-height":m.minHeight,"line-height":m.lineHeight,font:m.font}),e.el.appendChild(d),h&&ds(d),d.rowVIndex=s.vIndex,d.rowIndex=c,d.columnName=a;try{const e=gs.saveSelection(t);e&&gs.restoreSelection(d,e)}catch(e){}if(e.emit("cellpreview",{el:d.firstElementChild,name:d.columnName,rowIndex:null!=c?c:null,rowData:null==c?null:o.rows[c],cell:t,cellEl:l}),o.abortCellPreview)return void d.remove();null!=c&&d.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:s.vIndex,rowIndex:c,rowEl:s,rowData:o.rows[c]})});const W=e.el,_=W===window?document:W,I=getComputedStyle(W),P=Il(t),k=Il(W);if(p){const e=window.innerWidth;P.right=e-(P.left+Sl(t,!0,!0,!0)),k.right=e-(k.left+Sl(W,!0,!0,!0))}P.left-=parseFloat(I.borderLeftWidth)||0,"right"===v&&void 0!==P.right&&void 0!==k.right&&(P.right-=parseFloat(I.borderRightWidth)||0),P.top-=parseFloat(I.borderTopWidth)||0,"left"===v?P.left+=parseFloat(f.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(f.borderRightWidth)||0),P.top+=parseFloat(f.borderTopWidth)||parseFloat(f.borderBottomWidth)||0,P.left-=k.left,"right"===v&&void 0!==P.right&&void 0!==k.right&&(P.right-=k.right),P.top-=k.top;const E=Sl(W,!1,!1,!1)-Sl(d,!0,!0,!0),N="left"===v?P.left:null!==(n=P.right)&&void 0!==n?n:0,L=N<0?0:N>E?E:N;"left"===v?P.left=L:P.right=L;const T=xl(t,!0,!0,!0),A=("scrollTop"in _?_.scrollTop:0)+xl(W,!0)-T;P.top>A&&(P.top=Math.max(0,A));const F={top:P.top+"px","z-index":9999};F[v]=("left"===v?P.left:P.right)+"px",Cl(d,F),d[Ql]=t,o.cellPreviewCell=d,t[Kl]=d,o._bindCellHoverOut(t),o._bindCellHoverOut(d)}(e,r)},n=t=>{let r=t.currentTarget[Ql]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[Kl]&&(n===r[Kl]||r[Kl].contains(n))||function(e){Xs(e)}(e)};t._bindCellHoverIn=e=>{e[Xl]||e.addEventListener("mouseover",e[Xl]=r)},t._unbindCellHoverIn=e=>{e[Xl]&&(e.removeEventListener("mouseover",e[Xl]),e[Xl]=null)},t._bindCellHoverOut=e=>{e[Yl]||e.addEventListener("mouseout",e[Yl]=n)},t._unbindCellHoverOut=e=>{e[Yl]&&(e.removeEventListener("mouseout",e[Yl]),e[Yl]=null)}}(this)}on(e,t){return this[ts]||this._p.mitt.on(e,t),this}once(e,t){if(this[ts])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[ts]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[ts]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[ts]||!n)return this;if(Ss(this),null!==(e=n.virtualListHelper)&&void 0!==e&&e.destroy(),n.virtualListHelper=null,Ns(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)Ys.call(this,e)&&(this[e]=null);return this[ts]=!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[ts]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var r;t.tableSkeletonNeedsRendering=!1,e.width===ls.AUTO&&Hs(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,l=t.table&&t.table.parentNode?(n=t.table,void 0===i&&(i="rtl"===getComputedStyle(n).direction),i?n.scrollWidth-n.clientWidth-bl(n,i):bl(n,i)):NaN;!function(e,t){const r=e._p,n=e._o;null!==(t=r.virtualListHelper)&&void 0!==t&&t.destroy(),r.virtualListHelper=null,r.table&&n.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Ns(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,o=Es("div"),l=Es("div");o.className="".concat(i,"-header"),l.className="".concat(i,"-header-row"),r.header=o,r.headerRow=l,o.appendChild(l),e.el.prepend(o),as(e.el),n.width===ls.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=xl(e.el,!0))}(this),function(e){const t=e._p,r=e._o,n=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Es("div"),t=e.appendChild(Es("div")),r=t.appendChild(Es("div"));return e.className="".concat(n,"-row"),t.className="".concat(n,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=Es("div");i.className=e.el.className,Cl(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=Es("div");o.className=n,i.appendChild(o);const l=Es("div");l.className="".concat(n,"-body"),l.style.width="99999px",o.appendChild(l),document.body.appendChild(i);const s=r(),a=r(),u=r();l.appendChild(s),l.appendChild(a),l.appendChild(u),t.virtualRowHeight=xl(a,!0,!0,!0),i.remove()}if(!t.table){var i;const o=document.createDocumentFragment(),l=Es("div");l.className=n,r.virtualTable&&(l.className+=" virtual");const s=getComputedStyle(l);let a=(null!==(i=r.height)&&void 0!==i?i:0)-xl(t.header,!0,!0,!0);"border-box"!==s.boxSizing&&(a-=parseFloat(s.borderTopWidth)||0,a-=parseFloat(s.borderBottomWidth)||0,a-=parseFloat(s.paddingTop)||0,a-=parseFloat(s.paddingBottom)||0),Cl(l,{height:r.height?a+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===ls.SCROLL?"auto":"hidden"}),o.appendChild(l);const u=Es("div");u.className=r.tableClassName+"-body",u.style.minHeight="1px",t.table=l,t.tbody=u,as(u),as(l),l.appendChild(u),e.el.appendChild(o),function(e,t){const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",l=i+"-row-alt",s=i+"-cell",a=i+"-sticky";let u=r.visibleColumns,c=u.length;r.notifyRendererOfColumnsConfig=()=>{u=r.visibleColumns,c=u.length;for(let e=0;e<c;e++){const t=u[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new Ol({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Es("div"),onItemRender:(t,i)=>{const d=r.filteredRows||r.rows,h=!!r.filteredRows,f=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+l);const m=d[i],p=h?m[es]:i;t.vIndex=i,t.index=p;for(let e=0;e<c;e++){var v;const i=u[e],o=Es("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=s,o.style.width=(null!==(v=i._finalWidth)&&void 0!==v?v:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+a,o.style.position="sticky",o.style[i.stickyPos.absDirection]=i.stickyPos.offset+"px";const t=null==f?void 0:f.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")}r._bindCellHoverIn(o),o.appendChild(Es("div")).innerHTML=Vs(n,m,i),t.appendChild(o)}t.addEventListener("click",t[Jl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:m})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:m})},onItemUnrender:t=>{t[Jl]&&t.removeEventListener("click",t[Jl]),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&&Ts(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.tableClassName+"-header-cell",i=t.headerRow;for(let l=0;l<t.visibleColumns.length;l++){const s=t.visibleColumns[l];if(s.visible){var o;const a=Es("div");a.draggable=!0,a.className=n,a.style.width=(null!==(o=s.actualWidth)&&void 0!==o?o:0)+"px",r.sortableColumns&&s.sortable&&(a.className+=" sortable"),a.columnName=s.name,a.setAttribute("data-column",s.name);const u=Es("div");u.innerHTML=r.headerCellFormatter(s.label,s.name),a.appendChild(u),t._bindCellHoverIn(a),i.appendChild(a),t.visibleColumns[l].element=a,js(e,a),ds(a)}}Fs(e),e.emit("headerrowcreate",i)}(this),t.virtualListHelper.setCount((null!==(r=t.filteredRows)&&void 0!==r?r:t.rows).length),Ls(this),Ts(this,!0),As(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)zs(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(l)||(yl(t.table,l),yl(t.header,l)),Fs(this),this.emit("renderskeleton")}var n,i;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 is;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=Bs(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(),Ds(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=Bs(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(),Ds(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(),Ds(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,i=this._p;let o,l,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?o=s.get(e):"number"==typeof e&&(o=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=s.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t]))if(i.visibleColumns=r,Ds(this),n.virtualTable)this.clearAndRender();else{var u,c;const r=kl(i.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let o=e<t?t+1:t,l=e;r[0].parentNode.insertBefore(r[l],r[o]);let s=i.visibleColumns[e],a=(null!==(u=s.actualWidthConsideringScrollbarWidth||s.actualWidth)&&void 0!==u?u:0)+"px",d=i.visibleColumns[t],h=(null!==(c=d.actualWidthConsideringScrollbarWidth||d.actualWidth)&&void 0!==c?c:0)+"px",f=i.tbody.childNodes;for(let r=0,n=f.length;r<n;r++){let n=f[r];1===n.nodeType&&(n.insertBefore(n.childNodes[l],n.childNodes[o]),n.childNodes[t].firstChild.style.width=h,n.childNodes[e].firstChild.style.width=a)}this.tableWidthChanged(!0)}this.emit("movecolumn",{name:o.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),Ds(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}setMaxStickyColumnRelativeWidth(e){let t=this._o;return e=e||null,t.maxStickyColumnRelativeWidth!==e&&(t.maxStickyColumnRelativeWidth=e,this.tableWidthChanged(!0)),this}getMaxStickyColumnRelativeWidth(){return this._o.maxStickyColumnRelativeWidth}setColumnWidth(e,t){let r=this._p.columns.get(e);if(r){let e=Us(t,r.ignoreMin?0:this._o.minColumnWidth),n=vs(r);r.width=e.width,r.widthMode=e.mode,r.unconvertedWidth=null,r.unconvertedWidthMode=null;let i=vs(r);n!==i&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:i,oldWidth:n})}return this}autoFitColumn(e){const t=this._p,r=t.filteredRows||t.rows,n=t.columns.get(e);if(!n||r.length<1)return this;const i=this.measureAutoFitColumnWidth(n,r);return i>0&&this.setColumnWidth(e,i),this}measureAutoFitColumnWidth(e,t){const r=this._o,n=r.tableClassName,i=Js("div");i.className=this.el.className,Cl(i,{position:"absolute",top:"-9999px",left:"0",visibility:"hidden",width:"auto",overflow:"visible"});const o=Js("div");o.className="".concat(n,"-header");const l=Js("div");l.className="".concat(n,"-header-row");const s=Js("div");s.className="".concat(n,"-header-cell ").concat(e.cellClasses||""),s.style.width="auto",s.appendChild(Js("div")).innerHTML=r.headerCellFormatter(e.label,e.name),l.appendChild(s),o.appendChild(l),i.appendChild(o);const a=Js("div");a.className="".concat(n,"-body");const u=Js("div");u.className="".concat(n,"-row");const c=Js("div");c.className="".concat(n,"-cell ").concat(e.cellClasses||""),c.style.width="auto";const d=c.appendChild(Js("div"));u.appendChild(c),a.appendChild(u),i.appendChild(a),document.body.appendChild(i);let h=Sl(s,!0,!0,!0);for(let n=0;n<t.length;n++)d.innerHTML=Vs(r,t[n],e),h=Math.max(h,Sl(c,!0,!0,!0));return i.remove(),h+=e.arrowProposedWidth||0,!e.ignoreMin&&h<r.minColumnWidth&&(h=r.minColumnWidth),Math.ceil(h)}getColumnWidth(e){let t=this._p.columns.get(e);return t?vs(t):null}getColumnConfig(e){let t=this._p.columns.get(e);if(t){var r,n,i;const e=t.width,o=t.widthMode;null!=t.unconvertedWidth&&(t.width=t.unconvertedWidth,t.widthMode=null!==(r=t.unconvertedWidthMode)&&void 0!==r?r:t.widthMode);const l=vs(t);return null!=t.unconvertedWidth&&(t.width=e,t.widthMode=o),{name:t.name,label:t.label,width:l,dataPath:null===(n=t.dataPath)||void 0===n?void 0:n.join("."),comparePath:null===(i=t.comparePath)||void 0===i?void 0:i.join("."),resizable:t.resizable,movable:t.movable,sortable:t.sortable,visible:t.visible,cellClasses:t.cellClasses,ignoreMin:t.ignoreMin,sticky:t.sticky,order:t.order}}return 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}setMaxColumnSortCount(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=kl(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}getMaxColumnSortCount(){return this._o.sortableColumns}setSortableColumns(e){return this.setMaxColumnSortCount(e)}getSortableColumns(){return this.getMaxColumnSortCount()}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}getConvertColumnWidthsToRelative(){return this._o.convertColumnWidthsToRelative}setConvertColumnWidthsToRelative(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._o;return e=!!e,r.convertColumnWidthsToRelative!==e&&(r.convertColumnWidthsToRelative=e,t&&this.tableWidthChanged(!0)),this}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.map(e=>({column:e.column,descending:e.descending}));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,descending:!!t})}else l.length=0;return this.setSortedColumns(l)}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){var n;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.sortColumn=e.rows.sortColumn,e.filteredRows.onComparatorRequired=e.rows.onComparatorRequired,e.filteredRows.customSortingProvider=e.rows.customSortingProvider,e.filteredRows.sort())),null===(n=e.virtualListHelper)||void 0===n||n.invalidate();let i=[];for(let e=0;e<r.length;e++)i.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:i,resort:!0})}return this}setSortedColumns(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{immediate:!0,render:!0};const n=this._o,i=this._p;let o=i.columns,l=e.filter(e=>o.get(e.column)).map(e=>{let t=o.get(e.column);return{column:t.name,comparePath:t.comparePath||t.dataPath,descending:!!e.descending}});n.sortableColumns>0&&l.length>n.sortableColumns&&(l.length=n.sortableColumns),Hs(this);for(let e=0;e<l.length;e++)zs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&r.immediate&&(i.rows.sort(),i.filteredRows&&(i.filteredRows.sortColumn=i.rows.sortColumn,i.filteredRows.onComparatorRequired=i.rows.onComparatorRequired,i.filteredRows.customSortingProvider=i.rows.customSortingProvider,i.filteredRows.sort()),null!==(t=i.virtualListHelper)&&void 0!==t&&t.invalidate(),i.virtualListHelper&&r.render&&i.virtualListHelper.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}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?$l(e):e;t[Gl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?$l(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||os,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 Vs(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?Vs(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():qs(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Ls(this),Ts(this),this.render(),As(this,!1)):i.tbody&&(this.render(),Ts(this),As(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?(qs(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Ls(this),Ts(this),this.render(),As(this,!1)):(this.render(),Ts(this),As(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():qs(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=fs(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,h=[],f=0,m=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){var u;let i=n.visibleColumns[t];if(null!=i.unconvertedWidth&&(i.width=i.unconvertedWidth,i.widthMode=null!==(u=i.unconvertedWidthMode)&&void 0!==u?u:i.widthMode,i.unconvertedWidth=null,i.unconvertedWidthMode=null),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,h.push(t))}else if(0===i.widthMode){let n=hs(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||h.push(t))}else 2===i.widthMode?(f+=i.width,l++):3===i.widthMode&&m++}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];if(0===r.widthMode){const t=r.width,n=r.widthMode;null==r.unconvertedWidth&&(r.unconvertedWidth=t,r.unconvertedWidthMode=n),r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,f+=r.width,l++}}if(l&&(f<1&&!m&&r.relativeWidthGrowsToFillWidth||f>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(null==t.unconvertedWidth&&(t.unconvertedWidth=t.width,t.unconvertedWidthMode=t.widthMode),t.width/=f)}let p=Math.max(0,o);0===p&&(p=n.table.clientWidth);let v=r.minColumnWidth/p;if(Number.isFinite(v)||(v=0),v>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<v&&(t+=v-r.width,r.width=v)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>v&&t>0&&(null==i.unconvertedWidth&&(i.unconvertedWidth=i.width,i.unconvertedWidthMode=i.widthMode),e=Math.min(t,i.width-v),i.width-=e,t-=e)}}if(!m&&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(p*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)null==t.unconvertedWidth&&(t.unconvertedWidth=t.width,t.unconvertedWidthMode=t.widthMode),t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===h.indexOf(e)&&h.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(p*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,h.push(e))}}if(m){let e=Math.max(0,o),t=m;for(let i=0;i<n.visibleColumns.length;i++){let o=n.visibleColumns[i];if(3===o.widthMode){let n=Math.floor(e/t);!o.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),e-=n,t--,n!==o.actualWidth&&(o.actualWidth=n,h.push(i))}}}if(r.autoFillLastColumn&&n.visibleColumns.length){var c;let e=0;for(let t=0;t<n.visibleColumns.length;t++){var d;e+=null!==(d=n.visibleColumns[t].actualWidth)&&void 0!==d?d:0}const t=n.visibleColumns.length-1,r=n.visibleColumns[t],o=i-e;o>0&&(r.actualWidth=(null!==(c=r.actualWidth)&&void 0!==c?c:0)+o,-1===h.indexOf(t)&&h.push(t))}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=ms(this);s<e&&As(this,!1);for(let e=0;e<h.length;e++)Ms(this,h[e]);s>e&&As(this,!1)}Fs(this)}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let n=xl(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return n!==e.height&&(e.height=n,t.tbody&&(t.tbody.style.height=Math.max(e.height-xl(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return Xs(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Ss(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}}return Ks.VERSION="@@VERSION",Ks.Width=ls,class extends Ks{constructor(t){super(t),this.$el=e(this.el).data("dgtable",this).on("remove",()=>this.destroy()),this.on("headerrowdestroy",()=>{var t;const r=null===(t=this._p)||void 0===t?void 0:t.headerRow;r&&e(r).find("div.".concat(this._o.tableClassName,"-header-cell")).remove()})}destroy(){var t,r;return null!==(t=this._p)&&void 0!==t&&t.table&&e(this._p.table).empty(),null!==(r=this._p)&&void 0!==r&&r.tbody&&e(this._p.tbody).empty(),super.destroy()}}});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTableJQuery=t(e.jQuery)}(this,function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,l,s=[],a=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(a=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{if(!a&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw i}}return s}}(e,r)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i,o,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};function a(){if(o)return i;o=1;var e=function(e){return e&&e.Math===Math&&e};return i=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof l&&l)||e("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var u,c,d,h,f,m,v,p,g={};function b(){return c?u:(c=1,u=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(h)return d;h=1;var e=b();return d=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function C(){if(m)return f;m=1;var e=b();return f=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function w(){if(p)return v;p=1;var e=C(),t=Function.prototype.call;return v=e?t.bind(t):function(){return t.apply(t,arguments)},v}var S,x,W,R,_,I,P,k,E,L,N,A,T,F,O,M,z,H,j,D,U,B,q,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue={};function ce(){if(S)return ue;S=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ue.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ue}function de(){return W?x:(W=1,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function he(){if(_)return R;_=1;var e=C(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return R=e?n:function(e){return function(){return r.apply(e,arguments)}},R}function fe(){if(P)return I;P=1;var e=he(),t=e({}.toString),r=e("".slice);return I=function(e){return r(t(e),8,-1)}}function me(){if(E)return k;E=1;var e=he(),t=b(),r=fe(),n=Object,i=e("".split);return k=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function ve(){return N?L:(N=1,L=function(e){return null==e})}function pe(){if(T)return A;T=1;var e=ve(),t=TypeError;return A=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function ge(){if(O)return F;O=1;var e=me(),t=pe();return F=function(r){return e(t(r))}}function be(){if(z)return M;z=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(j)return H;j=1;var e=be();return H=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(U)return D;U=1;var e=a(),t=be();return D=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},D}function we(){if(q)return B;q=1;var e=he();return B=e({}.isPrototypeOf)}function Se(){if($)return V;$=1;var e=a().navigator,t=e&&e.userAgent;return V=t?String(t):""}function xe(){if(X)return G;X=1;var e,t,r=a(),n=Se(),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]),G=t}function We(){if(J)return Y;J=1;var e=xe(),t=b(),r=a().String;return Y=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Re(){if(Q)return K;Q=1;var e=We();return K=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function _e(){if(ee)return Z;ee=1;var e=Ce(),t=be(),r=we(),n=Re(),i=Object;return Z=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function Ie(){if(re)return te;re=1;var e=String;return te=function(t){try{return e(t)}catch(e){return"Object"}}}function Pe(){if(ie)return ne;ie=1;var e=be(),t=Ie(),r=TypeError;return ne=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function ke(){if(le)return oe;le=1;var e=Pe(),t=ve();return oe=function(r,n){var i=r[n];return t(i)?void 0:e(i)},oe}function Ee(){if(ae)return se;ae=1;var e=w(),t=be(),r=ye(),n=TypeError;return se=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 Le,Ne,Ae,Te,Fe,Oe,Me,ze,He,je,De,Ue,Be,qe,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt={exports:{}};function rt(){return Ne?Le:(Ne=1,Le=!1)}function nt(){if(Te)return Ae;Te=1;var e=a(),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 it(){if(Fe)return tt.exports;Fe=1;var e=rt(),t=a(),r=nt(),n="__core-js_shared__",i=tt.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.50.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.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),tt.exports}function ot(){if(Me)return Oe;Me=1;var e=it(),t=Object.create||Object;return Oe=function(r,n){return e[r]||(e[r]=n||t(null))}}function lt(){if(He)return ze;He=1;var e=pe(),t=Object;return ze=function(r){return t(e(r))}}function st(){if(De)return je;De=1;var e=he(),t=lt(),r=e({}.hasOwnProperty);return je=Object.hasOwn||function(e,n){return r(t(e),n)}}function at(){if(Be)return Ue;Be=1;var e=he(),t=0,r=Math.random(),n=e(1.1.toString);return Ue=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function ut(){if(Ve)return qe;Ve=1;var e=a(),t=ot(),r=st(),n=at(),i=We(),o=Re(),l=e.Symbol,s=t("wks"),u=o?l.for||l:l&&l.withoutSetter||n;return qe=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:u("Symbol."+e)),s[e]}}function ct(){if(Ge)return $e;Ge=1;var e=w(),t=ye(),r=_e(),n=ke(),i=Ee(),o=ut(),l=TypeError,s=o("toPrimitive");return $e=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 dt(){if(Ye)return Xe;Ye=1;var e=ct(),t=_e();return Xe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ht(){if(Ke)return Je;Ke=1;var e=a(),t=ye(),r=e.document,n=t(r)&&t(r.createElement);return Je=function(e){return n?r.createElement(e):{}}}function ft(){if(Ze)return Qe;Ze=1;var e=y(),t=b(),r=ht();return Qe=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function mt(){if(et)return g;et=1;var e=y(),t=w(),r=ce(),n=de(),i=ge(),o=dt(),l=st(),s=ft(),a=Object.getOwnPropertyDescriptor;return g.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])},g}var vt,pt,gt,bt,yt,Ct,wt,St={};function xt(){if(pt)return vt;pt=1;var e=y(),t=b();return vt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Wt(){if(bt)return gt;bt=1;var e=ye(),t=String,r=TypeError;return gt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Rt(){if(yt)return St;yt=1;var e=y(),t=ft(),r=xt(),n=Wt(),i=dt(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return St.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},St}function _t(){if(wt)return Ct;wt=1;var e=y(),t=Rt(),r=de();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 It,Pt,kt,Et,Lt,Nt,At,Tt,Ft,Ot,Mt,zt,Ht,jt,Dt,Ut={exports:{}};function Bt(){if(Pt)return It;Pt=1;var e=y(),t=st(),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 It={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function qt(){if(Et)return kt;Et=1;var e=he(),t=be(),r=it(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),kt=r.inspectSource}function Vt(){if(Tt)return At;Tt=1;var e=ot(),t=at(),r=e("keys");return At=function(e){return r[e]||(r[e]=t(e))}}function $t(){return Ot?Ft:(Ot=1,Ft={})}function Gt(){if(zt)return Mt;zt=1;var e,t,r,n=function(){if(Nt)return Lt;Nt=1;var e=a(),t=be(),r=e.WeakMap;return Lt=t(r)&&/native code/.test(String(r))}(),i=a(),o=ye(),l=_t(),s=st(),u=it(),c=Vt(),d=$t(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||u.state){var v=u.state||(u.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 Xt(){if(Ht)return Ut.exports;Ht=1;var e=he(),t=b(),r=be(),n=st(),i=y(),o=Bt().CONFIGURABLE,l=qt(),s=Gt(),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=Ut.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"),Ut.exports}function Yt(){if(Dt)return jt;Dt=1;var e=be(),t=Rt(),r=Xt(),n=nt();return jt=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},jt}var Jt,Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr={};function mr(){if(Zt)return Qt;Zt=1;var e=function(){if(Kt)return Jt;Kt=1;var e=Math.ceil,t=Math.floor;return Jt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Jt}();return Qt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function vr(){if(tr)return er;tr=1;var e=mr(),t=Math.max,r=Math.min;return er=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function pr(){if(nr)return rr;nr=1;var e=mr(),t=Math.min;return rr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function gr(){if(or)return ir;or=1;var e=pr();return ir=function(t){return e(t.length)}}function br(){if(ur)return ar;ur=1;var e=he(),t=st(),r=ge(),n=function(){if(sr)return lr;sr=1;var e=ge(),t=vr(),r=gr(),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 lr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=$t(),o=e([].push);return ar=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},ar}function yr(){return dr?cr:(dr=1,cr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Cr,wr,Sr,xr,Wr,Rr,_r,Ir,Pr,kr,Er,Lr,Nr,Ar,Tr,Fr,Or,Mr,zr={};function Hr(){return Cr||(Cr=1,zr.f=Object.getOwnPropertySymbols),zr}function jr(){if(Sr)return wr;Sr=1;var e=Ce(),t=he(),r=function(){if(hr)return fr;hr=1;var e=br(),t=yr().concat("length","prototype");return fr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},fr}(),n=Hr(),i=Wt(),o=t([].concat);return wr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function Dr(){if(Wr)return xr;Wr=1;var e=st(),t=jr(),r=mt(),n=Rt();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 Ur(){if(Pr)return Ir;Pr=1;var e=a(),t=mt().f,r=_t(),n=Yt(),i=nt(),o=Dr(),l=function(){if(_r)return Rr;_r=1;var e=b(),t=be(),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 Rr=n}();return Ir=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 Br(){if(Nr)return Lr;Nr=1;var e=function(){if(Er)return kr;Er=1;var e={};return e[ut()("toStringTag")]="z",kr="[object z]"===String(e)}(),t=be(),r=fe(),n=ut()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Lr=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},Lr}function qr(){if(Tr)return Ar;Tr=1;var e=Br(),t=String;return Ar=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Vr(){if(Or)return Fr;Or=1;var e=Xt(),t=Rt();return Fr=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(){if(Mr)return s;Mr=1;var e=Ur(),t=y(),r=a(),n=w(),i=he(),o=st(),l=be(),u=we(),c=qr(),d=Vr(),h=Dr(),f=r.Symbol,m=f&&f.prototype;if(t&&l(f)&&(!("description"in m)||void 0!==f().description)){var v={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(m,this)?new f(e):void 0===e?f():f(e);return""===e&&(v[t]=!0),t};h(p,f);var g=p.for;p.for={for:function(e){var t=c(e),r=n(g,this,t);return""===t&&(v[r]=!0),r}}.for,p.prototype=m,m.constructor=p;var b="Symbol(description detection)"===String(f("description detection")),C=i(m.valueOf),S=i(m.toString),x=/^Symbol\((.*)\)[^)]+$/,W=i("".replace),R=i("".slice);d(m,"description",{configurable:!0,get:function(){var e=C(this);if(o(v,e))return"";var t=S(e),r=b?R(t,7,-1):W(t,x,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var $r,Gr,Xr,Yr,Jr,Kr,Qr,Zr,en,tn,rn,nn,on,ln,sn,an={};function un(){if(Gr)return $r;Gr=1;var e=Ie(),t=TypeError;return $r=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},$r}function cn(){if(Yr)return Xr;Yr=1;var e=he();return Xr=e([].slice)}function dn(){if(Kr)return Jr;Kr=1;var e=cn(),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 hn(){if(Zr)return Qr;Zr=1;var e=b();return Qr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(sn)return an;sn=1;var e=Ur(),t=he(),r=Pe(),n=lt(),i=gr(),o=un(),l=qr(),s=b(),a=dn(),u=hn(),c=function(){if(tn)return en;tn=1;var e=Se().match(/firefox\/(\d+)/i);return en=!!e&&+e[1]}(),d=function(){if(nn)return rn;nn=1;var e=Se();return rn=/MSIE|Trident/.test(e)}(),h=xe(),f=function(){if(ln)return on;ln=1;var e=Se().match(/AppleWebKit\/(\d+)\./);return on=!!e&&+e[1]}(),m=[],v=t(m.sort),p=t(m.push),g=s(function(){m.sort(void 0)}),y=s(function(){m.sort(null)}),C=u("sort"),w=!s(function(){if(h)return h<70;if(!(c&&c>3)){if(d)return!0;if(f)return f<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++)m.push({k:t+n,v:r})}for(m.sort(function(e,t){return t.v-e.v}),n=0;n<m.length;n++)t=m[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:g||!y||!C||!w},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(w)return void 0===e?v(t):v(t,e);var s,u,c=[],d=i(t);for(u=0;u<d;u++)u in t&&p(c,t[u]);for(a(c,function(e){return function(t,r){if(void 0===r)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,r)||0;var n=l(t),i=l(r);return n===i?0:n>i?1:-1}}(e)),s=i(c),u=0;u<s;)t[u]=c[u++];for(;u<d;)o(t,u++);return t}})}();var fn,mn,vn,pn,gn={};function bn(){if(mn)return fn;mn=1;var e=Wt();return fn=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}}var yn,Cn,wn,Sn,xn,Wn,Rn,_n,In,Pn,kn,En,Ln,Nn,An={};function Tn(){if(Cn)return yn;Cn=1;var e=br(),t=yr();return yn=Object.keys||function(r){return e(r,t)},yn}function Fn(){if(xn)return Sn;xn=1;var e=Ce();return Sn=e("document","documentElement")}function On(){if(Rn)return Wn;Rn=1;var e,t=Wt(),r=function(){if(wn)return An;wn=1;var e=y(),t=xt(),r=Rt(),n=Wt(),i=ge(),o=Tn();return An.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},An}(),n=yr(),i=$t(),o=Fn(),l=ht(),s=Vt(),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,Wn=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)},Wn}function Mn(){if(Ln)return En;Ln=1;var e,t,r=w(),n=he(),i=qr(),o=bn(),l=function(){if(pn)return vn;pn=1;var e=b(),t=a().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 vn={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=ot(),u=On(),c=Gt().get,d=function(){if(In)return _n;In=1;var e=b(),t=a().RegExp;return _n=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),_n}(),h=function(){if(kn)return Pn;kn=1;var e=b(),t=a().RegExp;return Pn=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Pn}(),f=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,p=n("".charAt),g=n("".indexOf),y=n("".replace),C=n("".slice),S=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),x=l.BROKEN_CARET,W=void 0!==/()??/.exec("")[1],R=function(e,t){for(var r=e.groups=u(null),n=0;n<t.length;n++){var i=t[n];r[i[0]]=e[i[1]]}};return(S||W||x||d||h)&&(v=function(e){var t,n,l,s=this,a=c(s),u=i(e),d=a.raw;if(d)return d.lastIndex=s.lastIndex,t=r(v,d,u),s.lastIndex=d.lastIndex,t&&a.groups&&R(t,a.groups),t;var h=a.groups,b=x&&s.sticky,w=r(o,s),_=s.source,I=0,P=u;if(b){w=y(w,"y",""),-1===g(w,"g")&&(w+="g"),P=C(u,s.lastIndex);var k=s.lastIndex>0&&p(u,s.lastIndex-1);s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==k&&"\r"!==k&&"\u2028"!==k&&"\u2029"!==k)&&(_="(?: (?:"+_+"))",P=" "+P,I++),n=new RegExp("^(?:"+_+")",w)}W&&(n=new RegExp("^"+_+"$(?!\\s)",w)),S&&(l=s.lastIndex);var E=r(m,b?n:s,P);return b?E?(E.input=u,E[0]=C(E[0],I),E.index=s.lastIndex,s.lastIndex+=E[0].length):s.lastIndex=0:S&&E&&(s.lastIndex=s.global?E.index+E[0].length:l),W&&E&&E.length>1&&r(f,E[0],n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(E[e]=void 0)}),E&&h&&R(E,h),E}),En=v}function zn(){if(Nn)return gn;Nn=1;var e=Ur(),t=Mn();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),gn}zn();var Hn,jn,Dn,Un,Bn,qn,Vn,$n,Gn,Xn,Yn,Jn,Kn,Qn,Zn,ei,ti,ri={};function ni(){if(qn)return Bn;qn=1;var e=he(),t=mr(),r=qr(),n=pe(),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 Bn={codeAt:s(!1),charAt:s(!0)}}function ii(){if($n)return Vn;$n=1;var e=ni().charAt;return Vn=function(t,r,n){return r+(n&&e(t,r).length||1)},Vn}function oi(){if(Xn)return Gn;Xn=1;var e=he(),t=lt(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Gn=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})},Gn}!function(){if(ti)return ri;ti=1;var e=function(){if(jn)return Hn;jn=1;var e=C(),t=Function.prototype,r=t.apply,n=t.call;return Hn="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Hn}(),t=w(),r=he(),n=function(){if(Un)return Dn;Un=1,zn();var e=w(),t=Yt(),r=Mn(),n=b(),i=ut(),o=_t(),l=i("species"),s=RegExp.prototype;return Dn=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)},Dn}(),i=b(),o=Wt(),l=be(),s=ye(),u=mr(),c=pr(),d=qr(),h=pe(),f=ii(),m=ke(),v=oi(),p=function(){if(Qn)return Kn;Qn=1;var e=w(),t=st(),r=we(),n=function(){if(Jn)return Yn;Jn=1;var e=a(),t=b(),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 Yn={correct:n}}(),i=bn(),o=RegExp.prototype;return Kn=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(ei)return Zn;ei=1;var e=w(),t=Wt(),r=be(),n=fe(),i=Mn(),o=TypeError;return Zn=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")},Zn}(),y=ut()("replace"),S=Math.max,x=Math.min,W=r([].concat),R=r([].push),_=r("".indexOf),I=r("".slice),P=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),E=!!/./[y]&&""===/./[y]("a","$0"),L=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});n("replace",function(r,n,i){var a=E?"$":"$0";return[function(e,r){var i=h(this),o=s(e)?m(e,y):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),m=l(r);m||(r=d(r));var b=d(p(s));if("string"==typeof r&&!~_(r,a)&&!~_(r,"$<")&&!~_(b,"y")){var y=i(n,s,h,r);if(y.done)return y.value}var C,w=!!~_(b,"g");w&&(C=!!~_(b,"u")||!!~_(b,"v"),s.lastIndex=0);for(var k,E=[];null!==(k=g(s,h))&&(R(E,k),w);)""===d(k[0])&&(s.lastIndex=f(h,c(s.lastIndex),C));for(var L="",N=0,A=0;A<E.length;A++){for(var T,F=d((k=E[A])[0]),O=S(x(u(k.index),h.length),0),M=[],z=1;z<k.length;z++)R(M,P(k[z]));var H=k.groups;if(m){var j=W([F],M,O,h);void 0!==H&&R(j,H),T=d(e(r,void 0,j))}else T=v(F,h,O,M,H,r);O>=N&&(L+=I(h,N,O)+T,N=O+F.length)}return L+I(h,N)}]},!L||!k||E)}();var li,si,ai,ui,ci,di,hi,fi={};function mi(){return si?li:(si=1,li="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(hi)return fi;hi=1;var e=Ur(),t=function(){if(ui)return ai;ui=1;var e=he(),t=pe(),r=qr(),n=mi(),i=e("".replace),o=RegExp("^["+n+"]+"),l=RegExp("(^|[^"+n+"])["+n+"]+$"),s=function(e){return function(n){var s=r(t(n));return 1&e&&(s=i(s,o,"")),2&e&&(s=i(s,l,"$1")),s}};return ai={start:s(1),end:s(2),trim:s(3)}}().trim,r=function(){if(di)return ci;di=1;var e=Bt().PROPER,t=b(),r=mi();return ci=function(n){return t(function(){return!!r[n]()||"
"!=="
"[n]()||e&&r[n].name!==n})}}();e({target:"String",proto:!0,forced:r("trim")},{trim:function(){return t(this)}})}();var vi,pi,gi,bi,yi,Ci,wi,Si,xi,Wi,Ri,_i,Ii,Pi,ki,Ei,Li,Ni,Ai,Ti,Fi,Oi,Mi,zi,Hi,ji,Di,Ui,Bi,qi,Vi,$i,Gi,Xi={};function Yi(){if(Ci)return yi;Ci=1;var e=ut(),t=On(),r=Rt().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),yi=function(e){i[n][e]=!0}}function Ji(){return Si?wi:(Si=1,wi=Object.create?Object.create(null):{})}function Ki(){if(_i)return Ri;_i=1;var e=st(),t=be(),r=lt(),n=Vt(),i=function(){if(Wi)return xi;Wi=1;var e=b();return xi=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),xi}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Ri=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},Ri}function Qi(){if(Pi)return Ii;Pi=1;var e,t,r,n=b(),i=be(),o=ye(),l=On(),s=Ki(),a=Yt(),u=ut(),c=rt(),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}),Ii={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Zi(){if(Ei)return ki;Ei=1;var e=Rt().f,t=st(),r=ut()("toStringTag");return ki=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function eo(){if(Ni)return Li;Ni=1;var e=Qi().IteratorPrototype,t=On(),r=de(),n=Zi(),i=Ji(),o=function(){return this};return Li=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 to(){if(Oi)return Fi;Oi=1;var e=ye();return Fi=function(t){return e(t)||null===t}}function ro(){if(zi)return Mi;zi=1;var e=to(),t=String,r=TypeError;return Mi=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function no(){if(Ui)return Di;Ui=1;var e=Ur(),t=w(),r=rt(),n=Bt(),i=be(),o=eo(),l=Ki(),s=function(){if(ji)return Hi;ji=1;var e=function(){if(Ti)return Ai;Ti=1;var e=he(),t=Pe();return Ai=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ye(),r=pe(),n=ro();return Hi=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),Hi}(),a=Zi(),u=_t(),c=Yt(),d=ut(),h=Ji(),f=Qi(),m=n.PROPER,v=n.CONFIGURABLE,p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),y="keys",C="values",S="entries",x=function(){return this};return Di=function(n,d,f,w,W,R,_){o(f,d,w);var I,P,k,E=function(e){if(e===W&&F)return F;if(!g&&e&&e in A)return A[e];switch(e){case y:case C:case S:return function(){return new f(this,e)}}return function(){return new f(this)}},L=d+" Iterator",N=!1,A=n.prototype,T=A[b]||A["@@iterator"]||W&&A[W],F=!g&&T||E(W),O="Array"===d&&A.entries||T;if(O&&(I=l(O.call(new n)))!==Object.prototype&&I.next&&(r||l(I)===p||(s?s(I,p):i(I[b])||c(I,b,x)),a(I,L,!0,!0),r&&(h[L]=x)),m&&W===C&&T&&T.name!==C&&(!r&&v?u(A,"name",C):(N=!0,F=function(){return t(T,this)})),W)if(P={values:E(C),keys:R?F:E(y),entries:E(S)},_)for(k in P)(g||N||!(k in A))&&c(A,k,P[k]);else e({target:d,proto:!0,forced:g||N},P);return r&&!_||A[b]===F||c(A,b,F,{name:W}),h[d]=F,P}}function io(){return qi?Bi:(qi=1,Bi=function(e,t){return{value:e,done:t}})}function oo(){if($i)return Vi;$i=1;var e=ge(),t=Yi(),r=Ji(),n=Gt(),i=Rt().f,o=no(),l=io(),s=rt(),a=y(),u="Array Iterator",c=n.set,d=n.getterFor(u);Vi=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 Vi}!function(){if(Gi)return Xi;Gi=1;var e=a(),t=pi?vi:(pi=1,vi={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(bi)return gi;bi=1;var e=ht()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return gi=t===Object.prototype?void 0:t}(),n=oo(),i=_t(),o=Zi(),l=ut()("iterator"),s=n.values,u=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)u(e[c]&&e[c].prototype,c);u(r,"DOMTokenList")}();var lo,so,ao,uo,co,ho,fo,mo,vo,po,go,bo,yo,Co,wo,So,xo,Wo,Ro,_o,Io,Po,ko,Eo,Lo,No,Ao,To,Fo,Oo,Mo,zo,Ho,jo,Do,Uo={},Bo={};function qo(){if(ao)return so;ao=1;var e=b(),t=ut(),r=y(),n=rt(),i=t("iterator");return so=!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 Vo(){if(fo)return ho;fo=1;var e=function(){if(co)return uo;co=1;var e=fe(),t=he();return uo=function(r){if("Function"===e(r))return t(r)}}(),t=Pe(),r=C(),n=e(e.bind);return ho=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},ho}function $o(){if(vo)return mo;vo=1;var e=we(),t=TypeError;return mo=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function Go(){if(yo)return bo;yo=1;var e=w(),t=Wt(),r=ke();return bo=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 Xo(){if(wo)return Co;wo=1;var e=Wt(),t=Go();return Co=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function Yo(){if(xo)return So;xo=1;var e=ut(),t=Ji(),r=e("iterator"),n=Array.prototype;return So=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Jo(){if(Ro)return Wo;Ro=1;var e=he(),t=b(),r=be(),n=Br(),i=Ce(),o=qt(),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,Wo=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function Ko(){if(Io)return _o;Io=1;var e=y(),t=Rt(),r=de();return _o=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function Qo(){if(ko)return Po;ko=1;var e=fe();return Po=Array.isArray||function(t){return"Array"===e(t)}}function Zo(){if(Ao)return No;Ao=1;var e=fe(),t=ve(),r=ke(),n=ut()("iterator"),i=Array.prototype;return No=function(o){if(!t(o))return r(o,n)||r(o,"@@iterator")||("Arguments"===e(o)?i[n]:void 0)}}function el(){if(Fo)return To;Fo=1;var e=w(),t=be(),r=Wt(),n=Ie(),i=Zo(),o=TypeError;return To=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")},To}function tl(){if(Mo)return Oo;Mo=1;var e=TypeError;return Oo=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}}function rl(){if(Ho)return zo;Ho=1;var e=Vo(),t=w(),r=lt(),n=Xo(),i=Yo(),o=Jo(),l=gr(),s=Ko(),a=function(){if(Lo)return Eo;Lo=1;var e=y(),t=Qo(),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 Eo=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},Eo}(),u=el(),c=Zo(),d=Go(),h=tl(),f=Array;return zo=function(m){var v=o(this),p=arguments.length,g=p>1?arguments[1]:void 0,b=void 0!==g;b&&(g=e(g,p>2?arguments[2]:void 0));var y,C,w,S,x,W,R=r(m),_=c(R),I=0;if(!_||this===f&&i(_))for(y=l(R),C=v?new this(y):f(y);y>I;I++)W=b?g(R[I],I):R[I],s(C,I,W);else for(C=v?new this:[],x=(S=u(R,_)).next;!(w=t(x,S)).done;I++){try{h(I)}catch(e){d(S,"throw",e)}W=b?n(S,g,[w.value,I],!0):w.value;try{s(C,I,W)}catch(e){d(S,"throw",e)}}return a(C,I),C},zo}var nl,il,ol,ll,sl,al,ul,cl,dl,hl,fl,ml,vl,pl={};function gl(){if(ol)return il;ol=1,function(){if(nl)return pl;nl=1;var e=Ur(),t=he(),r=vr(),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(r(t=+arguments[a],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=Ce(),t=he(),r=String.fromCharCode,n=e("String","fromCodePoint"),i=encodeURIComponent,o=parseInt,l=t("".charAt),s=t([].push),a=t("".replace),u=t("".slice),c=t(/./.exec),d="�",h=/^[0-9a-f]+$/i,f=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,m=function(e,t){var r=u(e,t,t+2);return c(h,r)?o(r,16):NaN},v=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},p=function(e){var t=null,r=e.length;switch(r){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 null===t||t>1114111||t>=55296&&t<=57343||t<(r>3?65536:r>2?2048:r>1?128:0)?null:t},g=function(e){return 2===e.length?e:d};return il={decode:function(e){for(var t=e.length,i="",o=0;o<t;){var a=l(e,o);if("%"===a){if("%"===l(e,o+1)||o+3>t){i+="%",o++;continue}var u=m(e,o+1);if(u!=u){i+=a,o++;continue}o+=2;var c=v(u);if(0===c)a=r(u);else{if(1===c||c>4){i+=d,o++;continue}for(var h=[u],f=1;f<c&&!(3+ ++o>t||"%"!==l(e,o));){var g=m(e,o+1);if(g!=g||g>191||g<128)break;if(1===f){if(224===u&&g<160)break;if(237===u&&g>159)break;if(240===u&&g<144)break;if(244===u&&g>143)break}s(h,g),o+=2,f++}if(h.length!==c){i+=d;continue}var b=p(h);if(null===b){for(var y=0;y<c;y++)i+=d;o++;continue}a=n(b)}}i+=a,o++}return i},encode:function(e){try{return i(e)}catch(t){return i(a(e,f,g))}}}}function bl(){if(sl)return ll;sl=1;var e=TypeError;return ll=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}function yl(){if(ul)return al;ul=1;var e=a(),t=y(),r=Object.getOwnPropertyDescriptor;return al=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function Cl(){if(dl)return cl;dl=1;var e=Yt();return cl=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function wl(){if(fl)return hl;fl=1,oo();var e=Ur(),t=a(),r=yl(),n=w(),i=he(),o=y(),l=qo(),s=gl(),u=Yt(),c=Vr(),d=Cl(),h=Zi(),f=eo(),m=Gt(),v=$o(),p=be(),g=st(),b=Vo(),C=Br(),S=Wt(),x=ye(),W=qr(),R=On(),_=de(),I=el(),P=Zo(),k=io(),E=bl(),L=ut(),N=dn(),A=L("iterator"),T="URLSearchParams",F=T+"Iterator",O=m.set,M=m.getterFor(T),z=m.getterFor(F),H=s.decode,j=s.encode,D=r("fetch"),U=r("Request"),B=r("Headers"),q=U&&U.prototype,V=B&&B.prototype,$=t.TypeError,G=i("".charAt),X=i([].join),Y=i([].push),J=i("".replace),K=i([].shift),Q=i([].splice),Z=i("".split),ee=i("".slice),te=/\+/g,re=function(e){return H(J(e,te," "))},ne=/[!'()~]|%20/g,ie={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},oe=function(e){return ie[e]},le=function(e){return J(j(e),ne,oe)},se=f(function(e,t){O(this,{type:F,target:M(e).entries,index:0,kind:t})},T,function(){var e=z(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,k(void 0,!0);var n=t[r];switch(e.kind){case"keys":return k(n.key,!1);case"values":return k(n.value,!1)}return k([n.key,n.value],!1)},!0),ae=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ee(e,1):e:W(e)))};ae.prototype={type:T,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,i,o,l,s,a,u=this.entries,c=P(e);if(c)for(r=(t=I(e,c)).next;!(i=n(r,t)).done;){if(l=(o=I(S(i.value))).next,(s=n(l,o)).done||(a=n(l,o)).done||!n(l,o).done)throw new $("Expected sequence with length 2");Y(u,{key:W(s.value),value:W(a.value)})}else for(var d in e)g(e,d)&&Y(u,{key:d,value:W(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Z(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=Z(t,"="),Y(n,{key:re(K(r)),value:re(X(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Y(r,le(e.key)+"="+le(e.value));return X(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ue=function(){v(this,ce);var e=O(this,new ae(arguments.length>0?arguments[0]:void 0));o||(this.size=e.entries.length)},ce=ue.prototype;if(d(ce,{append:function(e,t){var r=M(this);E(arguments.length,2),Y(r.entries,{key:W(e),value:W(t)}),o||this.size++,r.updateURL()},delete:function(e){for(var t=M(this),r=E(arguments.length,1),n=t.entries,i=W(e),l=r<2?void 0:arguments[1],s=void 0===l?l:W(l),a=0;a<n.length;){var u=n[a];u.key!==i||void 0!==s&&u.value!==s?a++:Q(n,a,1)}o||(this.size=n.length),t.updateURL()},get:function(e){var t=M(this).entries;E(arguments.length,1);for(var r=W(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=M(this).entries;E(arguments.length,1);for(var r=W(e),n=[],i=0;i<t.length;i++)t[i].key===r&&Y(n,t[i].value);return n},has:function(e){for(var t=M(this).entries,r=E(arguments.length,1),n=W(e),i=r<2?void 0:arguments[1],o=void 0===i?i:W(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=M(this);E(arguments.length,2);for(var n,i=r.entries,l=!1,s=W(e),a=W(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(l?Q(i,u--,1):(l=!0,n.value=a));l||Y(i,{key:s,value:a}),o||(this.size=i.length),r.updateURL()},sort:function(){var e=M(this);N(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=M(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 se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),u(ce,A,ce.entries,{name:"entries"}),u(ce,"toString",function(){return M(this).serialize()},{enumerable:!0}),o&&c(ce,"size",{get:function(){return M(this).entries.length},configurable:!0,enumerable:!0}),h(ue,T),e({global:!0,constructor:!0,forced:!l},{URLSearchParams:ue}),!l&&p(B)){var fe=i(V.has),me=i(V.set),ve=function(e){if(x(e)){var t,r=e.body;if(C(r)===T)return t=e.headers?new B(e.headers):new B,fe(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),R(e,{body:_(0,W(r)),headers:_(0,t)})}return e};if(p(D)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ve(arguments[1]):{})}}),p(U)){var pe=function(e){return v(this,q),new U(e,arguments.length>1?ve(arguments[1]):{})};q.constructor=pe,pe.prototype=q,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pe})}}return hl={URLSearchParams:ue,getState:M}}vl||(vl=1,function(){if(ml)return Uo;ml=1,function(){if(lo)return Bo;lo=1;var e=ni().charAt,t=qr(),r=Gt(),n=no(),i=io(),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=Ur(),r=y(),n=qo(),i=a(),o=Vo(),l=he(),s=Yt(),u=Vr(),c=$o(),d=st(),h=function(){if(go)return po;go=1;var e=y(),t=he(),r=w(),n=b(),i=Tn(),o=Hr(),l=ce(),s=lt(),a=me(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return po=!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,y=0;b>y;)v=g[y++],e&&!r(m,p,v)||(u[v]=p[v]);return u}:u,po}(),f=rl(),m=cn(),v=ni().codeAt,p=function(){if(Do)return jo;Do=1;var e=he(),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,y=b;for(b&&d(r,"-");y<h;){var C=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<C&&(C=l);var w=y+1;if(C-f>s((t-m)/w))throw new o(i);for(m+=(C-f)*w,f=C,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,x=36;;){var W=x<=g?1:x>=g+26?26:x-g;if(S<W)break;var R=S-W,_=36-W;d(r,a(v(W+R%_))),S=s(R/_),x+=36}d(r,a(v(S))),g=p(m,w,y===b),m=0,y++}}m++,f++}return c(r,"")};return jo=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=gl(),C=qr(),S=Zi(),x=bl(),W=wl(),R=Gt(),_=R.set,I=R.getterFor("URL"),P=W.URLSearchParams,k=W.getState,E=g.decode,L=g.encode,N=i.URL,A=i.TypeError,T=i.parseInt,F=Math.floor,O=Math.pow,M=String.fromCharCode,z=l("".charAt),H=l(/./.exec),j=l([].join),D=l(1.1.toString),U=l([].pop),B=l([].push),q=l("".replace),V=l([].shift),$=l("".split),G=l("".indexOf),X=l("".slice),Y=l("".toLowerCase),J=l([].unshift),K="Invalid scheme",Q="Invalid host",Z="Invalid port",ee=/[a-z]/i,te=/[\d+\-.a-z]/i,re=/\d/,ne=/^0x/i,ie=/^[0-7]+$/,oe=/^\d+$/,le=/^[\da-f]+$/i,se=/[\u0000-\u0020#%/:<>?@[\\\]^|\u007F]/,ae=/[\0\t\n\r #/:<>?@[\\\]^|]/,ue=/^[\u0000-\u0020]+/,de=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,fe=/[\t\n\r]/g,ve=/[^\u0000-\u007F]/,pe=function(e){return 173===e||847===e||8203===e||12644===e||65279===e||65440===e||e>=4447&&e<=4448||e>=6068&&e<=6069||e>=6155&&e<=6159||e>=8288&&e<=8292||e>=8298&&e<=8303||e>=65024&&e<=65039||e>=917760&&e<=917999},ge=function(e){return 65533===e||e>=55296&&e<=57343||e>=128&&e<=159||e>=8206&&e<=8207||e>=8232&&e<=8233||e>=8234&&e<=8238||e>=8293&&e<=8297||e>=64976&&e<=65007||!(65534&~e)||e>=57344&&e<=63743||e>=983040&&e<=1114109},be=function(e){return e>=65281&&e<=65374?e-65248:160===e||5760===e||8239===e||8287===e||12288===e||e>=8192&&e<=8202||e<=65535&&G("¨¯´¸˘˙˚˛˜˝ͺ΄΅᾽᾿῀῁῍῎῏῝῞῟῭΅´῾‗‾⁇⁈⁉℀℁℅℆⩴゛゜ﱞﱟﱠﱡﱢﱣﷺﷻ︓︖﹇﹈﹉﹊﹋﹌﹕﹖﹟﹤﹥﹨﹪﹫ﹰﹲﹴﹶﹸﹺﹼﹾ ̄",M(e))>-1?32:e},ye=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)J(t,e%256),e=F(e/256);return j(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+=D(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Ce={},we=h({},Ce,{" ":1,'"':1,"#":1,"<":1,">":1}),Se=h({},we,{"'":1}),xe=h({},Ce,{" ":1,'"':1,"<":1,">":1,"`":1}),We=h({},xe,{"#":1,"?":1,"{":1,"}":1,"^":1}),Re=h({},We,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),_e=function(e,t){var r=v(e,0);return r>=32&&r<127&&!d(t,e)?e:"'"===e&&d(t,e)?"%27":L(e)},Ie={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pe=function(e,t){var r;return 2===e.length&&H(ee,z(e,0))&&(":"===(r=z(e,1))||!t&&"|"===r)},ke=function(e){var t;return e.length>1&&Pe(X(e,0,2))&&(2===e.length||"/"===(t=z(e,2))||"\\"===t||"?"===t||"#"===t)},Ee=function(e){return"."===e||"%2e"===Y(e)},Le=function(e){return".."===(e=Y(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ne={},Ae={},Te={},Fe={},Oe={},Me={},ze={},He={},je={},De={},Ue={},Be={},qe={},Ve={},$e={},Ge={},Xe={},Ye={},Je={},Ke={},Qe={},Ze=function(e,t,r){var n,i,o,l=C(e);if(t){if(i=this.parse(l))throw new A(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ze(r,!0)),i=this.parse(l,null,n))throw new A(i);(o=k(new P)).bindURL(this),this.searchParams=o}};Ze.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ne,c=0,h="",v=!1,p=!1,g=!1;for(t=C(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=q(t,ue,""),t=q(t,de,"$1")),t=q(t,fe,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ne:if(!o||!H(ee,o)){if(r)return K;u=Te;continue}h+=Y(o),u=Ae;break;case Ae:if(o&&H(te,o))h+=Y(o);else{if(":"!==o){if(r)return K;h="",u=Te,c=0;continue}if(r&&(a.isSpecial()!==d(Ie,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&""===a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&Ie[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ve:a.isSpecial()&&n&&n.scheme===a.scheme?u=Fe:a.isSpecial()?u=He:"/"===i[c+1]?(u=Oe,c++):(a.cannotBeABaseURL=!0,B(a.path,""),u=Je)}break;case Te:if(!n||n.cannotBeABaseURL&&"#"!==o)return K;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Qe;break}u="file"===n.scheme?Ve:Me;continue;case Fe:if("/"!==o||"/"!==i[c+1]){u=Me;continue}u=je,c++;break;case Oe:if("/"===o){u=De;break}u=Ye;continue;case Me: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=ze;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=Ke;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&&a.path.length--,u=Ye;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=Qe}break;case ze:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Ye;continue}u=De}else u=je;break;case He:if(u=je,"/"!==o||"/"!==i[c+1])continue;c++;break;case je:if("/"!==o&&"\\"!==o){u=De;continue}break;case De:if("@"===o){v&&(h="%40"+h),v=!0,l=f(h);for(var b=0;b<l.length;b++){var y=l[b];if(":"!==y||g){var w=_e(y,Re);g?a.password+=w:a.username+=w}else g=!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=Ue}else h+=o;break;case Ue:case Be:if(r&&"file"===a.scheme){u=Ge;continue}if(":"!==o||p){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return Q;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=Xe,r)return;continue}"["===o?p=!0:"]"===o&&(p=!1),h+=o}else{if(""===h)return Q;if(r===Be)return;if(s=a.parseHost(h))return s;h="",u=qe}break;case qe:if(!H(re,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=T(h,10);if(S>65535)return Z;a.port=a.isSpecial()&&S===Ie[a.scheme]?null:S,h=""}if(r)return;u=Xe;continue}return Z}h+=o;break;case Ve:if(a.scheme="file",a.host="","/"===o||"\\"===o)u=$e;else{if(!n||"file"!==n.scheme){u=Ye;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=Ke;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Qe;break;default:a.host=n.host,ke(j(m(i,c),""))||(a.path=m(n.path),a.shortenPath()),u=Ye;continue}}break;case $e:if("/"===o||"\\"===o){u=Ge;break}n&&"file"===n.scheme&&(a.host=n.host,!ke(j(m(i,c),""))&&Pe(n.path[0],!0)&&B(a.path,n.path[0])),u=Ye;continue;case Ge:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&Pe(h))u=Ye;else if(""===h){if(a.host="",r)return;u=Xe}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=Xe}continue}h+=o;break;case Xe:if(a.isSpecial()){if(u=Ye,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Ye,"/"!==o))continue}else a.fragment="",u=Qe;else a.query="",u=Ke;break;case Ye:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(Le(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||B(a.path,"")):Ee(h)?"/"===o||"\\"===o&&a.isSpecial()||B(a.path,""):("file"===a.scheme&&!a.path.length&&Pe(h)&&(null!==a.host&&""!==a.host&&(a.host=""),h=z(h,0)+":"),B(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)V(a.path);"?"===o?(a.query="",u=Ke):"#"===o&&(a.fragment="",u=Qe)}else h+=_e(o,We);break;case Je:"?"===o?(a.query="",u=Ke):"#"===o?(a.fragment="",u=Qe):o!==e&&(a.path[0]+=" "===o?"?"===i[c+1]||"#"===i[c+1]?"%20":" ":_e(o,Ce));break;case Ke:r||"#"!==o?o!==e&&(a.query+=_e(o,a.isSpecial()?Se:we)):(a.fragment="",u=Qe);break;case Qe:o!==e&&(a.fragment+=_e(o,xe))}c++}},parseHost:function(e){var t,r,n;if("["===z(e,0)){if("]"!==z(e,e.length-1))return Q;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 z(e,d)};if(":"===h()){if(":"!==z(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&H(le,h());)t=16*t+T(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(!H(re,h()))return;for(;H(re,h());){if(o=T(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}(X(e,1,-1)),!t)return Q;this.host=t}else if(this.isSpecial()){if(e=function(e){if(!H(ve,e))return""===e?null:p(e);var t,r,n,i=f(e),o="";for(t=0;t<i.length;t++){if(r=v(i[t],0),ge(r))return null;pe(r)||(o+=(n=be(r))===r?i[t]:M(n))}return""===o?null:p(o)}(E(e)),null===e||H(se,e))return Q;if(function(e){var t,r,n=$(e,".");if(""===n[n.length-1]){if(1===n.length)return!1;n.length--}return t=n[n.length-1],!!H(oe,t)||!!H(ne,t)&&(""===(r=X(t,2))||!!H(le,r))}(e)){if(t=function(e){var t,r,n,i,o,l,s,a=$(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return null;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return null;if(o=10,i.length>1&&"0"===z(i,0)&&(o=H(ne,i)?16:8,i=X(i,8===o?1:2)),""===i)l=0;else{if(!H(10===o?oe:8===o?ie:le,i))return null;l=T(i,o)}B(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=O(256,5-t))return null}else if(l>255)return null;for(s=U(r),n=0;n<r.length;n++)s+=r[n]*O(256,3-n);return s}(e),null===t)return Q;this.host=t}else this.host=e}else{if(H(ae,e))return Q;for(t="",r=f(e),n=0;n<r.length;n++)t+=_e(r[n],Ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(Ie,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&Pe(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+=ye(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),null===i&&!e.cannotBeABaseURL&&l.length>1&&""===l[0]&&(u+="/."),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+j(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new et(this.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ye(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(C(e)+":",Ne)},getUsername:function(){return this.username},setUsername:function(e){var t=f(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=_e(t[r],Re)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(C(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=_e(t[r],Re)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ye(e):ye(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ue)},getHostname:function(){var e=this.host;return null===e?"":ye(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Be)},getPort:function(){var e=this.port;return null===e?"":C(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=C(e))?this.port=null:this.parse(e,qe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+j(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Xe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=C(e))?this.query=null:("?"===z(e,0)&&(e=X(e,1)),this.query="",this.parse(e,Ke)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=C(e))?("#"===z(e,0)&&(e=X(e,1)),this.fragment="",this.parse(e,Qe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var et=function(e){var t=c(this,tt),n=x(arguments.length,1)>1?arguments[1]:void 0,i=_(t,new Ze(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())},tt=et.prototype,rt=function(e,t){return{get:function(){return I(this)[e]()},set:t&&function(e){return I(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(u(tt,"href",rt("serialize","setHref")),u(tt,"origin",rt("getOrigin")),u(tt,"protocol",rt("getProtocol","setProtocol")),u(tt,"username",rt("getUsername","setUsername")),u(tt,"password",rt("getPassword","setPassword")),u(tt,"host",rt("getHost","setHost")),u(tt,"hostname",rt("getHostname","setHostname")),u(tt,"port",rt("getPort","setPort")),u(tt,"pathname",rt("getPathname","setPathname")),u(tt,"search",rt("getSearch","setSearch")),u(tt,"searchParams",rt("getSearchParams")),u(tt,"hash",rt("getHash","setHash"))),s(tt,"toJSON",function(){return I(this).serialize()},{enumerable:!0}),s(tt,"toString",function(){return I(this).serialize()},{enumerable:!0}),N){var nt=N.createObjectURL,it=N.revokeObjectURL;nt&&s(et,"createObjectURL",o(nt,N)),it&&s(et,"revokeObjectURL",o(it,N))}S(et,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:et})}());var Sl,xl,Wl,Rl,_l={};let Il;!function(){if(Wl)return _l;Wl=1;var e=Ur(),t=w(),r=function(){if(xl)return Sl;xl=1;var e=a();return Sl=function(t,r){var n=e[t],i=n&&n.prototype;return i&&i[r]}}()("URL","toString");e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(r,this)}})}(),Rl||(Rl=1,wl());const Pl=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function kl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===Il&&(Il=Pl()),!t)return e.scrollLeft;switch(Il){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function El(e,t,r){e.scrollLeft=function(e,t,r){return void 0===r&&(r="rtl"===getComputedStyle(e).direction),function(e,t,r){if(void 0===r&&(r="rtl"===getComputedStyle(e).direction),!0===r&&void 0===Il&&(Il=Pl()),!r)return t;switch(Il){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}(e,r?e.scrollWidth-e.clientWidth-t:t,r)}(e,t,r)}const Ll=function(e,t){for(let i of Object.entries(t)){var r=n(i,2);let t=r[0],o=r[1];e.style[t]=null==o?"":String(o)}},Nl=function(e,t,r,n,i){return function(){let o,l,s,a,u=arguments.length<=0?void 0:arguments[0];if(e?(o=arguments.length<=1?void 0:arguments[1],l=!!(arguments.length<=2?void 0:arguments[2]),s=!!(arguments.length<=3?void 0:arguments[3]),a=!!(arguments.length<=4?void 0:arguments[4])):(l=!!(arguments.length<=1?void 0:arguments[1]),s=!!(arguments.length<=2?void 0:arguments[2]),a=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(r)];if(9===u.nodeType){const e=u.documentElement,t=u.body;return Math.max(t["scroll".concat(r)],e["scroll".concat(r)],t["offset".concat(r)],e["offset".concat(r)],e["client".concat(r)])}{let c,d,h=!1,f=!1;if(!e&&"getBoundingClientRect"in u&&(c=u.getBoundingClientRect()[t],h=!0,f=!0),(void 0===c||a||h!==l||f!==s)&&(d=e?getComputedStyle(u,o):getComputedStyle(u)),void 0===c){let e=d[t];"auto"===e?(c=u["client".concat(r)],h=!0):c=parseFloat(e),"border-box"===d.boxSizing&&(h=!0,f=!0)}if(l!==h){let e=parseFloat(d["padding-".concat(n)]||0)+parseFloat(d["padding-".concat(i)]||0);l?c+=e:c-=e}if(s!==f){let e=parseFloat(d["border-".concat(n,"-width")]||0)+parseFloat(d["border-".concat(i,"-width")]||0);s?c+=e:c-=e}return c<0&&(c=0),a&&(c+=parseFloat(d["margin-".concat(n)]||0)+parseFloat(d["margin-".concat(i)]||0)),c}}},Al=Nl(!1,"width","Width","left","right"),Tl=Nl(!1,"height","Height","top","bottom"),Fl=(Ol="left",Ml="right",function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e===window)return;if(9===e.nodeType)return;const o=getComputedStyle(e);let l=!1;if("border-box"===o.boxSizing&&(l=!0),r=!!r,n=!!n,i=!!i,i&&(t-=(parseFloat(o["margin-".concat(Ol)])||0)+(parseFloat(o["margin-".concat(Ml)])||0)),r!==l){let e=parseFloat(o["padding-".concat(Ol)]||0)+parseFloat(o["padding-".concat(Ml)]||0);r?t-=e:t+=e}if(n!==l){let e=(parseFloat(o["border-".concat(Ol,"-width")])||0)+(parseFloat(o["border-".concat(Ml,"-width")])||0);n?t-=e:t+=e}t<0&&(t=0),e.style.width=t+"px"});var Ol,Ml;const zl=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}};let Hl=null;const jl=function(e,t){if(null===Hl&&(()=>{try{document.createElement("div").querySelector(":scope > div"),Hl=!0}catch(e){Hl=!1}})(),!0===Hl)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let r=e.id;const n="ID_"+Date.now();e.id=n,t=t.replace(/((?:^|,)\s*)/g,"$1#"+n);try{return e.querySelectorAll(t)}finally{this.id=r}}};class Dl{constructor(){this._events=[]}add(e,t,r,n){let i=t.split("."),o=i[0],l=i[1];e.addEventListener(o,r,n||!1);let s=!0===n||"object"==typeof n&&!0===n.capture;return this._events.push({el:e,name:o,namespace:l,handler:r,useCapture:s}),this}remove(e,t,r,n){let i=t?t.split("."):"",o=i[0],l=i[1],s=!0===n||"object"==typeof n&&!0===n.capture,a=[],u=[];if(e||o||l||r||void 0!==n)for(let t of this._events)e&&t.el!==e||o&&t.name!==o||l&&t.namespace!==l||r&&t.handler!==r||void 0!==n&&t.useCapture!==s?a.push(t):u.push(t);else u=this._events;this._events=a;for(let e of u)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}const Ul=Object.prototype.hasOwnProperty,Bl=void 0!==Element.prototype.insertAdjacentElement;function ql(e,t,r){t?!1===Bl||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function Vl(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(ql(t,r,n),t=null),e.nextSibling!==r&&ql(e,r,n)),t}const $l=Symbol("destroyed");class Gl{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,autoVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:Jl,onItemRender:null,onItemUnrender:null,onScrollHeightChange:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender),"function"==typeof e.onScrollHeightChange&&this.setOnScrollHeightChange(e.onScrollHeightChange)}destroy(){this[$l]||(this[$l]=!0,this._unhookEvents().invalidate()._destroyElements())}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidate()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||Jl,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}setOnScrollHeightChange(e){return this._p.onScrollHeightChange=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}invalidate(){const e=this._p;this.invalidatePositions(),e.virtual||this._destroyElements();for(let t of e.existingEls)delete t[Xl];return this}render(){if(this[$l])return;const e=this._p,t=e.list,r=e.virtual;let n=e.virtualWrapper,i=e.currentItemsParent,o=t.scrollTop,l=o+t.clientHeight,s=e.count,a=e.buffer,u=e.onItemUnrender,c=e.existingEls,d=c.length;if(r){const r=t.clientWidth;n||(n=e.virtualWrapper=e.userItemsParent,n||(n=e.virtualWrapper=document.createElement("div"),t.appendChild(n)),this._resetCurrentItemsParent(),i=e.currentItemsParent,e.autoVirtualWrapperWidth?(n.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<d;e++)c[e][Yl]=!0;this._calculateItemPosition(e.count-1);let u=this._getExistingElsRange(),f=Kl(e.cachedItemPositions,o),m=Math.max(0,f-a),v=m,p=this._calculateItemPosition(v),g=a,b=Math.max(v,Kl(e.cachedItemPositions,l-1)+1+a),y=[],C=null,w=n.childNodes[0];const S=function(e){let t;return-1!==u.firstIndex&&e>=u.firstIndex&&e<=u.lastIndex&&(t=c.find(t=>t[Xl]===e&&!0===t[Yl])),void 0===t&&(t=(u.firstIndex<m||u.firstValidArrayIndex>0?c.find(e=>(e[Xl]<m||!1===Ul.call(e,Xl))&&!0===e[Yl]):void 0)||Zl(c,e=>!0===e[Yl])),void 0!==t&&delete t[Yl],t};for(;v<s&&v<b;v++){let e=S(v);w&&w===e&&(w=w.nextSibling);const t=this._dequeueElementForIndex(e,v,w,!0);y.push([t,v]),C=Vl(t,C,w,i)}C&&C.childNodes.length>0&&ql(C,w,i);for(let t of y){const r=t[1];this._insertItemAndFlow(t[0],r,!1),p=e.cachedItemPositions[r]+e.cachedItemHeights[r]}if(p<l)for(;(p<l||g-- >0)&&v<s;v++){let t=S(v);w&&w===t&&(w=w.nextSibling),this._dequeueElementForIndex(t,v,w,!1),p=e.cachedItemPositions[v]+e.cachedItemHeights[v]}let x=this.estimateFullHeight(),W=x+"px";var h;n.style.height!==W&&(n.style.height=W,null===(h=e.onScrollHeightChange)||void 0===h||h.call(e,x)),r!==t.clientWidth&&this.render()}else if(s!==c.length){for(let e=0;e<d;e++)c[e][Yl]=!0;let e=i.childNodes[0],t=null;for(let r=0;r<s;r++){let n=c.find(e=>e[Xl]===r&&!0===e[Yl]);void 0!==n&&delete n[Yl],e&&e===n&&(e=e.nextSibling),t=Vl(this._dequeueElementForIndex(n,r,e,!0),t,e,i)}t&&t.childNodes.length>0&&ql(t,e,i)}d=c.length;for(let e=0;e<d;e++){const t=c[e];if(!0!==t[Yl])continue;let r=t.parentNode;r&&r.removeChild(t),u&&void 0!==t[Xl]&&u(t),c.splice(e,1),e--,d--}}addItemsAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if("number"!=typeof e||e<=0)return this;const r=this._p;if((t<0||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;const o=r.currentItemsParent;let l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let s=n[l-1]?n[l-1].nextSibling:n[0],a=null;for(let r=t,n=t+e;r<n;r++)a=Vl(this._dequeueElementForIndex(void 0,r,s,!0),a,s,o);a&&a.childNodes.length>0&&ql(a,s,o)}return this}removeItemsAt(e,t){const r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const o=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<n.length){for(let t=0;t<e;t++){let e=n[l+t],r=e.parentNode;r&&r.removeChild(e),o&&void 0!==e[Xl]&&o(e)}n.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){let t=r[n.firstValidArrayIndex+e-n.firstIndex];delete t[Xl],this._dequeueElementForIndex(t,e,t.nextSibling,!1)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const n=t.list;return zl(r).top-zl(n).top+n.scrollTop}}}getItemIndexFromElement(e){return e?e[Xl]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,n,i=t.scrollTop,o=t.clientHeight;if(0===e.count||0===o)return 0;if(e.virtual)r=Kl(e.cachedItemPositions,i,0,e.count-1),n=Kl(e.cachedItemPositions,i+o,r,e.count-1);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=Ql(e.count,t,i),n=Ql(e.count,t,i+o,r)}return this.getItemPosition(n)===i+o&&n--,n-r+1}createGhostItemElement(e,t,r){const n=this._p;let i=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}n.onItemUnrender&&n.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const n=r[e];let i=n.parentNode;i&&i.removeChild(n),t&&t(n)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let n=r.existingEls,i=n.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=o.firstIndex&&e<=o.lastIndex))for(let r=o.firstValidArrayIndex+e-o.firstIndex,l=0;r<i&&l<t;r++,l++)delete n[r][Xl]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,n=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let o=i.firstValidArrayIndex+e-i.firstIndex;o<n;o++)r[o][Xl]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const n=t.count,i=t.cachedItemHeights,o=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==n&&(i.length=n,o.length=n,r.length=n);let a=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;a>0&&(c=r[a-1]);for(let e=a;e<=u;e++){if(0===e){r[e]=c;continue}const t=e-1;let n=i[t];void 0===n&&(n=s?s(t):null,"number"!=typeof n&&(n=l),o[t]=n),c+=n,r[e]=c}t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){let n=t.cachedItemHeights[e-1];return void 0===n&&(n=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof n&&(n=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=n),r[e-1]+n}return r[e]}_dequeueElementForIndex(e,t,r,n){const i=this._p,o=i.virtualWrapper;i.currentItemsParent;const l=i.existingEls,s=i.onItemRender,a=i.onItemUnrender,u=!e,c=u||t!==e[Xl];if(e?a&&c&&a(e):(e=i.itemElementCreatorFn(),o&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let i=r?l.indexOf(r):-1;-1===i?l.push(e):l.splice(i,0,e),n||this._insertItemAndFlow(e,t,r)}return e[Xl]=t,e}_insertItemAndFlow(e,t,r){const n=this._p,i=n.virtualWrapper,o=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===o&&e.nextSibling===r||ql(e,r,o)),i){let r=e.getBoundingClientRect().height,i=n.cachedItemHeights[t];i!==r&&(n.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let o=this._calculateItemPosition(t);const l=ts();!1===l?e.style.top="".concat(o,"px"):e.style[l]="translateY(".concat(o,"px)")}}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,n=e.length;r<n;r++)if(!1!==Ul.call(e[r],Xl)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==Ul.call(e[t],Xl)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][Xl]:-1,lastIndex:-1!==r?e[r][Xl]:-1}}}const Xl=Symbol("index"),Yl=Symbol("reuse"),Jl=()=>document.createElement("li"),Kl=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=e.length;if(n<0&&(n+=i),n<=r)return n;for(;r<=n;){let o=Math.floor(r+(n-r)/2),l=e[o];if(l===t||l<=t&&o<i&&e[o+1]>t){for(;o>0&&e[o-1]===l;)o--;return o}l<t?r=o+1:n=o-1}return-1===n?0:n},Ql=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(i<0&&(i+=e),i<=n)return i;for(;n<=i;){let o=Math.floor(n+(i-n)/2),l=t(o);if(l===r||l<=r&&o<e&&t(o+1)>r){for(;o>0&&t(o-1)===l;)o--;return o}l<r?n=o+1:i=o-1}return-1===i?0:i},Zl=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let es=null;const ts=()=>{if(null===es){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");es=!1;for(let r of e)if(t&&void 0!==t.style[r]){es=r;break}}return es};function rs(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 ns(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}const is=Symbol("safe"),os=Symbol("hover_in"),ls=Symbol("hover_out"),ss=Symbol("row_click"),as=Symbol("preview_cell"),us=Symbol("cell"),cs=Symbol("related_touch"),ds=Symbol("original_row_index"),hs=Symbol("destroyed");class fs extends Array{constructor(e){var t,n,i;super(),r(this,"sortColumn",void 0),r(this,"onComparatorRequired",null),r(this,"customSortingProvider",null),e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(n=e.onComparatorRequired)&&void 0!==n?n:null,this.customSortingProvider=null!==(i=e.customSortingProvider)&&void 0!==i?i:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t){const e=r.length,n=this.length;t=t<0?Math.max(n+t,0):Math.min(t,n),this.length=n+e;for(let r=n-1;r>=t;r--)this[r+e]=this[r];for(let n=0;n<e;n++)this[t+n]=r[n]}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 fs({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[ds]=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=ms(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);if(e!==this){this.length=e.length;for(let t=0,r=e.length;t<r;t++)this[t]=e[t]}}else r(this)}return this}}function ms(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||null==s&&null==a?0:null==s?o:null==a?l:s<a?o:l}}class vs 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 ps(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 gs={NONE:"none",AUTO:"auto",SCROLL:"scroll"};class bs{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 ys=Array.prototype.indexOf,Cs=document.createElement.bind(document);function ws(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[us];let o;try{o=bs.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&bs.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[as],delete n[us],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const Ss=document.createElement.bind(document);function xs(e){var t,r,n;const i=e;return null!==(t=null!==(r=e[cs])&&void 0!==r?r:null===(n=i.changedTouches)||void 0===n?void 0:n[0])&&void 0!==t?t:e}function Ws(e){var t;const r=e._p;if(null==r.columnResizeStartTimeout)return;clearTimeout(r.columnResizeStartTimeout),r.columnResizeStartTimeout=null;const n=null===(t=r.lastResizeAreaClick)||void 0===t?void 0:t.columnName;r.lastResizeAreaClick=null,n&&function(e,t){const r=e._o,n=e._p,i=n.columns.get(t);if(!r.resizableColumns||!i||!i.resizable)return void _s(e);const o=ua(e);n.resizer=Ss("div"),n.resizer.className=r.resizerClassName,Ll(n.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(n.resizer);const l=i.element,s=n.resizer.parentNode,a=getComputedStyle(s),u=getComputedStyle(l),c=zl(l),d=zl(s);d.left+=parseFloat(a.borderLeftWidth)||0,d.top+=parseFloat(a.borderTopWidth)||0,c.left-=d.left,c.top-=d.top,c.top-=parseFloat(u.borderTopWidth)||0;const h=Al(n.resizer,!0,!0,!0);o?(c.left-=Math.ceil((parseFloat(u.borderLeftWidth)||0)/2),c.left-=Math.ceil(h/2)):(c.left+=Al(l,!0,!0,!0),c.left+=Math.ceil((parseFloat(u.borderRightWidth)||0)/2),c.left-=Math.ceil(h/2)),Ll(n.resizer,{"z-index":"10",visibility:"visible",left:c.left+"px",top:c.top+"px",height:Tl(e.el,!1,!1,!1)+"px"}),n.resizer.columnName=l.columnName;try{n.resizer.style.zIndex=""}catch(e){}}(e,n)}function Rs(e,t){const r=e._o,n=ua(e);let i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return null;i[us]&&(i=i[us]);let o=i.previousSibling;for(;o&&1!==o.nodeType;)o=o.previousSibling;const l=!o,s=xs(t),a=(s.pageX||s.clientX||0)-zl(i).left;if(n){var u,c,d;if(!l&&Al(i,!0,!0,!0)-a<=r.resizeAreaWidth/2)return null!==(u=null===(c=o)||void 0===c?void 0:c.columnName)&&void 0!==u?u:null;if(a<=r.resizeAreaWidth/2)return null!==(d=i.columnName)&&void 0!==d?d:null}else{var h,f,m;if(!l&&a<=r.resizeAreaWidth/2)return null!==(h=null===(f=o)||void 0===f?void 0:f.columnName)&&void 0!==h?h:null;if(Al(i,!0,!0,!0)-a<=r.resizeAreaWidth/2)return null!==(m=i.columnName)&&void 0!==m?m:null}return null}function _s(e){const t=e._p;return null!=t.columnResizeStartTimeout&&(clearTimeout(t.columnResizeStartTimeout),t.columnResizeStartTimeout=null),t.resizer&&(t.resizer.remove(),t.resizer=null),t.eventsSink.remove(document,".colresize"),e}function Is(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const n=e._o,i=e._p,o=Rs(e,t);if(o){const r=i.columns.get(o);return!!(n.resizableColumns&&r&&r.resizable)&&(function(e,t,r){const n=e._p,i=e._o,o=xs(t),l=Date.now(),s=function(e){return e.type.startsWith("touch")?"touch":"mouse"}(t),a=n.lastResizeAreaClick;if(n.lastResizeAreaClick={columnName:r,time:l,pageX:o.pageX||o.clientX||0,pageY:o.pageY||0,pointerType:s},!a||a.columnName!==r||a.pointerType!==s)return!1;const u=l-a.time;return!(u<0||u>i.resizeAreaDoubleClickDuration)&&Math.sqrt(Math.pow(n.lastResizeAreaClick.pageX-a.pageX,2)+Math.pow(n.lastResizeAreaClick.pageY-a.pageY,2))<=Math.max(i.resizeAreaWidth,12)}(e,t,r.name)?(_s(e),function(e,t,r,n){const i=e._o,o=e._p,l=o.columns.get(r);if(!i.resizableColumns||!l||!l.resizable)return!1;const s=Date.now();return(null===(n=o.lastResizeAreaDoubleClick)||void 0===n?void 0:n.columnName)===l.name&&s-o.lastResizeAreaDoubleClick.time<100?(t.preventDefault(),!0):(o.lastResizeAreaClick=null,o.lastResizeAreaDoubleClick={columnName:l.name,time:s},e.emit("columnresizeareadoubleclick",{name:l.name,columnName:l.name,event:t}),i.autoFitColumnOnResizeDoubleClick&&e.autoFitColumn(l.name),t.preventDefault(),!0)}(e,t,r.name)):(_s(e),i.columnResizeStartTimeout=setTimeout(()=>Ws(e),n.resizeAreaDoubleClickDuration),i.eventsSink.add(document,"mousemove.colresize",t=>Ps(e,t)).add(document,"touchmove.colresize",t=>Ps(e,t)).add(document,"mouseup.colresize",t=>ks(e,t)).add(document,"touchend.colresize",t=>ks(e,t)),t.preventDefault(),!0))}}function Ps(e,t){const r=e._p;if(null!=r.columnResizeStartTimeout&&!function(e,t){const r=e._p.lastResizeAreaClick;if(!r)return!1;const n=xs(t),i=n.pageX||n.clientX||0,o=n.pageY||0;return Math.sqrt(Math.pow(i-r.pageX,2)+Math.pow(o-r.pageY,2))>4}(e,t))return;if(Ws(e),!r.resizer)return;const n=r.columns.get(r.resizer.columnName);if(!n)return;const i=ua(e),o=n.element,l=r.resizer.parentNode,s=getComputedStyle(l),a=getComputedStyle(o),u=zl(o),c=zl(l);c.left+=parseFloat(s.borderLeftWidth)||0,u.left-=c.left;const d=Al(r.resizer,!0,!0,!0),h="border-box"===a.boxSizing;let f=xs(t).pageX-c.left,m=u.left;m-=Math.ceil(d/2),i?(m+=Al(o,!0,!0,!0),m-=n.ignoreMin?0:e._o.minColumnWidth,h||(m-=Math.ceil((parseFloat(a.borderLeftWidth)||0)/2),m-=ia(o)),f>m&&(f=m)):(m+=n.ignoreMin?0:e._o.minColumnWidth,h||(m+=Math.ceil((parseFloat(a.borderRightWidth)||0)/2),m+=ia(o)),f<m&&(f=m)),r.resizer.style.left=f+"px"}function ks(e,t){var r,n,i;const o=e._o,l=e._p;if(null!=l.columnResizeStartTimeout)return void _s(e);if(!l.resizer)return;l.eventsSink.remove(document,".colresize");const s=l.columns.get(l.resizer.columnName);if(!s)return l.resizer.remove(),void(l.resizer=null);const a=ua(e),u=s.element,c=u.firstChild,d=l.resizer.parentNode,h=getComputedStyle(d),f=getComputedStyle(u),m=zl(u),v=zl(d);v.left+=parseFloat(h.borderLeftWidth)||0,m.left-=v.left;const p=Al(l.resizer,!0,!0,!0),g="border-box"===f.boxSizing,b=t;let y=(null!==(r=null!==(n=t[cs])&&void 0!==n?n:null===(i=b.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-v.left,C=m.left,w=0;if(a){if(!g){y+=ia(u);const e=getComputedStyle(c||u);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0}y+=s.arrowProposedWidth||0,C+=Math.ceil(p/2),C+=Al(u,!0,!0,!0);const t=C-(s.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),w=C-y}else{if(!g){y-=ia(u);const e=getComputedStyle(c||u);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0}y-=s.arrowProposedWidth||0,C-=Math.ceil(p/2);const t=C+(s.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),w=y-C}l.resizer.remove(),l.resizer=null;let S=w;if(2===s.widthMode){let t=sa(e),r=0,n=0;for(let e=0;e<l.visibleColumns.length;e++){var x;const i=l.visibleColumns[e];i.name!==s.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t<=0&&l.table&&(t=l.table.clientWidth),t>Math.max(o.minColumnWidth,1)){if(S=w/t,n>0){const e=S/((1-S)/r);r+=S,(r<1&&o.relativeWidthGrowsToFillWidth||r>1&&o.relativeWidthShrinksToFillWidth)&&(S=e)}S*=100,S+="%"}}e.setColumnWidth(s.name,S)}function Es(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Rs(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 Ls(e,t){var r,n,i;const o=e._o,l=t,s=t,a=null!==(r=null!==(n=t[cs])&&void 0!==n?n:null===(i=l.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:{pageX:s.pageX,pageY:s.pageY},u=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!u)return;const c=zl(u);c.width=Al(u,!0,!0,!0),c.height=Tl(u,!0,!0,!0),e.emit("headercontextmenu",{columnName:u.columnName,pageX:a.pageX,pageY:a.pageY,bounds:c})}function Ns(e,t){if(na(t))return;if(Rs(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.setSortedColumns(l.map(e=>({column:e.column,descending:e.descending})))}}function As(e,t){const r=e._p,n=r.visibleColumns.findIndex(e=>e.movable),i=r.visibleColumns.findLastIndex(e=>e.movable),o=r.visibleColumns.findIndex(e=>e===t);return t.movable||-1!==n&&o>=n&&o<=i}const Ts=Array.prototype.indexOf,Fs=document.createElement.bind(document);function Os(e,t){const r=t[ss];r&&(t.removeEventListener("click",r),t[ss]=null,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))}function Ms(e){const t=e._p.tbody;if(t)for(let r=t.firstElementChild;r;r=r.nextElementSibling)Os(e,r)}function zs(e){const t=e._p,r=e._o;if(!t.table||!t.header)return e;if(!r.height)return t.table.style.height="auto",e;const n=getComputedStyle(t.table);let i=r.height-Tl(t.header,!0,!0,!0);return"border-box"!==n.boxSizing&&(i-=parseFloat(n.borderTopWidth)||0,i-=parseFloat(n.borderBottomWidth)||0,i-=parseFloat(n.paddingTop)||0,i-=parseFloat(n.paddingBottom)||0),t.table.style.height=Math.max(i,0)+"px",e}function Hs(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function js(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 Ds(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.visibleColumns.length>0&&r.tbody&&r.headerRow){var o,l,s;const e=r.visibleColumns.length-1,t=r.visibleColumns[e];t.actualWidthConsideringScrollbarWidth=r.scrollbarWidth>0?(null!==(o=t.actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth:null;const n=(null!==(l=null!==(s=t.actualWidthConsideringScrollbarWidth)&&void 0!==s?s:t.actualWidth)&&void 0!==l?l:0)+"px",i=r.tbody.childNodes;for(let t=0,r=i.length;t<r;t++){const r=i[t];1===r.nodeType&&(r.childNodes[e].style.width=n)}r.headerRow.childNodes[e].style.width=n}Bs(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Us(e,t){const r=e._o,n=e._p;if(!n.tbody||!n.table||!n.headerRow)return e;const i=aa(e);if(n.tbody.style.minWidth=i+"px",n.headerRow.style.minWidth=i+(n.scrollbarWidth||0)+"px",n.eventsSink.remove(n.table,"scroll"),r.width===gs.AUTO)Fl(n.table,Al(n.tbody,!0,!0,!0)),Fl(e.el,Al(n.table,!0,!0,!0));else if(r.width===gs.SCROLL){if(t){const t=n.table?n.table.scrollTop:0,r=n.table?n.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),n.table.scrollTop=t,n.table.scrollLeft=r,n.header&&(n.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,qs(e)}(e);n.eventsSink.add(n.table,"scroll",r)}return e}function Bs(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=ua(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0,a=r.lastDetectedWidth,u=n.maxStickyColumnRelativeWidth,c="number"==typeof u&&a?a*u:null;let d=0,h=0,f=null;const m=[],v=[];let p=null,g=[],b=null,y=0,C=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){var w,S;const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(!n)continue;n.headerScrollbarCompensation=0;let o="start"===n.sticky||"end"===n.sticky;if(o&&null!==c&&y+(null!==(w=n.actualWidth)&&void 0!==w?w:0)>c&&(o=!1),o){var x,W,R,_,I;let t=null!==(x=n.actualWidth)&&void 0!==x?x:0;y+=0,e.className+=" "+i,e.style.position="sticky";let o,a=null;null===f&&(a=getComputedStyle(e),f=a.boxSizing),"content-box"===f&&(null===a&&(a=getComputedStyle(e)),t+=(parseFloat(a.paddingLeft)||0)+(parseFloat(a.paddingRight)||0)+(parseFloat(a.borderLeftWidth)||0)+(parseFloat(a.borderRightWidth)||0)),"start"===n.sticky?(o={direction:"start",absDirection:l?"right":"left",offset:d},e.style[o.absDirection]=d+"px",d+=t,g.length=0,p=[e],m.push(p)):(b=e,o={direction:"end",absDirection:l?"left":"right",offset:h},e.style[o.absDirection]=h+s+"px",e.style.width=(null!==(W=n.actualWidth)&&void 0!==W?W:0)+"px",h+=t,v.push([e,...g]),g.length=0),o.direction===(null===(R=n.stickyPos)||void 0===R?void 0:R.direction)&&o.offset===(null===(_=n.stickyPos)||void 0===_?void 0:_.offset)&&o.absDirection===(null===(I=n.stickyPos)||void 0===I?void 0:I.absDirection)||C.push(r.visibleColumns.indexOf(n)),n.stickyPos=o}else n.stickyPos&&C.push(r.visibleColumns.indexOf(n)),delete n.stickyPos,null!==(S=p)&&void 0!==S&&S.push(e),null!=g&&g.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}b&&(b.style[l?"left":"right"]="0px"),r.stickiesStart=m,r.stickiesEnd=v,C.length>0&&e.refreshAllVirtualRows(),r.lastStickyScrollLeft=void 0,qs(e)}function qs(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;let u=null;const c=(e,r,n)=>{if(e&&e.length){for(const t of e){r||(u=t);const e=t[0],l=t.slice(1),s=l[0],c=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const d=e.getBoundingClientRect(),h=r!==a;let f=!1;if(s&&c){const e=s.getBoundingClientRect(),t=c.getBoundingClientRect();f=r?a?d.right-o>t.left&&d.left+o<e.right:d.right-o>e.left&&d.left+o<t.right:a?d.left+o<e.right&&d.right-o>t.left:d.left+o<t.right&&d.right-o>e.left}e.classList.toggle(h?"is-sticky-left":"is-sticky-right",f),f&&n.add(Ts.call(i,e))}if(u){var l,s,c,d;const e=u[0],r=t.columns.get(e.getAttribute("data-column")),n=a?"marginRight":"marginLeft";e.style[n]="",e.style.width=(null!==(l=null!==(s=r.actualWidthConsideringScrollbarWidth)&&void 0!==s?s:r.actualWidth)&&void 0!==l?l:0)+"px";let i=0;if(t.scrollbarWidth>0){const r=e.getBoundingClientRect(),o=e.offsetParent.getBoundingClientRect(),l=a?r.left-o.left:o.right-r.right;l<=t.scrollbarWidth&&(i=Math.min(t.scrollbarWidth,Math.max(0,t.scrollbarWidth-l+1)),i<t.scrollbarWidth&&(e.style[n]=-i+"px"))}r.headerScrollbarCompensation=i,e.style.width=(null!==(c=null!==(d=r.actualWidthConsideringScrollbarWidth)&&void 0!==d?d:r.actualWidth)&&void 0!==c?c:0)+i+"px"}}};c(r,!0,l),c(n,!1,s)}const a=[],u=[];for(const e of l)(null==i?void 0:i.has(e))||a.push({index:e,start:!0});for(const e of s)(null==o?void 0: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 Vs(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){var l,s,a;const e=null!==(l=o.headerScrollbarCompensation)&&void 0!==l?l:0;i.style.width=(null!==(s=null!==(a=o.actualWidthConsideringScrollbarWidth)&&void 0!==a?a:o.actualWidth)&&void 0!==s?s:0)+e+"px";const n=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",u=r.tbody.childNodes;for(let e=0,r=u.length;e<r;e++){const r=u[e];1===r.nodeType&&(r.childNodes[t].style.width=n)}}return e}function $s(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=jl(t.headerRow,">div.".concat(e,"-header-cell.sorted")),o=Array.prototype.slice.call(i,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of o){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 i)e.classList.remove("sorted","desc")}return e}function Gs(e,t,r){var n;const i=e._p,o=e._o,l=i.columns.get(t);if(!l)return!1;const s=Fs("span");return s.className="sort-arrow",l.element&&(l.element.className+=r?" sorted desc":" sorted",null!==(n=l.element.firstChild)&&void 0!==n&&n.insertBefore(s,l.element.firstChild.firstChild)),2!==l.widthMode&&o.adjustColumnWidthForSortArrow&&(l.arrowProposedWidth=s.scrollWidth+(parseFloat(getComputedStyle(s).marginRight)||0)+(parseFloat(getComputedStyle(s).marginLeft)||0)),!0}function Xs(e,t){t.firstChild,t.addEventListener("mousedown",t=>Is(e,t)),t.addEventListener("mousemove",t=>Es(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Ls(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=o;const s=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(r.tapAndHoldTimeout),r.tapAndHoldTimeout=null};t[cs]=t.changedTouches[0],!0!==Is(e,t)?(r.tapAndHoldTimeout=setTimeout(()=>{s(),r.eventsSink.add(i,"touchend.colheader",e=>{na(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(l.x-o.x),2)+Math.pow(Math.abs(l.y-o.y),2))<9&&(_s(e),Ls(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=rs(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s(),na(t)||t.preventDefault(),l={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(l.x-o.x),2)+Math.pow(Math.abs(l.y-o.y),2))<9||r.resizer)&&(n[cs]=i,Ns(e,n)))}).add(i,"touchcancel.colheader",s).add(i,"touchmove.colheader",t=>{const n=t,i=rs(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(l={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[cs]=i,Es(e,n)))})):r.currentTouchId=null}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;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);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=>Ns(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),t.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let o=null;const l=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(l)try{o=JSON.parse(l)}catch(e){o=null}const s=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!s)return;if(!o||n.dragId===o.dragId&&s.columnName!==o.column){const t=n.columns.get(s.columnName);t&&As(e,t)&&s.classList.add("drag-over")}}}(e,t)),t.addEventListener("dragover",e=>{e.preventDefault()}),t.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;i===n||n.contains(i)||n.classList.remove("drag-over")}(e,t)),t.addEventListener("drop",t=>function(e,t,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&&As(e,o)&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function Ys(e,t){let r=0;if("string"==typeof e){const t=e.trim().toLowerCase();if("rest"===t)return{width:0,mode:3};if("auto"===t)return{width:0,mode:0}}let n=parseFloat(e);return Number.isFinite(n)||(n=0),n=Math.max(0,n),n>0&&("string"==typeof e&&e.trim().endsWith("%")?(r=2,n/=100):n>0&&n<1?r=2:(n<t&&(n=t),r=1)),{width:n,mode:r}}function Js(e,t){var r;let n=Ys(t.width,t.ignoreMin?0:e.minColumnWidth),i={name:t.name,label:void 0===t.label?t.name:t.label,width:n.width,widthMode:n.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,allowPreview:!(null!==(r=t.allowPreview)&&void 0!==r&&!r),dataPath:[],comparePath:[],order:0};const o=void 0===t.dataPath?i.name:t.dataPath,l=void 0===t.comparePath?o:t.comparePath;return i.dataPath="string"==typeof o?o.split("."):o,i.comparePath="string"==typeof l?l.split("."):l,i}function Ks(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 Qs(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||ps;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function Zs(e){const t=e._p;if(!t.filteredRows)return;const r=new Set(t.filteredRows),n=new fs({sortColumn:t.rows.sortColumn,onComparatorRequired:t.rows.onComparatorRequired,customSortingProvider:t.rows.customSortingProvider});for(let e=0,i=t.rows.length;e<i;e++){const i=t.rows[e];r.has(i)&&(i[ds]=e,n.push(i))}t.filteredRows=n}function ea(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[is])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 ta=document.createElement.bind(document);function ra(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function na(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function ia(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function oa(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 la(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=e._o,i=n.tableClassName,o=ta("div");o.className=e.el.className,Ll(o,{position:"absolute",top:"-9999px",left:"0",visibility:"hidden",width:"auto",overflow:"visible"});const l=ta("div");l.className="".concat(i,"-header");const s=ta("div");s.className="".concat(i,"-header-row");const a=ta("div");a.className="".concat(i,"-header-cell ").concat(t.cellClasses||""),a.style.width="auto";const u=a.cloneNode(!0),c=a.cloneNode(!0);a.appendChild(ta("div")).innerHTML=n.headerCellFormatter(t.label,t.name),s.appendChild(u),s.appendChild(a),s.appendChild(c),l.appendChild(s),o.appendChild(l),document.body.appendChild(o);let d=Al(a,!0,!0,!0)+n.columnAutoWidthExtraSize;if(r){const e=ta("div");e.className="".concat(i,"-body");const l=ta("div");l.className="".concat(i,"-row");const s=ta("div");s.className="".concat(i,"-cell ").concat(t.cellClasses||""),s.style.width="auto";const a=s.appendChild(ta("div"));l.appendChild(s),e.appendChild(l),o.appendChild(e);for(let e=0;e<r.length;e++)a.innerHTML=ea(n,r[e],t),d=Math.max(d,Al(s,!0,!0,!0))}return o.remove(),d+=t.arrowProposedWidth||0,!t.ignoreMin&&d<n.minColumnWidth&&(d=n.minColumnWidth),Math.ceil(d)}function sa(e){const t=e._o,r=e._p;let n,i=0,o=0;r.table&&(i=r.table?r.table.scrollTop:0,o=r.table?r.table.scrollLeft:0,t.virtualTable&&(n=r.table.style.display,r.table.style.display="none"));let l=Al(e.el);r.table&&(t.virtualTable&&void 0!==n&&(r.table.style.display=n),r.table.scrollTop=i,r.table.scrollLeft=o,r.header&&(r.header.scrollLeft=o));const s=t.tableClassName,a=ta("div");a.className=e.el.className,Ll(a,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const u=ta("div");u.className="".concat(s,"-header"),a.appendChild(u);const c=ta("div");c.index=null,c.vIndex=null,c.className="".concat(s,"-header-row"),u.appendChild(c);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=ta("div");n.className="".concat(s,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(ta("div")),c.appendChild(n)}document.body.appendChild(a),l-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(c);const d=c.querySelectorAll("div.".concat(s,"-header-cell"));for(const e of d){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){l-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+ia(e);const n=e.columnName,i=r.columns.get(n);i&&(l-=i.arrowProposedWidth||0)}}return a.remove(),Math.max(0,l)}function aa(e){const t=e._p,r=e._o.tableClassName,n=r+"-row",i=r+"-cell",o=t.visibleColumns,l=o.length,s=ta("div");s.className=n,s.style.float="left";let a=0;for(let e=0;e<l;e++){var u,c;const t=o[e],r=ta("div");r.className=i,r.style.width=(null!==(u=t.actualWidth)&&void 0!==u?u:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(ta("div")),s.appendChild(r),a+=null!==(c=t.actualWidth)&&void 0!==c?c:0}const d=ta("div");d.className=e.el.className,Ll(d,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const h=ta("div");h.className=r,d.appendChild(h);const f=ta("div");f.className=r+"-body",f.style.width=a+1e4+"px",h.appendChild(f),f.appendChild(s),document.body.appendChild(d);const m=ta("div");Ll(m,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(m);const v=parseFloat(getComputedStyle(m).borderWidth),p=Math.round(v)!==v;m.remove();let g=Al(s,!0,!0,!0);return g-=t.scrollbarWidth||0,p&&g++,d.remove(),g}function ua(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function ca(e){var t;const r=null!=e.unconvertedWidth?e.unconvertedWidth:e.width,n=null!=e.unconvertedWidth&&null!==(t=e.unconvertedWidthMode)&&void 0!==t?t:e.widthMode;return 0===n?"auto":2===n?parseFloat((100*r).toPrecision(12))+"%":3===n?"rest":r}const da=Object.prototype.hasOwnProperty,ha=Symbol("once_original_handler");document.createElement.bind(document);class fa{constructor(e){var t,n,i,o,l,s;r(this,"VERSION",void 0),r(this,"el",void 0),r(this,"_o",void 0),r(this,"_p",void 0),r(this,hs,void 0),e=e||{},this.VERSION=fa.VERSION;const a=this._o={},u=this._p={eventsSink:new Dl,mitt:{all:c=c||new Map,on:function(e,t){var r=c.get(e);r?r.push(t):c.set(e,[t])},off:function(e,t){var r=c.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):c.set(e,[]))},emit:function(e,t){var r=c.get(e);r&&r.slice().map(function(e){e(t)}),(r=c.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var c;if(this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el){const t=(e.className||"dgtable-wrapper").split(/\s+/).filter(Boolean);this.el.classList.add(...t)}u.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),u.isWheelScrolling=!1,u.eventsSink.add(this.el,"wheel",e=>{if(u.cellPreviewCell){let t=!1,r=e.target;for(;r&&r!==u.cellPreviewCell;){const e=getComputedStyle(r),n=e.overflowY,i=e.overflowX,o=("auto"===n||"scroll"===n)&&r.scrollHeight>r.clientHeight,l=("auto"===i||"scroll"===i)&&r.scrollWidth>r.clientWidth;if(o||l){t=!0;break}r=r.parentElement}if(t)return}u.isWheelScrolling=!0,ws(this),u.wheelScrollTimeout&&clearTimeout(u.wheelScrollTimeout),u.wheelScrollTimeout=setTimeout(()=>{u.isWheelScrolling=!1,u.wheelScrollTimeout=void 0},100)},{passive:!0}),a.virtualTable=void 0===e.virtualTable||!!e.virtualTable,a.estimatedRowHeight=e.estimatedRowHeight||void 0,a.rowsBufferSize=Math.max(null!==(t=e.rowsBufferSize)&&void 0!==t?t:3,0),a.minColumnWidth=Math.max(null!==(n=e.minColumnWidth)&&void 0!==n?n:35,0),a.maxStickyColumnRelativeWidth=e.maxStickyColumnRelativeWidth||null,a.columnAutoWidthExtraSize=e.columnAutoWidthExtraSize||0,a.resizeAreaWidth=Math.max(null!==(i=e.resizeAreaWidth)&&void 0!==i?i:8,0),a.resizeAreaDoubleClickDuration=Math.max(null!==(o=e.resizeAreaDoubleClickDuration)&&void 0!==o?o:300,0),a.autoFitColumnOnResizeDoubleClick=void 0!==e.autoFitColumnOnResizeDoubleClick&&!!e.autoFitColumnOnResizeDoubleClick,a.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,a.movableColumns=void 0===e.movableColumns||!!e.movableColumns;const d=null!==(l=e.maxColumnsSortCount)&&void 0!==l?l:e.sortableColumns,h=Number(null!=d?d:1);a.sortableColumns=Number.isFinite(h)?Math.max(h,0):1,a.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,a.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,a.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,a.autoFillLastColumn=void 0===e.autoFillLastColumn||!!e.autoFillLastColumn,a.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,a.cellClasses=void 0===e.cellClasses?"":e.cellClasses,a.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,a.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,a.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,a.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,a.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,a.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,a.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,a.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,a.width=void 0===e.width?gs.NONE:e.width,a.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,a.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),a.height=e.height,this.setColumns(e.columns||[],!1);let f=[];const m=null!==(s=e.sortedColumns)&&void 0!==s?s:e.sortColumn;if(m){let e=Array.isArray(m)?m:[m];for(let t=0,r=e.length;t<r;t++){var v;let r=e[t];"string"==typeof r&&(r={column:r,descending:!1});let n=u.columns.get(r.column);n&&f.push({column:r.column,comparePath:n.comparePath||n.dataPath,descending:null!==(v=r.descending)&&void 0!==v&&v})}}u.rows=new fs({sortColumn:f}),u.rows.onComparatorRequired=(e,t,r)=>{if(a.onComparatorRequired)return a.onComparatorRequired(e,t,r)},u.rows.customSortingProvider=(e,t)=>a.customSortingProvider?a.customSortingProvider(e,t):t(e),u.filteredRows=null,u.scrollbarWidth=0,u._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,n=t.relatedTarget;n===r||r.contains(n)||r[as]&&(n===r[as]||r[as].contains(n))||function(e,t,r,n){const i=e._o,o=e._p;if(o.isWheelScrolling)return;const l=t.firstElementChild;if(!l)return;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;ws(e),o.abortCellPreview=!1;const s=t.parentElement;if(!s)return;const a=null===(r=o.visibleColumns[ys.call(s.childNodes,t)])||void 0===r?void 0:r.name,u=a?o.columns.get(a):null;if(!u)return;const c=s.index;if(e.emit("cellhoveroverflow",{name:a,rowIndex:null!=c?c:null,rowData:null==c?null:o.rows[c],cell:t,cellEl:l}),!1===u.allowPreview)return;const d=t.classList.contains("".concat(i.tableClassName,"-header-cell"));if(d?!i.allowHeaderCellPreview:!i.allowCellPreview)return;const h=Cs("div");h.innerHTML=t.innerHTML,h.className=i.cellPreviewClassName+" "+(u.cellClasses||""),d&&(h.classList.add("header"),t.classList.contains("sortable")&&h.classList.add("sortable"),h.draggable=!0,Xs(e,h));const f=getComputedStyle(t),m=getComputedStyle(l),v="right"===f.float,p=v?"right":"left",g=parseFloat(f.paddingLeft)||0,b=parseFloat(f.paddingRight)||0,y=parseFloat(f.paddingTop)||0,C=parseFloat(f.paddingBottom)||0;let w=l.scrollWidth+(t.clientWidth-l.offsetWidth);const S="border-box"===f.boxSizing;if(S?h.style.boxSizing="border-box":(w-=g+b,h.style.marginTop=(parseFloat(f.borderTopWidth)||0)+"px"),!o.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",o.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const x={"box-sizing":S?"border-box":"content-box",width:w+"px","min-height":Math.max(Tl(t),/%/.test(f.minHeight)?0:parseFloat(f.minHeight)||0)+"px","padding-left":g+"px","padding-right":b+"px","padding-top":y+"px","padding-bottom":C+"px",overflow:"hidden",position:"absolute","z-index":"-1",[p]:"0",top:"0",cursor:f.cursor};if(i.cellPreviewAutoBackground){let e=f.backgroundColor;e!==o.transparentBgColor1&&e!==o.transparentBgColor2||(e=getComputedStyle(s).backgroundColor),e!==o.transparentBgColor1&&e!==o.transparentBgColor2||(e="#fff"),x["background-color"]=e}Ll(h,x),h.firstChild&&Ll(h.firstChild,{direction:m.direction,"white-space":m.whiteSpace,"min-height":m.minHeight,"line-height":m.lineHeight,font:m.font}),e.el.appendChild(h),d&&oa(h),h.rowVIndex=s.vIndex,h.rowIndex=c,h.columnName=a;try{const e=bs.saveSelection(t);e&&bs.restoreSelection(h,e)}catch(e){}if(e.emit("cellpreview",{el:h.firstElementChild,name:h.columnName,rowIndex:null!=c?c:null,rowData:null==c?null:o.rows[c],cell:t,cellEl:l}),o.abortCellPreview)return void h.remove();null!=c&&h.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:s.vIndex,rowIndex:c,rowEl:s,rowData:o.rows[c]})});const W=e.el,R=W===window?document:W,_=getComputedStyle(W),I=zl(t),P=zl(W);if(v){const e=window.innerWidth;I.right=e-(I.left+Al(t,!0,!0,!0)),P.right=e-(P.left+Al(W,!0,!0,!0))}I.left-=parseFloat(_.borderLeftWidth)||0,"right"===p&&void 0!==I.right&&void 0!==P.right&&(I.right-=parseFloat(_.borderRightWidth)||0),I.top-=parseFloat(_.borderTopWidth)||0,"left"===p?I.left+=parseFloat(f.borderLeftWidth)||0:void 0!==I.right&&(I.right+=parseFloat(f.borderRightWidth)||0),I.top+=parseFloat(f.borderTopWidth)||parseFloat(f.borderBottomWidth)||0,I.left-=P.left,"right"===p&&void 0!==I.right&&void 0!==P.right&&(I.right-=P.right),I.top-=P.top;const k=Al(W,!1,!1,!1)-Al(h,!0,!0,!0),E="left"===p?I.left:null!==(n=I.right)&&void 0!==n?n:0,L=Math.max(0,Math.min(k,E));"left"===p?I.left=L:I.right=L;const N=Tl(t,!0,!0,!0),A=("scrollTop"in R?R.scrollTop:0)+Tl(W,!0)-N;I.top>A&&(I.top=Math.max(0,A));const T={top:I.top+"px","z-index":9999};T[p]=("left"===p?I.left:I.right)+"px",Ll(h,T),h[us]=t,o.cellPreviewCell=h,t[as]=h,o._bindCellHoverOut(t),o._bindCellHoverOut(h)}(e,r)},n=t=>{let r=t.currentTarget[us]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[as]&&(n===r[as]||r[as].contains(n))||function(e){ws(e)}(e)};t._bindCellHoverIn=e=>{e[os]||e.addEventListener("mouseover",e[os]=r)},t._unbindCellHoverIn=e=>{e[os]&&(e.removeEventListener("mouseover",e[os]),e[os]=null)},t._bindCellHoverOut=e=>{e[ls]||e.addEventListener("mouseout",e[ls]=n)},t._unbindCellHoverOut=e=>{e[ls]&&(e.removeEventListener("mouseout",e[ls]),e[ls]=null)}}(this)}on(e,t){return this[hs]||this._p.mitt.on(e,t),this}once(e,t){if(this[hs])return this;const r=n=>{this._p.mitt.off(e,r),t(n)};return r[ha]=t,this._p.mitt.on(e,r),this}off(e,t){if(this[hs])return this;if(e||t){if(this._p.mitt.off(e,t),t){var r;const n=null!==(r=this._p.mitt.all.get(e))&&void 0!==r?r:[];for(const r of n.slice())r[ha]===t&&this._p.mitt.off(e,r)}}else this._p.mitt.all.clear();return this}emit(e,t){return this[hs]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[hs]||!n)return this;if(_s(this),Ms(this),null!==(e=n.virtualListHelper)&&void 0!==e&&e.destroy(),n.virtualListHelper=null,Hs(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),n.wheelScrollTimeout&&clearTimeout(n.wheelScrollTimeout),n.tapAndHoldTimeout&&clearTimeout(n.tapAndHoldTimeout),n.eventsSink.remove();for(let e in this)da.call(this,e)&&(this[e]=null);return this[hs]=!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[hs]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var r;t.tableSkeletonNeedsRendering=!1,e.width===gs.AUTO&&$s(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,l=t.table&&t.table.parentNode?(n=t.table,void 0===i&&(i="rtl"===getComputedStyle(n).direction),i?n.scrollWidth-n.clientWidth-kl(n,i):kl(n,i)):NaN;!function(e,t){const r=e._p,n=e._o;Ms(e),null!==(t=r.virtualListHelper)&&void 0!==t&&t.destroy(),r.virtualListHelper=null,r.table&&n.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Hs(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,o=Fs("div"),l=Fs("div");o.className="".concat(i,"-header"),l.className="".concat(i,"-header-row"),r.header=o,r.headerRow=l,o.appendChild(l),e.el.prepend(o),ra(e.el),n.width===gs.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=Tl(e.el,!0))}(this),function(e){const t=e._p,r=e._o,n=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Fs("div"),t=e.appendChild(Fs("div")),r=t.appendChild(Fs("div"));return e.className="".concat(n,"-row"),t.className="".concat(n,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=Fs("div");i.className=e.el.className,Ll(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=Fs("div");o.className=n,i.appendChild(o);const l=Fs("div");l.className="".concat(n,"-body"),l.style.width="99999px",o.appendChild(l),document.body.appendChild(i);const s=r(),a=r(),u=r();l.appendChild(s),l.appendChild(a),l.appendChild(u),t.virtualRowHeight=Tl(a,!0,!0,!0),i.remove()}if(!t.table){var i;const o=document.createDocumentFragment(),l=Fs("div");l.className=n,r.virtualTable&&(l.className+=" virtual");const s=getComputedStyle(l);let a=(null!==(i=r.height)&&void 0!==i?i:0)-Tl(t.header,!0,!0,!0);"border-box"!==s.boxSizing&&(a-=parseFloat(s.borderTopWidth)||0,a-=parseFloat(s.borderBottomWidth)||0,a-=parseFloat(s.paddingTop)||0,a-=parseFloat(s.paddingBottom)||0),Ll(l,{height:r.height?a+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===gs.SCROLL?"auto":"hidden"}),o.appendChild(l);const u=Fs("div");u.className=r.tableClassName+"-body",u.style.minHeight="1px",t.table=l,t.tbody=u,ra(u),ra(l),l.appendChild(u),e.el.appendChild(o)}t.virtualListHelper||function(e,t){const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",l=i+"-row-alt",s=i+"-cell",a=i+"-sticky";let u=r.visibleColumns,c=u.length;r.notifyRendererOfColumnsConfig=()=>{u=r.visibleColumns,c=u.length;for(let e=0;e<c;e++){const t=u[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new Gl({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Fs("div"),onItemRender:(t,i)=>{const d=t,h=r.filteredRows||r.rows,f=!!r.filteredRows,m=r.isStickyColumns;d.className=o,i%2==1&&(d.className+=" "+l);const v=h[i],p=f?v[ds]:i;d.vIndex=i,d.index=p;for(let e=0;e<c;e++){var g;const t=u[e],i=Fs("div");if(i.columnName=t.name,i.setAttribute("data-column",t.name),i.className=s,i.style.width=(null!==(g=t._finalWidth)&&void 0!==g?g:0)+"px",t.cellClasses&&(i.className+=" "+t.cellClasses),t.stickyPos){i.className+=" "+a,i.style.position="sticky",i.style[t.stickyPos.absDirection]=t.stickyPos.offset+"px";const n=null==m?void 0:m.get(e);"start"===n&&!r.lastIsRtl||"end"===n&&r.lastIsRtl?i.classList.add("is-sticky-left"):("start"===n&&r.lastIsRtl||"end"===n&&!r.lastIsRtl)&&i.classList.add("is-sticky-right")}r._bindCellHoverIn(i),i.appendChild(Fs("div")).innerHTML=ea(n,v,t),d.appendChild(i)}d.addEventListener("click",d[ss]=t=>{e.emit("rowclick",{event:t,filteredRowIndex:i,rowIndex:p,rowEl:d,rowData:v})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:p,rowEl:d,rowData:v})},onItemUnrender:t=>Os(e,t),onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&Ds(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.tableClassName+"-header-cell",i=t.headerRow;for(let l=0;l<t.visibleColumns.length;l++){const s=t.visibleColumns[l];if(s.visible){var o;const a=Fs("div");a.draggable=!0,a.className=n,a.style.width=(null!==(o=s.actualWidth)&&void 0!==o?o:0)+"px",r.sortableColumns&&s.sortable&&(a.className+=" sortable"),a.columnName=s.name,a.setAttribute("data-column",s.name);const u=Fs("div");u.innerHTML=r.headerCellFormatter(s.label,s.name),a.appendChild(u),t._bindCellHoverIn(a),i.appendChild(a),t.visibleColumns[l].element=a,Xs(e,a),oa(a)}}Bs(e),e.emit("headerrowcreate",i)}(this),t.virtualListHelper.setCount((null!==(r=t.filteredRows)&&void 0!==r?r:t.rows).length),js(this),Ds(this,!0),Us(this,!0),zs(this),Ds(this);for(let e=0;e<t.rows.sortColumn.length;e++)Gs(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(l)||(El(t.table,l),El(t.header,l)),Bs(this),this.emit("renderskeleton")}var n,i;t.virtualListHelper.render();const o=t.scrollbarWidth;return Ds(this),t.scrollbarWidth!==o&&Us(this,!1),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 vs;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=Js(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(),Ks(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=Js(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(),Ks(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(),Ks(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)){const e=r.element.firstChild,t=e.querySelector(":scope > .sort-arrow");e.innerHTML=this._o.headerCellFormatter(r.label,r.name),t&&e.insertBefore(t,e.firstChild)}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,i=this._p;let o,l,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?o=s.get(e):"number"==typeof e&&(o=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=s.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t])){const e=i.visibleColumns.indexOf(o),t=i.visibleColumns.indexOf(l);if(i.visibleColumns=r,Ks(this),!n.virtualTable&&-1!==e&&-1!==t&&i.headerRow&&i.tbody){var u,c;const r=jl(i.headerRow,">div.".concat(n.tableClassName,"-header-cell")),o=e<t?t+1:t;r[0].parentNode.insertBefore(r[e],r[o]);const l=i.visibleColumns[t],s=(null!==(u=l.actualWidthConsideringScrollbarWidth||l.actualWidth)&&void 0!==u?u:0)+"px",a=i.visibleColumns[e],d=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=i.tbody.childNodes;for(let r=0,n=h.length;r<n;r++){const n=h[r];1===n.nodeType&&(n.insertBefore(n.childNodes[e],n.childNodes[o]),n.childNodes[t].firstChild.style.width=s,n.childNodes[e].firstChild.style.width=d)}this.tableWidthChanged(!0)}else this.clearAndRender()}this.emit("movecolumn",{name:o.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),Ks(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}setColumnAutoWidthExtraSize(e){let t=this._o;return e=Math.max(e,0),t.columnAutoWidthExtraSize!==e&&(t.columnAutoWidthExtraSize=e,this.tableWidthChanged(!0)),this}getColumnAutoWidthExtraSize(){return this._o.columnAutoWidthExtraSize}setResizeAreaWidth(e){let t=this._o;return e=Math.max(e,0),t.resizeAreaWidth!==e&&(t.resizeAreaWidth=e,this.tableWidthChanged(!0)),this}getResizeAreaWidth(){return this._o.resizeAreaWidth}setResizeAreaDoubleClickDuration(e){let t=this._o;return e=Math.max(e,0),t.resizeAreaDoubleClickDuration!==e&&(t.resizeAreaDoubleClickDuration=e,this.tableWidthChanged(!0)),this}getResizeAreaDoubleClickDuration(){return this._o.resizeAreaDoubleClickDuration}setMaxStickyColumnRelativeWidth(e){let t=this._o;return e=e||null,t.maxStickyColumnRelativeWidth!==e&&(t.maxStickyColumnRelativeWidth=e,this.tableWidthChanged(!0)),this}getMaxStickyColumnRelativeWidth(){return this._o.maxStickyColumnRelativeWidth}setColumnWidth(e,t){let r=this._p.columns.get(e);if(r){let e=Ys(t,r.ignoreMin?0:this._o.minColumnWidth),n=ca(r);r.width=e.width,r.widthMode=e.mode,r.unconvertedWidth=null,r.unconvertedWidthMode=null;let i=ca(r);n!==i&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:i,oldWidth:n})}return this}autoFitColumn(e){const t=this._p,r=t.filteredRows||t.rows,n=t.columns.get(e);if(!n||r.length<1)return this;const i=la(this,n,r);return i>0&&this.setColumnWidth(e,i),this}getColumnWidth(e){let t=this._p.columns.get(e);return t?ca(t):null}getColumnConfig(e){let t=this._p.columns.get(e);if(t){var r,n,i;const e=t.width,o=t.widthMode;null!=t.unconvertedWidth&&(t.width=t.unconvertedWidth,t.widthMode=null!==(r=t.unconvertedWidthMode)&&void 0!==r?r:t.widthMode);const l=ca(t);return null!=t.unconvertedWidth&&(t.width=e,t.widthMode=o),{name:t.name,label:t.label,width:l,dataPath:null===(n=t.dataPath)||void 0===n?void 0:n.join("."),comparePath:null===(i=t.comparePath)||void 0===i?void 0:i.join("."),resizable:t.resizable,movable:t.movable,sortable:t.sortable,visible:t.visible,cellClasses:t.cellClasses,ignoreMin:t.ignoreMin,sticky:t.sticky,order:t.order,allowPreview:t.allowPreview}}return 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}setMaxColumnSortCount(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=jl(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}getMaxColumnSortCount(){return this._o.sortableColumns}setSortableColumns(e){return this.setMaxColumnSortCount(e)}getSortableColumns(){return this.getMaxColumnSortCount()}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}getConvertColumnWidthsToRelative(){return this._o.convertColumnWidthsToRelative}setConvertColumnWidthsToRelative(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._o;return e=!!e,r.convertColumnWidthsToRelative!==e&&(r.convertColumnWidthsToRelative=e,t&&this.tableWidthChanged(!0)),this}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.map(e=>({column:e.column,descending:e.descending}));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,descending:!!t})}else l.length=0;return this.setSortedColumns(l)}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){var n;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(),Zs(this)),null===(n=e.virtualListHelper)||void 0===n||n.invalidate();let i=[];for(let e=0;e<r.length;e++)i.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:i,resort:!0})}return this}setSortedColumns(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{immediate:!0,render:!0};const n=this._o,i=this._p;let o=i.columns,l=e.filter(e=>o.get(e.column)).map(e=>{let t=o.get(e.column);return{column:t.name,comparePath:t.comparePath||t.dataPath,descending:!!e.descending}});n.sortableColumns>0&&l.length>n.sortableColumns&&(l.length=n.sortableColumns),$s(this);for(let e=0;e<l.length;e++)Gs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&r.immediate&&(i.rows.sort(),Zs(this),null!==(t=i.virtualListHelper)&&void 0!==t&&t.invalidate(),i.virtualListHelper&&r.render&&i.virtualListHelper.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}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?ns(e):e;t[is]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?ns(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||ps,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 ea(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?ea(this._o,e,r):null}getRowYPos(e){var t,r;const n=this._p;if(e<0||e>n.rows.length-1)return null;let i=e;return n.filteredRows&&-1===(i=n.filteredRows.indexOf(n.rows[e]))?null:null!==(t=null===(r=n.virtualListHelper)||void 0===r?void 0:r.getItemPosition(i))&&void 0!==t?t: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;if(e){if(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length)Qs(this),r&&i.rows.sortColumn.length&&this.resort(),i.tableSkeletonNeedsRendering=!0,n&&this.render();else if(n&&i.virtualListHelper){if(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable)js(this),Ds(this),this.render(),Us(this,!1);else if(i.tbody){for(let e=t+o,r=i.virtualListHelper.getCount();e<r;e++)i.virtualListHelper.refreshItemAt(e);this.render(),Ds(this),Us(this,!0)}}else i.tableSkeletonNeedsRendering=!0;this.emit("addrows",{count:o,clear:!1})}return this}removeRows(e,t,r){let n=this._p;if("number"!=typeof t||t<=0)return this;if(e<0||e>n.rows.length-1)return this;if(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows)Qs(this),n.tableSkeletonNeedsRendering=!0,r&&this.render();else if(r&&n.virtualListHelper)if(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable)js(this),Ds(this),this.render(),Us(this,!1);else{for(let t=e,r=n.virtualListHelper.getCount();t<r;t++)n.virtualListHelper.refreshItemAt(t);this.render(),Ds(this),Us(this,!0)}else n.tableSkeletonNeedsRendering=!0;return 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]))?this:(-1===n&&(n=e),r.virtualListHelper?(r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render(),this):this)}getRowElement(e){var t;let r=this._p;if(e<0||e>r.rows.length-1)return null;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))?null:(-1===n&&(n=e),(null===(t=r.virtualListHelper)||void 0===t?void 0:t.getItemElementAt(n))||null)}refreshAllVirtualRows(){var e;return null!==(e=this._p.virtualListHelper)&&void 0!==e&&e.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),Qs(this),t&&r.rows.sortColumn.length&&this.resort(),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=sa(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,h=[],f=0,m=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){var u;let i=n.visibleColumns[t];if(null!=i.unconvertedWidth&&(i.width=i.unconvertedWidth,i.widthMode=null!==(u=i.unconvertedWidthMode)&&void 0!==u?u:i.widthMode,i.unconvertedWidth=null,i.unconvertedWidthMode=null),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,h.push(t))}else if(0===i.widthMode){let l=la(this,i);i===n.visibleColumns[n.visibleColumns.length-1]&&(l+=n.scrollbarWidth),o-=l,e+=l,l!==i.actualWidth&&(i.actualWidth=l,r.convertColumnWidthsToRelative||h.push(t))}else 2===i.widthMode?(f+=i.width,l++):3===i.widthMode&&m++}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];if(0===r.widthMode){const t=r.width,n=r.widthMode;null==r.unconvertedWidth&&(r.unconvertedWidth=t,r.unconvertedWidthMode=n),r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,f+=r.width,l++}}if(l&&(f<1&&!m&&r.relativeWidthGrowsToFillWidth||f>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(null==t.unconvertedWidth&&(t.unconvertedWidth=t.width,t.unconvertedWidthMode=t.widthMode),t.width/=f)}let v=Math.max(0,o);0===v&&(v=n.table.clientWidth);let p=r.minColumnWidth/v;if(Number.isFinite(p)||(p=0),p>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<p&&(t+=p-r.width,r.width=p)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>p&&t>0&&(null==i.unconvertedWidth&&(i.unconvertedWidth=i.width,i.unconvertedWidthMode=i.widthMode),e=Math.min(t,i.width-p),i.width-=e,t-=e)}}if(!m&&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(v*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)null==t.unconvertedWidth&&(t.unconvertedWidth=t.width,t.unconvertedWidthMode=t.widthMode),t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===h.indexOf(e)&&h.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(v*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,h.push(e))}}if(m){let e=Math.max(0,o),t=m;for(let i=0;i<n.visibleColumns.length;i++){let o=n.visibleColumns[i];if(3===o.widthMode){let n=Math.max(0,Math.floor(e/t));!o.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),e-=n,t--,n!==o.actualWidth&&(o.actualWidth=n,h.push(i))}}}if(r.autoFillLastColumn&&n.visibleColumns.length){var c;let e=0;for(let t=0;t<n.visibleColumns.length;t++){var d;e+=null!==(d=n.visibleColumns[t].actualWidth)&&void 0!==d?d:0}const t=n.visibleColumns.length-1,r=n.visibleColumns[t],o=i-e;o>0&&(r.actualWidth=(null!==(c=r.actualWidth)&&void 0!==c?c:0)+o,-1===h.indexOf(t)&&h.push(t))}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=aa(this);s<e&&Us(this,!1);for(let e=0;e<h.length;e++)Vs(this,h[e]);s>e&&Us(this,!1)}Bs(this)}return this}tableHeightChanged(){let e=this._o;if(!this._p.table)return this;let t=Tl(this.el,!0);return t!==e.height&&(e.height=t,zs(this),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return ws(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return _s(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}}return r(fa,"VERSION","2.0.38"),r(fa,"Width",gs),class extends fa{constructor(t){super(t),this.$el=e(this.el).data("dgtable",this).on("remove",()=>this.destroy()),this.on("headerrowdestroy",()=>{var t;const r=null===(t=this._p)||void 0===t?void 0:t.headerRow;r&&e(r).find("div.".concat(this._o.tableClassName,"-header-cell")).remove()})}destroy(){var t,r;return null!==(t=this._p)&&void 0!==t&&t.table&&e(this._p.table).empty(),null!==(r=this._p)&&void 0!==r&&r.tbody&&e(this._p.tbody).empty(),super.destroy()}}});
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=lib.umd.min.js.map
|