@danielgindi/dgtable.js 2.0.6 → 2.0.8

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.
Files changed (67) hide show
  1. package/README.md +547 -282
  2. package/dist/SelectionHelper.d.ts +24 -0
  3. package/dist/SelectionHelper.d.ts.map +1 -0
  4. package/dist/by_column_filter.d.ts +14 -0
  5. package/dist/by_column_filter.d.ts.map +1 -0
  6. package/dist/cell_preview.d.ts +28 -0
  7. package/dist/cell_preview.d.ts.map +1 -0
  8. package/dist/column_collection.d.ts +41 -0
  9. package/dist/column_collection.d.ts.map +1 -0
  10. package/dist/column_resize.d.ts +25 -0
  11. package/dist/column_resize.d.ts.map +1 -0
  12. package/dist/constants.d.ts +19 -0
  13. package/dist/constants.d.ts.map +1 -0
  14. package/dist/header_events.d.ts +63 -0
  15. package/dist/header_events.d.ts.map +1 -0
  16. package/dist/helpers.d.ts +50 -0
  17. package/dist/helpers.d.ts.map +1 -0
  18. package/dist/index.d.ts +166 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/internal.d.ts +56 -0
  21. package/dist/internal.d.ts.map +1 -0
  22. package/dist/lib.cjs.js +6906 -3933
  23. package/dist/lib.cjs.js.map +1 -1
  24. package/dist/lib.cjs.min.js +2 -2
  25. package/dist/lib.cjs.min.js.map +1 -1
  26. package/dist/lib.es6.js +6908 -3935
  27. package/dist/lib.es6.js.map +1 -1
  28. package/dist/lib.es6.min.js +2 -2
  29. package/dist/lib.es6.min.js.map +1 -1
  30. package/dist/lib.umd.js +9251 -4353
  31. package/dist/lib.umd.js.map +1 -1
  32. package/dist/lib.umd.min.js +2 -2
  33. package/dist/lib.umd.min.js.map +1 -1
  34. package/dist/private_types.d.ts +145 -0
  35. package/dist/private_types.d.ts.map +1 -0
  36. package/dist/rendering.d.ts +57 -0
  37. package/dist/rendering.d.ts.map +1 -0
  38. package/dist/row_collection.d.ts +38 -0
  39. package/dist/row_collection.d.ts.map +1 -0
  40. package/dist/types.d.ts +221 -0
  41. package/dist/types.d.ts.map +1 -0
  42. package/dist/util.d.ts +9 -0
  43. package/dist/util.d.ts.map +1 -0
  44. package/eslint.config.mjs +1 -0
  45. package/package.json +17 -12
  46. package/src/SelectionHelper.ts +90 -0
  47. package/src/by_column_filter.ts +36 -0
  48. package/src/cell_preview.ts +325 -0
  49. package/src/column_collection.ts +131 -0
  50. package/src/column_resize.ts +363 -0
  51. package/src/constants.ts +22 -0
  52. package/src/header_events.ts +369 -0
  53. package/src/helpers.ts +291 -0
  54. package/src/index.ts +1628 -0
  55. package/src/internal.ts +263 -0
  56. package/src/private_types.ts +156 -0
  57. package/src/rendering.ts +771 -0
  58. package/src/row_collection.ts +197 -0
  59. package/src/types.ts +265 -0
  60. package/src/util.ts +27 -0
  61. package/tsconfig.json +38 -0
  62. package/src/SelectionHelper.js +0 -65
  63. package/src/by_column_filter.js +0 -25
  64. package/src/column_collection.js +0 -153
  65. package/src/index.js +0 -3999
  66. package/src/row_collection.js +0 -183
  67. package/src/util.js +0 -17
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * @danielgindi/dgtable.js 2.0.6
2
+ * @danielgindi/dgtable.js 2.0.8
3
3
  * git://github.com/danielgindi/dgtable.js.git
4
4
  */
5
- "use strict";var e,t,r=require("@danielgindi/dom-utils/lib/ScrollHelper.js"),i=require("@danielgindi/dom-utils/lib/Css.js"),l=require("@danielgindi/dom-utils/lib/DomCompat.js"),o=require("@danielgindi/virtual-list-helper"),n=require("@danielgindi/dom-utils/lib/DomEventsSink.js"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function d(){if(t)return e;t=1;var r=function(e){return e&&e.Math===Math&&e};return e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s&&s)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var u,h,c,m,f,p,g,v,b={};function C(){return h?u:(h=1,u=function(e){try{return!!e()}catch(e){return!0}})}function w(){if(m)return c;m=1;var e=C();return c=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function y(){if(p)return f;p=1;var e=C();return f=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function _(){if(v)return g;v=1;var e=y(),t=Function.prototype.call;return g=e?t.bind(t):function(){return t.apply(t,arguments)},g}var W,S,R,E,N,T,L,P,H,x,O,z,F,M,A,k,I,B,j,D,V,$,q,U,X,Y,G,K,J,Q,Z,ee,te,re,ie,le,oe,ne,se,ae,de,ue={};function he(){return R?S:(R=1,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ce(){if(N)return E;N=1;var e=y(),t=Function.prototype,r=t.call,i=e&&t.bind.bind(r,r);return E=e?i:function(e){return function(){return r.apply(e,arguments)}},E}function me(){if(L)return T;L=1;var e=ce(),t=e({}.toString),r=e("".slice);return T=function(e){return r(t(e),8,-1)}}function fe(){return O?x:(O=1,x=function(e){return null==e})}function pe(){if(F)return z;F=1;var e=fe(),t=TypeError;return z=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function ge(){if(A)return M;A=1;var e=function(){if(H)return P;H=1;var e=ce(),t=C(),r=me(),i=Object,l=e("".split);return P=t(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?l(e,""):i(e)}:i}(),t=pe();return M=function(r){return e(t(r))}}function ve(){if(I)return k;I=1;var e="object"==typeof document&&document.all;return k=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function be(){if(j)return B;j=1;var e=ve();return B=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(V)return D;V=1;var e=d(),t=ve();return D=function(r,i){return arguments.length<2?(l=e[r],t(l)?l:void 0):e[r]&&e[r][i];var l},D}function we(){if(q)return $;q=1;var e=ce();return $=e({}.isPrototypeOf)}function ye(){if(X)return U;X=1;var e=d().navigator,t=e&&e.userAgent;return U=t?String(t):""}function _e(){if(G)return Y;G=1;var e,t,r=d(),i=ye(),l=r.process,o=r.Deno,n=l&&l.versions||o&&o.version,s=n&&n.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&i&&(!(e=i.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=i.match(/Chrome\/(\d+)/))&&(t=+e[1]),Y=t}function We(){if(J)return K;J=1;var e=_e(),t=C(),r=d().String;return K=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Se(){if(Z)return Q;Z=1;var e=We();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Re(){if(te)return ee;te=1;var e=Ce(),t=ve(),r=we(),i=Se(),l=Object;return ee=i?function(e){return"symbol"==typeof e}:function(i){var o=e("Symbol");return t(o)&&r(o.prototype,l(i))}}function Ee(){if(ie)return re;ie=1;var e=String;return re=function(t){try{return e(t)}catch(e){return"Object"}}}function Ne(){if(oe)return le;oe=1;var e=ve(),t=Ee(),r=TypeError;return le=function(i){if(e(i))return i;throw new r(t(i)+" is not a function")}}function Te(){if(se)return ne;se=1;var e=Ne(),t=fe();return ne=function(r,i){var l=r[i];return t(l)?void 0:e(l)}}function Le(){if(de)return ae;de=1;var e=_(),t=ve(),r=be(),i=TypeError;return ae=function(l,o){var n,s;if("string"===o&&t(n=l.toString)&&!r(s=e(n,l)))return s;if(t(n=l.valueOf)&&!r(s=e(n,l)))return s;if("string"!==o&&t(n=l.toString)&&!r(s=e(n,l)))return s;throw new i("Can't convert object to primitive value")}}var Pe,He,xe,Oe,ze,Fe,Me,Ae,ke,Ie,Be,je,De,Ve,$e,qe,Ue,Xe,Ye,Ge,Ke,Je,Qe,Ze,et={exports:{}};function tt(){if(Oe)return xe;Oe=1;var e=d(),t=Object.defineProperty;return xe=function(r,i){try{t(e,r,{value:i,configurable:!0,writable:!0})}catch(t){e[r]=i}return i}}function rt(){if(ze)return et.exports;ze=1;var e=He?Pe:(He=1,Pe=!1),t=d(),r=tt(),i="__core-js_shared__",l=et.exports=t[i]||r(i,{});return(l.versions||(l.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),et.exports}function it(){if(Me)return Fe;Me=1;var e=rt();return Fe=function(t,r){return e[t]||(e[t]=r||{})}}function lt(){if(ke)return Ae;ke=1;var e=pe(),t=Object;return Ae=function(r){return t(e(r))}}function ot(){if(Be)return Ie;Be=1;var e=ce(),t=lt(),r=e({}.hasOwnProperty);return Ie=Object.hasOwn||function(e,i){return r(t(e),i)}}function nt(){if(De)return je;De=1;var e=ce(),t=0,r=Math.random(),i=e(1.1.toString);return je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++t+r,36)}}function st(){if($e)return Ve;$e=1;var e=d(),t=it(),r=ot(),i=nt(),l=We(),o=Se(),n=e.Symbol,s=t("wks"),a=o?n.for||n:n&&n.withoutSetter||i;return Ve=function(e){return r(s,e)||(s[e]=l&&r(n,e)?n[e]:a("Symbol."+e)),s[e]}}function at(){if(Ue)return qe;Ue=1;var e=_(),t=be(),r=Re(),i=Te(),l=Le(),o=st(),n=TypeError,s=o("toPrimitive");return qe=function(o,a){if(!t(o)||r(o))return o;var d,u=i(o,s);if(u){if(void 0===a&&(a="default"),d=e(u,o,a),!t(d)||r(d))return d;throw new n("Can't convert object to primitive value")}return void 0===a&&(a="number"),l(o,a)}}function dt(){if(Ye)return Xe;Ye=1;var e=at(),t=Re();return Xe=function(r){var i=e(r,"string");return t(i)?i:i+""}}function ut(){if(Qe)return Je;Qe=1;var e=w(),t=C(),r=function(){if(Ke)return Ge;Ke=1;var e=d(),t=be(),r=e.document,i=t(r)&&t(r.createElement);return Ge=function(e){return i?r.createElement(e):{}}}();return Je=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function ht(){if(Ze)return b;Ze=1;var e=w(),t=_(),r=function(){if(W)return ue;W=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}(),i=he(),l=ge(),o=dt(),n=ot(),s=ut(),a=Object.getOwnPropertyDescriptor;return b.f=e?a:function(e,d){if(e=l(e),d=o(d),s)try{return a(e,d)}catch(e){}if(n(e,d))return i(!t(r.f,e,d),e[d])},b}var ct,mt,ft,pt,gt,vt,bt,Ct={};function wt(){if(pt)return ft;pt=1;var e=be(),t=String,r=TypeError;return ft=function(i){if(e(i))return i;throw new r(t(i)+" is not an object")}}function yt(){if(gt)return Ct;gt=1;var e=w(),t=ut(),r=function(){if(mt)return ct;mt=1;var e=w(),t=C();return ct=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}(),i=wt(),l=dt(),o=TypeError,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",d="configurable",u="writable";return Ct.f=e?r?function(e,t,r){if(i(e),t=l(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&u in r&&!r[u]){var o=s(e,t);o&&o[u]&&(e[t]=r.value,r={configurable:d in r?r[d]:o[d],enumerable:a in r?r[a]:o[a],writable:!1})}return n(e,t,r)}:n:function(e,r,s){if(i(e),r=l(r),i(s),t)try{return n(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},Ct}function _t(){if(bt)return vt;bt=1;var e=w(),t=yt(),r=he();return vt=e?function(e,i,l){return t.f(e,i,r(1,l))}:function(e,t,r){return e[t]=r,e}}var Wt,St,Rt,Et,Nt,Tt,Lt,Pt,Ht,xt,Ot,zt,Ft,Mt,At,kt={exports:{}};function It(){if(Et)return Rt;Et=1;var e=ce(),t=ve(),r=rt(),i=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return i(e)}),Rt=r.inspectSource}function Bt(){if(Pt)return Lt;Pt=1;var e=it(),t=nt(),r=e("keys");return Lt=function(e){return r[e]||(r[e]=t(e))}}function jt(){return xt?Ht:(xt=1,Ht={})}function Dt(){if(Ft)return kt.exports;Ft=1;var e=ce(),t=C(),r=ve(),i=ot(),l=w(),o=function(){if(St)return Wt;St=1;var e=w(),t=ot(),r=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,l=t(r,"name"),o=l&&"something"===function(){}.name,n=l&&(!e||e&&i(r,"name").configurable);return Wt={EXISTS:l,PROPER:o,CONFIGURABLE:n}}().CONFIGURABLE,n=It(),s=function(){if(zt)return Ot;zt=1;var e,t,r,i=function(){if(Tt)return Nt;Tt=1;var e=d(),t=ve(),r=e.WeakMap;return Nt=t(r)&&/native code/.test(String(r))}(),l=d(),o=be(),n=_t(),s=ot(),a=rt(),u=Bt(),h=jt(),c="Object already initialized",m=l.TypeError,f=l.WeakMap;if(i||a.state){var p=a.state||(a.state=new f);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new m(c);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 g=u("state");h[g]=!0,e=function(e,t){if(s(e,g))throw new m(c);return t.facade=e,n(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},r=function(e){return s(e,g)}}return Ot={set:e,get:t,has:r,enforce:function(i){return r(i)?t(i):e(i,{})},getterFor:function(e){return function(r){var i;if(!o(r)||(i=t(r)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}}}}(),a=s.enforce,u=s.get,h=String,c=Object.defineProperty,m=e("".slice),f=e("".replace),p=e([].join),g=l&&!t(function(){return 8!==c(function(){},"length",{value:8}).length}),v=String(String).split("String"),b=kt.exports=function(e,t,r){"Symbol("===m(h(t),0,7)&&(t="["+f(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||o&&e.name!==t)&&(l?c(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&i(r,"arity")&&e.length!==r.arity&&c(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?l&&c(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=a(e);return i(n,"source")||(n.source=p(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=b(function(){return r(this)&&u(this).source||n(this)},"toString"),kt.exports}function Vt(){if(At)return Mt;At=1;var e=ve(),t=yt(),r=Dt(),i=tt();return Mt=function(l,o,n,s){s||(s={});var a=s.enumerable,d=void 0!==s.name?s.name:o;if(e(n)&&r(n,d,s),s.global)a?l[o]=n:i(o,n);else{try{s.unsafe?l[o]&&(a=!0):delete l[o]}catch(e){}a?l[o]=n:t.f(l,o,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return l}}var $t,qt,Ut,Xt,Yt,Gt,Kt,Jt,Qt,Zt,er,tr,rr,ir,lr,or,nr,sr={};function ar(){if(Xt)return Ut;Xt=1;var e=function(){if(qt)return $t;qt=1;var e=Math.ceil,t=Math.floor;return $t=Math.trunc||function(r){var i=+r;return(i>0?t:e)(i)}}();return Ut=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function dr(){if(Gt)return Yt;Gt=1;var e=ar(),t=Math.max,r=Math.min;return Yt=function(i,l){var o=e(i);return o<0?t(o+l,0):r(o,l)}}function ur(){if(Jt)return Kt;Jt=1;var e=ar(),t=Math.min;return Kt=function(r){var i=e(r);return i>0?t(i,9007199254740991):0}}function hr(){if(Zt)return Qt;Zt=1;var e=ur();return Qt=function(t){return e(t.length)}}var cr,mr,fr,pr,gr,vr,br,Cr,wr,yr,_r,Wr,Sr,Rr,Er,Nr,Tr,Lr,Pr={};function Hr(){if(fr)return mr;fr=1;var e=Ce(),t=ce(),r=function(){if(nr)return sr;nr=1;var e=function(){if(ir)return rr;ir=1;var e=ce(),t=ot(),r=ge(),i=function(){if(tr)return er;tr=1;var e=ge(),t=dr(),r=hr(),i=function(i){return function(l,o,n){var s=e(l),a=r(s);if(0===a)return!i&&-1;var d,u=t(n,a);if(i&&o!=o){for(;a>u;)if((d=s[u++])!=d)return!0}else for(;a>u;u++)if((i||u in s)&&s[u]===o)return i||u||0;return!i&&-1}};return er={includes:i(!0),indexOf:i(!1)}}().indexOf,l=jt(),o=e([].push);return rr=function(e,n){var s,a=r(e),d=0,u=[];for(s in a)!t(l,s)&&t(a,s)&&o(u,s);for(;n.length>d;)t(a,s=n[d++])&&(~i(u,s)||o(u,s));return u}}(),t=(or?lr:(or=1,lr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])).concat("length","prototype");return sr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},sr}(),i=(cr||(cr=1,Pr.f=Object.getOwnPropertySymbols),Pr),l=wt(),o=t([].concat);return mr=e("Reflect","ownKeys")||function(e){var t=r.f(l(e)),n=i.f;return n?o(t,n(e)):t}}function xr(){if(gr)return pr;gr=1;var e=ot(),t=Hr(),r=ht(),i=yt();return pr=function(l,o,n){for(var s=t(o),a=i.f,d=r.f,u=0;u<s.length;u++){var h=s[u];e(l,h)||n&&e(n,h)||a(l,h,d(o,h))}}}function Or(){if(wr)return Cr;wr=1;var e=d(),t=ht().f,r=_t(),i=Vt(),l=tt(),o=xr(),n=function(){if(br)return vr;br=1;var e=C(),t=ve(),r=/#|\.prototype\./,i=function(r,i){var a=o[l(r)];return a===s||a!==n&&(t(i)?e(i):!!i)},l=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=i.data={},n=i.NATIVE="N",s=i.POLYFILL="P";return vr=i}();return Cr=function(s,a){var d,u,h,c,m,f=s.target,p=s.global,g=s.stat;if(d=p?e:g?e[f]||l(f,{}):e[f]&&e[f].prototype)for(u in a){if(c=a[u],h=s.dontCallGetSet?(m=t(d,u))&&m.value:d[u],!n(p?u:f+(g?".":"#")+u,s.forced)&&void 0!==h){if(typeof c==typeof h)continue;o(c,h)}(s.sham||h&&h.sham)&&r(c,"sham",!0),i(d,u,c,s)}}}function zr(){if(Sr)return Wr;Sr=1;var e=function(){if(_r)return yr;_r=1;var e={};return e[st()("toStringTag")]="z",yr="[object z]"===String(e)}(),t=ve(),r=me(),i=st()("toStringTag"),l=Object,o="Arguments"===r(function(){return arguments}());return Wr=e?r:function(e){var n,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(n=l(e),i))?s:o?r(n):"Object"===(a=r(n))&&t(n.callee)?"Arguments":a}}function Fr(){if(Er)return Rr;Er=1;var e=zr(),t=String;return Rr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Mr(){if(Tr)return Nr;Tr=1;var e=Dt(),t=yt();return Nr=function(r,i,l){return l.get&&e(l.get,i,{getter:!0}),l.set&&e(l.set,i,{setter:!0}),t.f(r,i,l)}}!function(){if(Lr)return a;Lr=1;var e=Or(),t=w(),r=d(),i=ce(),l=ot(),o=ve(),n=we(),s=Fr(),u=Mr(),h=xr(),c=r.Symbol,m=c&&c.prototype;if(t&&o(c)&&(!("description"in m)||void 0!==c().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=n(m,this)?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};h(p,c),p.prototype=m,m.constructor=p;var g="Symbol(description detection)"===String(c("description detection")),v=i(m.valueOf),b=i(m.toString),C=/^Symbol\((.*)\)[^)]+$/,y=i("".replace),_=i("".slice);u(m,"description",{configurable:!0,get:function(){var e=v(this);if(l(f,e))return"";var t=b(e),r=g?_(t,7,-1):y(t,C,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var Ar,kr,Ir,Br,jr,Dr,Vr,$r,qr,Ur,Xr,Yr,Gr,Kr,Jr,Qr={};function Zr(){if(kr)return Ar;kr=1;var e=Ee(),t=TypeError;return Ar=function(r,i){if(!delete r[i])throw new t("Cannot delete property "+e(i)+" of "+e(r))}}function ei(){if(Br)return Ir;Br=1;var e=ce();return Ir=e([].slice)}function ti(){if($r)return Vr;$r=1;var e=C();return Vr=function(t,r){var i=[][t];return!!i&&e(function(){i.call(null,r||function(){return 1},1)})}}!function(){if(Jr)return Qr;Jr=1;var e=Or(),t=ce(),r=Ne(),i=lt(),l=hr(),o=Zr(),n=Fr(),s=C(),a=function(){if(Dr)return jr;Dr=1;var e=ei(),t=Math.floor,r=function(i,l){var o=i.length;if(o<8)for(var n,s,a=1;a<o;){for(s=a,n=i[a];s&&l(i[s-1],n)>0;)i[s]=i[--s];s!==a++&&(i[s]=n)}else for(var d=t(o/2),u=r(e(i,0,d),l),h=r(e(i,d),l),c=u.length,m=h.length,f=0,p=0;f<c||p<m;)i[f+p]=f<c&&p<m?l(u[f],h[p])<=0?u[f++]:h[p++]:f<c?u[f++]:h[p++];return i};return jr=r}(),d=ti(),u=function(){if(Ur)return qr;Ur=1;var e=ye().match(/firefox\/(\d+)/i);return qr=!!e&&+e[1]}(),h=function(){if(Yr)return Xr;Yr=1;var e=ye();return Xr=/MSIE|Trident/.test(e)}(),c=_e(),m=function(){if(Kr)return Gr;Kr=1;var e=ye().match(/AppleWebKit\/(\d+)\./);return Gr=!!e&&+e[1]}(),f=[],p=t(f.sort),g=t(f.push),v=s(function(){f.sort(void 0)}),b=s(function(){f.sort(null)}),w=d("sort"),y=!s(function(){if(c)return c<70;if(!(u&&u>3)){if(h)return!0;if(m)return m<603;var e,t,r,i,l="";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(i=0;i<47;i++)f.push({k:t+i,v:r})}for(f.sort(function(e,t){return t.v-e.v}),i=0;i<f.length;i++)t=f[i].k.charAt(0),l.charAt(l.length-1)!==t&&(l+=t);return"DGBEFHACIJK"!==l}});e({target:"Array",proto:!0,forced:v||!b||!w||!y},{sort:function(e){void 0!==e&&r(e);var t=i(this);if(y)return void 0===e?p(t):p(t,e);var s,d,u=[],h=l(t);for(d=0;d<h;d++)d in t&&g(u,t[d]);for(a(u,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:n(t)>n(r)?1:-1}}(e)),s=l(u),d=0;d<s;)t[d]=u[d++];for(;d<h;)o(t,d++);return t}})}();const ri=function(e,t){for(let r=0,i=e.length;r>=0&&r<i;r+=1)if(t(e[r],r,e))return e[r]},ii=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")};function li(){let e=[];return Object.assign(e,li.prototype),e.initialize.apply(e,arguments),e}li.prototype=[],li.prototype.initialize=function(e){e=e||{},this.sortColumn=null==e.sortColumn?[]:e.sortColumn},li.prototype.add=function(e,t){let r,i;if("splice"in e&&"length"in e)if("number"==typeof t)for(r=0,i=e.length;r<i;r++)this.splice(t++,0,e[r]);else for(r=0,i=e.length;r<i;r++)this.push(e[r]);else"number"==typeof t?this.splice(t,0,e):this.push(e)},li.prototype.reset=function(e){this.length=0,e&&this.add(e)},li.prototype.filteredCollection=function(e,t){if(e&&t){let r=new li({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let i,l=0,o=this.length;l<o;l++)i=this[l],e(i,t)&&(i.__i=l,r.push(i));return r}return null},li.prototype.onComparatorRequired=null,li.prototype.customSortingProvider=null;let oi=li.prototype.sort;function ni(e,t){let r=e.column,i=e.comparePath||r;"string"==typeof i&&(i=i.split("."));let l,o=i.length,n=o>1,s=t?1:-1,a=t?-1:1;return function(e,t){let r=e[i[0]],d=t[i[0]];if(n)for(l=1;l<o;l++)r=r&&r[i[l]],d=d&&d[i[l]];return r===d?0:null==r?s:null==d?a:r<d?s:a}}function si(){let e=[];return Object.assign(e,si.prototype),e.initialize.apply(e,arguments),e}li.prototype.sort=function(){let e;if(this.sortColumn.length){let t=[];for(let r=0;r<this.sortColumn.length;r++){e=null;const i=ni(this.sortColumn[r],this.sortColumn[r].descending);this.onComparatorRequired&&(e=this.onComparatorRequired(this.sortColumn[r].column,this.sortColumn[r].descending,i)),e||(e=i),t.push(e.bind(this))}if(1===t.length)e=t[0];else{let r,i=t.length;e=function(e,l){for(let o=0;o<i;o++)if(r=t[o](e,l),0!==r)return r;return r}}const r=t=>oi.call(t,e);if(this.customSortingProvider){let e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return e},si.prototype=[],si.prototype.initialize=function(){},si.prototype.get=function(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null},si.prototype.indexOf=function(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return t;return-1},si.prototype.getByOrder=function(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null},si.prototype.normalizeOrder=function(){let e,t=[];for(e=0;e<this.length;e++)t.push(this[e]);for(t.sort(function(e,t){return e.order<t.order?-1:e.order>t.order?1:0}),e=0;e<t.length;e++)t[e].order=e;return this},si.prototype.getColumns=function(){let e=[];for(let t,r=0;r<this.length;r++)t=this[r],e.push(t);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e},si.prototype.getVisibleColumns=function(){let e=[];for(let t,r=0;r<this.length;r++)t=this[r],t.visible&&e.push(t);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e},si.prototype.getMaxOrder=function(){let e=0;for(let t,r=0;r<this.length;r++)t=this[r],t.order>e&&(e=t.order);return e},si.prototype.moveColumn=function(e,t){if(e&&t){let r,i,l=e.order,o=t.order;if(l<o)for(r=l+1;r<=o;r++)i=this.getByOrder(r),i.order--;else for(r=l-1;r>=o;r--)i=this.getByOrder(r),i.order++;e.order=o}return this};class ai{static saveSelection(e){let t=window.getSelection().getRangeAt(0);if(e!==t.commonAncestorContainer&&!function(e,t){for(;(e=e.parentNode)&&e!==t;);return!!e}(t.commonAncestorContainer,e))return null;let r=t.cloneRange();r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset);let i=r.toString().length;return{start:i,end:i+t.toString().length}}static restoreSelection(e,t){let r,i=0,l=[e],o=!1,n=!1,s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!n&&(r=l.pop());)if(3===r.nodeType){let e=i+r.length;!o&&t.start>=i&&t.start<=e&&(s.setStart(r,t.start-i),o=!0),o&&t.end>=i&&t.end<=e&&(s.setEnd(r,t.end-i),n=!0),i=e}else{let e=r.childNodes.length;for(;e--;)l.push(r.childNodes[e])}let a=window.getSelection();a.removeAllRanges(),a.addRange(s)}}function di(e,t){let r=t.column,i=null==t.keyword?"":t.keyword.toString();if(!i||!r)return!0;let l=e[r];return null!=l&&(l=l.toString(),t.caseSensitive||(l=l.toLowerCase(),i=i.toLowerCase()),-1!==l.indexOf(i))}const ui=Array.prototype.indexOf;let hi=document.createElement.bind(document);const ci=Object.prototype.hasOwnProperty,mi=Symbol("safe"),fi=Symbol("hover_in"),pi=Symbol("hover_out"),gi=Symbol("row_click"),vi=Symbol("preview_cell"),bi=Symbol("cell");function Ci(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}const wi=e=>/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(e.target.tagName);class yi{constructor(e){this._init(e),this.VERSION=yi.VERSION}_init(e){e=e||{};let t=this._o={},r=this._p={eventsSink:new n,mitt:{all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var i;this.el=e.el&&e.el instanceof Element?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",this._onEndDragColumnHeader.bind(this)),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(e.sortableColumns,10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.onComparatorRequired||"function"!=typeof e.comparatorCallback||(t.onComparatorRequired=e.comparatorCallback),t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?yi.Width.NONE:e.width,t.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,t.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),t.height=e.height,this.setColumns(e.columns||[],!1);let l=[];if(e.sortColumn){let t=e.sortColumn;if(t&&!Array.isArray(t)&&(t=[t]),t)for(let e=0,i=t.length;e<i;e++){let i=t[e];"string"==typeof i&&(i={column:i,descending:!1});let o=r.columns.get(i.column);o&&l.push({column:i.column,comparePath:o.comparePath||o.dataPath,descending:i.descending})}}r.rows=new li({sortColumn:l}),r.rows.onComparatorRequired=(e,r,i)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,i)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r.lastVirtualScrollHeight=0,this._setupHovers()}_setupHovers(){const e=this._p;let t=e=>{let t=e.currentTarget,r=e.relatedTarget;r===t||t.contains(r)||t[vi]&&(r===t[vi]||t[vi].contains(r))||this._cellMouseOverEvent(t)},r=e=>{let t=e.currentTarget[bi]||e.currentTarget,r=e.relatedTarget;r===this||t.contains(r)||t[vi]&&(r===t[vi]||t[vi].contains(r))||this._cellMouseOutEvent(t)};e._bindCellHoverIn=e=>{e[fi]||e.addEventListener("mouseover",e[fi]=t)},e._unbindCellHoverIn=e=>{e[fi]&&(e.removeEventListener("mouseover",e[fi]),e[fi]=null)},e._bindCellHoverOut=e=>{e[pi]||e.addEventListener("mouseout",e[pi]=r)},e._unbindCellHoverOut=e=>{e[pi]&&(e.removeEventListener("mouseout",e[pi]),e[pi]=null)}}_setupVirtualTable(){var e;const t=this._p,r=this._o,i=r.tableClassName,l=i+"-row",n=i+"-row-alt",s=i+"-cell";let a=t.visibleColumns,d=a.length;t.notifyRendererOfColumnsConfig=()=>{a=t.visibleColumns,d=a.length;for(let e,t=0;t<d;t++)e=a[t],e._finalWidth=e.actualWidthConsideringScrollbarWidth||e.actualWidth},t.virtualListHelper=new o({list:t.table,itemsParent:t.tbody,autoVirtualWrapperWidth:!1,virtual:r.virtualTable,buffer:r.rowsBufferSize,estimatedItemHeight:r.estimatedRowHeight?r.estimatedRowHeight:t.virtualRowHeight||40,itemElementCreatorFn:()=>hi("div"),onItemRender:(e,i)=>{const o=t.filteredRows||t.rows,u=!!t.filteredRows,h=r.allowCellPreview;e.className=l,i%2==1&&(e.className+=" "+n);let c=o[i],m=u?c.__i:i;e.vIndex=i,e.index=m;for(let r=0;r<d;r++){let i=a[r],l=hi("div");l.columnName=i.name,l.setAttribute("data-column",i.name),l.className=s,l.style.width=i._finalWidth+"px",i.cellClasses&&(l.className+=" "+i.cellClasses),h&&t._bindCellHoverIn(l),l.appendChild(hi("div")).innerHTML=this._getHtmlForCell(c,i),e.appendChild(l)}e.addEventListener("click",e[gi]=t=>{this.emit("rowclick",{event:t,filteredRowIndex:i,rowIndex:m,rowEl:e,rowData:c})}),this.emit("rowcreate",{filteredRowIndex:i,rowIndex:m,rowEl:e,rowData:c})},onItemUnrender:e=>{e[gi]&&e.removeEventListener("click",e[gi]),this._unbindCellEventsForRow(e),this.emit("rowdestroy",e)},onScrollHeightChange:e=>{e>t._lastVirtualScrollHeight&&!t.scrollbarWidth&&this._updateLastCellWidthFromScrollbar(),t._lastVirtualScrollHeight=e}}),t.virtualListHelper.setCount((null!==(e=t.filteredRows)&&void 0!==e?e:t.rows).length),t.notifyRendererOfColumnsConfig()}on(e,t){return this._p.mitt.on(e,t),this}once(e,t){let r=i=>{this._p.mitt.off(e,r),t(i)};return this._p.mitt.on(e,r),this}off(e,t){return e||e?this._p.mitt.off(e,t):this._p.mitt.all.clear(),this}emit(e,t){return this._p.mitt.emit(e,t),this}_parseColumnWidth(e,t){let r=Math.max(0,parseFloat(e)),i=_i.AUTO;return r>0&&(e===r+"%"?(i=_i.RELATIVE,r/=100):r>0&&r<1?i=_i.RELATIVE:(r<t&&(r=t),i=_i.ABSOLUTE)),{width:r,mode:i}}_initColumnFromData(e){let t=this._parseColumnWidth(e.width,e.ignoreMin?0:this._o.minColumnWidth),r={name:e.name,label:void 0===e.label?e.name:e.label,width:t.width,widthMode:t.mode,resizable:void 0===e.resizable||e.resizable,sortable:void 0===e.sortable||e.sortable,movable:void 0===e.movable||e.movable,visible:void 0===e.visible||e.visible,cellClasses:void 0===e.cellClasses?this._o.cellClasses:e.cellClasses,ignoreMin:void 0!==e.ignoreMin&&!!e.ignoreMin};return r.dataPath=void 0===e.dataPath?r.name:e.dataPath,r.comparePath=void 0===e.comparePath?r.dataPath:e.comparePath,"string"==typeof r.dataPath&&(r.dataPath=r.dataPath.split(".")),"string"==typeof r.comparePath&&(r.comparePath=r.comparePath.split(".")),r}destroy(){var e,t,r;let i=this._p||{},l=this.el;if(this.__removed)return this;if(i.resizer&&(i.resizer.remove(),i.resizer=null),null===(e=i.virtualListHelper)||void 0===e||e.destroy(),i.virtualListHelper=null,this._destroyHeaderCells(),null===(t=i.table)||void 0===t||t.remove(),null===(r=i.tbody)||void 0===r||r.remove(),i.workerListeners){for(let e=0;e<i.workerListeners.length;e++){let t=i.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}i.workerListeners.length=0}i.rows.length=i.columns.length=0,i._deferredRender&&clearTimeout(i._deferredRender);for(let e in this)ci.call(this,e)&&(this[e]=null);return this.__removed=!0,l&&l.remove(),this}close(){this.destroy()}remove(){this.destroy()}_unbindCellEventsForTable(){const e=this._p;if(e.headerRow)for(let t=0,r=e.headerRow.childNodes,i=r.length;t<i;t++)for(let i=0,l=r[t].childNodes,o=l.length;i<o;i++)e._unbindCellHoverIn(l[i]);return this}_unbindCellEventsForRow(e){const t=this._p;for(let r=0,i=e.childNodes,l=i.length;r<l;r++)t._unbindCellHoverIn(i[r]);return this}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this.__removed&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var i;t.tableSkeletonNeedsRendering=!1,e.width===yi.Width.AUTO&&this._clearSortArrows();let l=t.table&&t.table.parentNode?t.table.scrollTop:NaN,o=t.table&&t.table.parentNode?r.getScrollHorz(t.table):NaN;this._renderSkeletonBase()._renderSkeletonBody().tableWidthChanged(!0,!1)._renderSkeletonHeaderCells(),t.virtualListHelper.setCount((null!==(i=t.filteredRows)&&void 0!==i?i:t.rows).length),this._updateVirtualHeight(),this._updateLastCellWidthFromScrollbar(!0),this._updateTableWidth(!0);for(let e=0;e<t.rows.sortColumn.length;e++)this._showSortArrow(t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(l)||(t.table.scrollTop=l),isNaN(o)||(r.setScrollHorz(t.table,o),r.setScrollHorz(t.header,o)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this}_calculateTbodyWidth(){const e=this._p;let t=this._o.tableClassName,r=t+"-row",l=t+"-cell",o=e.visibleColumns,n=o.length;const s=hi("div");s.className=r,s.style.float="left";let a=0;for(let e=0;e<n;e++){const t=o[e],r=hi("div");r.className=l,r.style.width=t.actualWidth+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(hi("div")),s.appendChild(r),a+=t.actualWidth}const d=hi("div");d.className=this.el.className,i.setCssProps(d,{"z-index":-1,position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const u=hi("div");u.className=t,d.appendChild(u);const h=hi("div");h.className=t+"-body",h.style.width=a+1e4+"px",u.appendChild(h),h.appendChild(s),document.body.appendChild(d);const c=hi("div");i.setCssProps(c,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(c);let m=parseFloat(getComputedStyle(c).borderWidth),f=Math.round(m)!==m;c.remove();let p=i.getElementWidth(s,!0,!0,!0);return p-=e.scrollbarWidth||0,f&&p++,d.remove(),p}setColumns(e,t){const r=this._p;e=e||[];let i=new si;for(let t=0,r=0;t<e.length;t++){let l=e[t],o=this._initColumnFromData(l);void 0!==l.order?(l.order>r&&(r=l.order+1),o.order=l.order):o.order=r++,i.push(o)}return i.normalizeOrder(),r.columns=i,r.visibleColumns=i.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this}addColumn(e,t,r){const i=this._p;let l=i.columns;if(e&&!l.get(e.name)){let o=null;void 0!==t&&(o=l.get(t)||l.getByOrder(t));let n=this._initColumnFromData(e);n.order=o?o.order:l.getMaxOrder()+1;for(let e=l.getMaxOrder(),t=n.order;e>=t;e--){let t=l.getByOrder(e);t&&t.order++}l.push(n),l.normalizeOrder(),i.visibleColumns=l.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(r),this.emit("addcolumn",n.name)}return this}removeColumn(e,t){const r=this._p;let i=r.columns,l=i.indexOf(e);return l>-1&&(i.splice(l,1),i.normalizeOrder(),r.visibleColumns=i.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this.emit("removecolumn",e)),this}setCellFormatter(e){return e||((e=e=>"string"==typeof e?ii(e):e)[mi]=!0),this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?ii(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||di;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let i=!!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),(i||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}_refilter(){const e=this._p;if(e.filteredRows&&e.filterArgs){let t=this._o.filter||di;e.filteredRows=e.rows.filteredCollection(t,e.filterArgs)}return 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,r=!0){const i=this._o,o=this._p;let n,s,a=o.columns,d=r?o.visibleColumns:a.getColumns();if("string"==typeof e?n=a.get(e):"number"==typeof e&&(n=d[e]),"string"==typeof t?s=a.get(t):"number"==typeof t&&(s=d[t]),n&&s&&e!==t){let e=n.order,t=s.order,r=a.moveColumn(n,s).getVisibleColumns();if(o.visibleColumns.length!==r.length||o.visibleColumns.some((e,t)=>e!==r[t]))if(o.visibleColumns=r,this._ensureVisibleColumns(),i.virtualTable)this.clearAndRender();else{const r=l.scopedSelectorAll(o.headerRow,`>div.${i.tableClassName}-header-cell`);let n=e<t?t+1:t,s=e;r[0].parentNode.insertBefore(r[s],r[n]);let a=o.visibleColumns[e];a=(a.actualWidthConsideringScrollbarWidth||a.actualWidth)+"px";let d=o.visibleColumns[t];d=(d.actualWidthConsideringScrollbarWidth||d.actualWidth)+"px";let u=o.tbody.childNodes;for(let r=0,i=u.length;r<i;r++){let i=u[r];1===i.nodeType&&(i.insertBefore(i.childNodes[s],i.childNodes[n]),i.childNodes[t].firstChild.style.width=d,i.childNodes[e].firstChild.style.width=a)}}this.emit("movecolumn",{name:n.name,src:e,dest:t})}return this}sort(e,t,r){const i=this._o,l=this._p;let o,n=l.columns.get(e),s=l.rows.sortColumn;if(n){if(r){for(let e=0;e<s.length;e++)if(s[e].column===n.name){e<s.length-1?s.length=0:(t=s[s.length-1].descending,s.splice(s.length-1,1));break}(i.sortableColumns>0&&s.length>=i.sortableColumns||s.length>=l.visibleColumns.length)&&(s.length=0)}else s.length=0;t=void 0!==t&&t,s.push({column:n.name,comparePath:n.comparePath||n.dataPath,descending:!!t})}else s.length=0;this._clearSortArrows();for(let e=0;e<s.length;e++)this._showSortArrow(s[e].column,s[e].descending);i.adjustColumnWidthForSortArrow&&!l.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),l.rows.sortColumn=s,s.length&&(o=l.rows.sort(!!l.filteredRows),l.filteredRows&&l.filteredRows.sort(!!l.filteredRows)),l.virtualListHelper&&l.virtualListHelper.invalidate().render();let a=[];for(let e=0;e<s.length;e++)a.push({column:s[e].column,descending:s[e].descending});return this.emit("sort",{sorts:a,comparator:o}),this}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);let i;e.rows.sortColumn=r,r.length&&(i=e.rows.sort(!!e.filteredRows),e.filteredRows&&e.filteredRows.sort(!!e.filteredRows));let l=[];for(let e=0;e<r.length;e++)l.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:l,resort:!0,comparator:i})}return this}_ensureVisibleColumns(){const e=this._p;return 0===e.visibleColumns.length&&e.columns.length&&(e.columns[0].visible=!0,e.visibleColumns.push(e.columns[0]),this.emit("showcolumn",e.columns[0].name)),this}setColumnVisible(e,t){const r=this._p;let i=r.columns.get(e);return t=!!t,i&&!!i.visible!==t&&(i.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),this._ensureVisibleColumns(),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}setSortableColumns(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=l.scopedSelectorAll(t.headerRow,`>div.${r.tableClassName}-header-cell`);for(let i=0,l=e.length;i<l;i++)e[i].classList[r.sortableColumns>0&&t.visibleColumns[i].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setComparatorCallback(e){return this.setOnComparatorRequired(e)}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}setColumnWidth(e,t){let r=this._p.columns.get(e),i=this._parseColumnWidth(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=this._serializeColumnWidth(r);r.width=i.width,r.widthMode=i.mode;let t=this._serializeColumnWidth(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?this._serializeColumnWidth(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:this._serializeColumnWidth(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){const e=this._p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let i=e.rows.sortColumn[r];t.push({column:i.column,descending:i.descending})}return t}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let i=r.columns.get(t);if(!i)return null;let l=r.rows[e];return this._getHtmlForCell(l,i)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?this._getHtmlForCell(e,r):null}_getHtmlForCell(e,t){let r=t.dataPath,i=e[r[0]];for(let e=1;e<r.length&&null!=i;e++)i=i&&i[r[e]];const l=this._o.cellFormatter;let o;if(l[mi])o=l(i,t.name,e);else try{o=l(i,t.name,e)}catch(e){o="[ERROR]",console.error("Failed to generate content for cell "+t.name,e)}return null==o&&(o=""),o}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}_horizontalPadding(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}_horizontalBorderWidth(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}_calculateWidthAvailableForColumns(){const e=this._o,t=this._p;let r,o,n;t.table&&(o=t.table?t.table.scrollTop:0,n=t.table?t.table.scrollLeft:0,e.virtualTable&&(r=t.table.style.display,t.table.style.display="none"));let s=i.getElementWidth(this.el);t.table&&(e.virtualTable&&(t.table.style.display=r),t.table.scrollTop=o,t.table.scrollLeft=n,t.header.scrollLeft=n);let a=e.tableClassName;const d=hi("div");d.className=this.el.className,i.setCssProps(d,{"z-index":-1,position:"absolute",left:"0",top:"-9999px"});let u=hi("div");u.className=`${a}-header`,d.appendChild(u);let h=hi("div");h.index=null,h.vIndex=null,h.className=`${a}-header-row`,u.appendChild(h);for(let e=0;e<t.visibleColumns.length;e++){const r=t.visibleColumns[e],i=hi("div");i.className=`${a}-header-cell ${r.cellClasses||""}`,i.columnName=r.name,i.appendChild(hi("div")),h.appendChild(i)}document.body.appendChild(d),s-=this._horizontalBorderWidth(h);let c=l.scopedSelectorAll(h,`>div.${a}-header-cell`);for(const e of c){const r=getComputedStyle(e);if("border-box"!==r.boxSizing){s-=(parseFloat(r.borderRightWidth)||0)+(parseFloat(r.borderLeftWidth)||0)+this._horizontalPadding(e);const i=e.columnName,l=t.columns.get(i);l&&(s-=l.arrowProposedWidth||0)}}return d.remove(),Math.max(0,s)}_getTextWidth(e){let t=this._o.tableClassName;const r=hi("div");r.className=this.el.className;const l=hi("div");l.className=t+"-header";const o=hi("div");o.className=t+"-header-row";const n=hi("div");n.className=t+"-header-cell";const s=hi("div");s.textContent=e,n.appendChild(s),o.appendChild(n),l.appendChild(o),r.appendChild(l),i.setCssProps(r,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(r);let a=i.getElementWidth(n);return r.remove(),a}tableWidthChanged(e,t){let r=this._o,i=this._p,l=this._calculateWidthAvailableForColumns(),o=l,n=0;if(!i.table)return this;t=void 0===t||t;let s=0;if(i.tbody||(t=!1),t&&(s=parseFloat(i.tbody.style.minWidth)||0),o!==i.lastDetectedWidth||e){var a;i.lastDetectedWidth=l;let e=0,d=[],u=0;for(let e=0;e<i.columns.length;e++)i.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<i.visibleColumns.length;t++){let l=i.visibleColumns[t];if(l.widthMode===_i.ABSOLUTE){let i=l.width;i+=l.arrowProposedWidth||0,!l.ignoreMin&&i<r.minColumnWidth&&(i=r.minColumnWidth),o-=i,e+=i,i!==l.actualWidth&&(l.actualWidth=i,d.push(t))}else if(l.widthMode===_i.AUTO){let i=this._getTextWidth(l.label)+20;i+=l.arrowProposedWidth||0,!l.ignoreMin&&i<r.minColumnWidth&&(i=r.minColumnWidth),o-=i,e+=i,i!==l.actualWidth&&(l.actualWidth=i,r.convertColumnWidthsToRelative||d.push(t))}else l.widthMode===_i.RELATIVE&&(u+=l.width,n++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<i.visibleColumns.length;t++){let r=i.visibleColumns[t];r.widthMode===_i.AUTO&&(r.widthMode=_i.RELATIVE,o+=r.actualWidth,r.width=r.actualWidth/e,u+=r.width,n++)}if(n&&(u<1&&r.relativeWidthGrowsToFillWidth||u>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<i.visibleColumns.length;e++){let t=i.visibleColumns[e];t.widthMode===_i.RELATIVE&&(t.width/=u)}let h=Math.max(0,o);0===h&&(h=i.table.clientWidth);let c=r.minColumnWidth/h;if(isNaN(c)&&(c=0),c>0){let e,t=0;for(let e=0;e<i.visibleColumns.length;e++){let r=i.visibleColumns[e];r.widthMode===_i.RELATIVE&&!r.ignoreMin&&r.width<c&&(t+=c-r.width,r.width=c)}for(let r=0;r<i.visibleColumns.length;r++){let l=i.visibleColumns[r];l.widthMode===_i.RELATIVE&&!l.ignoreMin&&l.width>c&&t>0&&(e=Math.min(t,l.width-c),l.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<i.visibleColumns.length;r++){let l=i.visibleColumns[r];l.resizable||l.widthMode!==_i.ABSOLUTE||(e+=l.width),l.widthMode===_i.RELATIVE&&(t-=Math.round(h*l.width))}let r=(l-e)/(l-t-e)||NaN;for(let e=0;e<i.visibleColumns.length&&t>0;e++){let t=i.visibleColumns[e];if(t.resizable||t.widthMode!==_i.ABSOLUTE)if(t.widthMode===_i.RELATIVE)t.width*=r;else{let i=t.actualWidth*r;t.actualWidth!==i&&(t.actualWidth=i,-1===d.indexOf(e)&&d.push(e))}}}for(let e=0;e<i.visibleColumns.length;e++){let t=i.visibleColumns[e];if(t.widthMode===_i.RELATIVE){let r=Math.round(h*t.width);o-=r,n--,0===n&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,d.push(e))}}if(i.visibleColumns.length&&(i.visibleColumns[i.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=i.visibleColumns[i.visibleColumns.length-1].actualWidth-(i.scrollbarWidth||0)),null===(a=i.notifyRendererOfColumnsConfig)||void 0===a||a.call(i),t){let e=this._calculateTbodyWidth();s<e&&this._updateTableWidth(!1);for(let e=0;e<d.length;e++)this._resizeColumnElements(d[e]);s>e&&this._updateTableWidth(!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let l=i.getElementHeight(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return l!==e.height&&(e.height=l,t.tbody&&(t.tbody.style.height=Math.max(e.height-i.getElementHeight(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}addRows(e,t,r,i){let l=this._p;return"boolean"==typeof t&&(i=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>l.rows.length)&&(t=l.rows.length),i=void 0===i||!!i,e&&(l.rows.add(e,t),l.filteredRows||r&&l.rows.sortColumn.length?(r&&l.rows.sortColumn.length?this.resort():this._refilter(),l.tableSkeletonNeedsRendering=!0,i&&this.render()):i&&(l.virtualListHelper.addItemsAt(e.length,t),this._o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):l.tbody&&this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0)),this.emit("addrows",{count:e.length,clear:!1})),this}removeRows(e,t,r){let i=this._p;return"number"!=typeof t||t<=0||e<0||e>i.rows.length-1||(i.rows.splice(e,t),r=void 0===r||!!r,i.filteredRows?(this._refilter(),i.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(i.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e,t=!0){let r=this._p;if(e<0||e>r.rows.length-1)return this;let i=-1;return r.filteredRows&&-1===(i=r.filteredRows.indexOf(r.rows[e]))||(-1===i&&(i=e),r.virtualListHelper.refreshItemAt(i),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():this._refilter(),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e]);else{let r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(!r)return null;let i=new r;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 i=this._p,l=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return l.addEventListener("message",o,!1),i.workerListeners||(i.workerListeners=[]),i.workerListeners.push({worker:l,listener:o}),(t||void 0===t)&&l.postMessage(null),l}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}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){const e=this._p;return e.resizer&&(e.resizer.remove(),e.resizer=null,e.eventsSink.remove(document,".colresize")),this}_onTableScrolledHorizontally(){const e=this._p;e.header.scrollLeft=e.table.scrollLeft}_getColumnByResizePosition(e){let t=this._o,r=this._isTableRtl(),l=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`);l[bi]&&(l=l[bi]);let o=l.previousSibling;for(;o&&1!==o.nodeType;)o=o.previousSibling;let n=!o,s=(e.pageX||e.clientX)-i.getElementOffset(l).left;if(r){if(!n&&i.getElementWidth(l,!0,!0,!0)-s<=t.resizeAreaWidth/2)return o.columnName;if(s<=t.resizeAreaWidth/2)return l.columnName}else{if(!n&&s<=t.resizeAreaWidth/2)return o.columnName;if(i.getElementWidth(l,!0,!0,!0)-s<=t.resizeAreaWidth/2)return l.columnName}return null}_onTouchStartColumnHeader(e){const t=this._p;if(t.currentTouchId)return;let r=e.changedTouches[0];t.currentTouchId=r.identifier;let i,l=e.currentTarget,o={x:r.pageX,y:r.pageY},n=o,s=function(){t.currentTouchId=null,t.eventsSink.remove(l,".colheader"),clearTimeout(i)};const a=["target","clientX","clientY","offsetX","offsetY","screenX","screenY","pageX","pageY","button","buttons","which","srcElement","toElement","relatedTarget","ctrlKey","shiftKey","altKey","metaKey"];let d=(t,...r)=>{for(const t of a)e[t];for(const e of r)for(const t of a)null!=e[t]&&e[t];return new MouseEvent(t,e)};l.dispatchEvent(d("mousedown",e.changedTouches[0],{button:0,target:e.target})),i=setTimeout(()=>{s(),t.eventsSink.add(l,"touchend.colheader",e=>{wi(e)||e.preventDefault(),t.eventsSink.remove(l,".colheader")},{once:!0}).add(l,"touchcancel.colheader",e=>{t.eventsSink.remove(l,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(n.x-o.x),2)+Math.pow(Math.abs(n.y-o.y),2))<9&&(this.cancelColumnResize(),l.dispatchEvent(d("mouseup",e.changedTouches[0],{button:2,target:e.target})))},500),t.eventsSink.add(l,"touchend.colheader",e=>{let r=ri(e.changedTouches,e=>e.identifier===t.currentTouchId);r&&(s(),wi(e)||e.preventDefault(),n={x:r.pageX,y:r.pageY},(Math.sqrt(Math.pow(Math.abs(n.x-o.x),2)+Math.pow(Math.abs(n.y-o.y),2))<9||t.resizer)&&(l.dispatchEvent(d("mouseup",r,{0:2,target:e.target})),l.dispatchEvent(d("click",r,{button:0,target:e.target}))))}).add(l,"touchcancel.colheader",s).add(l,"touchmove.colheader",e=>{let r=ri(e.changedTouches,e=>e.identifier===t.currentTouchId);r&&(n={x:r.pageX,y:r.pageY},t.resizer&&(e.preventDefault(),l.dispatchEvent(d("mousemove",r,{target:e.target}))))})}_onMouseDownColumnHeader(e){if(0!==e.button)return this;let t=this._o,r=this._p,l=this._getColumnByResizePosition(e);if(l){let o=r.columns.get(l);if(!t.resizableColumns||!o||!o.resizable)return!1;let n=this._isTableRtl();r.resizer&&r.resizer.remove(),r.resizer=hi("div"),r.resizer.className=t.resizerClassName,i.setCssProps(r.resizer,{position:"absolute",display:"block",zIndex:-1,visibility:"hidden",width:"2px",background:"#000",opacity:.7}),this.el.appendChild(r.resizer);let s=o.element,a=r.resizer.parentNode;const d=getComputedStyle(a),u=getComputedStyle(s);let h=i.getElementOffset(s),c=i.getElementOffset(a);c.left+=parseFloat(d.borderLeftWidth)||0,c.top+=parseFloat(d.borderTopWidth)||0,h.left-=c.left,h.top-=c.top,h.top-=parseFloat(u.borderTopWidth)||0;let m=i.getElementWidth(r.resizer,!0,!0,!0);n?(h.left-=Math.ceil((parseFloat(u.borderLeftWidth)||0)/2),h.left-=Math.ceil(m/2)):(h.left+=i.getElementWidth(s,!0,!0,!0),h.left+=Math.ceil((parseFloat(u.borderRightWidth)||0)/2),h.left-=Math.ceil(m/2)),i.setCssProps(r.resizer,{"z-index":"10",visibility:"visible",left:h.left+"px",top:h.top+"px",height:i.getElementHeight(this.el,!1,!1,!1)+"px"}),r.resizer.columnName=s.columnName;try{r.resizer.style.zIndex=""}catch(e){}r.eventsSink.add(document,"mousemove.colresize",this._onMouseMoveResizeArea.bind(this)).add(document,"mouseup.colresize",this._onEndDragColumnHeader.bind(this)),e.preventDefault()}}_onMouseMoveColumnHeader(e){let t=this._o,r=this._p;if(t.resizableColumns){let i=this._getColumnByResizePosition(e),l=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`);i&&r.columns.get(i).resizable?l.style.cursor="e-resize":l.style.cursor=""}}_onMouseUpColumnHeader(e){if(2===e.button){let t=this._o,r=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`),l=i.getElementOffset(r);l.width=i.getElementWidth(r,!0,!0,!0),l.height=i.getElementHeight(r,!0,!0,!0),this.emit("headercontextmenu",{columnName:r.columnName,pageX:e.pageX,pageY:e.pageY,bounds:l})}return this}_onMouseLeaveColumnHeader(e){let t=this._o;e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`).style.cursor=""}_onClickColumnHeader(e){if(!wi(e)&&!this._getColumnByResizePosition(e)){let t=this._o,r=this._p,i=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`);if(t.sortableColumns){let e=r.columns.get(i.columnName),l=r.rows.sortColumn;if(e&&e.sortable){let r=!0,i=l.length?l[l.length-1]:null;i&&i.column===e.name&&(i.descending&&t.allowCancelSort?(r=!1,l.splice(l.length-1,1)):i.descending=!i.descending),r?this.sort(e.name,void 0,!0).render():this.sort()}}}}_onStartDragColumnHeader(e){let t=this._o,r=this._p;if(t.movableColumns){let i=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`),l=r.columns.get(i.columnName);l&&l.movable?(i.style.opacity=.35,r.dragId=161061273*Math.random(),e.dataTransfer.setData("text",JSON.stringify({dragId:r.dragId,column:l.name}))):e.preventDefault()}else e.preventDefault()}_onMouseMoveResizeArea(e){let t=this._p,r=t.columns.get(t.resizer.columnName),l=this._isTableRtl(),o=r.element,n=t.resizer.parentNode;const s=getComputedStyle(n),a=getComputedStyle(o);let d=i.getElementOffset(o),u=i.getElementOffset(n);u.left+=parseFloat(s.borderLeftWidth)||0,d.left-=u.left;let h=i.getElementWidth(t.resizer,!0,!0,!0),c="border-box"===a.boxSizing,m=e.pageX-u.left,f=d.left;f-=Math.ceil(h/2),l?(f+=i.getElementWidth(o,!0,!0,!0),f-=r.ignoreMin?0:this._o.minColumnWidth,c||(f-=Math.ceil((parseFloat(a.borderLeftWidth)||0)/2),f-=this._horizontalPadding(o)),m>f&&(m=f)):(f+=r.ignoreMin?0:this._o.minColumnWidth,c||(f+=Math.ceil((parseFloat(a.borderRightWidth)||0)/2),f+=this._horizontalPadding(o)),m<f&&(m=f)),t.resizer.style.left=m+"px"}_onEndDragColumnHeader(e){let t=this._o,r=this._p;if(r.resizer){r.eventsSink.remove(document,".colresize");let l=r.columns.get(r.resizer.columnName),o=this._isTableRtl(),n=l.element,s=n.firstChild,a=r.resizer.parentNode;const d=getComputedStyle(a),u=getComputedStyle(n);let h=i.getElementOffset(n),c=i.getElementOffset(a);c.left+=parseFloat(d.borderLeftWidth)||0,h.left-=c.left;let m=i.getElementWidth(r.resizer,!0,!0,!0),f="border-box"===u.boxSizing,p=e.pageX-c.left,g=h.left,v=h.left,b=0;if(g-=Math.ceil(m/2),o){if(!f){p+=this._horizontalPadding(n);const e=getComputedStyle(s||n);p+=parseFloat(e.borderLeftWidth)||0,p+=parseFloat(e.borderRightWidth)||0,p+=l.arrowProposedWidth||0}g+=i.getElementWidth(n,!0,!0,!0),v=g-(l.ignoreMin?0:this._o.minColumnWidth),p>v&&(p=v),b=g-p}else{if(!f){p-=this._horizontalPadding(n);const e=getComputedStyle(s||n);p-=parseFloat(e.borderLeftWidth)||0,p-=parseFloat(e.borderRightWidth)||0,p-=l.arrowProposedWidth||0}v=g+(l.ignoreMin?0:this._o.minColumnWidth),p<v&&(p=v),b=p-g}r.resizer.remove(),r.resizer=null;let C=b;if(l.widthMode===_i.RELATIVE){let e=this._calculateWidthAvailableForColumns(),i=0,o=0;for(let t=0;t<r.visibleColumns.length;t++){let n=r.visibleColumns[t];n.name!==l.name&&(n.widthMode===_i.RELATIVE?(i+=n.width,o++):e-=n.actualWidth)}if(e=Math.max(1,e),1===e&&(e=r.table.clientWidth),C=b/e,o>0){let e=C/((1-C)/i);i+=C,(i<1&&t.relativeWidthGrowsToFillWidth||i>1&&t.relativeWidthShrinksToFillWidth)&&(C=e)}C*=100,C+="%"}this.setColumnWidth(l.name,C)}else e.target.style.opacity=null}_onDragEnterColumnHeader(e){let t=this._o,r=this._p;if(t.movableColumns){let i=e.dataTransfer.getData("text");i=i?JSON.parse(i):null;let l=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`);if(!i||r.dragId===i.dragId&&l.columnName!==i.column){let e=r.columns.get(l.columnName);e&&(e.movable||e!==r.visibleColumns[0])&&l.classList.add("drag-over")}}}_onDragOverColumnHeader(e){e.preventDefault()}_onDragLeaveColumnHeader(e){let t=this._o,r=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`);e.relatedTarget.contains(r.firstChild)||r.classList.remove("drag-over")}_onDropColumnHeader(e){e.preventDefault();let t=this._o,r=this._p,i=JSON.parse(e.dataTransfer.getData("text")),l=e.target.closest(`div.${t.tableClassName}-header-cell,div.${t.cellPreviewClassName}`);if(t.movableColumns&&i.dragId===r.dragId){let e=i.column,t=l.columnName,o=r.columns.get(e),n=r.columns.get(t);o&&n&&o.movable&&(n.movable||n!==r.visibleColumns[0])&&this.moveColumn(e,t)}l.classList.remove("drag-over")}_clearSortArrows(){let e=this._p;if(e.table){let t=this._o.tableClassName,r=l.scopedSelectorAll(e.headerRow,`>div.${t}-header-cell.sorted`),i=Array.prototype.slice.call(r,0).map(e=>l.scopedSelector(e,">div>.sort-arrow")).filter(e=>!!e);for(const t of i){let r=e.columns.get(t.parentNode.parentNode.columnName);r&&(r.arrowProposedWidth=0),t.remove()}for(const e of r)e.classList.remove("sorted","desc")}return this}_showSortArrow(e,t){let r=this._p.columns.get(e);if(!r)return!1;let i=hi("span");return i.className="sort-arrow",r.element&&(r.element.className+=t?" sorted desc":" sorted",r.element.firstChild.insertBefore(i,r.element.firstChild.firstChild)),r.widthMode!==_i.RELATIVE&&this._o.adjustColumnWidthForSortArrow&&(r.arrowProposedWidth=i.scrollWidth+(parseFloat(getComputedStyle(i).marginRight)||0)+(parseFloat(getComputedStyle(i).marginLeft)||0)),!0}_resizeColumnElements(e){let t=this._p;const r=t.headerRow.querySelectorAll(`div.${this._o.tableClassName}-header-cell`)[e];let i=t.columns.get(r.columnName);if(i){r.style.width=(i.actualWidthConsideringScrollbarWidth||i.actualWidth)+"px";let l=(i.actualWidthConsideringScrollbarWidth||i.actualWidth)+"px",o=t.tbody.childNodes;for(let t=0,r=o.length;t<r;t++){let r=o[t];1===r.nodeType&&(r.childNodes[e].style.width=l)}}return this}_destroyHeaderCells(){let e=this._p;return e.headerRow&&(e.headerRow=null),this}_renderSkeletonBase(){var e;let t=this._p,r=this._o;null===(e=t.virtualListHelper)||void 0===e||e.destroy(),t.virtualListHelper=null,t.table&&r.virtualTable&&(t.table.remove(),t.table=t.tbody=null),this._destroyHeaderCells(),t.currentTouchId=null,t.header&&t.header.remove();let l=r.tableClassName,o=hi("div"),n=hi("div");return o.className=`${l}-header`,n.className=`${l}-header-row`,t.header=o,t.headerRow=n,o.appendChild(n),this.el.prepend(o),Ci(this.el),r.width===yi.Width.SCROLL?this.el.style.overflow="hidden":this.el.style.overflow="",!r.height&&r.virtualTable&&(r.height=i.getElementHeight(this.el,!0)),this}_bindHeaderColumnEvents(e){const t=e.firstChild;e.addEventListener("mousedown",this._onMouseDownColumnHeader.bind(this)),e.addEventListener("mousemove",this._onMouseMoveColumnHeader.bind(this)),e.addEventListener("mouseup",this._onMouseUpColumnHeader.bind(this)),e.addEventListener("mouseleave",this._onMouseLeaveColumnHeader.bind(this)),e.addEventListener("touchstart",this._onTouchStartColumnHeader.bind(this)),e.addEventListener("dragstart",this._onStartDragColumnHeader.bind(this)),e.addEventListener("click",this._onClickColumnHeader.bind(this)),e.addEventListener("contextmenu",e=>{e.preventDefault()}),t.addEventListener("dragenter",this._onDragEnterColumnHeader.bind(this)),t.addEventListener("dragover",this._onDragOverColumnHeader.bind(this)),t.addEventListener("dragleave",this._onDragLeaveColumnHeader.bind(this)),t.addEventListener("drop",this._onDropColumnHeader.bind(this))}_renderSkeletonHeaderCells(){let e=this._p,t=this._o,r=t.allowCellPreview,i=t.allowHeaderCellPreview,l=t.tableClassName+"-header-cell",o=e.headerRow;for(let n=0;n<e.visibleColumns.length;n++){let s=e.visibleColumns[n];if(s.visible){let a=hi("div");a.draggable=!0,a.className=l,a.style.width=s.actualWidth+"px",t.sortableColumns&&s.sortable&&(a.className+=" sortable"),a.columnName=s.name,a.setAttribute("data-column",s.name);let d=hi("div");d.innerHTML=t.headerCellFormatter(s.label,s.name),a.appendChild(d),r&&i&&e._bindCellHoverIn(a),o.appendChild(a),e.visibleColumns[n].element=a,this._bindHeaderColumnEvents(a),this._disableCssSelect(a)}}return this.emit("headerrowcreate",o),this}_renderSkeletonBody(){let e=this._p,t=this._o,r=t.tableClassName;if(t.virtualTable&&!e.virtualRowHeight){let t=()=>{let e=hi("div"),t=e.appendChild(hi("div")),i=t.appendChild(hi("div"));return e.className=`${r}-row`,t.className=`${r}-cell`,i.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e};const l=hi("div");l.className=this.el.className,i.setCssProps(l,{"z-index":-1,position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=hi("div");o.className=r,l.appendChild(o);const n=hi("div");n.className=`${r}-body`,n.style.width="99999px",o.appendChild(n),document.body.appendChild(l);let s=t(),a=t(),d=t();n.appendChild(s),n.appendChild(a),n.appendChild(d),e.virtualRowHeightFirst=i.getElementHeight(s,!0,!0,!0),e.virtualRowHeight=i.getElementHeight(a,!0,!0,!0),e.virtualRowHeightLast=i.getElementHeight(d,!0,!0,!0),l.remove()}if(!e.table){let l=document.createDocumentFragment(),o=hi("div");o.className=r,t.virtualTable&&(o.className+=" virtual");const n=getComputedStyle(o);let s=t.height-i.getElementHeight(e.header,!0,!0,!0);"border-box"!==n.boxSizing&&(s-=parseFloat(n.borderTopWidth)||0,s-=parseFloat(n.borderBottomWidth)||0,s-=parseFloat(n.paddingTop)||0,s-=parseFloat(n.paddingBottom)||0),e.visibleHeight=s,i.setCssProps(o,{height:t.height?s+"px":"auto",display:"block",overflowY:"auto",overflowX:t.width===yi.Width.SCROLL?"auto":"hidden"}),l.appendChild(o);let a=hi("div");a.className=t.tableClassName+"-body",a.style.minHeight="1px",e.table=o,e.tbody=a,Ci(a),Ci(o),o.appendChild(a),this.el.appendChild(l),this._setupVirtualTable()}return this}_renderSkeleton(){return this}_updateVirtualHeight(){const e=this._o,t=this._p;if(!t.tbody)return this;if(e.virtualTable){const e=t.virtualListHelper.estimateFullHeight();t.lastVirtualScrollHeight=e,t.tbody.style.height=e+"px"}else t.tbody.style.height="";return this}_updateLastCellWidthFromScrollbar(e){const t=this._p;let r=t.table.offsetWidth-t.table.clientWidth;if(r!==t.scrollbarWidth||e){var i;t.scrollbarWidth=r;for(let e=0;e<t.columns.length;e++)t.columns[e].actualWidthConsideringScrollbarWidth=null;if(t.scrollbarWidth>0&&t.visibleColumns.length>0){let e=t.visibleColumns.length-1;t.visibleColumns[e].actualWidthConsideringScrollbarWidth=t.visibleColumns[e].actualWidth-t.scrollbarWidth;let r=t.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",i=t.tbody.childNodes;for(let t=0,l=i.length;t<l;t++){let l=i[t];1===l.nodeType&&(l.childNodes[e].style.width=r)}t.headerRow.childNodes[e].style.width=r}null===(i=t.notifyRendererOfColumnsConfig)||void 0===i||i.call(t)}return this}_updateTableWidth(e){const t=this._o,r=this._p;let l=this._calculateTbodyWidth();if(r.tbody.style.minWidth=l+"px",r.headerRow.style.minWidth=l+(r.scrollbarWidth||0)+"px",r.eventsSink.remove(r.table,"scroll"),t.width===yi.Width.AUTO)i.setElementWidth(r.table,i.getElementWidth(r.tbody,!0,!0,!0)),i.setElementWidth(this.el,i.getElementWidth(r.table,!0,!0,!0));else if(t.width===yi.Width.SCROLL){if(e){let e=r.table?r.table.scrollTop:0,t=r.table?r.table.scrollLeft:0;!function(e){let t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(this.el),r.table.crollTop=e,r.table.scrollLeft=t,r.header.scrollLeft=t}r.eventsSink.add(r.table,"scroll",this._onTableScrolledHorizontally.bind(this))}return this}_isTableRtl(){return"rtl"===getComputedStyle(this._p.table).direction}_serializeColumnWidth(e){return e.widthMode===_i.AUTO?"auto":e.widthMode===_i.RELATIVE?100*e.width+"%":e.width}_disableCssSelect(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"}_cellMouseOverEvent(e){const t=this._o,r=this._p;let l=e.firstElementChild;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;this.hideCellPreview(),r.abortCellPreview=!1;const o=e.parentElement,n=hi("div");n.innerHTML=e.innerHTML,n.className=t.cellPreviewClassName;let s=e.classList.contains(`${t.tableClassName}-header-cell`);s&&(n.classList.add("header"),e.classList.contains("sortable")&&n.classList.add("sortable"),n.draggable=!0,this._bindHeaderColumnEvents(n));const a=getComputedStyle(e),d=getComputedStyle(l);let u="right"===a.float,h=u?"right":"left",c=parseFloat(a.paddingLeft)||0,m=parseFloat(a.paddingRight)||0,f=parseFloat(a.paddingTop)||0,p=parseFloat(a.paddingBottom)||0,g=l.scrollWidth+(e.clientWidth-l.offsetWidth),v="border-box"===a.boxSizing;if(v?n.style.boxSizing="border-box":(g-=c+m,n.style.marginTop=(parseFloat(a.borderTopWidth)||0)+"px"),!r.transparentBgColor1){let e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",r.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",r.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}let b={"box-sizing":v?"border-box":"content-box",width:g,"min-height":Math.max(i.getElementHeight(e),/%/.test(a.minHeight)?0:parseFloat(a.minHeight)||0)+"px","padding-left":c,"padding-right":m,"padding-top":f,"padding-bottom":p,overflow:"hidden",position:"absolute","z-index":"-1",[h]:"0",top:"0",cursor:a.cursor},C=a.backgroundColor;C!==r.transparentBgColor1&&C!==r.transparentBgColor2||(C=getComputedStyle(o).backgroundColor),C!==r.transparentBgColor1&&C!==r.transparentBgColor2||(C="#fff"),b["background-color"]=C,i.setCssProps(n,b),i.setCssProps(n.firstChild,{direction:d.direction,"white-space":d.whiteSpace,"min-height":d.minHeight,"line-height":d.lineHeight,font:d.font}),this.el.appendChild(n),s&&this._disableCssSelect(n),n.rowVIndex=o.vIndex;let w=n.rowIndex=o.index;n.columnName=r.visibleColumns[ui.call(o.childNodes,e)].name;try{let t=ai.saveSelection(e);t&&ai.restoreSelection(n,t)}catch(e){}if(this.emit("cellpreview",{el:n.firstElementChild,name:n.columnName,rowIndex:null!=w?w:null,rowData:null==w?null:r.rows[w],cell:e,cellEl:l}),r.abortCellPreview)return void n.remove();null!=w&&n.addEventListener("click",e=>{this.emit("rowclick",{event:e,filteredRowIndex:o.vIndex,rowIndex:w,rowEl:o,rowData:r.rows[w]})});let y=this.el,_=y===window?document:y;const W=getComputedStyle(y);let S=i.getElementOffset(e),R=i.getElementOffset(y);if(u){let t=window.innerWidth;S.right=t-(S.left+i.getElementWidth(e,!0,!0,!0)),R.right=t-(R.left+i.getElementWidth(y,!0,!0,!0))}S.left-=parseFloat(W.borderLeftWidth)||0,"right"===h&&(S.right-=parseFloat(W.borderRightWidth)||0),S.top-=parseFloat(W.borderTopWidth)||0,S[h]+=parseFloat(a[`border-${h}-width`])||0,S.top+=parseFloat(a.borderTopWidth)||parseFloat(a.borderBottomWidth)||0,S.left-=R.left,"right"===h&&(S.right-=R.right),S.top-=R.top;let E=i.getElementWidth(y,!1,!1,!1)-i.getElementWidth(n,!0,!0,!0);S[h]=S[h]<0?0:S[h]>E?E:S[h];let N=i.getElementHeight(e,!0,!0,!0),T=_.scrollTop+i.getElementHeight(y,!0)-N;S.top>T&&(S.top=Math.max(0,T));let L={top:S.top+"px","z-index":9999};L[h]=S[h]+"px",i.setCssProps(n,L),n[bi]=e,r.cellPreviewCell=n,e[vi]=n,r._bindCellHoverOut(e),r._bindCellHoverOut(n),n.addEventListener("wheel",()=>{this.hideCellPreview()})}_cellMouseOutEvent(e){this.hideCellPreview()}hideCellPreview(){const e=this._p;if(e.cellPreviewCell){var t;let r,i=e.cellPreviewCell,l=i[bi];try{r=ai.saveSelection(i)}catch(e){}e.cellPreviewCell.remove(),e._unbindCellHoverOut(l),e._unbindCellHoverOut(i);try{r&&ai.restoreSelection(l,r)}catch(e){}this.emit("cellpreviewdestroy",{el:i.firstChild,name:i.columnName,rowIndex:null!==(t=i.rowIndex)&&void 0!==t?t:null,rowData:null==i.rowIndex?null:e.rows[i.rowIndex],cell:l,cellEl:l.firstChild}),delete l[vi],delete i[bi],e.cellPreviewCell=null,e.abortCellPreview=!1}else e.abortCellPreview=!0;return this}}yi.VERSION="@@VERSION";const _i={AUTO:0,ABSOLUTE:1,RELATIVE:2};yi.Width={NONE:"none",AUTO:"auto",SCROLL:"scroll"},module.exports=yi;
5
+ "use strict";var e,t,r=require("@danielgindi/dom-utils/lib/ScrollHelper.js"),n=require("@danielgindi/dom-utils/lib/Css.js"),i=require("@danielgindi/dom-utils/lib/DomCompat.js"),o=require("@danielgindi/dom-utils/lib/DomEventsSink.js"),l=require("@danielgindi/virtual-list-helper"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function u(){if(t)return e;t=1;var r=function(e){return e&&e.Math===Math&&e};return e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s&&s)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var c,d,h,f,m,v,p,g,b={};function w(){return d?c:(d=1,c=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(f)return h;f=1;var e=w();return h=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function C(){if(v)return m;v=1;var e=w();return m=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function S(){if(g)return p;g=1;var e=C(),t=Function.prototype.call;return p=e?t.bind(t):function(){return t.apply(t,arguments)},p}var R,x,W,L,P,_,k,N,E,O,T,A,F,z,I,M,H,j,B,U,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue,ce={};function de(){if(R)return ce;R=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ce.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ce}function he(){return W?x:(W=1,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function fe(){if(P)return L;P=1;var e=C(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return L=e?n:function(e){return function(){return r.apply(e,arguments)}},L}function me(){if(k)return _;k=1;var e=fe(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)}}function ve(){if(E)return N;E=1;var e=fe(),t=w(),r=me(),n=Object,i=e("".split);return N=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function pe(){return T?O:(T=1,O=function(e){return null==e})}function ge(){if(F)return A;F=1;var e=pe(),t=TypeError;return A=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function be(){if(I)return z;I=1;var e=ve(),t=ge();return z=function(r){return e(t(r))}}function we(){if(H)return M;H=1;var e="object"==typeof document&&document.all;return M=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(B)return j;B=1;var e=we();return j=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(q)return U;q=1;var e=u(),t=we();return U=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},U}function Se(){if(V)return D;V=1;var e=fe();return D=e({}.isPrototypeOf)}function Re(){if(G)return $;G=1;var e=u().navigator,t=e&&e.userAgent;return $=t?String(t):""}function xe(){if(Y)return X;Y=1;var e,t,r=u(),n=Re(),i=r.process,o=r.Deno,l=i&&i.versions||o&&o.version,s=l&&l.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),X=t}function We(){if(K)return J;K=1;var e=xe(),t=w(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Le(){if(Z)return Q;Z=1;var e=We();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Pe(){if(te)return ee;te=1;var e=Ce(),t=we(),r=Se(),n=Le(),i=Object;return ee=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function _e(){if(ne)return re;ne=1;var e=String;return re=function(t){try{return e(t)}catch(e){return"Object"}}}function ke(){if(oe)return ie;oe=1;var e=we(),t=_e(),r=TypeError;return ie=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ne(){if(se)return le;se=1;var e=ke(),t=pe();return le=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function Ee(){if(ue)return ae;ue=1;var e=S(),t=we(),r=ye(),n=TypeError;return ae=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Oe,Te,Ae,Fe,ze,Ie,Me,He,je,Be,Ue,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt,rt={exports:{}};function nt(){return Te?Oe:(Te=1,Oe=!1)}function it(){if(Fe)return Ae;Fe=1;var e=u(),t=Object.defineProperty;return Ae=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function ot(){if(ze)return rt.exports;ze=1;var e=nt(),t=u(),r=it(),n="__core-js_shared__",i=rt.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rt.exports}function lt(){if(Me)return Ie;Me=1;var e=ot();return Ie=function(t,r){return e[t]||(e[t]=r||{})}}function st(){if(je)return He;je=1;var e=ge(),t=Object;return He=function(r){return t(e(r))}}function at(){if(Ue)return Be;Ue=1;var e=fe(),t=st(),r=e({}.hasOwnProperty);return Be=Object.hasOwn||function(e,n){return r(t(e),n)}}function ut(){if(De)return qe;De=1;var e=fe(),t=0,r=Math.random(),n=e(1.1.toString);return qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function ct(){if($e)return Ve;$e=1;var e=u(),t=lt(),r=at(),n=ut(),i=We(),o=Le(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return Ve=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function dt(){if(Xe)return Ge;Xe=1;var e=S(),t=ye(),r=Pe(),n=Ne(),i=Ee(),o=ct(),l=TypeError,s=o("toPrimitive");return Ge=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function ht(){if(Je)return Ye;Je=1;var e=dt(),t=Pe();return Ye=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ft(){if(Qe)return Ke;Qe=1;var e=u(),t=ye(),r=e.document,n=t(r)&&t(r.createElement);return Ke=function(e){return n?r.createElement(e):{}}}function mt(){if(et)return Ze;et=1;var e=y(),t=w(),r=ft();return Ze=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function vt(){if(tt)return b;tt=1;var e=y(),t=S(),r=de(),n=he(),i=be(),o=ht(),l=at(),s=mt(),a=Object.getOwnPropertyDescriptor;return b.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},b}var pt,gt,bt,wt,yt,Ct,St,Rt={};function xt(){if(gt)return pt;gt=1;var e=y(),t=w();return pt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Wt(){if(wt)return bt;wt=1;var e=ye(),t=String,r=TypeError;return bt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Lt(){if(yt)return Rt;yt=1;var e=y(),t=mt(),r=xt(),n=Wt(),i=ht(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Rt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Rt}function Pt(){if(St)return Ct;St=1;var e=y(),t=Lt(),r=he();return Ct=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var _t,kt,Nt,Et,Ot,Tt,At,Ft,zt,It,Mt,Ht,jt,Bt,Ut,qt={exports:{}};function Dt(){if(kt)return _t;kt=1;var e=y(),t=at(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return _t={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Vt(){if(Et)return Nt;Et=1;var e=fe(),t=we(),r=ot(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Nt=r.inspectSource}function $t(){if(Ft)return At;Ft=1;var e=lt(),t=ut(),r=e("keys");return At=function(e){return r[e]||(r[e]=t(e))}}function Gt(){return It?zt:(It=1,zt={})}function Xt(){if(Ht)return Mt;Ht=1;var e,t,r,n=function(){if(Tt)return Ot;Tt=1;var e=u(),t=we(),r=e.WeakMap;return Ot=t(r)&&/native code/.test(String(r))}(),i=u(),o=ye(),l=Pt(),s=at(),a=ot(),c=$t(),d=Gt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||a.state){var v=a.state||(a.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,e=function(e,t){if(v.has(e))throw new f(h);return t.facade=e,v.set(e,t),t},t=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var p=c("state");d[p]=!0,e=function(e,t){if(s(e,p))throw new f(h);return t.facade=e,l(e,p,t),t},t=function(e){return s(e,p)?e[p]:{}},r=function(e){return s(e,p)}}return Mt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Yt(){if(jt)return qt.exports;jt=1;var e=fe(),t=w(),r=we(),n=at(),i=y(),o=Dt().CONFIGURABLE,l=Vt(),s=Xt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),v=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),p=String(String).split("String"),g=qt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(p,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),qt.exports}function Jt(){if(Ut)return Bt;Ut=1;var e=we(),t=Lt(),r=Yt(),n=it();return Bt=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr,mr={};function vr(){if(er)return Zt;er=1;var e=function(){if(Qt)return Kt;Qt=1;var e=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Zt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function pr(){if(rr)return tr;rr=1;var e=vr(),t=Math.max,r=Math.min;return tr=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function gr(){if(ir)return nr;ir=1;var e=vr(),t=Math.min;return nr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function br(){if(lr)return or;lr=1;var e=gr();return or=function(t){return e(t.length)}}function wr(){if(cr)return ur;cr=1;var e=fe(),t=at(),r=be(),n=function(){if(ar)return sr;ar=1;var e=be(),t=pr(),r=br(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return sr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Gt(),o=e([].push);return ur=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c}}function yr(){return hr?dr:(hr=1,dr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Cr,Sr,Rr,xr,Wr,Lr,Pr,_r,kr,Nr,Er,Or,Tr,Ar,Fr,zr,Ir,Mr,Hr,jr,Br,Ur,qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr={};function Qr(){return Cr||(Cr=1,Kr.f=Object.getOwnPropertySymbols),Kr}function Zr(){if(Rr)return Sr;Rr=1;var e=Ce(),t=fe(),r=function(){if(fr)return mr;fr=1;var e=wr(),t=yr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},mr}(),n=Qr(),i=Wt(),o=t([].concat);return Sr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function en(){if(Wr)return xr;Wr=1;var e=at(),t=Zr(),r=vt(),n=Lt();return xr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function tn(){if(kr)return _r;kr=1;var e=u(),t=vt().f,r=Pt(),n=Jt(),i=it(),o=en(),l=function(){if(Pr)return Lr;Pr=1;var e=w(),t=we(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Lr=n}();return _r=function(s,a){var u,c,d,h,f,m=s.target,v=s.global,p=s.stat;if(u=v?e:p?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=s.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!l(v?c:m+(p?".":"#")+c,s.forced)&&void 0!==d){if(typeof h==typeof d)continue;o(h,d)}(s.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,s)}}}function rn(){if(Er)return Nr;Er=1;var e=_e(),t=TypeError;return Nr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}function nn(){if(Fr)return Ar;Fr=1;var e=function(){if(Tr)return Or;Tr=1;var e={};return e[ct()("toStringTag")]="z",Or="[object z]"===String(e)}(),t=we(),r=me(),n=ct()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Ar=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a}}function on(){if(Ir)return zr;Ir=1;var e=nn(),t=String;return zr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function ln(){if(Hr)return Mr;Hr=1;var e=fe();return Mr=e([].slice)}function sn(){if(Br)return jr;Br=1;var e=ln(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,v=0;m<h||v<f;)n[m+v]=m<h&&v<f?i(c[m],d[v])<=0?c[m++]:d[v++]:m<h?c[m++]:d[v++];return n};return jr=r}function an(){if(qr)return Ur;qr=1;var e=w();return Ur=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Jr)return a;Jr=1;var e=tn(),t=fe(),r=ke(),n=st(),i=br(),o=rn(),l=on(),s=w(),u=sn(),c=an(),d=function(){if(Vr)return Dr;Vr=1;var e=Re().match(/firefox\/(\d+)/i);return Dr=!!e&&+e[1]}(),h=function(){if(Gr)return $r;Gr=1;var e=Re();return $r=/MSIE|Trident/.test(e)}(),f=xe(),m=function(){if(Yr)return Xr;Yr=1;var e=Re().match(/AppleWebKit\/(\d+)\./);return Xr=!!e&&+e[1]}(),v=[],p=t(v.sort),g=t(v.push),b=s(function(){v.sort(void 0)}),y=s(function(){v.sort(null)}),C=c("sort"),S=!s(function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort(function(e,t){return t.v-e.v}),n=0;n<v.length;n++)t=v[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!C||!S},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(S)return void 0===e?p(t):p(t,e);var s,a,c=[],d=i(t);for(a=0;a<d;a++)a in t&&g(c,t[a]);for(u(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),a=0;a<s;)t[a]=c[a++];for(;a<d;)o(t,a++);return t}})}();var un,cn,dn,hn,fn,mn,vn,pn,gn,bn,wn,yn,Cn,Sn,Rn,xn,Wn,Ln,Pn,_n,kn,Nn,En,On,Tn,An,Fn,zn,In,Mn,Hn,jn,Bn,Un,qn,Dn,Vn,$n,Gn,Xn,Yn={},Jn={};function Kn(){if(mn)return fn;mn=1;var e=wr(),t=yr();return fn=Object.keys||function(r){return e(r,t)}}function Qn(){if(gn)return pn;gn=1;var e=Ce();return pn=e("document","documentElement")}function Zn(){if(wn)return bn;wn=1;var e,t=Wt(),r=function(){if(vn)return Jn;vn=1;var e=y(),t=xt(),r=Lt(),n=Wt(),i=be(),o=Kn();return Jn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Jn}(),n=yr(),i=Gt(),o=Qn(),l=ft(),s=$t(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,bn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)}}function ei(){if(Cn)return yn;Cn=1;var e=ct(),t=Zn(),r=Lt().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),yn=function(e){i[n][e]=!0}}function ti(){return Rn?Sn:(Rn=1,Sn={})}function ri(){if(Pn)return Ln;Pn=1;var e=at(),t=we(),r=st(),n=$t(),i=function(){if(Wn)return xn;Wn=1;var e=w();return xn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Ln=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null}}function ni(){if(kn)return _n;kn=1;var e,t,r,n=w(),i=we(),o=ye(),l=Zn(),s=ri(),a=Jt(),u=ct(),c=nt(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),_n={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function ii(){if(En)return Nn;En=1;var e=Lt().f,t=at(),r=ct()("toStringTag");return Nn=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function oi(){if(Tn)return On;Tn=1;var e=ni().IteratorPrototype,t=Zn(),r=he(),n=ii(),i=ti(),o=function(){return this};return On=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function li(){if(In)return zn;In=1;var e=ye();return zn=function(t){return e(t)||null===t}}function si(){if(Hn)return Mn;Hn=1;var e=li(),t=String,r=TypeError;return Mn=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ai(){if(qn)return Un;qn=1;var e=tn(),t=S(),r=nt(),n=Dt(),i=we(),o=oi(),l=ri(),s=function(){if(Bn)return jn;Bn=1;var e=function(){if(Fn)return An;Fn=1;var e=fe(),t=ke();return An=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ye(),r=ge(),n=si();return jn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0)}(),a=ii(),u=Pt(),c=Jt(),d=ct(),h=ti(),f=ni(),m=n.PROPER,v=n.CONFIGURABLE,p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",y="values",C="entries",R=function(){return this};return Un=function(n,d,f,S,x,W,L){o(f,d,S);var P,_,k,N=function(e){if(e===x&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case w:case y:case C:return function(){return new f(this,e)}}return function(){return new f(this)}},E=d+" Iterator",O=!1,T=n.prototype,A=T[b]||T["@@iterator"]||x&&T[x],F=!g&&A||N(x),z="Array"===d&&T.entries||A;if(z&&(P=l(z.call(new n)))!==Object.prototype&&P.next&&(r||l(P)===p||(s?s(P,p):i(P[b])||c(P,b,R)),a(P,E,!0,!0),r&&(h[E]=R)),m&&x===y&&A&&A.name!==y&&(!r&&v?u(T,"name",y):(O=!0,F=function(){return t(A,this)})),x)if(_={values:N(y),keys:W?F:N(w),entries:N(C)},L)for(k in _)(g||O||!(k in T))&&c(T,k,_[k]);else e({target:d,proto:!0,forced:g||O},_);return r&&!L||T[b]===F||c(T,b,F,{name:x}),h[d]=F,_}}function ui(){return Vn?Dn:(Vn=1,Dn=function(e,t){return{value:e,done:t}})}function ci(){if(Gn)return $n;Gn=1;var e=be(),t=ei(),r=ti(),n=Xt(),i=Lt().f,o=ai(),l=ui(),s=nt(),a=y(),u="Array Iterator",c=n.set,d=n.getterFor(u);$n=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return $n}!function(){if(Xn)return Yn;Xn=1;var e=u(),t=cn?un:(cn=1,un={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(hn)return dn;hn=1;var e=ft()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return dn=t===Object.prototype?void 0:t}(),n=ci(),i=Pt(),o=ii(),l=ct()("iterator"),s=n.values,a=function(e,r){if(e){if(e[l]!==s)try{i(e,l,s)}catch(t){e[l]=s}if(o(e,r,!0),t[r])for(var a in n)if(e[a]!==n[a])try{i(e,a,n[a])}catch(t){e[a]=n[a]}}};for(var c in t)a(e[c]&&e[c].prototype,c);a(r,"DOMTokenList")}();var di,hi,fi,mi,vi,pi,gi,bi,wi,yi,Ci,Si,Ri,xi,Wi,Li,Pi,_i,ki,Ni,Ei,Oi,Ti,Ai,Fi,zi,Ii,Mi,Hi,ji,Bi,Ui,qi,Di,Vi,$i,Gi,Xi,Yi,Ji={},Ki={};function Qi(){if(hi)return di;hi=1;var e=fe(),t=vr(),r=on(),n=ge(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return di={codeAt:s(!1),charAt:s(!0)}}function Zi(){if(vi)return mi;vi=1;var e=w(),t=ct(),r=y(),n=nt(),i=t("iterator");return mi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function eo(){if(wi)return bi;wi=1;var e=function(){if(gi)return pi;gi=1;var e=me(),t=fe();return pi=function(r){if("Function"===e(r))return t(r)}}(),t=ke(),r=C(),n=e(e.bind);return bi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},bi}function to(){if(Ci)return yi;Ci=1;var e=Yt(),t=Lt();return yi=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}function ro(){if(Ri)return Si;Ri=1;var e=Se(),t=TypeError;return Si=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function no(){if(Pi)return Li;Pi=1;var e=S(),t=Wt(),r=Ne();return Li=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function io(){if(ki)return _i;ki=1;var e=Wt(),t=no();return _i=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function oo(){if(Ei)return Ni;Ei=1;var e=ct(),t=ti(),r=e("iterator"),n=Array.prototype;return Ni=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function lo(){if(Ti)return Oi;Ti=1;var e=fe(),t=w(),r=we(),n=nn(),i=Ce(),o=Vt(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,Oi=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function so(){if(Fi)return Ai;Fi=1;var e=y(),t=Lt(),r=he();return Ai=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function ao(){if(Ii)return zi;Ii=1;var e=me();return zi=Array.isArray||function(t){return"Array"===e(t)}}function uo(){if(Bi)return ji;Bi=1;var e=nn(),t=Ne(),r=pe(),n=ti(),i=ct()("iterator");return ji=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function co(){if(qi)return Ui;qi=1;var e=S(),t=ke(),r=Wt(),n=_e(),i=uo(),o=TypeError;return Ui=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},Ui}function ho(){if(Vi)return Di;Vi=1;var e=eo(),t=S(),r=st(),n=io(),i=oo(),o=lo(),l=br(),s=so(),a=function(){if(Hi)return Mi;Hi=1;var e=y(),t=ao(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return Mi=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t}}(),u=co(),c=uo(),d=Array;return Di=function(h){var f=r(h),m=o(this),v=arguments.length,p=v>1?arguments[1]:void 0,g=void 0!==p;g&&(p=e(p,v>2?arguments[2]:void 0));var b,w,y,C,S,R,x=c(f),W=0;if(!x||this===d&&i(x))for(b=l(f),w=m?new this(b):d(b);b>W;W++)R=g?p(f[W],W):f[W],s(w,W,R);else for(w=m?new this:[],S=(C=u(f,x)).next;!(y=t(S,C)).done;W++)R=g?n(C,p,[y.value,W],!0):y.value,s(w,W,R);return a(w,W),w},Di}function fo(){if(Yi)return Xi;Yi=1;var e=TypeError;return Xi=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var mo,vo,po,go,bo,wo,yo,Co,So,Ro={};function xo(){if(po)return vo;po=1;var e=u(),t=y(),r=Object.getOwnPropertyDescriptor;return vo=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function Wo(){if(bo)return go;bo=1;var e=Jt();return go=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function Lo(){if(yo)return wo;yo=1,ci(),function(){if(mo)return Ro;mo=1;var e=tn(),t=fe(),r=pr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=tn(),t=u(),r=xo(),n=Ce(),i=S(),o=fe(),l=y(),s=Zi(),a=Jt(),c=to(),d=Wo(),h=ii(),f=oi(),m=Xt(),v=ro(),p=we(),g=at(),b=eo(),w=nn(),C=Wt(),R=ye(),x=on(),W=Zn(),L=he(),P=co(),_=uo(),k=ui(),N=fo(),E=ct(),O=sn(),T=E("iterator"),A="URLSearchParams",F=A+"Iterator",z=m.set,I=m.getterFor(A),M=m.getterFor(F),H=r("fetch"),j=r("Request"),B=r("Headers"),U=j&&j.prototype,q=B&&B.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=o("".charAt),J=o([].join),K=o([].push),Q=o("".replace),Z=o([].shift),ee=o([].splice),te=o("".split),re=o("".slice),ne=o(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ae(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return de[e]},ve=function(e){return Q(V(e),ce,me)},pe=f(function(e,t){z(this,{type:F,target:I(e).entries,index:0,kind:t})},A,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,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),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:x(e)))};ge.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=_(e);if(c)for(r=(t=P(e,c)).next;!(n=i(r,t)).done;){if(l=(o=P(C(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:x(s.value),value:x(a.value)})}else for(var d in e)g(e,d)&&K(u,{key:d,value:x(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(Z(r)),value:ue(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,ve(e.key)+"="+ve(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var be=function(){v(this,Se);var e=z(this,new ge(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},Se=be.prototype;if(d(Se,{append:function(e,t){var r=I(this);N(arguments.length,2),K(r.entries,{key:x(e),value:x(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=I(this),r=N(arguments.length,1),n=t.entries,i=x(e),o=r<2?void 0:arguments[1],s=void 0===o?o:x(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=I(this).entries,r=N(arguments.length,1),n=x(e),i=r<2?void 0:arguments[1],o=void 0===i?i:x(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=I(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,s=x(e),a=x(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=I(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),a(Se,T,Se.entries,{name:"entries"}),a(Se,"toString",function(){return I(this).serialize()},{enumerable:!0}),l&&c(Se,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),h(be,A),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:be}),!s&&p(B)){var Re=o(q.has),xe=o(q.set),We=function(e){if(R(e)){var t,r=e.body;if(w(r)===A)return t=e.headers?new B(e.headers):new B,Re(t,"content-type")||xe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(e,{body:L(0,x(r)),headers:L(0,t)})}return e};if(p(H)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?We(arguments[1]):{})}}),p(j)){var Le=function(e){return v(this,U),new j(e,arguments.length>1?We(arguments[1]):{})};U.constructor=Le,Le.prototype=U,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Le})}}return wo={URLSearchParams:be,getState:I}}So||(So=1,function(){if(Co)return Ji;Co=1,function(){if(fi)return Ki;fi=1;var e=Qi().charAt,t=on(),r=Xt(),n=ai(),i=ui(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=tn(),r=y(),n=Zi(),i=u(),o=eo(),l=fe(),s=Jt(),a=to(),c=ro(),d=at(),h=function(){if(Wi)return xi;Wi=1;var e=y(),t=fe(),r=S(),n=w(),i=Kn(),o=Qr(),l=de(),s=st(),a=ve(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return xi=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var v,p=a(arguments[h++]),g=f?d(i(p),f(p)):i(p),b=g.length,w=0;b>w;)v=g[w++],e&&!r(m,p,v)||(u[v]=p[v]);return u}:u,xi}(),f=ho(),m=ln(),v=Qi().codeAt,p=function(){if(Gi)return $i;Gi=1;var e=fe(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),v=function(e){return e+22+75*(e<26)},p=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,w=b;for(b&&d(r,"-");w<h;){var y=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<y&&(y=l);var C=w+1;if(y-f>s((t-m)/C))throw new o(i);for(m+=(y-f)*C,f=y,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,R=36;;){var x=R<=g?1:R>=g+26?26:R-g;if(S<x)break;var W=S-x,L=36-x;d(r,a(v(x+W%L))),S=s(W/L),R+=36}d(r,a(v(S))),g=p(m,C,w===b),m=0,w++}}m++,f++}return c(r,"")};return $i=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),g=on(),b=ii(),C=fo(),R=Lo(),x=Xt(),W=x.set,L=x.getterFor("URL"),P=R.URLSearchParams,_=R.getState,k=i.URL,N=i.TypeError,E=i.parseInt,O=Math.floor,T=Math.pow,A=l("".charAt),F=l(/./.exec),z=l([].join),I=l(1.1.toString),M=l([].pop),H=l([].push),j=l("".replace),B=l([].shift),U=l("".split),q=l("".slice),D=l("".toLowerCase),V=l([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=O(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=I(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),he=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=v(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,A(e,0))&&(":"===(r=A(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===D(e)},ye=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},Re={},xe={},We={},Le={},Pe={},_e={},ke={},Ne={},Ee={},Oe={},Te={},Ae={},Fe={},ze={},Ie={},Me={},He={},je={},Be={},Ue=function(e,t,r){var n,i,o,l=g(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ue(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=_(new P)).bindURL(this),this.searchParams=o}};Ue.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",v=!1,p=!1,b=!1;for(t=g(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=Re;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=Re,c=0;continue}if(r&&(a.isSpecial()!==d(pe,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&pe[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ae:a.isSpecial()&&n&&n.scheme===a.scheme?u=xe:a.isSpecial()?u=_e:"/"===i[c+1]?(u=We,c++):(a.cannotBeABaseURL=!0,H(a.path,""),u=He)}break;case Re:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Be;break}u="file"===n.scheme?Ae:Le;continue;case xe:if("/"!==o||"/"!==i[c+1]){u=Le;continue}u=ke,c++;break;case We:if("/"===o){u=Ne;break}u=Me;continue;case Le:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=Pe;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be}break;case Pe:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=ke;break;case _e:if(u=ke,"/"!==o||"/"!==A(h,c+1))continue;c++;break;case ke:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){v&&(h="%40"+h),v=!0,l=f(h);for(var w=0;w<l.length;w++){var y=l[w];if(":"!==y||b){var C=me(y,he);b?a.password+=C:a.username+=C}else b=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(v&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=Ee}else h+=o;break;case Ee:case Oe:if(r&&"file"===a.scheme){u=ze;continue}if(":"!==o||p){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=Ie,r)return;continue}"["===o?p=!0:"]"===o&&(p=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Te,r===Oe)return}break;case Te:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=E(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===pe[a.scheme]?null:S,h=""}if(r)return;u=Ie;continue}return X}h+=o;break;case Ae:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be;break;default:be(z(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=ze;break}n&&"file"===n.scheme&&!be(z(m(i,c),""))&&(ge(n.path[0],!0)?H(a.path,n.path[0]):a.host=n.host),u=Me;continue;case ze:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Me;else if(""===h){if(a.host="",r)return;u=Ie}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=Ie}continue}h+=o;break;case Ie:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Be;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(ye(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||H(a.path,"")):we(h)?"/"===o||"\\"===o&&a.isSpecial()||H(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=A(h,0)+":"),H(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)B(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Be)}else h+=me(o,ce);break;case He:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Be):o!==e&&(a.path[0]+=me(o,ae));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":me(o,ae)):(a.fragment="",u=Be);break;case Be:o!==e&&(a.fragment+=me(o,ue))}c++}},parseHost:function(e){var t,r,n;if("["===A(e,0)){if("]"!==A(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return A(e,d)};if(":"===h()){if(":"!==A(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+E(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=E(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=p(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=U(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===A(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=E(i,o)}H(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=T(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=me(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+z(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=g(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=g(e))?this.query=null:("?"===A(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=g(e))?("#"===A(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=C(arguments.length,1)>1?arguments[1]:void 0,i=W(t,new Ue(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return L(this)[e]()},set:t&&function(e){return L(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(De,"href",Ve("serialize","setHref")),a(De,"origin",Ve("getOrigin")),a(De,"protocol",Ve("getProtocol","setProtocol")),a(De,"username",Ve("getUsername","setUsername")),a(De,"password",Ve("getPassword","setPassword")),a(De,"host",Ve("getHost","setHost")),a(De,"hostname",Ve("getHostname","setHostname")),a(De,"port",Ve("getPort","setPort")),a(De,"pathname",Ve("getPathname","setPathname")),a(De,"search",Ve("getSearch","setSearch")),a(De,"searchParams",Ve("getSearchParams")),a(De,"hash",Ve("getHash","setHash"))),s(De,"toJSON",function(){return L(this).serialize()},{enumerable:!0}),s(De,"toString",function(){return L(this).serialize()},{enumerable:!0}),k){var $e=k.createObjectURL,Ge=k.revokeObjectURL;$e&&s(qe,"createObjectURL",o($e,k)),Ge&&s(qe,"revokeObjectURL",o(Ge,k))}b(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var Po,_o,ko={};!function(){if(Po)return ko;Po=1;var e=tn(),t=S();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),_o||(_o=1,Lo());var No,Eo,Oo,To,Ao,Fo,zo,Io,Mo,Ho,jo,Bo={};function Uo(){if(Eo)return No;Eo=1;var e=Wt();return No=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function qo(){if(Ho)return Mo;Ho=1;var e,t,r=S(),n=fe(),i=on(),o=Uo(),l=function(){if(To)return Oo;To=1;var e=w(),t=u().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Oo={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=lt(),a=Zn(),c=Xt().get,d=function(){if(Fo)return Ao;Fo=1;var e=w(),t=u().RegExp;return Ao=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),h=function(){if(Io)return zo;Io=1;var e=w(),t=u().RegExp;return zo=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,p=n("".charAt),g=n("".indexOf),b=n("".replace),y=n("".slice),C=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),R=l.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(C||x||R||d||h)&&(v=function(e){var t,n,l,s,u,d,h,w=this,S=c(w),W=i(e),L=S.raw;if(L)return L.lastIndex=w.lastIndex,t=r(v,L,W),w.lastIndex=L.lastIndex,t;var P=S.groups,_=R&&w.sticky,k=r(o,w),N=w.source,E=0,O=W;if(_&&(k=b(k,"y",""),-1===g(k,"g")&&(k+="g"),O=y(W,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==p(W,w.lastIndex-1))&&(N="(?: "+N+")",O=" "+O,E++),n=new RegExp("^(?:"+N+")",k)),x&&(n=new RegExp("^"+N+"$(?!\\s)",k)),C&&(l=w.lastIndex),s=r(m,_?n:w,O),_?s?(s.input=y(s.input,E),s[0]=y(s[0],E),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:C&&s&&(w.lastIndex=w.global?s.index+s[0].length:l),x&&s&&s.length>1&&r(f,s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s&&P)for(s.groups=d=a(null),u=0;u<P.length;u++)d[(h=P[u])[0]]=s[h[1]];return s}),Mo=v}function Do(){if(jo)return Bo;jo=1;var e=tn(),t=qo();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Bo}Do();var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el,tl,rl,nl,il,ol,ll={};function sl(){if(Jo)return Yo;Jo=1;var e=Qi().charAt;return Yo=function(t,r,n){return r+(n?e(t,r).length:1)}}function al(){if(Qo)return Ko;Qo=1;var e=fe(),t=st(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Ko=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,v=s;return void 0!==d&&(d=t(d),v=l),i(h,v,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}function ul(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function cl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}!function(){if(ol)return ll;ol=1;var e=function(){if($o)return Vo;$o=1;var e=C(),t=Function.prototype,r=t.apply,n=t.call;return Vo="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Vo}(),t=S(),r=fe(),n=function(){if(Xo)return Go;Xo=1,Do();var e=S(),t=Jt(),r=qo(),n=w(),i=ct(),o=Pt(),l=i("species"),s=RegExp.prototype;return Go=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var v=/./[h],p=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(v,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,p[0]),t(s,h,p[1])}d&&o(s[h],"sham",!0)}}(),i=w(),o=Wt(),l=we(),s=ye(),a=vr(),c=gr(),d=on(),h=ge(),f=sl(),m=Ne(),v=al(),p=function(){if(rl)return tl;rl=1;var e=S(),t=at(),r=Se(),n=function(){if(el)return Zo;el=1;var e=u(),t=w(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return Zo={correct:n}}(),i=Uo(),o=RegExp.prototype;return tl=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),g=function(){if(il)return nl;il=1;var e=S(),t=Wt(),r=we(),n=me(),i=qo(),o=TypeError;return nl=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")}}(),b=ct()("replace"),y=Math.max,R=Math.min,x=r([].concat),W=r([].push),L=r("".indexOf),P=r("".slice),_=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),N=!!/./[b]&&""===/./[b]("a","$0");n("replace",function(r,n,i){var u=N?"$":"$0";return[function(e,r){var i=h(this),o=s(e)?m(e,b):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var s=o(this),h=d(t);if("string"==typeof r&&-1===L(r,u)&&-1===L(r,"$<")){var m=i(n,s,h,r);if(m.done)return m.value}var b=l(r);b||(r=d(r));var w,C=d(p(s)),S=-1!==L(C,"g");S&&(w=-1!==L(C,"u"),s.lastIndex=0);for(var k,N=[];null!==(k=g(s,h))&&(W(N,k),S);)""===d(k[0])&&(s.lastIndex=f(h,c(s.lastIndex),w));for(var E="",O=0,T=0;T<N.length;T++){for(var A,F=d((k=N[T])[0]),z=y(R(a(k.index),h.length),0),I=[],M=1;M<k.length;M++)W(I,_(k[M]));var H=k.groups;if(b){var j=x([F],I,z,h);void 0!==H&&W(j,H),A=d(e(r,void 0,j))}else A=v(F,h,z,I,H,r);z>=O&&(E+=P(h,O,z)+A,O=z+F.length)}return E+P(h,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||N)}();var dl,hl={};!function(){if(dl)return hl;dl=1;var e=tn(),t=y(),r=u(),n=fe(),i=at(),o=we(),l=Se(),s=on(),a=to(),c=en(),d=r.Symbol,h=d&&d.prototype;if(t&&o(d)&&(!("description"in h)||void 0!==d().description)){var f={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};c(m,d),m.prototype=h,h.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),p=n(h.valueOf),g=n(h.toString),b=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),C=n("".slice);a(h,"description",{configurable:!0,get:function(){var e=p(this);if(i(f,e))return"";var t=g(e),r=v?C(t,7,-1):w(t,b,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:m})}}();const fl=Symbol("safe"),ml=Symbol("hover_in"),vl=Symbol("hover_out"),pl=Symbol("row_click"),gl=Symbol("preview_cell"),bl=Symbol("cell"),wl=Symbol("related_touch"),yl=Symbol("original_row_index");class Cl 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 Cl({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[yl]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=Sl(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 Sl(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 Rl 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 xl(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 Wl={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Ll=document.createElement.bind(document);function Pl(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function _l(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function kl(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function Nl(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 El(e,t){const r=e._o.tableClassName,i=Ll("div");i.className=e.el.className;const o=Ll("div");o.className=r+"-header";const l=Ll("div");l.className=r+"-header-row";const s=Ll("div");s.className=r+"-header-cell";const a=Ll("div");a.textContent=t,s.appendChild(a),l.appendChild(s),o.appendChild(l),i.appendChild(o),n.setCssProps(i,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(i);const u=n.getElementWidth(s);return i.remove(),u}function Ol(e){const t=e._o,r=e._p;let i,o=0,l=0;r.table&&(o=r.table?r.table.scrollTop:0,l=r.table?r.table.scrollLeft:0,t.virtualTable&&(i=r.table.style.display,r.table.style.display="none"));let s=n.getElementWidth(e.el);r.table&&(t.virtualTable&&void 0!==i&&(r.table.style.display=i),r.table.scrollTop=o,r.table.scrollLeft=l,r.header&&(r.header.scrollLeft=l));const a=t.tableClassName,u=Ll("div");u.className=e.el.className,n.setCssProps(u,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const c=Ll("div");c.className="".concat(a,"-header"),u.appendChild(c);const d=Ll("div");d.index=null,d.vIndex=null,d.className="".concat(a,"-header-row"),c.appendChild(d);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=Ll("div");n.className="".concat(a,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(Ll("div")),d.appendChild(n)}document.body.appendChild(u),s-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(d);const h=d.querySelectorAll("div.".concat(a,"-header-cell"));for(const e of h){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){s-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+kl(e);const n=e.columnName,i=r.columns.get(n);i&&(s-=i.arrowProposedWidth||0)}}return u.remove(),Math.max(0,s)}function Tl(e){const t=e._p,r=e._o.tableClassName,i=r+"-row",o=r+"-cell",l=t.visibleColumns,s=l.length,a=Ll("div");a.className=i,a.style.float="left";let u=0;for(let e=0;e<s;e++){var c,d;const t=l[e],r=Ll("div");r.className=o,r.style.width=(null!==(c=t.actualWidth)&&void 0!==c?c:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Ll("div")),a.appendChild(r),u+=null!==(d=t.actualWidth)&&void 0!==d?d:0}const h=Ll("div");h.className=e.el.className,n.setCssProps(h,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Ll("div");f.className=r,h.appendChild(f);const m=Ll("div");m.className=r+"-body",m.style.width=u+1e4+"px",f.appendChild(m),m.appendChild(a),document.body.appendChild(h);const v=Ll("div");n.setCssProps(v,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(v);const p=parseFloat(getComputedStyle(v).borderWidth),g=Math.round(p)!==p;v.remove();let b=n.getElementWidth(a,!0,!0,!0);return b-=t.scrollbarWidth||0,g&&b++,h.remove(),b}function Al(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function Fl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class zl{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 Il=document.createElement.bind(document);function Ml(e,t){var r,i,o;const l=e._o,s=Al(e);let a=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!a)return null;a[bl]&&(a=a[bl]);let u=a.previousSibling;for(;u&&1!==u.nodeType;)u=u.previousSibling;const c=!u,d=t,h=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=d.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t,f=(h.pageX||h.clientX||0)-n.getElementOffset(a).left;if(s){var m,v,p;if(!c&&n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(m=null===(v=u)||void 0===v?void 0:v.columnName)&&void 0!==m?m:null;if(f<=l.resizeAreaWidth/2)return null!==(p=a.columnName)&&void 0!==p?p:null}else{var g,b,w;if(!c&&f<=l.resizeAreaWidth/2)return null!==(g=null===(b=u)||void 0===b?void 0:b.columnName)&&void 0!==g?g:null;if(n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(w=a.columnName)&&void 0!==w?w:null}return null}function Hl(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function jl(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const i=e._o,o=e._p,l=Ml(e,t);if(l){const r=o.columns.get(l);if(!i.resizableColumns||!r||!r.resizable)return!1;const s=Al(e);o.resizer&&o.resizer.remove(),o.resizer=Il("div"),o.resizer.className=i.resizerClassName,n.setCssProps(o.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(o.resizer);const a=r.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=n.getElementOffset(a),f=n.getElementOffset(u);f.left+=parseFloat(c.borderLeftWidth)||0,f.top+=parseFloat(c.borderTopWidth)||0,h.left-=f.left,h.top-=f.top,h.top-=parseFloat(d.borderTopWidth)||0;const m=n.getElementWidth(o.resizer,!0,!0,!0);s?(h.left-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),h.left-=Math.ceil(m/2)):(h.left+=n.getElementWidth(a,!0,!0,!0),h.left+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),h.left-=Math.ceil(m/2)),n.setCssProps(o.resizer,{"z-index":"10",visibility:"visible",left:h.left+"px",top:h.top+"px",height:n.getElementHeight(e.el,!1,!1,!1)+"px"}),o.resizer.columnName=a.columnName;try{o.resizer.style.zIndex=""}catch(e){}o.eventsSink.add(document,"mousemove.colresize",t=>Bl(e,t)).add(document,"touchmove.colresize",t=>Bl(e,t)).add(document,"mouseup.colresize",t=>Ul(e,t)).add(document,"touchend.colresize",t=>Ul(e,t)),t.preventDefault()}}function Bl(e,t){var r,i,o;const l=e._p;if(!l.resizer)return;const s=l.columns.get(l.resizer.columnName);if(!s)return;const a=Al(e),u=s.element,c=l.resizer.parentNode,d=getComputedStyle(c),h=getComputedStyle(u),f=n.getElementOffset(u),m=n.getElementOffset(c);m.left+=parseFloat(d.borderLeftWidth)||0,f.left-=m.left;const v=n.getElementWidth(l.resizer,!0,!0,!0),p="border-box"===h.boxSizing,g=t;let b=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=g.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-m.left,w=f.left;w-=Math.ceil(v/2),a?(w+=n.getElementWidth(u,!0,!0,!0),w-=s.ignoreMin?0:e._o.minColumnWidth,p||(w-=Math.ceil((parseFloat(h.borderLeftWidth)||0)/2),w-=kl(u)),b>w&&(b=w)):(w+=s.ignoreMin?0:e._o.minColumnWidth,p||(w+=Math.ceil((parseFloat(h.borderRightWidth)||0)/2),w+=kl(u)),b<w&&(b=w)),l.resizer.style.left=b+"px"}function Ul(e,t){var r,i,o;const l=e._o,s=e._p;if(!s.resizer)return;s.eventsSink.remove(document,".colresize");const a=s.columns.get(s.resizer.columnName);if(!a)return s.resizer.remove(),void(s.resizer=null);const u=Al(e),c=a.element,d=c.firstChild,h=s.resizer.parentNode,f=getComputedStyle(h),m=getComputedStyle(c),v=n.getElementOffset(c),p=n.getElementOffset(h);p.left+=parseFloat(f.borderLeftWidth)||0,v.left-=p.left;const g=n.getElementWidth(s.resizer,!0,!0,!0),b="border-box"===m.boxSizing,w=t;let y=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=w.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-p.left,C=v.left,S=0;if(C-=Math.ceil(g/2),u){if(!b){y+=kl(c);const e=getComputedStyle(d||c);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=a.arrowProposedWidth||0}C+=n.getElementWidth(c,!0,!0,!0);const t=C-(a.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),S=C-y}else{if(!b){y-=kl(c);const e=getComputedStyle(d||c);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=a.arrowProposedWidth||0}const t=C+(a.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),S=y-C}s.resizer.remove(),s.resizer=null;let R=S;if(2===a.widthMode){let t=Ol(e),r=0,n=0;for(let e=0;e<s.visibleColumns.length;e++){const i=s.visibleColumns[e];var x;i.name!==a.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&s.table&&(t=s.table.clientWidth),R=S/t,n>0){const e=R/((1-R)/r);r+=R,(r<1&&l.relativeWidthGrowsToFillWidth||r>1&&l.relativeWidthShrinksToFillWidth)&&(R=e)}R*=100,R+="%"}e.setColumnWidth(a.name,R)}function ql(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Ml(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 Dl(e,t){var r,i,o;const l=e._o,s=t,a=t,u=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=s.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:{pageX:a.pageX,pageY:a.pageY},c=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!c)return;const d=n.getElementOffset(c);d.width=n.getElementWidth(c,!0,!0,!0),d.height=n.getElementHeight(c,!0,!0,!0),e.emit("headercontextmenu",{columnName:c.columnName,pageX:u.pageX,pageY:u.pageY,bounds:d})}function Vl(e,t){if(_l(t))return;if(Ml(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 $l=Array.prototype.indexOf,Gl=document.createElement.bind(document);function Xl(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Yl(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 Jl(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}Ql(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Kl(e,t){const r=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Tl(e);if(i.tbody.style.minWidth=o+"px",i.headerRow.style.minWidth=o+(i.scrollbarWidth||0)+"px",i.eventsSink.remove(i.table,"scroll"),r.width===Wl.AUTO)n.setElementWidth(i.table,n.getElementWidth(i.tbody,!0,!0,!0)),n.setElementWidth(e.el,n.getElementWidth(i.table,!0,!0,!0));else if(r.width===Wl.SCROLL){if(t){const t=i.table?i.table.scrollTop:0,r=i.table?i.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),i.table.scrollTop=t,i.table.scrollLeft=r,i.header&&(i.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,Zl(e)}(e);i.eventsSink.add(i.table,"scroll",r)}return e}function Ql(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=Al(e),s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky&&!l||"end"===n.sticky&&l?(n.stickyPos={direction:"left",offset:a},e.style.left=a+"px",a+=t,m.length=0,f=[e],d.push(f)):(n.stickyPos={direction:"right",offset:u},e.style.right=u+s+"px",u+=t,h.push([e,...m]),m.length=0)}else{var p;delete n.stickyPos,null===(p=f)||void 0===p||p.push(e),null==m||m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesLeft=d,r.stickiesRight=h,Zl(e)}function Zl(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesLeft,n=t.stickiesRight,i=t.stickiesSetLeft,o=t.stickiesSetRight,l=t.stickiesSetLeft=new Set,s=t.stickiesSetRight=new Set;if(null!=r&&r.length||null==n||!n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],a=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const u=e.getBoundingClientRect();let c=!1;if(s&&a){const e=s.getBoundingClientRect(),r=a.getBoundingClientRect();c=t?u.right-o>e.left&&u.left+o<r.right:u.left+o<r.right&&u.right-o>e.left}e.classList.toggle(t?"is-sticky-left":"is-sticky-right",c),c&&r.add($l.call(i,e))}};a(r,!0,l),a(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,left:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,right:!0});if(i)for(const e of i)l.has(e)||u.push({index:e,left:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,right:!0});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const t of u){var d;null===(d=e[t.index])||void 0===d||d.classList.remove(t.left?"is-sticky-left":"is-sticky-right")}for(const t of a){var h;null===(h=e[t.index])||void 0===h||h.classList.add(t.left?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"left");for(const e of s)t.isStickyColumns.set(e,"right")}function es(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function ts(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,o=i.scopedSelectorAll(t.headerRow,">div.".concat(e,"-header-cell.sorted")),l=Array.prototype.slice.call(o,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of l){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of o)e.classList.remove("sorted","desc")}return e}function rs(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Gl("span");var s;return l.className="sort-arrow",o.element&&(o.element.className+=r?" sorted desc":" sorted",null===(s=o.element.firstChild)||void 0===s||s.insertBefore(l,o.element.firstChild.firstChild)),2!==o.widthMode&&i.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=l.scrollWidth+(parseFloat(getComputedStyle(l).marginRight)||0)+(parseFloat(getComputedStyle(l).marginLeft)||0)),!0}function ns(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>jl(e,t)),t.addEventListener("mousemove",t=>ql(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Dl(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[wl]=t.changedTouches[0],jl(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{_l(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(Hl(e),Dl(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),_l(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[wl]=i,Vl(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[wl]=i,ql(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);var i;o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>Vl(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;null!=i&&i.contains(n.firstChild)||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t){var r;t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function is(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function os(e,t){let r=is(t.width,t.ignoreMin?0:e.minColumnWidth),n={name:t.name,label:void 0===t.label?t.name:t.label,width:r.width,widthMode:r.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,dataPath:[],comparePath:[],order:0};const i=void 0===t.dataPath?[n.name]:t.dataPath;n.dataPath="string"==typeof i?i.split("."):i;const o=void 0===t.comparePath?n.dataPath:t.comparePath;return n.comparePath="string"==typeof o?o.split("."):o,n}function ls(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 ss(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||xl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function as(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[fl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const us=Array.prototype.indexOf,cs=document.createElement.bind(document);function ds(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[bl];let o;try{o=zl.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&zl.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[gl],delete n[bl],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const hs=Object.prototype.hasOwnProperty;class fs{constructor(e){this.VERSION=fs.VERSION;const t=this._o={},r=this._p={eventsSink:new o,mitt:{all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var i;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Wl.NONE:e.width,t.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,t.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),t.height=e.height,this.setColumns(e.columns||[],!1);let l=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,n=t.length;e<n;e++){var s;let n=t[e];"string"==typeof n&&(n={column:n,descending:!1});let i=r.columns.get(n.column);i&&l.push({column:n.column,comparePath:i.comparePath||i.dataPath,descending:null!==(s=n.descending)&&void 0!==s&&s})}}r.rows=new Cl({sortColumn:l}),r.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,i=t.relatedTarget;i===r||r.contains(i)||r[gl]&&(i===r[gl]||r[gl].contains(i))||function(e,t){var r,i;const o=e._o,l=e._p,s=t.firstElementChild;if(!s)return;if(!(s.scrollWidth-s.clientWidth>1||s.scrollHeight-s.clientHeight>1))return;ds(e),l.abortCellPreview=!1;const a=t.parentElement;if(!a)return;const u=cs("div");u.innerHTML=t.innerHTML,u.className=o.cellPreviewClassName;const c=t.classList.contains("".concat(o.tableClassName,"-header-cell"));c&&(u.classList.add("header"),t.classList.contains("sortable")&&u.classList.add("sortable"),u.draggable=!0,ns(e,u));const d=getComputedStyle(t),h=getComputedStyle(s),f="right"===d.float,m=f?"right":"left",v=parseFloat(d.paddingLeft)||0,p=parseFloat(d.paddingRight)||0,g=parseFloat(d.paddingTop)||0,b=parseFloat(d.paddingBottom)||0;let w=s.scrollWidth+(t.clientWidth-s.offsetWidth);const y="border-box"===d.boxSizing;if(y?u.style.boxSizing="border-box":(w-=v+p,u.style.marginTop=(parseFloat(d.borderTopWidth)||0)+"px"),!l.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",l.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",l.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const C={"box-sizing":y?"border-box":"content-box",width:w,"min-height":Math.max(n.getElementHeight(t),/%/.test(d.minHeight)?0:parseFloat(d.minHeight)||0)+"px","padding-left":v,"padding-right":p,"padding-top":g,"padding-bottom":b,overflow:"hidden",position:"absolute","z-index":"-1",[m]:"0",top:"0",cursor:d.cursor};let S=d.backgroundColor;S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S=getComputedStyle(a).backgroundColor),S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S="#fff"),C["background-color"]=S,n.setCssProps(u,C),u.firstChild&&n.setCssProps(u.firstChild,{direction:h.direction,"white-space":h.whiteSpace,"min-height":h.minHeight,"line-height":h.lineHeight,font:h.font}),e.el.appendChild(u),c&&Nl(u),u.rowVIndex=a.vIndex;const R=u.rowIndex=a.index;u.columnName=null===(r=l.visibleColumns[us.call(a.childNodes,t)])||void 0===r?void 0:r.name;try{const e=zl.saveSelection(t);e&&zl.restoreSelection(u,e)}catch(e){}if(e.emit("cellpreview",{el:u.firstElementChild,name:u.columnName,rowIndex:null!=R?R:null,rowData:null==R?null:l.rows[R],cell:t,cellEl:s}),l.abortCellPreview)return void u.remove();null!=R&&u.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:a.vIndex,rowIndex:R,rowEl:a,rowData:l.rows[R]})});const x=e.el,W=x===window?document:x,L=getComputedStyle(x),P=n.getElementOffset(t),_=n.getElementOffset(x);if(f){const e=window.innerWidth;P.right=e-(P.left+n.getElementWidth(t,!0,!0,!0)),_.right=e-(_.left+n.getElementWidth(x,!0,!0,!0))}P.left-=parseFloat(L.borderLeftWidth)||0,"right"===m&&void 0!==P.right&&void 0!==_.right&&(P.right-=parseFloat(L.borderRightWidth)||0),P.top-=parseFloat(L.borderTopWidth)||0,"left"===m?P.left+=parseFloat(d.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(d.borderRightWidth)||0),P.top+=parseFloat(d.borderTopWidth)||parseFloat(d.borderBottomWidth)||0,P.left-=_.left,"right"===m&&void 0!==P.right&&void 0!==_.right&&(P.right-=_.right),P.top-=_.top;const k=n.getElementWidth(x,!1,!1,!1)-n.getElementWidth(u,!0,!0,!0),N="left"===m?P.left:null!==(i=P.right)&&void 0!==i?i:0,E=N<0?0:N>k?k:N;"left"===m?P.left=E:P.right=E;const O=n.getElementHeight(t,!0,!0,!0),T=("scrollTop"in W?W.scrollTop:0)+n.getElementHeight(x,!0)-O;P.top>T&&(P.top=Math.max(0,T));const A={top:P.top+"px","z-index":9999};A[m]=("left"===m?P.left:P.right)+"px",n.setCssProps(u,A),u[bl]=t,l.cellPreviewCell=u,t[gl]=u,l._bindCellHoverOut(t),l._bindCellHoverOut(u),u.addEventListener("wheel",()=>{ds(e)})}(e,r)},i=t=>{let r=t.currentTarget[bl]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[gl]&&(n===r[gl]||r[gl].contains(n))||function(e){ds(e)}(e)};t._bindCellHoverIn=e=>{e[ml]||e.addEventListener("mouseover",e[ml]=r)},t._unbindCellHoverIn=e=>{e[ml]&&(e.removeEventListener("mouseover",e[ml]),e[ml]=null)},t._bindCellHoverOut=e=>{e[vl]||e.addEventListener("mouseout",e[vl]=i)},t._unbindCellHoverOut=e=>{e[vl]&&(e.removeEventListener("mouseout",e[vl]),e[vl]=null)}}(this)}on(e,t){return this._p.mitt.on(e,t),this}once(e,t){const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear(),this}emit(e,t){return this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this.__removed||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,Xl(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)hs.call(this,e)&&(this[e]=null);return this.__removed=!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.__removed&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var i;t.tableSkeletonNeedsRendering=!1,e.width===Wl.AUTO&&ts(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,s=t.table&&t.table.parentNode?r.getScrollHorz(t.table):NaN;!function(e){var t;const r=e._p,i=e._o;null===(t=r.virtualListHelper)||void 0===t||t.destroy(),r.virtualListHelper=null,r.table&&i.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Xl(e),r.currentTouchId=null,r.header&&r.header.remove();const o=i.tableClassName,l=Gl("div"),s=Gl("div");l.className="".concat(o,"-header"),s.className="".concat(o,"-header-row"),r.header=l,r.headerRow=s,l.appendChild(s),e.el.prepend(l),Pl(e.el),i.width===Wl.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!i.height&&i.virtualTable&&(i.height=n.getElementHeight(e.el,!0))}(this),function(e){const t=e._p,r=e._o,i=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Gl("div"),t=e.appendChild(Gl("div")),r=t.appendChild(Gl("div"));return e.className="".concat(i,"-row"),t.className="".concat(i,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},o=Gl("div");o.className=e.el.className,n.setCssProps(o,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const l=Gl("div");l.className=i,o.appendChild(l);const s=Gl("div");s.className="".concat(i,"-body"),s.style.width="99999px",l.appendChild(s),document.body.appendChild(o);const a=r(),u=r(),c=r();s.appendChild(a),s.appendChild(u),s.appendChild(c),t.virtualRowHeight=n.getElementHeight(u,!0,!0,!0),o.remove()}if(!t.table){var o;const s=document.createDocumentFragment(),a=Gl("div");a.className=i,r.virtualTable&&(a.className+=" virtual");const u=getComputedStyle(a);let c=(null!==(o=r.height)&&void 0!==o?o:0)-n.getElementHeight(t.header,!0,!0,!0);"border-box"!==u.boxSizing&&(c-=parseFloat(u.borderTopWidth)||0,c-=parseFloat(u.borderBottomWidth)||0,c-=parseFloat(u.paddingTop)||0,c-=parseFloat(u.paddingBottom)||0),n.setCssProps(a,{height:r.height?c+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Wl.SCROLL?"auto":"hidden"}),s.appendChild(a);const d=Gl("div");d.className=r.tableClassName+"-body",d.style.minHeight="1px",t.table=a,t.tbody=d,Pl(d),Pl(a),a.appendChild(d),e.el.appendChild(s),function(e){var t;const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",s=i+"-row-alt",a=i+"-cell",u=i+"-sticky";let c=r.visibleColumns,d=c.length;r.notifyRendererOfColumnsConfig=()=>{c=r.visibleColumns,d=c.length;for(let e=0;e<d;e++){const t=c[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new l({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Gl("div"),onItemRender:(t,i)=>{const l=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+s);const v=l[i],p=h?v[yl]:i;t.vIndex=i,t.index=p;for(let e=0;e<d;e++){var g;const i=c[e],o=Gl("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=a,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+u,o.style.position="sticky",o.style[i.stickyPos.direction]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"left"===t?o.classList.add("is-sticky-left"):"right"===t&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Gl("div")).innerHTML=as(n,v,i),t.appendChild(o)}t.addEventListener("click",t[pl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})},onItemUnrender:t=>{t[pl]&&t.removeEventListener("click",t[pl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&Jl(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Gl("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Gl("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,ns(e,c),Nl(c)}}Ql(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(i=t.filteredRows)&&void 0!==i?i:t.rows).length),Yl(this),Jl(this,!0),Kl(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)rs(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(o)||(t.table.scrollTop=o),isNaN(s)||(r.setScrollHorz(t.table,s),r.setScrollHorz(t.header,s)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new Rl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=os(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(),ls(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=os(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(),ls(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(),ls(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(e,t){let r=this._p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(let e=0;e<r.element.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,o=this._p;let l,s,a=o.columns,u=r?o.visibleColumns:a.getColumns();if("string"==typeof e?l=a.get(e):"number"==typeof e&&(l=u[e]),"string"==typeof t?s=a.get(t):"number"==typeof t&&(s=u[t]),l&&s&&e!==t){let e=l.order,t=s.order,r=a.moveColumn(l,s).getVisibleColumns();if(o.visibleColumns.length!==r.length||o.visibleColumns.some((e,t)=>e!==r[t]))if(o.visibleColumns=r,ls(this),n.virtualTable)this.clearAndRender();else{var c,d;const r=i.scopedSelectorAll(o.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let l=e<t?t+1:t,s=e;r[0].parentNode.insertBefore(r[s],r[l]);let a=o.visibleColumns[e],u=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=o.visibleColumns[t],f=(null!==(d=h.actualWidthConsideringScrollbarWidth||h.actualWidth)&&void 0!==d?d:0)+"px",m=o.tbody.childNodes;for(let r=0,n=m.length;r<n;r++){let n=m[r];1===n.nodeType&&(n.insertBefore(n.childNodes[s],n.childNodes[l]),n.childNodes[t].firstChild.style.width=f,n.childNodes[e].firstChild.style.width=u)}}this.emit("movecolumn",{name:l.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),ls(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=is(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=Fl(r);r.width=n.width,r.widthMode=n.mode;let t=Fl(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?Fl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:Fl(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){const e=this._p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t}setSortableColumns(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=i.scopedSelectorAll(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn;if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,comparePath:o.comparePath||o.dataPath,descending:!!t})}else l.length=0;ts(this);for(let e=0;e<l.length;e++)rs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),i.virtualListHelper&&i.virtualListHelper.invalidate().render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?cl(e):e;t[fl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?cl(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||xl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return as(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?as(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():ss(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Yl(this),Jl(this),this.render(),Kl(this,!1)):i.tbody&&(this.render(),Jl(this),Kl(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?(ss(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Yl(this),Jl(this),this.render(),Kl(this,!1)):(this.render(),Jl(this),Kl(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():ss(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Ol(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],c=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){let i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=El(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(a=n.notifyRendererOfColumnsConfig)||void 0===a||a.call(n),t){let e=Tl(this);s<e&&Kl(this,!1);for(let e=0;e<u.length;e++)es(this,u[e]);s>e&&Kl(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let i=n.getElementHeight(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return i!==e.height&&(e.height=i,t.tbody&&(t.tbody.style.height=Math.max(e.height-n.getElementHeight(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return ds(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Hl(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}}fs.VERSION="@@VERSION",fs.Width=Wl,module.exports=fs;
6
6
 
7
7
  //# sourceMappingURL=lib.cjs.min.js.map