vis-data
Version:
Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
35 lines • 105 kB
JavaScript
/**
* vis-data
* http://visjs.org/
*
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
*
* @version 8.0.6
* @date 2026-10-25T07:21:35.919Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
var t,r,e,n,i,o,u,a,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(){return r?t:(r=1,t=function(t){try{return!!t()}catch(t){return!0}})}function l(){return n?e:(n=1,e=!f()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function h(){if(o)return i;o=1;var t=l(),r=Function.prototype,e=r.call,n=t&&r.bind.bind(e,e);return i=t?n:function(t){return function(){return e.apply(t,arguments)}},i}function p(){return a?u:(a=1,u=h()({}.isPrototypeOf))}var v,d,y,g,m,b,_,w,S,T,O={};function E(){if(d)return v;d=1;var t=function(t){return t&&t.Math===Math&&t};return v=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof s&&s)||t("object"==typeof v&&v)||function(){return this}()||Function("return this")()}function A(){if(g)return y;g=1;var t=l(),r=Function.prototype,e=r.apply,n=r.call;return y="object"==typeof Reflect&&Reflect.apply||(t?n.bind(e):function(){return n.apply(e,arguments)}),y}function I(){if(b)return m;b=1;var t=h(),r=t({}.toString),e=t("".slice);return m=function(t){return e(r(t),8,-1)}}function j(){if(w)return _;w=1;var t=I(),r=h();return _=function(e){if("Function"===t(e))return r(e)}}function x(){if(T)return S;T=1;var t="object"==typeof document&&document.all;return S=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}var P,D,k,C,N={};function M(){return D?P:(D=1,P=!f()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function R(){if(C)return k;C=1;var t=l(),r=Function.prototype.call;return k=t?r.bind(r):function(){return r.apply(r,arguments)},k}var F,L,z,q,U,W,Y,B,X,J,G,H,V,K,Q,$,Z,tt,rt,et,nt,it,ot,ut,at,st,ct,ft,lt,ht,pt,vt,dt,yt,gt,mt={};function bt(){if(F)return mt;F=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);return mt.f=e?function(t){var e=r(this,t);return!!e&&e.enumerable}:t,mt}function _t(){return z?L:(z=1,L=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function wt(){if(U)return q;U=1;var t=h(),r=f(),e=I(),n=Object,i=t("".split);return q=r(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===e(t)?i(t,""):n(t)}:n}function St(){return Y?W:(Y=1,W=function(t){return null==t})}function Tt(){if(X)return B;X=1;var t=St(),r=TypeError;return B=function(e){if(t(e))throw new r("Can't call method on "+e);return e}}function Ot(){if(G)return J;G=1;var t=wt(),r=Tt();return J=function(e){return t(r(e))}}function Et(){if(V)return H;V=1;var t=x();return H=function(r){return"object"==typeof r?null!==r:t(r)}}function At(){return Q?K:(Q=1,K={})}function It(){if(Z)return $;Z=1;var t=At(),r=E(),e=x(),n=function(t){return e(t)?t:void 0};return $=function(e,i){return arguments.length<2?n(t[e])||n(r[e]):t[e]&&t[e][i]||r[e]&&r[e][i]},$}function jt(){if(rt)return tt;rt=1;var t=E().navigator,r=t&&t.userAgent;return tt=r?String(r):""}function xt(){if(nt)return et;nt=1;var t,r,e=E(),n=jt(),i=e.process,o=e.Deno,u=i&&i.versions||o&&o.version,a=u&&u.v8;return a&&(r=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(r=+t[1]),et=r}function Pt(){if(ot)return it;ot=1;var t=xt(),r=f(),e=E().String;return it=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!e(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41}),it}function Dt(){return at?ut:(at=1,ut=Pt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function kt(){if(ct)return st;ct=1;var t=It(),r=x(),e=p(),n=Object;return st=Dt()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return r(o)&&e(o.prototype,n(i))}}function Ct(){if(lt)return ft;lt=1;var t=String;return ft=function(r){try{return t(r)}catch(t){return"Object"}}}function Nt(){if(pt)return ht;pt=1;var t=x(),r=Ct(),e=TypeError;return ht=function(n){if(t(n))return n;throw new e(r(n)+" is not a function")}}function Mt(){if(dt)return vt;dt=1;var t=Nt(),r=St();return vt=function(e,n){var i=e[n];return r(i)?void 0:t(i)}}function Rt(){if(gt)return yt;gt=1;var t=R(),r=x(),e=Et(),n=TypeError;return yt=function(i,o){var u,a;if("string"===o&&r(u=i.toString)&&!e(a=t(u,i)))return a;if(r(u=i.valueOf)&&!e(a=t(u,i)))return a;if("string"!==o&&r(u=i.toString)&&!e(a=t(u,i)))return a;throw new n("Can't convert object to primitive value")}}var Ft,Lt,zt,qt,Ut,Wt,Yt,Bt,Xt,Jt,Gt,Ht,Vt,Kt,Qt,$t,Zt,tr,rr,er,nr,ir,or,ur,ar,sr,cr,fr,lr={exports:{}};function hr(){return Lt?Ft:(Lt=1,Ft=!0)}function pr(){if(qt)return zt;qt=1;var t=E(),r=Object.defineProperty;return zt=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}function vr(){if(Ut)return lr.exports;Ut=1;var t=hr(),r=E(),e=pr(),n="__core-js_shared__",i=lr.exports=r[n]||e(n,{});return(i.versions||(i.versions=[])).push({version:"3.50.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),lr.exports}function dr(){if(Yt)return Wt;Yt=1;var t=vr(),r=Object.create||Object;return Wt=function(e,n){return t[e]||(t[e]=n||r(null))}}function yr(){if(Xt)return Bt;Xt=1;var t=Tt(),r=Object;return Bt=function(e){return r(t(e))}}function gr(){if(Gt)return Jt;Gt=1;var t=h(),r=yr(),e=t({}.hasOwnProperty);return Jt=Object.hasOwn||function(t,n){return e(r(t),n)}}function mr(){if(Vt)return Ht;Vt=1;var t=h(),r=0,e=Math.random(),n=t(1.1.toString);return Ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+e,36)}}function br(){if(Qt)return Kt;Qt=1;var t=E(),r=dr(),e=gr(),n=mr(),i=Pt(),o=Dt(),u=t.Symbol,a=r("wks"),s=o?u.for||u:u&&u.withoutSetter||n;return Kt=function(t){return e(a,t)||(a[t]=i&&e(u,t)?u[t]:s("Symbol."+t)),a[t]}}function _r(){if(Zt)return $t;Zt=1;var t=R(),r=Et(),e=kt(),n=Mt(),i=Rt(),o=TypeError,u=br()("toPrimitive");return $t=function(a,s){if(!r(a)||e(a))return a;var c,f=n(a,u);if(f){if(void 0===s&&(s="default"),c=t(f,a,s),!r(c)||e(c))return c;throw new o("Can't convert object to primitive value")}return void 0===s&&(s="number"),i(a,s)}}function wr(){if(rr)return tr;rr=1;var t=_r(),r=kt();return tr=function(e){var n=t(e,"string");return r(n)?n:n+""}}function Sr(){if(nr)return er;nr=1;var t=E(),r=Et(),e=t.document,n=r(e)&&r(e.createElement);return er=function(t){return n?e.createElement(t):{}}}function Tr(){if(or)return ir;or=1;var t=M(),r=f(),e=Sr();return ir=!t&&!r(function(){return 7!==Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a})}function Or(){if(ur)return N;ur=1;var t=M(),r=R(),e=bt(),n=_t(),i=Ot(),o=wr(),u=gr(),a=Tr(),s=Object.getOwnPropertyDescriptor;return N.f=t?s:function(t,c){if(t=i(t),c=o(c),a)try{return s(t,c)}catch(t){}if(u(t,c))return n(!r(e.f,t,c),t[c])},N}function Er(){if(sr)return ar;sr=1;var t=f(),r=x(),e=/#|\.prototype\./,n=function(e,n){var s=o[i(e)];return s===a||s!==u&&(r(n)?t(n):!!n)},i=n.normalize=function(t){return String(t).replace(e,".").toLowerCase()},o=n.data={},u=n.NATIVE="N",a=n.POLYFILL="P";return ar=n}function Ar(){if(fr)return cr;fr=1;var t=j(),r=Nt(),e=l(),n=t(t.bind);return cr=function(t,i){return r(t),void 0===i?t:e?n(t,i):function(){return t.apply(i,arguments)}},cr}var Ir,jr,xr,Pr,Dr,kr,Cr,Nr,Mr,Rr,Fr,Lr,zr,qr,Ur,Wr,Yr,Br,Xr,Jr,Gr,Hr,Vr,Kr,Qr={};function $r(){return jr?Ir:(jr=1,Ir=M()&&f()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Zr(){if(Pr)return xr;Pr=1;var t=Et(),r=String,e=TypeError;return xr=function(n){if(t(n))return n;throw new e(r(n)+" is not an object")}}function te(){if(Dr)return Qr;Dr=1;var t=M(),r=Tr(),e=$r(),n=Zr(),i=wr(),o=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",f="writable";return Qr.f=t?e?function(t,r,e){if(n(t),r=i(r),n(e),"function"==typeof t&&"prototype"===r&&"value"in e&&f in e&&!e[f]){var o=a(t,r);o&&o[f]&&(t[r]=e.value,e={configurable:c in e?e[c]:o[c],enumerable:s in e?e[s]:o[s],writable:!1})}return u(t,r,e)}:u:function(t,e,a){if(n(t),e=i(e),n(a),r)try{return u(t,e,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[e]=a.value),t},Qr}function re(){if(Cr)return kr;Cr=1;var t=M(),r=te(),e=_t();return kr=t?function(t,n,i){return r.f(t,n,e(1,i))}:function(t,r,e){return t[r]=e,t}}function ee(){if(Mr)return Nr;Mr=1;var t=E(),r=A(),e=j(),n=x(),i=Or().f,o=Er(),u=At(),a=Ar(),s=re(),c=gr(),f=function(t){var e=function(n,i,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,o)}return r(t,this,arguments)};return e.prototype=t.prototype,e};return Nr=function(r,l){var h,p,v,d,y,g,m,b,_,w=r.target,S=r.global,T=r.stat,O=r.proto,E=S?t:T?t[w]:t[w]&&t[w].prototype,A=S?u:u[w]||s(u,w,{})[w],I=A.prototype;for(d in l)p=!(h=o(S?d:w+(T?".":"#")+d,r.forced))&&E&&c(E,d),g=A[d],p&&(m=r.dontCallGetSet?(_=i(E,d))&&_.value:E[d]),y=p&&m?m:l[d],(h||O||typeof g!=typeof y)&&(b=r.bind&&p?a(y,t):r.wrap&&p?f(y):O&&n(y)?e(y):y,(r.sham||y&&y.sham||g&&g.sham)&&s(b,"sham",!0),s(A,d,b),O&&(c(u,v=w+"Prototype")||s(u,v,{}),s(u[v],d,y),r.real&&I&&(h||!I[d])&&s(I,d,y)))}}function ne(){return Fr?Rr:(Fr=1,Rr=h()([].slice))}function ie(){if(zr)return Lr;zr=1;var t=h(),r=Nt(),e=Et(),n=gr(),i=ne(),o=l(),u=Function,a=t([].concat),s=t([].join),c={};return Lr=o?u.bind:function(t){var o=r(this),f=o.prototype,l=i(arguments,1),h=function(){var r=a(l,i(arguments));return this instanceof h?function(t,r,e){if(!n(c,r)){for(var i=[],o=0;o<r;o++)i[o]="a["+o+"]";c[r]=u("C,a","return new C("+s(i,",")+")")}return c[r](t,e)}(o,r.length,r):o.apply(t,r)};return e(f)&&(h.prototype=f),h},Lr}function oe(){if(Wr)return Ur;Wr=1;var t=E(),r=At();return Ur=function(e,n){var i=r[e+"Prototype"],o=i&&i[n];if(o)return o;var u=t[e],a=u&&u.prototype;return a&&a[n]}}function ue(){return Br?Yr:(Br=1,function(){if(qr)return O;qr=1;var t=ee(),r=ie();t({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})}(),Yr=oe()("Function","bind"))}function ae(){if(Jr)return Xr;Jr=1;var t=p(),r=ue(),e=Function.prototype;return Xr=function(n){var i=n.bind;return n===e||t(e,n)&&i===e.bind?r:i}}function se(){return Hr?Gr:(Hr=1,Gr=ae())}var ce,fe,le,he,pe,ve,de,ye,ge,me,be,_e,we,Se,Te,Oe,Ee,Ae,Ie,je,xe,Pe,De,ke,Ce,Ne=c(Kr?Vr:(Kr=1,Vr=se())),Me={};function Re(){if(fe)return ce;fe=1;var t=Math.ceil,r=Math.floor;return ce=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}}function Fe(){if(he)return le;he=1;var t=Re();return le=function(r){var e=+r;return e!=e||0===e?0:t(e)}}function Le(){if(ve)return pe;ve=1;var t=Fe(),r=Math.min;return pe=function(e){var n=t(e);return n>0?r(n,9007199254740991):0}}function ze(){if(ye)return de;ye=1;var t=Le();return de=function(r){return t(r.length)}}function qe(){if(me)return ge;me=1;var t=Nt(),r=yr(),e=wt(),n=ze(),i=TypeError,o="Reduce of empty array with no initial value",u=function(u){return function(a,s,c,f){var l=r(a),h=e(l),p=n(l);if(t(s),0===p&&c<2)throw new i(o);var v=u?p-1:0,d=u?-1:1;if(c<2)for(;;){if(v in h){f=h[v],v+=d;break}if(v+=d,u?v<0:p<=v)throw new i(o)}for(;u?v>=0:p>v;v+=d)v in h&&(f=s(f,h[v],v,l));return f}};return ge={left:u(!1),right:u(!0)}}function Ue(){if(_e)return be;_e=1;var t=f();return be=function(r,e){var n=[][r];return!!n&&t(function(){n.call(null,e||function(){return 1},1)})}}function We(){if(Se)return we;Se=1;var t=E(),r=jt(),e=I(),n=function(t){return r.slice(0,t.length)===t};return we=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===e(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Ye(){return Oe?Te:(Oe=1,Te="NODE"===We())}function Be(){return Ie?Ae:(Ie=1,function(){if(Ee)return Me;Ee=1;var t=ee(),r=qe().left,e=Ue(),n=xt();t({target:"Array",proto:!0,forced:!Ye()&&n>79&&n<83||!e("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})}(),Ae=oe()("Array","reduce"))}function Xe(){if(xe)return je;xe=1;var t=p(),r=Be(),e=Array.prototype;return je=function(n){var i=n.reduce;return n===e||t(e,n)&&i===e.reduce?r:i}}function Je(){return De?Pe:(De=1,Pe=Xe())}var Ge,He,Ve,Ke,Qe,$e,Ze,tn,rn,en,nn,on,un,an,sn,cn,fn,ln,hn,pn,vn,dn,yn,gn,mn,bn,_n,wn,Sn,Tn=c(Ce?ke:(Ce=1,ke=Je())),On={};function En(){if(He)return Ge;He=1;var t=I();return Ge=Array.isArray||function(r){return"Array"===t(r)}}function An(){if(Ke)return Ve;Ke=1;var t={};return t[br()("toStringTag")]="z",Ve="[object z]"===String(t)}function In(){if($e)return Qe;$e=1;var t=An(),r=x(),e=I(),n=br()("toStringTag"),i=Object,o="Arguments"===e(function(){return arguments}());return Qe=t?e:function(t){var u,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,r){try{return t[r]}catch(t){}}(u=i(t),n))?a:o?e(u):"Object"===(s=e(u))&&r(u.callee)?"Arguments":s}}function jn(){if(tn)return Ze;tn=1;var t=h(),r=x(),e=vr(),n=t(Function.toString);return r(e.inspectSource)||(e.inspectSource=function(t){return n(t)}),Ze=e.inspectSource}function xn(){if(en)return rn;en=1;var t=h(),r=f(),e=x(),n=In(),i=It(),o=jn(),u=function(){},a=i("Reflect","construct"),s=/^\s*(?:class|function)\b/,c=t(s.exec),l=!s.test(u),p=function(t){if(!e(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},v=function(t){if(!e(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(s,o(t))}catch(t){return!0}};return v.sham=!0,rn=!a||r(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?v:p}function Pn(){if(on)return nn;on=1;var t=En(),r=xn(),e=Et(),n=br()("species"),i=Array;return nn=function(o){var u;return t(o)&&(u=o.constructor,(r(u)&&(u===i||t(u.prototype))||e(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?i:u}}function Dn(){if(an)return un;an=1;var t=Pn();return un=function(r,e){return new(t(r))(0===e?0:e)}}function kn(){if(cn)return sn;cn=1;var t=M(),r=te(),e=_t();return sn=function(n,i,o){t?r.f(n,i,e(0,o)):n[i]=o}}function Cn(){if(ln)return fn;ln=1;var t=Ar(),r=wt(),e=yr(),n=ze(),i=Dn(),o=kn(),u=function(u){var a=1===u,s=2===u,c=3===u,f=4===u,l=6===u,h=7===u,p=5===u||l;return function(v,d,y){for(var g,m,b=e(v),_=r(b),w=n(_),S=t(d,y),T=0,O=0,E=a?i(v,w):s||h?i(v,0):void 0;w>T;T++)if((p||T in _)&&(m=S(g=_[T],T,b),u))if(a)o(E,T,m);else if(m)switch(u){case 3:return!0;case 5:return g;case 6:return T;case 2:o(E,O++,g)}else switch(u){case 4:return!1;case 7:o(E,O++,g)}return l?-1:c||f?f:E}};return fn={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function Nn(){if(pn)return hn;pn=1;var t=f(),r=br(),e=xt(),n=r("species");return hn=function(r){return e>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}function Mn(){return yn?dn:(yn=1,function(){if(vn)return On;vn=1;var t=ee(),r=Cn().filter;t({target:"Array",proto:!0,forced:!Nn()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}(),dn=oe()("Array","filter"))}function Rn(){if(mn)return gn;mn=1;var t=p(),r=Mn(),e=Array.prototype;return gn=function(n){var i=n.filter;return n===e||t(e,n)&&i===e.filter?r:i}}function Fn(){return _n?bn:(_n=1,bn=Rn())}var Ln,zn,qn,Un,Wn,Yn,Bn,Xn,Jn,Gn=c(Sn?wn:(Sn=1,wn=Fn())),Hn={};function Vn(){return qn?zn:(qn=1,function(){if(Ln)return Hn;Ln=1;var t=ee(),r=Cn().map;t({target:"Array",proto:!0,forced:!Nn()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}(),zn=oe()("Array","map"))}function Kn(){if(Wn)return Un;Wn=1;var t=p(),r=Vn(),e=Array.prototype;return Un=function(n){var i=n.map;return n===e||t(e,n)&&i===e.map?r:i}}function Qn(){return Bn?Yn:(Bn=1,Yn=Kn())}var $n,Zn,ti,ri,ei,ni=c(Jn?Xn:(Jn=1,Xn=Qn())),ii={};function oi(){if(Zn)return $n;Zn=1;var t=TypeError;return $n=function(r){if(r>9007199254740991)throw new t("Maximum allowed index exceeded");return r}}function ui(){if(ri)return ti;ri=1;var t=En(),r=ze(),e=oi(),n=Ar(),i=kn(),o=function(u,a,s,c,f,l,h,p){for(var v,d,y=f,g=0,m=!!h&&n(h,p);g<c;)g in s&&(v=m?m(s[g],g,a):s[g],l>0&&t(v)?(d=r(v),y=o(u,a,v,d,y,l-1)-1):(e(y+1),i(u,y,v)),y++),g++;return y};return ti=o}var ai,si,ci,fi,li,hi,pi,vi,di,yi,gi;function mi(){return si?ai:(si=1,ai=function(){})}function bi(){return li?fi:(li=1,function(){if(ei)return ii;ei=1;var t=ee(),r=ui(),e=Nt(),n=yr(),i=ze(),o=Dn();t({target:"Array",proto:!0},{flatMap:function(t){var u,a=n(this),s=i(a);return e(t),u=o(a,0),r(u,a,a,s,0,1,t,arguments.length>1?arguments[1]:void 0),u}})}(),ci||(ci=1,mi()("flatMap")),fi=oe()("Array","flatMap"))}function _i(){if(pi)return hi;pi=1;var t=p(),r=bi(),e=Array.prototype;return hi=function(n){var i=n.flatMap;return n===e||t(e,n)&&i===e.flatMap?r:i}}function wi(){return di?vi:(di=1,vi=_i())}var Si,Ti,Oi,Ei=c(gi?yi:(gi=1,yi=wi()));function Ai(t){return new ji(t)}class Ii{_listeners={add:Ne(Si=this._add).call(Si,this),remove:Ne(Ti=this._remove).call(Ti,this),update:Ne(Oi=this._update).call(Oi,this)};constructor(t,r,e){this._source=t,this._transformers=r,this._target=e}all(){return this._target.update(this._transformItems(this._source.get())),this}start(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}stop(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}_transformItems(t){var r;return Tn(r=this._transformers).call(r,(t,r)=>r(t),t)}_add(t,r){null!=r&&this._target.add(this._transformItems(this._source.get(r.items)))}_update(t,r){null!=r&&this._target.update(this._transformItems(this._source.get(r.items)))}_remove(t,r){null!=r&&this._target.remove(this._transformItems(r.oldData))}}class ji{_transformers=[];constructor(t){this._source=t}filter(t){return this._transformers.push(r=>Gn(r).call(r,t)),this}map(t){return this._transformers.push(r=>ni(r).call(r,t)),this}flatMap(t){return this._transformers.push(r=>Ei(r).call(r,t)),this}to(t){return new Ii(this._source,this._transformers,t)}}var xi,Pi,Di,ki={};function Ci(){if(Pi)return xi;Pi=1;var t=M(),r=En(),e=TypeError,n=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return xi=i?function(t,i){if(r(t)&&!n(t,"length").writable)throw new e("Cannot set read only .length");return t.length=i}:function(t,r){return t.length=r}}function Ni(){if(Di)return ki;Di=1;var t=ee(),r=f(),e=En(),n=Et(),i=yr(),o=ze(),u=oi(),a=kn(),s=Ci(),c=Dn(),l=Nn(),h=br(),p=xt(),v=h("isConcatSpreadable"),d=p>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),y=function(t){if(!n(t))return!1;var r=t[v];return void 0!==r?!!r:e(t)};return t({target:"Array",proto:!0,arity:1,forced:!d||!l("concat")},{concat:function(t){var r,e,n,f,l,h=i(this),p=c(h,0),v=0;for(r=-1,n=arguments.length;r<n;r++)if(y(l=-1===r?h:arguments[r]))for(f=o(l),u(v+f),e=0;e<f;e++,v++)e in l&&a(p,v,l[e]);else u(v+1),a(p,v++,l);return s(p,v),p}}),ki}var Mi,Ri,Fi={},Li={};function zi(){if(Ri)return Mi;Ri=1;var t=In(),r=String;return Mi=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}var qi,Ui,Wi,Yi,Bi,Xi,Ji,Gi,Hi,Vi,Ki,Qi,$i,Zi,to,ro,eo,no,io,oo={};function uo(){if(Ui)return qi;Ui=1;var t=Fe(),r=Math.max,e=Math.min;return qi=function(n,i){var o=t(n);return o<0?r(o+i,0):e(o,i)}}function ao(){if(Yi)return Wi;Yi=1;var t=Ot(),r=uo(),e=ze(),n=function(n){return function(i,o,u){var a=t(i),s=e(a);if(0===s)return!n&&-1;var c,f=r(u,s);if(n&&o!=o){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((n||f in a)&&a[f]===o)return n||f||0;return!n&&-1}};return Wi={includes:n(!0),indexOf:n(!1)}}function so(){return Xi?Bi:(Xi=1,Bi={})}function co(){if(Gi)return Ji;Gi=1;var t=h(),r=gr(),e=Ot(),n=ao().indexOf,i=so(),o=t([].push);return Ji=function(t,u){var a,s=e(t),c=0,f=[];for(a in s)!r(i,a)&&r(s,a)&&o(f,a);for(;u.length>c;)r(s,a=u[c++])&&(~n(f,a)||o(f,a));return f}}function fo(){return Vi?Hi:(Vi=1,Hi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function lo(){if(Qi)return Ki;Qi=1;var t=co(),r=fo();return Ki=Object.keys||function(e){return t(e,r)}}function ho(){if($i)return oo;$i=1;var t=M(),r=$r(),e=te(),n=Zr(),i=Ot(),o=lo();return oo.f=t&&!r?Object.defineProperties:function(t,r){n(t);for(var u,a=i(r),s=o(r),c=s.length,f=0;c>f;)e.f(t,u=s[f++],a[u]);return t},oo}function po(){return to?Zi:(to=1,Zi=It()("document","documentElement"))}function vo(){if(eo)return ro;eo=1;var t=dr(),r=mr(),e=t("keys");return ro=function(t){return e[t]||(e[t]=r(t))}}function yo(){if(io)return no;io=1;var t,r=Zr(),e=ho(),n=fo(),i=so(),o=po(),u=Sr(),a="prototype",s="script",c=vo()("IE_PROTO"),f=function(){},l=function(t){return"<"+s+">"+t+"</"+s+">"},h=function(t){t.write(l("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,e,i;p="undefined"!=typeof document?document.domain&&t?h(t):(e=u("iframe"),i="java"+s+":",e.style.display="none",o.appendChild(e),e.src=String(i),(r=e.contentWindow.document).open(),r.write(l("document.F=Object")),r.close(),r.F):h(t);for(var c=n.length;c--;)delete p[a][n[c]];return p()};return i[c]=!0,no=Object.create||function(t,n){var i;return null!==t?(f[a]=r(t),i=new f,f[a]=null,i[c]=t):i=p(),void 0===n?i:e.f(i,n)}}var go,mo={};function bo(){if(go)return mo;go=1;var t=co(),r=fo().concat("length","prototype");return mo.f=Object.getOwnPropertyNames||function(e){return t(e,r)},mo}var _o,wo={};function So(){if(_o)return wo;_o=1;var t=I(),r=Ot(),e=bo().f,n=ne(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return wo.f=function(o){return i&&"Window"===t(o)?function(t){try{return e(t)}catch(t){return n(i)}}(o):e(r(o))},wo}var To,Oo,Eo,Ao,Io,jo={};function xo(){return To||(To=1,jo.f=Object.getOwnPropertySymbols),jo}function Po(){if(Eo)return Oo;Eo=1;var t=re();return Oo=function(r,e,n,i){return i&&i.enumerable?r[e]=n:t(r,e,n),r}}function Do(){if(Io)return Ao;Io=1;var t=te();return Ao=function(r,e,n){return t.f(r,e,n)}}var ko,Co,No,Mo,Ro,Fo,Lo,zo,qo,Uo,Wo,Yo,Bo,Xo,Jo={};function Go(){if(ko)return Jo;ko=1;var t=br();return Jo.f=t,Jo}function Ho(){if(No)return Co;No=1;var t=At(),r=gr(),e=Go(),n=te().f;return Co=function(i){var o=t.Symbol||(t.Symbol={});r(o,i)||n(o,i,{value:e.f(i)})}}function Vo(){if(Ro)return Mo;Ro=1;var t=R(),r=It(),e=br(),n=Po();return Mo=function(){var i=r("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,a=e("toPrimitive");o&&!o[a]&&n(o,a,function(r){return t(u,this)},{arity:1})}}function Ko(){if(Lo)return Fo;Lo=1;var t=An(),r=In();return Fo=t?{}.toString:function(){return"[object "+r(this)+"]"}}function Qo(){if(qo)return zo;qo=1;var t=An(),r=te().f,e=re(),n=gr(),i=Ko(),o=br()("toStringTag");return zo=function(u,a,s,c){var f=s?u:u&&u.prototype;f&&(n(f,o)||r(f,o,{configurable:!0,value:a}),c&&!t&&e(f,"toString",i))}}function $o(){if(Wo)return Uo;Wo=1;var t=E(),r=x(),e=t.WeakMap;return Uo=r(e)&&/native code/.test(String(e))}function Zo(){if(Bo)return Yo;Bo=1;var t,r,e,n=$o(),i=E(),o=Et(),u=re(),a=gr(),s=vr(),c=vo(),f=so(),l="Object already initialized",h=i.TypeError,p=i.WeakMap;if(n||s.state){var v=s.state||(s.state=new p);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,r){if(v.has(t))throw new h(l);return r.facade=t,v.set(t,r),r},r=function(t){return v.get(t)||{}},e=function(t){return v.has(t)}}else{var d=c("state");f[d]=!0,t=function(t,r){if(a(t,d))throw new h(l);return r.facade=t,u(t,d,r),r},r=function(t){return a(t,d)?t[d]:{}},e=function(t){return a(t,d)}}return Yo={set:t,get:r,has:e,enforce:function(n){return e(n)?r(n):t(n,{})},getterFor:function(t){return function(e){var n;if(!o(e)||(n=r(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}}}}var tu,ru,eu,nu={};function iu(){return ru?tu:(ru=1,tu=Pt()&&!!Symbol.for&&!!Symbol.keyFor)}var ou,uu={};var au,su,cu,fu,lu,hu,pu,vu,du,yu={};function gu(){if(su)return au;su=1;var t=Et(),r=Zo().get;return au=function(e){if(!t(e))return!1;var n=r(e);return!!n&&"RawJSON"===n.type}}function mu(){return fu?cu:(fu=1,cu=h()(1.1.valueOf))}function bu(){if(hu)return lu;hu=1;var t=h(),r=gr(),e=SyntaxError,n=parseInt,i=String.fromCharCode,o=t("".charAt),u=t("".slice),a=t(/./.exec),s={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;return lu=function(t,l){for(var h=!0,p="";l<t.length;){var v=o(t,l);if("\\"===v){var d=u(t,l,l+2);if(r(s,d))p+=s[d],l+=2;else{if("\\u"!==d)throw new e('Unknown escape sequence: "'+d+'"');var y=u(t,l+=2,l+4);if(!a(c,y))throw new e("Bad Unicode escape at: "+l);p+=i(n(y,16)),l+=4}}else{if('"'===v){h=!1,l++;break}if(a(f,v))throw new e("Bad control character in string literal at: "+l);p+=v,l++}}if(h)throw new e("Unterminated string at: "+l);return{value:p,end:l}}}function _u(){return vu?pu:(vu=1,pu=!f()(function(){var t="9007199254740993",r=JSON.rawJSON(t);return!JSON.isRawJSON(r)||JSON.stringify(r)!==t}))}function wu(){if(du)return yu;du=1;var t=ee(),r=It(),e=R(),n=h(),i=f(),o=En(),u=x(),a=Et(),s=yo(),c=gu(),l=kt(),p=I(),v=mu(),d=ao().includes,y=gr(),g=zi(),m=bu(),b=mr(),_=Pt(),w=_u(),S=String,T=TypeError,O=r("JSON","stringify"),E=r("BigInt"),A=n("".valueOf),j=n((!0).valueOf),P=E&&n(E.prototype.valueOf),D=n(/./.exec),k=n("".charAt),C=n("".charCodeAt),N=n("".replace),M=n("".slice),F=n([].push),L=n([].pop),z=n(1.1.toString),q=/[\uD800-\uDFFF]/g,U=/^[\uD800-\uDBFF]$/,W=/^[\uDC00-\uDFFF]$/,Y=/^\d+$/,B=b(),X=b(),J=b(),G=B.length,H=X.length,V=!_||i(function(){var t=r("Symbol")("stringify detection");return"[null]"!==O([t])||"{}"!==O({a:t})||"{}"!==O(Object(t))}),K=i(function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")}),Q=w?r("JSON","isRawJSON"):c,$=V?function(t,r,n){return O(t,function(t,n){var i=e(r,this,t,n);if(!l(i))return i},n)}:O,Z=function(t,r,e){var n=k(e,r-1),i=k(e,r+1);return D(U,t)&&!D(W,i)||D(W,t)&&!D(U,n)?"\\u"+z(C(t,0),16):t},tt=function(t,r){try{return t(r),!0}catch(t){return!1}},rt=function(t){if(!a(t)||u(t)||o(t))return!1;try{return!function(t){var r=p(t);return"Number"===r&&tt(v,t)||"String"===r&&tt(A,t)||"Boolean"===r&&tt(j,t)||!!P&&"BigInt"===r&&tt(P,t)}(t)}catch(t){return!0}},et=function(t,r){return{toJSON:function(){var n=t[r];if(a(n)||"bigint"==typeof n){var i=n.toJSON;u(i)&&(n=e(i,n,r))}return n}}};return O&&t({target:"JSON",stat:!0,arity:3,forced:V||K||!w},{stringify:function(t,r,n){var i,a=u(r)?r:void 0,c=a?void 0:function(t){if(o(t)){for(var r=t.length,e=[],n=s(null),i=0;i<r;i++){var u,a=t[i];if("string"==typeof a)u=a;else{if("number"!=typeof a&&"Number"!==p(a)&&"String"!==p(a))continue;u=g(a)}y(n,u)||(n[u]=!0,F(e,u))}return e}}(r),f=c&&function(t){for(var r=0,e=t.length;r<e;r++)if(D(Y,t[r]))return X;return""}(c),l=[],h=[],v=[],b=!1,_=!0,O=$(t,function(t,r){if(t=S(t),c){if(t===J)return L(h),void(i=L(v));if(_)_=!1;else if(this!==i&&!o(this)&&!d(c,t))return}else a&&(r=e(a,this,t,r));if(Q(r))return w?r:(b=!0,B+(F(l,r.rawJSON)-1));if(c&&rt(r)){if(d(h,r))throw new T("Converting circular structure to JSON");var n=function(t,r,e){for(var n=s(null),i=0,o=r.length;i<o;i++){var u=r[i];n[e+u]=et(t,u)}return n[J]=null,n}(r,c,f);return F(h,r),F(v,i),i=n,f&&(b=!0),n}return r},n);if("string"!=typeof O)return O;if(K&&(O=N(O,q,Z)),!b)return O;for(var E="",A=O.length,I=0;I<A;I++){var j=k(O,I);if('"'===j){var x=m(O,++I).end-1,P=M(O,I,x);M(P,0,G)===B?E+=l[M(P,G)]:M(P,0,H)===X?E+='"'+M(P,H)+'"':E+='"'+P+'"',I=x}else E+=j}return E}}),yu}var Su,Tu,Ou={};function Eu(){return Tu||(Tu=1,function(){if(Xo)return Li;Xo=1;var t=ee(),r=E(),e=R(),n=h(),i=hr(),o=M(),u=Pt(),a=f(),s=gr(),c=p(),l=Zr(),v=Ot(),d=wr(),y=zi(),g=_t(),m=yo(),b=lo(),_=bo(),w=So(),S=xo(),T=Or(),O=te(),A=ho(),I=bt(),j=Po(),x=Do(),P=dr(),D=vo(),k=so(),C=mr(),N=br(),F=Go(),L=Ho(),z=Vo(),q=Qo(),U=Zo(),W=Cn().forEach,Y=D("hidden"),B="Symbol",X="prototype",J=U.set,G=U.getterFor(B),H=Object[X],V=r.Symbol,K=V&&V[X],Q=r.RangeError,$=r.TypeError,Z=r.QObject,tt=T.f,rt=O.f,et=w.f,nt=I.f,it=n([].push),ot=P("symbols"),ut=P("op-symbols"),at=P("wks"),st=!Z||!Z[X]||!Z[X].findChild,ct=function(t,r,e){var n=tt(H,r);return n&&delete H[r],rt(t,r,e),n&&t!==H&&rt(H,r,n),t},ft=o&&a(function(){return 7!==m(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a})?ct:rt,lt=function(t,r){var e=ot[t]=m(K);return J(e,{type:B,tag:t,description:r}),o||(e.description=r),e},ht=function(t,r,e){t===H&&ht(ut,r,e),l(t);var n=d(r);return l(e),s(ot,n)?(("enumerable"in e?!e.enumerable:!s(t,n)||s(t,Y)&&t[Y][n])?(s(t,Y)||rt(t,Y,g(1,m(null))),t[Y][n]=!0):(s(t,Y)&&t[Y][n]&&(t[Y][n]=!1),e=m(e,{enumerable:g(0,!1)})),ft(t,n,e)):rt(t,n,e)},pt=function(t,r){l(t);var n=v(r),i=b(n).concat(gt(n));return W(i,function(r){o&&!e(vt,n,r)||ht(t,r,n[r])}),t},vt=function(t){var r=d(t),n=e(nt,this,r);return!(this===H&&s(ot,r)&&!s(ut,r))&&(!(n||!s(this,r)||!s(ot,r)||s(this,Y)&&this[Y][r])||n)},dt=function(t,r){var e=v(t),n=d(r);if(e!==H||!s(ot,n)||s(ut,n)){var i=tt(e,n);return!i||!s(ot,n)||s(e,Y)&&e[Y][n]||(i.enumerable=!0),i}},yt=function(t){var r=et(v(t)),e=[];return W(r,function(t){s(ot,t)||s(k,t)||it(e,t)}),e},gt=function(t){var r=t===H,e=et(r?ut:v(t)),n=[];return W(e,function(t){!s(ot,t)||r&&!s(H,t)||it(n,ot[t])}),n};u||(V=function(){if(c(K,this))throw new $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,n=C(t),i=function(t){var o=void 0===this?r:this;o===H&&e(i,ut,t),s(o,Y)&&s(o[Y],n)&&(o[Y][n]=!1);var u=g(1,t);try{ft(o,n,u)}catch(t){if(!(t instanceof Q))throw t;ct(o,n,u)}};return o&&st&&ft(H,n,{configurable:!0,set:i}),lt(n,t)},j(K=V[X],"toString",function(){return G(this).tag}),j(V,"withoutSetter",function(t){return lt(C(t),t)}),I.f=vt,O.f=ht,A.f=pt,T.f=dt,_.f=w.f=yt,S.f=gt,F.f=function(t){return lt(N(t),t)},o&&(x(K,"description",{configurable:!0,get:function(){return G(this).description}}),i||j(H,"propertyIsEnumerable",vt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),W(b(at),function(t){L(t)}),t({target:B,stat:!0,forced:!u},{useSetter:function(){st=!0},useSimple:function(){st=!1}}),t({target:"Object",stat:!0,forced:!u,sham:!o},{create:function(t,r){return void 0===r?m(t):pt(m(t),r)},defineProperty:ht,defineProperties:pt,getOwnPropertyDescriptor:dt}),t({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:yt}),z(),q(V,B),k[Y]=!0}(),function(){if(eu)return nu;eu=1;var t=ee(),r=It(),e=gr(),n=zi(),i=dr(),o=iu(),u=i("string-to-symbol-registry"),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=n(t);if(e(u,i))return u[i];var o=r("Symbol")(i);return u[i]=o,a[o]=i,o}})}(),function(){if(ou)return uu;ou=1;var t=ee(),r=gr(),e=kt(),n=Ct(),i=dr(),o=iu(),u=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!e(t))throw new TypeError(n(t)+" is not a symbol");if(r(u,t))return u[t]}})}(),wu(),function(){if(Su)return Ou;Su=1;var t=ee(),r=Pt(),e=f(),n=xo(),i=yr();t({target:"Object",stat:!0,forced:!r||e(function(){n.f(1)})},{getOwnPropertySymbols:function(t){var r=n.f;return r?r(i(t)):[]}})}()),Fi}var Au;var Iu;var ju;var xu;var Pu;var Du,ku={};function Cu(){return Du||(Du=1,Ho()("iterator")),ku}var Nu;var Mu;var Ru;var Fu;var Lu;var zu;var qu,Uu={};var Wu,Yu={};var Bu;var Xu,Ju,Gu,Hu={};function Vu(){return Gu?Ju:(Gu=1,Ni(),Eu(),Au||(Au=1,Ho()("asyncDispose")),Iu||(Iu=1,Ho()("asyncIterator")),ju||(ju=1,Ho()("dispose")),xu||(xu=1,Ho()("hasInstance")),Pu||(Pu=1,Ho()("isConcatSpreadable")),Cu(),Nu||(Nu=1,Ho()("match")),Mu||(Mu=1,Ho()("matchAll")),Ru||(Ru=1,Ho()("replace")),Fu||(Fu=1,Ho()("search")),Lu||(Lu=1,Ho()("species")),zu||(zu=1,Ho()("split")),function(){if(qu)return Uu;qu=1;var t=Ho(),r=Vo();t("toPrimitive"),r()}(),function(){if(Wu)return Yu;Wu=1;var t=It(),r=Ho(),e=Qo();r("toStringTag"),e(t("Symbol"),"Symbol")}(),Bu||(Bu=1,Ho()("unscopables")),function(){if(Xu)return Hu;Xu=1;var t=E();Qo()(t.JSON,"JSON",!0)}(),Ju=At().Symbol)}var Ku,Qu,$u,Zu,ta,ra,ea,na,ia,oa,ua,aa,sa,ca,fa,la,ha,pa,va,da,ya,ga,ma,ba,_a,wa,Sa,Ta,Oa,Ea,Aa,Ia,ja,xa={};function Pa(){return Qu?Ku:(Qu=1,Ku=Object.create?Object.create(null):{})}function Da(){if(Zu)return $u;Zu=1;var t=M(),r=gr(),e=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,i=r(e,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&n(e,"name").configurable);return $u={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function ka(){return ra?ta:(ra=1,ta=!f()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function Ca(){if(na)return ea;na=1;var t=gr(),r=x(),e=yr(),n=vo(),i=ka(),o=n("IE_PROTO"),u=Object,a=u.prototype;return ea=i?u.getPrototypeOf:function(n){var i=e(n);if(t(i,o))return i[o];var s=i.constructor;return r(s)&&i instanceof s?s.prototype:i instanceof u?a:null}}function Na(){if(oa)return ia;oa=1;var t,r,e,n=f(),i=x(),o=Et(),u=yo(),a=Ca(),s=Po(),c=br(),l=hr(),h=c("iterator"),p=!1;return[].keys&&("next"in(e=[].keys())?(r=a(a(e)))!==Object.prototype&&(t=r):p=!0),!o(t)||n(function(){var r={};return t[h].call(r)!==r})?t={}:l&&(t=u(t)),i(t[h])||s(t,h,function(){return this}),ia={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:p}}function Ma(){if(aa)return ua;aa=1;var t=Na().IteratorPrototype,r=yo(),e=_t(),n=Qo(),i=Pa(),o=function(){return this};return ua=function(u,a,s,c){var f=a+" Iterator";return u.prototype=r(t,{next:e(+!c,s)}),n(u,f,!1,!0),i[f]=o,u}}function Ra(){if(ca)return sa;ca=1;var t=h(),r=Nt();return sa=function(e,n,i){try{return t(r(Object.getOwnPropertyDescriptor(e,n)[i]))}catch(t){}}}function Fa(){if(la)return fa;la=1;var t=Et();return fa=function(r){return t(r)||null===r}}function La(){if(pa)return ha;pa=1;var t=Fa(),r=String,e=TypeError;return ha=function(n){if(t(n))return n;throw new e("Can't set "+r(n)+" as a prototype")}}function za(){if(da)return va;da=1;var t=Ra(),r=Et(),e=Tt(),n=La();return va=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=t(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(t){}return function(t,u){return e(t),n(u),r(t)?(o?i(t,u):t.__proto__=u,t):t}}():void 0)}function qa(){if(ga)return ya;ga=1;var t=ee(),r=R(),e=hr(),n=Da(),i=x(),o=Ma(),u=Ca(),a=za(),s=Qo(),c=re(),f=Po(),l=br(),h=Pa(),p=Na(),v=n.PROPER,d=n.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",_="values",w="entries",S=function(){return this};return ya=function(n,l,p,T,O,E,A){o(p,l,T);var I,j,x,P=function(t){if(t===O&&M)return M;if(!g&&t&&t in C)return C[t];switch(t){case b:case _:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},D=l+" Iterator",k=!1,C=n.prototype,N=C[m]||C["@@iterator"]||O&&C[O],M=!g&&N||P(O),R="Array"===l&&C.entries||N;if(R&&(I=u(R.call(new n)))!==Object.prototype&&I.next&&(e||u(I)===y||(a?a(I,y):i(I[m])||f(I,m,S)),s(I,D,!0,!0),e&&(h[D]=S)),v&&O===_&&N&&N.name!==_&&(!e&&d?c(C,"name",_):(k=!0,M=function(){return r(N,this)})),O)if(j={values:P(_),keys:E?M:P(b),entries:P(w)},A)for(x in j)(g||k||!(x in C))&&f(C,x,j[x]);else t({target:l,proto:!0,forced:g||k},j);return e&&!A||C[m]===M||f(C,m,M,{name:O}),h[l]=M,j}}function Ua(){return ba?ma:(ba=1,ma=function(t,r){return{value:t,done:r}})}function Wa(){if(wa)return _a;wa=1;var t=Ot(),r=mi(),e=Pa(),n=Zo(),i=te().f,o=qa(),u=Ua(),a=hr(),s=M(),c="Array Iterator",f=n.set,l=n.getterFor(c);_a=o(Array,"Array",function(r,e){f(this,{type:c,target:t(r),index:0,kind:e})},function(){var t=l(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(e,!1);case"values":return u(r[e],!1)}return u([e,r[e]],!1)},"values");var h=e.Arguments=e.Array;if(r("keys"),r("values"),r("entries"),!a&&s&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(t){}return _a}function Ya(){return Ta?Sa:(Ta=1,Sa={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})}function Ba(){if(Oa)return xa;Oa=1,Wa();var t=Ya(),r=E(),e=Qo(),n=Pa();for(var i in t)e(r[i],i),n[i]=n.Array;return xa}function Xa(){if(Aa)return Ea;Aa=1;var t=Vu();return Ba(),Ea=t}var Ja,Ga,Ha,Va,Ka,Qa,$a,Za,ts,rs=c(ja?Ia:(ja=1,Ia=Xa())),es={};function ns(){return Ha?Ga:(Ha=1,function(){if(Ja)return es;Ja=1;var t=ee(),r=En(),e=xn(),n=Et(),i=uo(),o=ze(),u=Ot(),a=kn(),s=Ci(),c=br(),f=Nn(),l=ne(),h=f("slice"),p=c("species"),v=Array,d=Math.max;t({target:"Array",proto:!0,forced:!h},{slice:function(t,c){var f,h,y,g=u(this),m=o(g),b=i(t,m),_=i(void 0===c?m:c,m);if(r(g)&&(f=g.constructor,(e(f)&&(f===v||r(f.prototype))||n(f)&&null===(f=f[p]))&&(f=void 0),f===v||void 0===f))return l(g,b,_);for(h=new(void 0===f?v:f)(d(_-b,0)),y=0;b<_;b++,y++)b in g&&a(h,y,g[b]);return s(h,y),h}})}(),Ga=oe()("Array","slice"))}function is(){if(Ka)return Va;Ka=1;var t=p(),r=ns(),e=Array.prototype;return Va=function(n){var i=n.slice;return n===e||t(e,n)&&i===e.slice?r:i}}function os(){return $a?Qa:($a=1,Qa=is())}var us,as,ss,cs,fs,ls,hs,ps,vs,ds=c(ts?Za:(ts=1,Za=os()));function ys(){if(as)return us;as=1;var t=It(),r=h(),e=bo(),n=xo(),i=Zr(),o=r([].concat);return us=t("Reflect","ownKeys")||function(t){var r=e.f(i(t)),u=n.f;return u?o(r,u(t)):r},us}function gs(){return fs?cs:(fs=1,ss||(ss=1,ee()({target:"Reflect",stat:!0},{ownKeys:ys()})),cs=At().Reflect.ownKeys)}function ms(){return hs?ls:(hs=1,ls=gs())}var bs,_s,ws,Ss,Ts,Os,Es,As=c(vs?ps:(vs=1,ps=ms()));function Is(){return ws?_s:(ws=1,bs||(bs=1,ee()({target:"Array",stat:!0},{isArray:En()})),_s=At().Array.isArray)}function js(){return Ts?Ss:(Ts=1,Ss=Is())}var xs,Ps,Ds,ks,Cs,Ns,Ms,Rs=c(Es?Os:(Es=1,Os=js())),Fs={};function Ls(){return Ds?Ps:(Ds=1,function(){if(xs)return Fs;xs=1;var t=ee(),r=yr(),e=lo();t({target:"Object",stat:!0,forced:f()(function(){e(1)})},{keys:function(t){return e(r(t))}})}(),Ps=At().Object.keys)}function zs(){return Cs?ks:(Cs=1,ks=Ls())}var qs,Us,Ws,Ys,Bs,Xs,Js,Gs,Hs,Vs,Ks,Qs=c(Ms?Ns:(Ms=1,Ns=zs())),$s={};function Zs(){if(Us)return qs;Us=1;var t=Cn().forEach,r=Ue()("forEach");return qs=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},qs}function tc(){return Bs?Ys:(Bs=1,function(){if(Ws)return $s;Ws=1;var t=ee(),r=Zs();t({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})}(),Ys=oe()("Array","forEach"))}function rc(){return Js?Xs:(Js=1,Xs=tc())}function ec(){if(Hs)return Gs;Hs=1;var t=In(),r=gr(),e=p(),n=rc(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Gs=function(u){var a=u.forEach;return u===i||e(i,u)&&a===i.forEach||r(o,t(u))?n:a}}var nc,ic,oc,uc,ac,sc,cc,fc,lc,hc,pc,vc=c(Ks?Vs:(Ks=1,Vs=ec())),dc={};function yc(){if(ic)return nc;ic=1;var t=Ct(),r=TypeError;return nc=function(e,n){if(!delete e[n])throw new r("Cannot delete property "+t(n)+" of "+t(e))}}function gc(){return ac?uc:(ac=1,function(){if(oc)return dc;oc=1;var t=ee(),r=yr(),e=uo(),n=Fe(),i=ze(),o=Ci(),u=oi(),a=Dn(),s=kn(),c=yc(),f=Nn()("splice"),l=Math.max,h=Math.min;t({target:"Array",proto:!0,forced:!f},{splice:function(t,f){var p,v,d,y,g,m,b=r(this),_=i(b),w=e(t,_),S=arguments.length;for(0===S?p=v=0:1===S?(p=0,v=_-w):(p=S-2,v=h(l(n(f),0),_-w)),u(_+p-v),d=a(b,v),y=0;y<v;y++)(g=w+y)in b&&s(d,y,b[g]);if(o(d,v),p<v){for(y=w;y<_-v;y++)m=y+p,(g=y+v)in b?b[m]=b[g]:c(b,m);for(y=_;y>_-v+p;y--)c(b,y-1)}else if(p>v)for(y=_-v;y>w;y--)m=y+p-1,(g=y+v-1)in b?b[m]=b[g]:c(b,m);for(y=0;y<p;y++)b[y+w]=arguments[y+2];return o(b,_-v+p),d}})}(),uc=oe()("Array","splice"))}function mc(){if(cc)return sc;cc=1;var t=p(),r=gc(),e=Array.prototype;return sc=function(n){var i=n.splice;return n===e||t(e,n)&&i===e.splice?r:i}}function bc(){return lc?fc:(lc=1,fc=mc())}var _c,wc,Sc,Tc,Oc,Ec,Ac,Ic,jc,xc=c(pc?hc:(pc=1,hc=bc())),Pc={};function Dc(){if(wc)return _c;wc=1;var t=M(),r=h(),e=R(),n=f(),i=lo(),o=xo(),u=bt(),a=yr(),s=wt(),c=Object.assign,l=Object.defineProperty,p=r([].concat);return _c=!c||n(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var r={},e={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return r[n]=7,o.split("").forEach(function(t){e[t]=t}),7!==c({},r)[n]||i(c({},e)).join("")!==o})?function(r,n){for(var c=a(r),f=arguments.length,l=1,h=o.f,v=u.f;f>l;)for(var d,y=s(arguments[l++]),g=h?p(i(y),h(y)):i(y),m=g.length,b=0;m>b;)d=g[b++],t&&!e(v,y,d)||(c[d]=y[d]);return c}:c,_c}function kc(){return Oc?Tc:(Oc=1,function(){if(Sc)return Pc;Sc=1;var t=ee(),r=Dc();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}(),Tc=At().Object.assign)}function Cc(){return Ac?Ec:(Ac=1,Ec=kc())}var Nc,Mc,Rc,Fc,Lc,zc,qc,Uc,Wc=c(jc?Ic:(jc=1,Ic=Cc()));function Yc(){return Mc?Nc:(Mc=1,Ni(),Nc=oe()("Array","concat"))}function Bc(){if(Fc)return Rc;Fc=1;var t=p(),r=Yc(),e=Array.prototype;return Rc=function(n){var i=n.concat;return n===e||t(e,n)&&i===e.concat?r:i}}function Xc(){return zc?Lc:(zc=1,Lc=Bc())}var Jc,Gc,Hc,Vc,Kc,Qc,$c,Zc=c(Uc?qc:(Uc=1,qc=Xc()));function tf(){if(Hc)return Gc;Hc=1,Jc||(Jc=1,ee()({target:"Object",stat:!0,sham:!M()},{create:yo()}));var t=At().Object;return Gc=function(r,e){return t.create(r,e)}}function rf(){return Kc?Vc:(Kc=1,Vc=tf())}var ef,nf,of,uf,af,sf,cf,ff,lf,hf,pf,vf,df,yf=c($c?Qc:($c=1,Qc=rf())),gf={};function mf(){if(nf)return ef;nf=1;var t=Fe(),r=zi(),e=Tt(),n=RangeError,i=Math.floor;return ef=function(o){var u=r(e(this)),a="",s=t(o);if(s<0||s===1/0)throw new n("Wrong number of repetitions");for(;s>0;(s=i(s/2))&&(u+=u))s%2&&(a+=u);return a}}function bf(){if(uf)return of;uf=1;var t=h(),r=Le(),e=zi(),n=mf(),i=Tt(),o=t(n),u=t("".slice),a=Math.ceil,s=function(t){return function(n,s,c){var f=e(i(n)),l=r(s),h=f.length;if(l<=h)return f;var p,v,d=void 0===c?" ":e(c);return""===d?f:((v=o(d,a((p=l-h)/d.length))).length>p&&(v=u(v,0,p)),t?f+v:v+f)}};return of={start:s(!1),end:s(!0)}}function _f(){if(sf)return af;sf=1;var t=h(),r=f(),e=bf().start,n=RangeError,i=isFinite,o=Math.abs,u=Date.prototype,a=u.toISOString,s=t(u.getTime),c=t(u.getUTCDate),l=t(u.getUTCFullYear),p=t(u.getUTCHours),v=t(u.getUTCMilliseconds),d=t(u.getUTCMinutes),y=t(u.getUTCMonth),g=t(u.getUTCSeconds);return af=r(function(){return"0385-07-25T07:06:39.999Z"!==a.call(new Date(-50000000000001))})||!r(function(){a.call(new Date(NaN))})?function(){if(!i(s(this)))throw new n("Invalid time value");var t=this,r=l(t),u=v(t),a=r<0?"-":r>9999?"+":"";return a+e(o(r),a?6:4,0)+"-"+e(y(t)+1,2,0)+"-"+e(c(t),2,0)+"T"+e(p(t),2,0)+":"+e(d(t),2,0)+":"+e(g(t),2,0)+"."+e(u,3,0)+"Z"}:a}function wf(){if(lf)return ff;lf=1,function(){if(cf)return gf;cf=1;var t=ee(),r=R(),e=yr(),n=_r(),i=_f(),o=I();t({target:"Date",proto:!0,forced:f()(function(){return null!==new Date(NaN).toJSON()||1!==r(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var u=e(this),a=n(u,"number");return"number"!=typeof a||isFinite(a)?"toISOString"in u||"Date"!==o(u)?u.toISOString():r(i,u):null}})}(),wu();var t=At(),r=A();return t.JSON||(t.JSON={stringify:JSON.stringify}),ff=function(e,n,i){return r(t.JSON.stringify,null,arguments)},ff}function Sf(){return pf?hf:(pf=1,hf=wf())}var Tf,Of,Ef,Af,If,jf=c(df?vf:(df=1,vf=Sf())),xf={},Pf={};function Df(){if(Of)return Tf;Of=1;var t=TypeError;return Tf=function(r,e){if(r<e)throw new t("Not enough arguments");return r}}function kf(){if(Af)return Ef;Af=1;var t,r=E(),e=A(),n=x(),i=We(),o=jt(),u=ne(),a=Df(),s=r.Function,c=/MSIE .\./.test(o)||"BUN"===i&&((t=r.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return Ef=function(t,r){var i=r?2:1;return c?function(o,c){var f=a(arguments.length,1)>i,l=n(o)?o:s(o),h=f?u(arguments,i):[],p=f?function(){e(l,this,h)}:l;return r?t(p,c):t(p)}:t},Ef}var Cf,Nf,Mf,Rf,Ff,Lf,zf={};function qf(){return Nf||(Nf=1,function(){if(If)return Pf;If=1;var t=ee(),r=E(),e=kf()(r.setInterval,!0);t({global:!0,bind:!0,forced:r.setInterval!==e},{setInterval:e})}(),function(){if(Cf)return zf;Cf=1;var t=ee(),r=E(),e=kf()(r.setTimeout,!0);t({global:!0,bind:!0,forced:r.setTimeout!==e},{setTimeout:e})}()),xf}function Uf(){return Rf?Mf:(Rf=1,qf(),Mf=At().setTimeout)}var Wf,Yf=c(Lf?Ff:(Lf=1,Ff=Uf())),Bf={exports:{}};function Xf(){return Wf||(Wf=1,function(t){function r(t){if(t)return function(t){return Object.assign(t,r.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}r.prototype.on=function(t,r){const e=this._callbacks.get(t)??[];return e.push(r),this._callbacks.set(t,e),this},r.prototype.once=function(t,r){const e=(...n)=>{this.off(t,e),r.apply(this,n)};return e.fn=r,this.on(t,e),this},r.prototype.off=function(t,r){if(void 0===t&&void 0===r)return this._callbacks.clear(),this;if(void 0===r)return this._callbacks.delete(t),this;const e=this._callbacks.get(t);if(e){for(const[t,n]of e.entries())if(n===r||n.fn===r){e.splice(t,1);break}0===e.length?this._callbacks.delete(t):this._callbacks.set(t,e)}return this},r.prototype.emit=function(t,...r){const e=this._callbacks.get(t);if(e){const t=[...e];for(const e of t)e.apply(this,r)}return this},r.prototype.listeners=function(t){return this._callbacks.get(t)??[]},r.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let r=0;for(const t of this._callbacks.values())r+=t.length;return r},r.prototype.hasListeners=function(t){return this.listenerCount(t)>0},r.prototype.addEventListener=r.prototype.on,r.prototype.removeListener=r.prototype.off,r.prototype.removeEventListener=r.prototype.off,r.prototype.removeAllListeners=r.prototype.off,t.exports=r}(Bf)),Bf.exports}var Jf=c(Xf());
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license */
function Gf(){return Gf=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Gf.apply(this,arguments)}function Hf(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function Vf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Kf,Qf="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])}return r}:Object.assign,$f=["","webkit","Moz","MS","ms","o"],Zf="undefined"==typeof document?{style:{}}:document.createElement("div"),tl=Math.round,rl=Math.abs,el=Date.now;function nl(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o<$f.length;){if((n=(e=$f[o])?e+i:r)in t)return n;o++}}Kf="undefined"==typeof window?{}:window;var il=nl(Zf.style,"touchAction"),ol=void 0!==il;var ul="compute",al="auto",sl="manipulation",cl="none",fl="pan-x",ll="pan-y",hl=function(){if(!ol)return!1;var t={},r=Kf.CSS&&Kf.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=!r||Kf.CSS.supports("touch-action",e)}),t}(),pl="ontouchstart"in Kf,vl=void 0!==nl(Kf,"PointerEvent"),dl=pl&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),yl="touch",gl="mouse",ml=16,bl=24,_l=["x","y"],wl=["clientX","clientY"];function Sl(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(void 0!==t.length)for(n=0;n<t.length;)r.call(e,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&r.call(e,t[n],n,t)}function Tl(t,r){return"function"==typeof t?t.apply(r&&r[0]||void 0,r):t}function Ol(t,r){return t.indexOf(r)>-1}var El=function(){function t(t,r){this.manager=t,this.set(r)}var r=t.prototype;return r.set=function(t){t===ul&&(t=this.compute()),ol&&this.manager.element.style&&hl[t]&&(this.manager.element.style[il]=t),this.actions=t.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var t=[];return Sl(this.manager.recognizers,function(r){Tl(r.options.enable,[r])&&(t=t.concat(r.getTouchAction()))}),function(t){if(Ol(t,cl))return cl;var r=Ol(t,fl),e=Ol(t,ll);return r&&e?cl:r||e?r?fl:ll:Ol(t,sl)?sl:al}(t.join(" "))},r.preventDefaults=function(t){var r=t.srcEvent,e=t.offsetDirection;if(this.manager.session.prevented)r.preventDefault();else{var n=this.actions,i=Ol(n,cl)&&!hl[cl],o=Ol(n,ll)&&!hl[ll],u=Ol(n,fl)&&!hl[fl];if(i){var a=1===t.pointers.length,s=t.distance<2,c=t.deltaTime<250;if(a&&s&&c)return}if(!u||!o)return i||o&&6&e||u&&e&bl?this.preventSrc(r):void 0}},r.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Al(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function Il(t){var r=t.length;if(1===r)return{x:tl(t[0].clientX),y:tl(t[0].clientY)};for(var e=0,n=0,i=0;i<r;)e+=t[i].clientX,n+=t[i].clientY,i++;return{x:tl(e/r),y:tl(n/r)}}function jl(t){for(var r=[],e=0;e<t.pointers.length;)r[e]={clientX:tl(t.pointers[e].clientX),clientY:tl(t.pointers[e].clientY)},e++;return{timeStamp:el(),pointers:r,center:Il(r),deltaX:t.deltaX,deltaY:t.deltaY}}function xl(t,r,e){e||(e=_l);var n=r[e[0]]-t[e[0]],i=r[e[1]]-t[e[1]];return Math.sqrt(n*n+i*i)}function Pl(t,r,e){e||(e=_l);var n=r[e[0]]-t[e[0]],i=r[e[1]]-t[e[1]];return 180*Math.atan2(i,n)/Math.PI}function Dl(t,r){return t===r?1:rl(t)>=rl(r)?t<0?2:4:r<0?8:ml}function kl(t,r,e){return{x:r/t||0,y:e/t||0}}function Cl(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=jl(r)),i>1&&!e.firstMultiple?e.firstMultiple=jl(r):1===i&&(e.firstMultiple=!1);var o=e.firstInput,u=e.firstMultiple,a=u?u.center:o.center,s=r.center=Il(n);r.timeStamp=el(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=Pl(a,s),r.distance=xl(a,s),function(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==r.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}(e,r),r.offsetDirection=Dl(r.deltaX,r.deltaY);var c,f,l=kl(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=l.x,r.overallVelocityY=l.y,r.overallVelocity=rl(l.x)>rl(l.y)?l.x:l.y,r.scale=u?(c=u.pointers,xl((f=n)[0],f[1],wl)/xl(c[0],c[1],wl)):1,r.rotation=u?function(t,r){return Pl(r[1],r[0],wl)+Pl(t[1],t[0],wl)}(u.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,function(t,r){var e,n,i,o,u=t.lastInterval||r,a=r.timeStamp-u.timeStamp;if(8!==r.eventType&&(a>25||void 0===u.velocity)){var s=r.deltaX-u.deltaX,c=r.deltaY-u.deltaY,f=kl(a,s,c);n=f.x,i=f.y,e=rl(f.x)>rl(f.y)?f.x:f.y,o=Dl(s,c),t.lastInterval=r}else e=u.velocity,n=u.velocityX,i=u.velocityY,o=u.direction;r.velocity=e,r.velocityX=n,r.velocityY=i,r.direction=o}(e,r);var h,p=t.element,v=r.srcEvent;Al(h=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=h),r.target=p}function Nl(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=1&r&&n-i===0,u=12&r&&n-i===0;e.isFirst=!!o,e.isFinal=!!u,o&&(t.session={}),e.eventType=r,Cl(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function Ml(t){return t.trim().split(/\s+/g)}function Rl(t,r,e){Sl(Ml(r),function(r){t.addEventListener(r,e,!1)})}function Fl(t,r,e){Sl(Ml(r),function(r){t.removeEventListener(r,e,!1)})}function Ll(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var zl=function(){function t(t,r){var e=this;this.manager=t,this.callback=r,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(r){Tl(t.options.enable,[t])&&e.handler(r)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Rl(this.element,this.evEl,this.domHandler),this.evTarget&&Rl(this.target,this.evTarget,this.domHandler),this.evWin&&Rl(Ll(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Fl(this.element,this.evEl,this.domHandler),this.evTarget&&Fl(this.target,this.evTarget,this.domHandler),this.evWin&&Fl(Ll(this.element),this.evWin,this.domHandler)},t}();function ql(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;n<t.length;){if(e&&t[n][e]==r||!e&&t[n]===r)return n;n++}return-1}var Ul={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Wl={2:yl,3:"pen",4:gl,5:"kinect"},Yl="pointerdown",Bl="pointermove pointerup pointercancel";Kf.MSPointerEvent&&!Kf.PointerEvent&&(Yl="MSPointerDown",Bl="MSPointerMove MSPointerUp MSPointerCancel");var Xl=function(t){function r(){var e,n=r.prototype;return n.evEl=Yl,n.evWin=Bl,(e=t.apply(this,arguments)||this).store=e.manager.session.pointerEvents=[],e}return Hf(r,t),r.prototype.handler=function(t){var r=this.store,e=!1,n=t.type.toLowerCase().replace("ms",""),i=Ul[n],o=Wl[t.pointerType]||t.pointerType,u=o===yl,a=ql(r,t.pointerId,"pointerId");1&i&&(0===t.button||u)?a<0&&(r.push(t),a=r.length-1):12&i&&(e=!0),a<0||(r[a]=t,this.callback(this.manager,i,{pointers:r,changedPointers:[t],pointerType:o,srcEvent:t}),e&&r.splice(a,1))},r}(zl);function Jl(t){return Array.prototype.slice.call(t,0)}function Gl(t,r,e){for(var n=[],i=[],o=0;o<t.length;){var u=r?t[o][r]:t[o];ql(i,u)<0&&n.push(t[o]),i[o]=u,o++}return e&&(n=r?n.sort(function(t,e){return t[r]>e[r]}):n.sort()),n}var Hl={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Vl=function(t){function r(){var e;return r.prototype.evTarget="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).targetIds={},e}return Hf(r,t),r.prototype.handler=function(t){var r=Hl[t.type],e=Kl.call(this,t,r);e&&this.callback(this.manager,r,{pointers:e[0],changedPointers:e[1],pointerType:yl,srcEvent:t})},r}(zl);function Kl(t,r){var e,n,i=Jl(t.touches),o=this.targetIds;if(3&r&&1===i.length)return o[i[0].identifier]=!0,[i,i];var u=Jl(t.changedTouches),a=[],s=this.target;if(n=i.filter(function(t){return Al(t.target,s)}),1===r)for(e=0;e<n.length;)o[n[e].identifier]=!0,e++;for(e=0;e<u.length;)o[u[e].identifier]&&a.push(u[e]),12&r&&delete o[u[e].identifier],e++;return a.length?[Gl(n.concat(a),"identifier",!0),a]:void 0}var Ql={mousedown:1,mousemove:2,mouseup:4},$l=function(t){function r(){var e,n=r.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(e=t.apply(this,arguments)||this).pressed=!1,e}return Hf(r,t),r.prototype.handler=function(t){var r=Ql[t.type];1&r&&0===t.button&&(this.pressed=!0),2&r&&1!==t.which&&(r=4),this.pressed&&(4&r&&(this.pressed=!1),this.callback(this.manager,r,{pointers:[t],changedPointers:[t],pointerType:gl,srcEvent:t}))},r}(zl);function Zl(t){var r=t.changedPointers[0];if(r.identifier===this.primaryTouch){var e={x:r.clientX,y:r.clientY},n=this.lastTouches;this.lastTouches.push(e);setTimeout(function(){var t=n.indexOf(e);t>-1&&n.splice(t,1)},2500)}}function th(t,r){1&t?(this.primaryTouch=r.changedPointers[0].identifier,Zl.call(this,r)):12&t&&Zl.call(this,r)}function rh(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(r-i.x),u=Math.abs(e-i.y);if(o<=25&&u<=25)return!0}return!1}var eh=function(){return function(t){function r(r,e){var n;return(n=t.call(this,r,e)||this).handler=function(t,r,e){var i=e.pointerType===yl,o=e.pointerType===gl;if(!(o&&e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents)){if(i)th.call(Vf(Vf(n)),r,e);else if(o&&rh.call(Vf(Vf(n)),e))return;n.callback(t,r,e)}},n.touch=new Vl(n.manager,n.handler),n.mouse=new $l(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return Hf(r,t),r.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},r}(zl)}();function nh(t,r,e){return!!Array.isArray(t)&&(Sl(t,e[r],e),!0)}var ih=32,oh=1;function uh(t,r){var e=r.manager;return e?e.get(t):t}function ah(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var sh=function(){function t(t){void 0===t&&(t={}),this.options=Gf({enable:!0},t),this.id=oh++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var r=t.prototype;return r.set=function(t){return Qf(this.options,t),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(t){if(nh(t,"recognizeWith",this))return this;var r=this.simultaneous;return r[(t=uh(t,this)).id]||(r[t.id]=t,t.recognizeWith(this)),this},r.dropRecognizeWith=function(t){return nh(t,"dropRecognizeWith",this)||(t=uh(t,this),delete this.simultaneous[t.id]),this},r.requireFailure=function(t){if(nh(t,"requireFailure",this))return this;var r=this.requireFail;return-1===ql(r,t=uh(t,this))&&(r.push(t),t.requireFailure(this)),this},r.dropRequireFailure=function(t){if(nh(t,"dropRequireFailure",this))return this;t=uh(t,this);var r=ql(this.requireFail,t);return r>-1&&this.requireFail.splice(r,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},r.emit=function(t){var r=this,e=this.state;function n(e){r.manager.emit(e,t)}e<8&&n(r.options.event+ah(e)),n(r.options.event),t.additionalEvent&&n(t.additionalEvent),e>=8&&n(r.options.event+ah(e))},r.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=ih},r.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},r.recognize=function(t){var r=Qf({},t);if(!Tl(this.options.enable,[this,r]))return this.reset(),void(this.state=ih);56&this.state&&(this.state=1),this.state=this.process(r),30&this.state&&this.tryEmit(r)},r.process=function(t){},r.getTouchAction=function(){},r.reset=function(){},t}(),ch=function(t){function r(r){var e;return void 0===r&&(r={}),(e=t.call(this,Gf({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},r))||this).pTime=!1,e.pCenter=!1,e._timer=null,e._input=null,e.count=0,e}Hf(r,t);var e=r.prototype;return e.getTouchAction=function(){return[sl]},e.process=function(t){var r=this,e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&n){if(4!==t.eventType)return this.failTimeout();var u=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||xl(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&u?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){r.state=8,r.tryEmit()},e.interval),2):8}return ih},e.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=ih},this.options.interval),ih},e.reset=function(){clearTimeout(this._timer)},e.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(sh),fh=function(t){function r(r){return void 0===r&&(r={}),t.call(this,Gf({pointers:1},r))||this}Hf(r,t);var e=r.prototype;return e.attrTest=function(t){var r=this.options.pointers;return 0===r||t.pointers.length===r},e.process=function(t){var r=this.state,e=t.eventType,n=6&r,i=this.attrTest(t);return n&&(8&e||!i)?16|r:n||i?4&e?8|r:2&r?4|r:2:ih},r}(sh);function lh(t){return t===ml?"down":8===t?"up":2===t?"left":4===t?"right":""}var hh=function(t){function r(r){var e;return void 0===r&&(r={}),(e=t.call(this,Gf({event:"pan",threshold:10,pointers:1,direction:30},r))||this).pX=null,e.pY=null,e}Hf(r,t);var e=r.prototype;return e.getTouchAction=function(){var t=this.options.direction,r=[];return 6&t&&r.push(ll),t&bl&&r.push(fl),r},e.directionTest=function(t){var r=this.options,e=!0,n=t.distance,i=t.direction,o=t.deltaX,u=t.deltaY;return i&r.direction||(6&r.direction?(i=0===o?1:o<0?2:4,e=o!==this.pX,n=Math.abs(t.deltaX)):(i=0===u?1:u<0?8:ml,e=u!==this.pY,n=Math.abs(t.deltaY))),t.direction=i,e&&n>r.threshold&&i&r.direction},e.attrTest=function(t){return fh.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},e.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var e=lh(r.direction);e&&(r.additionalEvent=this.options.event+e),t.prototype.emit.call(this,r)},r}(fh),ph=function(t){function r(r){return void 0===r&&(r={}),t.call(this,Gf({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},r))||this}Hf(r,t);var e=r.prototype;return e.getTouchAction=function(){return hh.prototype.getTouchAction.call(this)},e.attrTest=function(r){var e,n=this.options.direction;return 30&n?e=r.overallVelocity:6&n?e=r.overallVelocityX:n&bl&&(e=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&n&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&rl(e)>this.options.velocity&&4&r.eventType},e.emit=function(t){var r=lh(t.offsetDirection);r&&this.manager.emit(this.options.event+r,t),this.manager.emit(this.options.event,t)},r}(fh),vh=function(t){function r(r){return void 0===r&&(r={}),t.call(this,Gf({event:"pinch",threshold:0,pointers:2},r))||this}Hf(r,t);var e=r.prototype;return e.getTouchAction=function(){return[cl]},e.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||2&this.state)},e.emit=function(r){if(1!==r.scale){var e=r.scale<1?"in":"out";r.additionalEvent=this.options.event+e}t.prototype.emit.call(this,r)},r}(fh),dh=function(t){function r(r){return void 0===r&&(r={}),t.call(this,Gf({event:"rotate",threshold:0,pointers:2},r))||this}Hf(r,t);var e=r.prototype;return e.getTouchAction=function(){return[cl]},e.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||2&this.state)},r}(fh),yh=function(t){function r(r){var e;return void 0===r&&(r={}),(e=t.call(this,Gf({event:"press",pointers:1,time:251,threshold:9},r))||this)._timer=null,e._input=null,e}Hf(r,t);var e=r.prototype;return e.getTouchAction=function(){return[al]},e.process=function(t){var r=this,e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout(function(){r.state=8,r.tryEmit()},e.time);else if(4&t.eventType)return 8;return ih},e.reset=function(){clearTimeout(this._timer)},e.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=el(),this.manager.emit(this.options.event,this._input)))},r}(sh),gh={domEvents:!1,touchAction:ul,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},mh=[[dh,{enable:!1}],[vh,{enable:!1},["rotate"]],[ph,{direction:6}],[hh,{direction:6},["swipe"]],[ch],[ch,{event:"doubletap",taps:2},["tap"]],[yh]];function bh(t,r){var e,n=t.element;n.style&&(Sl(t.options.cssProps,function(i,o){e=nl(n.style,o),r?(t.oldCssProps[e]=n.style[e],n.style[e]=i):n.style[e]=t.oldCssProps[e]||""}),r||(t.oldCssProps={}))}var _h=function(){function t(t,r){var e,n=this;this.options=Qf({},gh,r||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((e=this).options.inputClass||(vl?Xl:dl?Vl:pl?eh:$l))(e,Nl),this.touchAction=new El(this,this.options.touchAction),bh(this,!0),Sl(this.options.recognizers,function(t){var r=n.add(new t[0](t[1]));t[2]&&r.recognizeWith(t[2]),t[3]&&r.requireFailure(t[3])},this)}var r=t.prototype;return r.set=function(t){return Qf(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},r.stop=function(t){this.session.stopped=t?2:1},r.recognize=function(t){var r=this.session;if(!r.stopped){var e;this.touchAction.preventDefaults(t);var n=this.recognizers,i=r.curRecognizer;(!i||i&&8&i.state)&&(r.curRecognizer=null,i=null);for(var o=0;o<n.length;)e=n[o],2===r.stopped||i&&e!==i&&!e.canRecognizeWith(i)?e.reset():e.recognize(t),!i&&14&e.state&&(r.curRecognizer=e,i=e),o++}},r.get=function(t){if(t instanceof sh)return t;for(var r=this.recognizers,e=0;e<r.length;e++)if(r[e].options.event===t)return r[e];return null},r.add=function(t){if(nh(t,"add",this))return this;var r=this.get(t.options.event);return r&&this.remove(r),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},r.remove=function(t){if(nh(t,"remove",this))return this;var r=this.get(t);if(t){var e=this.recognizers,n=ql(e,r);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},r.on=function(t,r){if(void 0===t||void 0===r)return this;var e=this.handlers;return Sl(Ml(t),function(t){e[t]=e[t]||[],e[t].push(r)}),this},r.off=function(t,r){if(void 0===t)return this;var e=this.handlers;return Sl(Ml(t),function(t){r?e[t]&&e[t].splice(ql(e[t],r),1):delete e[t]}),this},r.emit=function(t,r){this.options.domEvents&&function(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}(t,r);var e=this.handlers[t]&&this.handlers[t].slice();if(e&&e.length){r.type=t,r.preventDefault=function(){r.srcEvent.preventDefault()};for(var n=0;n<e.length;)e[n](r),n++}},r.destroy=function(){this.element&&bh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),wh={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Sh=function(t){function r(){var e,n=r.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).started=!1,e}return Hf(r,t),r.prototype.handler=function(t){var r=wh[t.type];if(1===r&&(this.started=!0),this.started){var e=Th.call(this,t,r);12&r&&e[0].length-e[1].length===0&&(this.started=!1),this.callback(this.manager,r,{pointers:e[0],changedPointers:e[1],pointerType:yl,srcEvent:t})}},r}(zl);function Th(t,r){var e=Jl(t.touches),n=Jl(t.changedTouches);return 12&r&&(e=Gl(e.concat(n),"identifier",!0)),[e,n]}function Oh(t,r,e){var n="DEPRECATED METHOD: "+r+"\n"+e+" AT \n";return function(){var r=new Error("get-stack-trace"),e=r&&r.stack?r.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,n,e),t.apply(this,arguments)}}var Eh=Oh(function(t,r,e){for(var n=Object.keys(r),i=0;i<n.length;)(!e||e&&void 0===t[n[i]])&&(t[n[i]]=r[n[i]]),i++;return t},"extend","Use `assign`."),Ah=Oh(function(t,r){return Eh(t,r,!0)},"merge","Use `assign`.");function Ih(t,r,e){var n,i=r.prototype;(n=t.prototype=Object.create(i)).constructor=t,n._super=i,e&&Qf(n,e)}function jh(t,r){return function(){return t.apply(r,arguments)}}var xh=function(){var t=function(t,r){return void 0===r&&(r={}),new _h(t,Gf({recognizers:mh.concat()},r))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=ml,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=bl,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=ml,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=ih,t.Manager=_h,t.Input=zl,t.TouchAction=El,t.TouchInput=Vl,t.MouseInput=$l,t.PointerEventInput=Xl,t.TouchMouseInput=eh,t.SingleTouchInput=Sh,t.Recognizer=sh,t.AttrRecognizer=fh,t.Tap=ch,t.Pan=hh,t.Swipe=ph,t.Pinch=vh,t.Rotate=dh,t.Press=yh,t.on=Rl,t.off=Fl,t.each=Sl,t.merge=Ah,t.extend=Eh,t.bindFn=jh,t.assign=Qf,t.inherit=Ih,t.bindFn=jh,t.prefixed=nl,t.toArray=Jl,t.inArray=ql,t.uniqueArray=Gl,t.splitStr=Ml,t.boolOrFn=Tl,t.hasParent=Al,t.addEventListeners=Rl,t.removeEventListeners=Fl,t.defaults=Qf({},gh,{preset:mh}),t}();const Ph=rs("DELETE");function Dh(){const t=kh(...arguments);return Nh(t),t}function kh(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(r.length<2)return r[0];if(r.length>2)return kh(Dh(r[0],r[1]),...ds(r).call(r,2));const n=r[0],i=r[1];if(n instanceof Date&&i instanceof Date)return n.setTime(i.getTime()),n;for(const t of As(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===Ph?delete n[t]:null===n[t]||null===i[t]||"object"!=typeof n[t]||"object"!=typeof i[t]||Rs(n[t])||Rs(i[t])?n[t]=Ch(i[t]):n[t]=kh(n[t],i[t]));return n}function Ch(t){return Rs(t)?ni(t).call(t,t=>Ch(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):kh({},t):t}function Nh(t){for(const r of Qs(t))t[r]===Ph?delete t[r]:"object"==typeof t[r]&&null!==t[r]&&Nh(t[r])}const Mh="undefined"!=typeof window?window.Hammer||xh:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function Rh(t){var r;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const e=Mh(this._dom.overlay);e.on("tap",Ne(r=this._onTapOverlay).call(r,this)),this._cleanupQueue.push(()=>{e.destroy()});const n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];vc(n).call(n,t=>{e.on(t,t=>{t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=r=>{(function(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1})(r.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=t=>{("key"in t?"Escape"===t.key:27===t.keyCode)&&this.deactivate()}}Jf(Rh.prototype),Rh.current=null,Rh.prototype.destroy=function(){this.deactivate();for(const r of xc(t=this._cleanupQueue).call(t,0).toReversed()){var t;r()}},Rh.prototype.activate=function(){Rh.current&&Rh.current.deactivate(),Rh.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Rh.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Rh.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Fh,Lh,zh,qh,Uh,Wh,Yh,Bh,Xh,Jh,Gh,Hh,Vh,Kh,Qh,$h,Zh,tp,rp,ep,np,ip,op,up,ap,sp,cp,fp,lp,hp,pp,vp={},dp={exports:{}};function yp(){return Lh?Fh:(Lh=1,Fh=f()(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))}function gp(){if(qh)return zh;qh=1;var t=f(),r=Et(),e=I(),n=yp(),i=Object.isExtensible,o=t(function(){});return zh=o||n?function(t){return!!r(t)&&((!n||"ArrayBuffer"!==e(t))&&(!i||i(t)))}:i}function mp(){return Wh?Uh:(Wh=1,Uh=!f()(function(){return Object.isExtensible(Object.preventExtensions({}))}))}function bp(){if(Yh)return dp.exports;Yh=1;var t=ee(),r=h(),e=so(),n=Et(),i=gr(),o=te().f,u=bo(),a=So(),s=gp(),c=mr(),f=mp(),l=!1,p=c("meta"),v=0,d=function(t){o(t,p,{value:{objectID:"O"+v++,weakData:{}}})},y=dp.exports={enable:function(){y.enable=function(){},l=!0;var e=u.f,n=r([].splice),i={};i[p]=1,e(i).length&&(u.f=function(t){for(var r=e(t),i=0,o=r.length;i<o;i++)if(r[i]===p){n(r,i,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,r){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,p)){if(!s(t))return"F";if(!r)return"E";d(t)}return t[p].objectID},getWeakData:function(t,r){if(!i(t,p)){if(!s(t))return!0;if(!r)return!1;d(t)}return t[p].weakData},onFreeze:function(t){return f&&l&&s(t)&&!i(t,p)&&d(t),t}};return e[p]=!0,dp.exports}function _p(){if(Xh)return Bh;Xh=1;var t=br(),r=Pa(),e=t("iterator"),n=Array.prototype;return Bh=function(t){return void 0!==t&&(r.Array===t||n[e]===t)}}function wp(){if(Gh)return Jh;Gh=1;var t=In(),r=gr(),e=Pa();return Jh=function(n){var i=t(n);return"Arguments"===i&&(i="Array"),r(e,i)?e[i]:void 0}}function Sp(){if(Vh)return Hh;Vh=1;var t=Mt(),r=St(),e=wp(),n=br()("iterator");return Hh=function(i){if(!r(i))return t(i,n)||t(i,"@@iterator")||e(i)}}function Tp(){if(Qh)return Kh;Qh=1;var t=R(),r=x(),e=Zr(),n=Ct(),i=Sp(),o=TypeError;return Kh=function(u,a){var s=arguments.length<2?i(u):a;if(r(s))return e(t(s,u));throw new o(n(u)+" is not iterable")},Kh}function Op(){if(Zh)return $h;Zh=1;var t=R(),r=Zr(),e=Mt();return $h=function(n,i,o){var u,a;r(n);try{if(!(u=e(n,"return"))){if("throw"===i)throw o;return o}u=t(u,n)}catch(t){a=!0,u=t}if("throw"===i)throw o;if(a)throw u;return r(u),o},$h}function Ep(){if(rp)return tp;rp=1;var t=Ar(),r=R(),e=Zr(),n=Ct(),i=_p(),o=ze(),u=p(),a=Tp(),s=Sp(),c=Op(),f=TypeError,l=function(t,r){this.stopped=t,this.result=r},h=l.prototype;return tp=function(p,v,d){var y,g,m,b,_,w,S,T=d&&d.that,O=!(!d||!d.AS_ENTRIES),E=!(!d||!d.IS_RECORD),A=!(!d||!d.IS_ITERATOR),I=!(!d||!d.INTERRUPTED),j=t(v,T),x=function(t){var r=y;return y=void 0,r&&c(r,"normal"),new l(!0,t)},P=function(t){return O?(e(t),I?j(t[0],t[1],x):j(t[0],t[1])):I?j(t,x):j(t)};if(E)y=p.iterator;else if(A)y=p;else{if(!(g=s(p)))throw new f(n(p)+" is not iterable");if(i(g)){for(m=0,b=o(p);b>m;m++)if((_=P(p[m]))&&u(h,_))return _;return new l(!1)}y=a(p,g)}for(w=E?p.next:y.next;!(S=r(w,y)).done;){var D=S.value;try{_=P(D)}catch(t){if(!y)throw t;c(y,"throw",t)}if("object"==typeof _&&_&&u(h,_))return _}return new l(!1)},tp}function Ap(){if(np)return ep;np=1;var t=p(),r=TypeError;return ep=function(e,n){if(t(n,e))return e;throw new r("Incorrect invocation")}}function Ip(){if(op)return ip;op=1;var t=ee(),r=E(),e=bp(),n=R(),i=f(),o=re(),u=Ep(),a=Ap(),s=x(),c=Et(),l=St(),h=Qo(),p=te().f,v=Cn().forEach,d=M(),y=Zo(),g=y.set,m=y.getterFor;return ip=function(f,y,b){var _,w=-1!==f.indexOf("Map"),S=-1!==f.indexOf("Weak"),T=w?"set":"add",O=r[f],E=O&&O.prototype,A={};if(d&&s(O)&&(S||E.forEach&&!i(function(){(new O).entries().next()}))){var I=(_=y(function(t,r){g(a(t,I),{type:f,collection:new O}),l(r)||u(r,t[T],{that:t,AS_ENTRIES:w})})).prototype,j=m(f);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var r="add"===t||"set"===t;!(t in E)||S&&"clear"===t||o(I,t,function(e,i){var o=this,u=j(o).collection;if(!r&&S&&!c(e))return"get"===t&&void 0;var a=u[t]("forEach"===t?function(t,r){n(e,i,t,r,o)}:0===e?0:e,i);return r?o:a})}),S||p(I,"size",{configurable:!0,get:function(){return j(this).collection.size}})}else _=b.getConstructor(y,f,w,T),e.enable();return h(_,f,!1,!0),A[f]=_,t({global:!0,forced:!0},A),S||b.setStrong(_,f,w),_}}function jp(){if(ap)return up;ap=1;var t=Po();return up=function(r,e,n){for(var i in e)n&&n.unsafe&&r[i]?r[i]=e[i]:t(r,i,e[i],n);return r}}function xp(){if(cp)return sp;cp=1;var t=It(),r=Do(),e=br(),n=M(),i=e("species");return sp=function(e){var o=t(e);n&&o&&!o[i]&&r(o,i,{configurable:!0,get:function(){return this}})}}function Pp(){if(lp)return fp;lp=1;var t=yo(),r=Do(),e=jp(),n=Ar(),i=Ap(),o=St(),u=Ep(),a=qa(),s=Ua(),c=xp(),f=M(),l=bp().fastKey,h=Zo(),p=h.set,v=h.getterFor;return fp={getConstructor:function(a,s,c,h){var d=a(function(r,e){i(r,y),p(r,{type:s,index:t(null),first:null,last:null,size:0}),f||(r.size=0),o(e)||u(e,r[h],{that:r,AS_ENTRIES:c})}),y=d.prototype,g=v(s),m=function(t,r,e){var n,i,o=g(t),u=b(t,r);return u?u.value=e:(o.last=u={index:i=l(r,!0),key:r,value:e,previous:n=o.last,next:null,removed:!1},o.first||(o.first=u),n&&(n.next=u),f?o.size++:t.size++,"F"!==i&&(o.index[i]=u)),t},b=function(t,r){var e,n=g(t),i=l(r);if("F"!==i)return n.index[i];for(e=n.first;e;e=e.next)if(e.key===r)return e};return e(y,{clear:function(){for(var r=g(this),e=r.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;r.first=r.last=null,r.index=t(null),f?r.size=0:this.size=0},delete:function(t){var r=this,e=g(r),n=b(r,t);if(n){var i=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),e.first===n&&(e.first=i),e.last===n&&(e.last=o),f?e.size--:r.size--}return!!n},forEach:function(t){for(var r,e=g(this),i=n(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:e.first;)for(i(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!b(this,t)}}),e(y,c?{get:function(t){var r=b(this,t);return r&&r.value},set:function(t,r){return m(this,0===t?0:t,r)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),f&&r(y,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(t,r,e){var n=r+" Iterator",i=v(r),o=v(n);a(t,r,function(t,r){p(this,{type:n,target:t,state:i(t),kind:r,last:null})},function(){for(var t=o(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?s("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=null,s(void 0,!0))},e?"entries":"values",!e,!0),c(r)}},fp}function Dp(){return pp||(pp=1,hp||(hp=1,Ip()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Pp()))),vp}var kp,Cp,Np,Mp,Rp,Fp={};function Lp(){return Cp?kp:(Cp=1,kp=function(t,r){return 1===r?function(r,e){return r[t](e)}:function(r,e,n){return r[t](e,n)}})}function zp(){if(Mp)return Np;Mp=1;var t=It(),r=Lp(),e=t("Map");return Np={Map:e,set:r("set",2),get:r("get",1),has:r("has",1),remove:r("delete",1),proto:e.prototype}}var qp,Up={};var Wp,Yp={};var Bp,Xp,Jp,Gp,Hp,Vp,Kp,Qp,$p,Zp={};function tv(){if(Xp)return Bp;Xp=1;var t=h(),r=Fe(),e=zi(),n=Tt(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,s){var c,f,l=e(n(a)),h=r(s),p=l.length;return h<0||h>=p?t?"":void 0:(c=o(l,h))<55296||c>56319||h+1===p||(f=o(l,h+1))<56320||f>57343?t?i(l,h):c:t?u(l,h,h+2):f-56320+(c-55296<<10)+65536}};return Bp={codeAt:a(!1),charAt:a(!0)}}function rv(){if(Jp)return Zp;Jp=1;var t=tv().charAt,r=zi(),e=Zo(),n=qa(),i=Ua(),o="String Iterator",u=e.set,a=e.getterFor(o);return n(String,"String",function(t){u(this,{type:o,string:r(t),index:0})},function(){var r,e=a(this),n=e.string,o=e.index;return o>=n.length?i(void 0,!0):(r=t(n,o),e.index+=r.length,i(r,!1))}),Zp}function ev(){return Hp?Gp:(Hp=1,Wa(),Dp(),function(){if(Rp)return Fp;Rp=1;var t=ee(),r=h(),e=Nt(),n=Tt(),i=Ep(),o=oi(),u=zp(),a=hr(),s=f(),c=u.Map,l=u.has,p=u.get,v=u.set,d=r([].push),y=a||s(function(){return 1!==c.groupBy("ab",function(t){return t}).get("a").length});t({target:"Map",stat:!0,forced:a||y},{groupBy:function(t,r){n(t),e(r);var u=new c,a=0;return i(t,function(t){o(a);var e=r(t,a++);l(u,e)?d(p(u,e),t):v(u,e,[t])}),u}})}(),function(){if(qp)return Up;qp=1;var t=ee(),r=zp(),e=hr(),n=r.get,i=r.has,o=r.set;t({target:"Map",proto:!0,real:!0,forced:e},{getOrInsert:function(t,r){return i(this,t)?n(this,t):(o(this,t,r),r)}})}(),function(){if(Wp)return Yp;Wp=1;var t=ee(),r=Nt(),e=zp(),n=hr(),i=e.get,o=e.has,u=e.set;t({target:"Map",proto:!0,real:!0,forced:n},{getOrInsertComputed:function(t,e){var n=o(this,t);if(r(e),n)return i(this,t);0===t&&1/t==-1/0&&(t=0);var a=e(t);return u(this,t,a),a}})}(),rv(),Gp=At().Map)}function nv(){if(Kp)return Vp;Kp=1;var t=ev();return Ba(),Vp=t}var iv,ov,uv,av,sv,cv,fv,lv,hv,pv=c($p?Qp:($p=1,Qp=nv())),vv={};function dv(){return uv?ov:(uv=1,function(){if(iv)return vv;iv=1;var t=ee(),r=Cn().some;t({target:"Array",proto:!0,forced:!Ue()("some")},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}(),ov=oe()("Array","some"))}function yv(){if(sv)return av;sv=1;var t=p(),r=dv(),e=Array.prototype;return av=function(n){var i=n.some;return n===e||t(e,n)&&i===e.some?r:i}}function gv(){return fv?cv:(fv=1,cv=yv())}var mv,bv,_v,wv,Sv,Tv,Ov,Ev,Av=c(hv?lv:(hv=1,lv=gv()));function Iv(){return bv?mv:(bv=1,Wa(),mv=oe()("Array","keys"))}function jv(){return wv?_v:(wv=1,_v=Iv())}function xv(){if(Tv)return Sv;Tv=1,Ba();var t=In(),r=gr(),e=p(),n=jv(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Sv=function(u){var a=u.keys;return u===i||e(i,u)&&a===i.keys||r(o,t(u))?n:a}}var Pv,Dv,kv,Cv,Nv,Mv,Rv,Fv,Lv,zv,qv,Uv,Wv,Yv,Bv,Xv,Jv,Gv=c(Ev?Ov:(Ev=1,Ov=xv())),Hv={};function Vv(){if(Dv)return Pv;Dv=1;var t=ne(),r=Math.floor,e=function(n,i){var o=n.length;if(o<8)for(var u,a,s=1;s<o;){for(a=s,u=n[s];a&&i(n[a-1],u)>0;)n[a]=n[--a];a!==s++&&(n[a]=u)}else for(var c=r(o/2),f=e(t(n,0,c),i),l=e(t(n,c),i),h=f.length,p=l.length,v=0,d=0;v<h||d<p;)n[v+d]=v<h&&d<p?i(f[v],l[d])<=0?f[v++]:l[d++]:v<h?f[v++]:l[d++];return n};return Pv=e}function Kv(){if(Cv)return kv;Cv=1;var t=jt().match(/firefox\/(\d+)/i);return kv=!!t&&+t[1]}function Qv(){return Mv?Nv:(Mv=1,Nv=/MSIE|Trident/.test(jt()))}function $v(){if(Fv)return Rv;Fv=1;var t=jt().match(/AppleWebKit\/(\d+)\./);return Rv=!!t&&+t[1]}function Zv(){if(Lv)return Hv;Lv=1;var t=ee(),r=h(),e=Nt(),n=yr(),i=ze(),o=yc(),u=zi(),a=f(),s=Vv(),c=Ue(),l=Kv(),p=Qv(),v=xt(),d=$v(),y=[],g=r(y.sort),m=r(y.push),b=a(function(){y.sort(void 0)}),_=a(function(){y.sort(null)}),w=c("sort"),S=!a(function(){if(v)return v<70;if(!(l&&l>3)){if(p)return!0;if(d)return d<603;var t,r,e,n,i="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)y.push({k:r+n,v:e})}for(y.sort(function(t,r){return r.v-t.v}),n=0;n<y.length;n++)r=y[n].k.charAt(0),i.charAt(i.length-1)!==r&&(i+=r);return"DGBEFHACIJK"!==i}});return t({target:"Array",proto:!0,forced:b||!_||!w||!S},{sort:function(t){void 0!==t&&e(t);var r=n(this);if(S)return void 0===t?g(r):g(r,t);var a,c,f=[],l=i(r);for(c=0;c<l;c++)c in r&&m(f,r[c]);for(s(f,function(t){return function(r,e){if(void 0===e)return-1;if(void 0===r)return 1;if(void 0!==t)return+t(r,e)||0;var n=u(r),i=u(e);return n===i?0:n>i?1:-1}}(t)),a=i(f),c=0;c<a;)r[c]=f[c++];for(;c<l;)o(r,c++);return r}}),Hv}function td(){return qv?zv:(qv=1,Zv(),zv=oe()("Array","sort"))}function rd(){if(Wv)return Uv;Wv=1;var t=p(),r=td(),e=Array.prototype;return Uv=function(n){var i=n.sort;return n===e||t(e,n)&&i===e.sort?r:i}}function ed(){return Bv?Yv:(Bv=1,Yv=rd())}var nd,id,od,ud,ad,sd,cd,fd,ld=c(Jv?Xv:(Jv=1,Xv=ed()));function hd(){return id?nd:(id=1,Wa(),nd=oe()("Array","values"))}function pd(){return ud?od:(ud=1,od=hd())}function vd(){if(sd)return ad;sd=1,Ba();var t=In(),r=gr(),e=p(),n=pd(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return ad=function(u){var a=u.values;return u===i||e(i,u)&&a===i.values||r(o,t(u))?n:a}}var dd,yd,gd,md,bd,_d,wd=c(fd?cd:(fd=1,cd=vd()));function Sd(){return yd?dd:(yd=1,Wa(),rv(),Cu(),dd=Go().f("iterator"))}function Td(){if(md)return gd;md=1;var t=Sd();return Ba(),gd=t}var Od,Ed,Ad,Id,jd,xd,Pd,Dd,kd=c(_d?bd:(_d=1,bd=Td()));function Cd(){return Ed?Od:(Ed=1,Wa(),Od=oe()("Array","entries"))}function Nd(){return Id?Ad:(Id=1,Ad=Cd())}function Md(){if(xd)return jd;xd=1,Ba();var t=In(),r=gr(),e=p(),n=Nd(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return jd=function(u){var a=u.entries;return u===i||e(i,u)&&a===i.entries||r(o,t(u))?n:a}}var Rd=c(Dd?Pd:(Dd=1,Pd=Md()));const Fd=[];for(let t=0;t<256;++t)Fd.push((t+256).toString(16).slice(1));const Ld=new Uint8Array(16);function zd(t,r,e){return crypto.randomUUID?crypto.randomUUID():function(t){t=t||{};const r=t.random??t.rng?.()??crypto.getRandomValues(Ld);if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(t,r=0){return(Fd[t[r+0]]+Fd[t[r+1]]+Fd[t[r+2]]+Fd[t[r+3]]+"-"+Fd[t[r+4]]+Fd[t[r+5]]+"-"+Fd[t[r+6]]+Fd[t[r+7]]+"-"+Fd[t[r+8]]+Fd[t[r+9]]+"-"+Fd[t[r+10]]+Fd[t[r+11]]+Fd[t[r+12]]+Fd[t[r+13]]+Fd[t[r+14]]+Fd[t[r+15]]).toLowerCase()}(r)}(t)}function qd(t){return"string"==typeof t||"number"==typeof t}class Ud{_subscribers={"*":[],add:[],remove:[],update:[]};_trigger(t,r,e){var n;if("*"===t)throw new Error("Cannot trigger event *");vc(n=[...this._subscribers[t],...this._subscribers["*"]]).call(n,n=>{n(t,r,null!=e?e:null)})}on(t,r){"function"==typeof r&&this._subscribers[t].push(r)}off(t,r){var e;this._subscribers[t]=Gn(e=this._subscribers[t]).call(e,t=>t!==r)}subscribe=(()=>Ud.prototype.on)();unsubscribe=(()=>Ud.prototype.off)()}var Wd,Yd,Bd={};function Xd(){return Yd||(Yd=1,Wd||(Wd=1,Ip()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Pp()))),Bd}var Jd,Gd,Hd,Vd,Kd,Qd,$d,Zd,ty,ry,ey,ny,iy,oy,uy,ay,sy,cy,fy,ly,hy,py={};function vy(){if(Gd)return Jd;Gd=1;var t=Ct(),r=TypeError;return Jd=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new r(t(e)+" is not a set")}}function dy(){if(Vd)return Hd;Vd=1;var t=It(),r=Lp(),e=t("Set"),n=e.prototype;return Hd={Set:e,add:r("add",1),has:r("has",1),remove:r("delete",1),proto:n}}function yy(){if(Qd)return Kd;Qd=1;var t=R();return Kd=function(r,e,n){for(var i,o,u=n?r:r.iterator,a=r.next;!(i=t(a,u)).done;)if(void 0!==(o=e(i.value)))return o},Kd}function gy(){if(Zd)return $d;Zd=1;var t=yy();return $d=function(r,e,n){return n?t(r.keys(),e,!0):r.forEach(e)},$d}function my(){if(ry)return ty;ry=1;var t=dy(),r=gy(),e=t.Set,n=t.add;return ty=function(t){var i=new e;return r(t,function(t){n(i,t)}),i},ty}function by(){return ny||(ny=1,ey=function(t){return t.size}),ey}function _y(){return oy?iy:(oy=1,iy=function(t){return{iterator:t,next:t.next,done:!1}})}function wy(){if(ay)return uy;ay=1;var t=Nt(),r=Zr(),e=R(),n=Fe(),i=_y(),o="Invalid size",u=RangeError,a=TypeError,s=Math.max,c=function(r,e){this.set=r,this.size=s(e,0),this.has=t(r.has),this.keys=t(r.keys)};return c.prototype={getIterator:function(){return i(r(e(this.keys,this.set)))},includes:function(t){return e(this.has,this.set,t)}},uy=function(t){r(t);var e=+t.size;if(e!=e)throw new a(o);var i=n(e);if(i<0)throw new u(o);return new c(t,i)}}function Sy(){if(cy)return sy;cy=1;var t=vy(),r=dy(),e=my(),n=by(),i=wy(),o=gy(),u=yy(),a=r.has,s=r.remove;return sy=function(r){var c=t(this),f=i(r),l=e(c);return n(l)<=f.size?o(l,function(t){f.includes(t)&&s(l,t)}):u(f.getIterator(),function(t){a(l,t)&&s(l,t)}),l}}function Ty(){return ly?fy:(ly=1,fy=function(){return!1})}var Oy,Ey,Ay,Iy={};function jy(){if(Ey)return Oy;Ey=1;var t=vy(),r=dy(),e=by(),n=wy(),i=gy(),o=yy(),u=r.Set,a=r.add,s=r.has;return Oy=function(r){var c=t(this),f=n(r),l=new u;return e(c)>f.size?o(f.getIterator(),function(t){s(c,t)&&a(l,t)}):i(c,function(t){f.includes(t)&&a(l,t)}),l}}var xy,Py,Dy,ky={};function Cy(){if(Py)return xy;Py=1;var t=vy(),r=dy().has,e=by(),n=wy(),i=gy(),o=yy(),u=Op();return xy=function(a){var s=t(this),c=n(a);if(e(s)<=c.size)return!1!==i(s,function(t){if(c.includes(t))return!1},!0);var f=c.getIterator();return!1!==o(f,function(t){if(r(s,t))return u(f.iterator,"normal",!1)})},xy}var Ny,My,Ry,Fy={};function Ly(){if(My)return Ny;My=1;var t=vy(),r=by(),e=gy(),n=wy();return Ny=function(i){var o=t(this),u=n(i);return!(r(o)>u.size)&&!1!==e(o,function(t){if(!u.includes(t))return!1},!0)}}var zy,qy,Uy,Wy={};function Yy(){if(qy)return zy;qy=1;var t=vy(),r=dy().has,e=by(),n=wy(),i=yy(),o=Op();return zy=function(u){var a=t(this),s=n(u);if(e(a)<s.size)return!1;var c=s.getIterator();return!1!==i(c,function(t){if(!r(a,t))return o(c.iterator,"normal",!1)})},zy}var By,Xy,Jy,Gy,Hy,Vy={};function Ky(){if(Xy)return By;Xy=1;var t=vy(),r=dy(),e=my(),n=wy(),i=yy(),o=r.add,u=r.has,a=r.remove;return By=function(r){var s=t(this),c=n(r).getIterator(),f=e(s);return i(c,function(t){u(s,t)?a(f,t):o(f,t)}),f}}function Qy(){return Gy?Jy:(Gy=1,Jy=function(t){try{var r=new Set,e={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return r.clear(),r.add(4),function(){return{done:!0}}}})}},n=r[t](e);return 1===n.size&&4===n.values().next().value}catch(t){return!1}})}var $y,Zy,tg,rg,eg,ng,ig,og,ug,ag={};function sg(){if(Zy)return $y;Zy=1;var t=vy(),r=dy().add,e=my(),n=wy(),i=yy();return $y=function(o){var u=t(this),a=n(o).getIterator(),s=e(u);return i(a,function(t){r(s,t)}),s}}function cg(){return eg?rg:(eg=1,Wa(),Xd(),function(){if(hy)return py;hy=1;var t=ee(),r=Sy(),e=f();t({target:"Set",proto:!0,real:!0,forced:!Ty()("difference",function(t){return 0===t.size})||e(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var e=t++>1;return r.has(1)&&r.clear(),{done:e,value:2}}}}},r=new Set([1,2,3,4]);return 3!==r.difference(t).size})},{difference:r})}(),function(){if(Ay)return Iy;Ay=1;var t=ee(),r=f(),e=jy();t({target:"Set",proto:!0,real:!0,forced:!Ty()("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||r(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:e})}(),function(){if(Dy)return ky;Dy=1;var t=ee(),r=Cy();t({target:"Set",proto:!0,real:!0,forced:!Ty()("isDisjointFrom",function(t){return!t})},{isDisjointFrom:r})}(),function(){if(Ry)return Fy;Ry=1;var t=ee(),r=Ly();t({target:"Set",proto:!0,real:!0,forced:!Ty()("isSubsetOf",function(t){return t})},{isSubsetOf:r})}(),function(){if(Uy)return Wy;Uy=1;var t=ee(),r=Yy();t({target:"Set",proto:!0,real:!0,forced:!Ty()("isSupersetOf",function(t){return!t})},{isSupersetOf:r})}(),function(){if(Hy)return Vy;Hy=1;var t=ee(),r=Ky(),e=Qy();t({target:"Set",proto:!0,real:!0,forced:!Ty()("symmetricDifference")||!e("symmetricDifference")},{symmetricDifference:r})}(),function(){if(tg)return ag;tg=1;var t=ee(),r=sg(),e=Qy();t({target:"Set",proto:!0,real:!0,forced:!Ty()("union")||!e("union")},{union:r})}(),rv(),rg=At().Set)}function fg(){if(ig)return ng;ig=1;var t=cg();return Ba(),ng=t}var lg,hg,pg,vg,dg,yg,gg,mg,bg,_g,wg,Sg,Tg,Og,Eg,Ag,Ig=c(ug?og:(ug=1,og=fg()));function jg(){if(hg)return lg;hg=1;var t=wp(),r=br()("iterator");return lg=function(e){return e[r]||e["@@iterator"]||t(e)}}function xg(){if(vg)return pg;vg=1;var t=R(),r=x(),e=Ct(),n=jg(),i=TypeError;return pg=function(o){var u=n(o);if(r(u))return t(u,o);throw new i(e(o)+" is not iterable")}}function Pg(){return yg?dg:(yg=1,Wa(),rv(),dg=xg())}function Dg(){if(mg)return gg;mg=1;var t=Pg();return Ba(),gg=t}function kg(){return _g?bg:(_g=1,bg=Dg())}function Cg(){return Sg?wg:(Sg=1,wg=kg())}function Ng(){return Og?Tg:(Og=1,Tg=Cg())}var Mg=c(Ag?Eg:(Ag=1,Eg=Ng()));class Rg{constructor(t){this._pairs=t}*[kd](){for(const[t,r]of this._pairs)yield[t,r]}*entries(){for(const[t,r]of this._pairs)yield[t,r]}*keys(){for(const[t]of this._pairs)yield t}*values(){for(const[,t]of this._pairs)yield t}toIdArray(){var t;return ni(t=[...this._pairs]).call(t,t=>t[0])}toItemArray(){var t;return ni(t=[...this._pairs]).call(t,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const t=yf(null);for(const[r,e]of this._pairs)t[r]=e;return t}toMap(){return new pv(this._pairs)}toIdSet(){return new Ig(this.toIdArray())}toItemSet(){return new Ig(this.toItemArray())}cache(){return new Rg([...this._pairs])}distinct(t){const r=new Ig;for(const[e,n]of this._pairs)r.add(t(n,e));return r}filter(t){const r=this._pairs;return new Rg({*[kd](){for(const[e,n]of r)t(n,e)&&(yield[e,n])}})}forEach(t){for(const[r,e]of this._pairs)t(e,r)}map(t){const r=this._pairs;return new Rg({*[kd](){for(const[e,n]of r)yield[e,t(n,e)]}})}max(t){const r=Mg(this._pairs);let e=r.next();if(e.done)return null;let n=e.value[1],i=t(e.value[1],e.value[0]);for(;!(e=r.next()).done;){const[r,o]=e.value,u=t(o,r);u>i&&(i=u,n=o)}return n}min(t){const r=Mg(this._pairs);let e=r.next();if(e.done)return null;let n=e.value[1],i=t(e.value[1],e.value[0]);for(;!(e=r.next()).done;){const[r,o]=e.value,u=t(o,r);u<i&&(i=u,n=o)}return n}reduce(t,r){for(const[e,n]of this._pairs)r=t(r,n,e);return r}sort(t){return new Rg({[kd]:()=>Mg([...this._pairs].toSorted((r,e)=>{let[n,i]=r,[o,u]=e;return t(i,u,n,o)}))})}}class Fg{_queue=[];_timeout=null;_extended=null;constructor(t){this.delay=null,this.max=1/0,this.setOptions(t)}setOptions(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}static extend(t,r){const e=new Fg(r);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=()=>{e.flush()};const n=[{name:"flush",original:void 0}];if(r&&r.replace)for(let i=0;i<r.replace.length;i++){const o=r.replace[i];n.push({name:o,original:t[o]}),e.replace(t,o)}return e._extended={object:t,methods:n},e}destroy(){if(this.flush(),this._extended){const t=this._extended.object,r=this._extended.methods;for(let e=0;e<r.length;e++){const n=r[e];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}replace(t,r){const e=this,n=t[r];if(!n)throw new Error("Method "+r+" undefined");t[r]=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.queue({args:r,fn:n,context:this})}}queue(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}_flushIfNeeded(){this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Yf(()=>{this.flush()},this.delay))}flush(){var t,r;vc(t=xc(r=this._queue).call(r,0)).call(t,t=>{t.fn.apply(t.context||t.fn,t.args||[])})}}class Lg extends Ud{get idProp(){return this._idProp}_queue=null;constructor(t,r){super(),t&&!Rs(t)&&(r=t,t=[]),this._options=r||{},this._data=new pv,this.length=0,this._idProp=this._options.fieldId||"id",t&&t.length&&this.add(t),this.setOptions(r)}setOptions(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Fg.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}add(t,r){const e=[];let n;if(Rs(t)){const r=ni(t).call(t,t=>t[this._idProp]);if(Av(r).call(r,t=>this._data.has(t)))throw new Error("A duplicate id was found in the parameter array.");for(let r=0,i=t.length;r<i;r++)n=this._addItem(t[r]),e.push(n)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");n=this._addItem(t),e.push(n)}return e.length&&this._trigger("add",{items:e},r),e}update(t,r){const e=[],n=[],i=[],o=[],u=this._idProp,a=t=>{const r=t[u];if(null!=r&&this._data.has(r)){const e=t,u=Wc({},this._data.get(r)),a=this._updateItem(e);n.push(a),o.push(e),i.push(u)}else{const r=this._addItem(t);e.push(r)}};if(Rs(t))for(let r=0,e=t.length;r<e;r++)t[r]&&"object"==typeof t[r]?a(t[r]):console.warn("Ignoring input item, which is not an object at index "+r);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");a(t)}if(e.length&&this._trigger("add",{items:e},r),n.length){const t={items:n,oldData:i,data:o};this._trigger("update",t,r)}return Zc(e).call(e,n)}updateOnly(t,r){var e;Rs(t)||(t=[t]);const n=ni(e=ni(t).call(t,t=>{const r=this._data.get(t[this._idProp]);if(null==r)throw new Error("Updating non-existent items is not allowed.");return{oldData:r,update:t}})).call(e,t=>{let{oldData:r,update:e}=t;const n=r[this._idProp],i=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return Dh({},t,...e)}(r,e);return this._data.set(n,i),{id:n,oldData:r,updatedData:i}});if(n.length){const t={items:ni(n).call(n,t=>t.id),oldData:ni(n).call(n,t=>t.oldData),data:ni(n).call(n,t=>t.updatedData)};return this._trigger("update",t,r),t.items}return[]}get(t,r){let e,n,i;qd(t)?(e=t,i=r):Rs(t)?(n=t,i=r):i=t;const o=i&&"Object"===i.returnType?"Object":"Array",u=i&&Gn(i),a=[];let s,c,f;if(null!=e)s=this._data.get(e),s&&u&&!u(s)&&(s=void 0);else if(null!=n)for(let t=0,r=n.length;t<r;t++)s=this._data.get(n[t]),null==s||u&&!u(s)||a.push(s);else{var l;c=[...Gv(l=this._data).call(l)];for(let t=0,r=c.length;t<r;t++)f=c[t],s=this._data.get(f),null==s||u&&!u(s)||a.push(s)}if(i&&i.order&&null==e&&this._sort(a,i.order),i&&i.fields){const t=i.fields;if(null!=e&&null!=s)s=this._filterFields(s,t);else for(let r=0,e=a.length;r<e;r++)a[r]=this._filterFields(a[r],t)}if("Object"==o){const t={};for(let r=0,e=a.length;r<e;r++){const e=a[r];t[e[this._idProp]]=e}return t}return null!=e?s??null:a}getIds(t){const r=this._data,e=t&&Gn(t),n=t&&t.order,i=[...Gv(r).call(r)],o=[];if(e)if(n){const t=[];for(let r=0,n=i.length;r<n;r++){const n=i[r],o=this._data.get(n);null!=o&&e(o)&&t.push(o)}this._sort(t,n);for(let r=0,e=t.length;r<e;r++)o.push(t[r][this._idProp])}else for(let t=0,r=i.length;t<r;t++){const r=i[t],n=this._data.get(r);null!=n&&e(n)&&o.push(n[this._idProp])}else if(n){const t=[];for(let e=0,n=i.length;e<n;e++){const n=i[e];t.push(r.get(n))}this._sort(t,n);for(let r=0,e=t.length;r<e;r++)o.push(t[r][this._idProp])}else for(let t=0,e=i.length;t<e;t++){const e=i[t],n=r.get(e);null!=n&&o.push(n[this._idProp])}return o}getDataSet(){return this}forEach(t,r){const e=r&&Gn(r),n=this._data,i=[...Gv(n).call(n)];if(r&&r.order){const e=this.get(r);for(let r=0,n=e.length;r<n;r++){const n=e[r];t(n,n[this._idProp])}}else for(let r=0,n=i.length;r<n;r++){const n=i[r],o=this._data.get(n);null==o||e&&!e(o)||t(o,n)}}map(t,r){const e=r&&Gn(r),n=[],i=this._data,o=[...Gv(i).call(i)];for(let r=0,i=o.length;r<i;r++){const i=o[r],u=this._data.get(i);null==u||e&&!e(u)||n.push(t(u,i))}return r&&r.order&&this._sort(n,r.order),n}_filterFields(t,r){var e;return t?Tn(e=Rs(r)?r:Qs(r)).call(e,(r,e)=>(r[e]=t[e],r),{}):t}_sort(t,r){if("string"==typeof r){const e=r;ld(t).call(t,(t,r)=>{const n=t[e],i=r[e];return n>i?1:n<i?-1:0})}else{if("function"!=typeof r)throw new TypeError("Order must be a function or a string");ld(t).call(t,r)}}remove(t,r){const e=[],n=[],i=Rs(t)?t:[t];for(let t=0,r=i.length;t<r;t++){const r=this._remove(i[t]);if(r){const t=r[this._idProp];null!=t&&(e.push(t),n.push(r))}}return e.length&&this._trigger("remove",{items:e,oldData:n},r),e}_remove(t){let r;if(qd(t)?r=t:t&&"object"==typeof t&&(r=t[this._idProp]),null!=r&&this._data.has(r)){const t=this._data.get(r)||null;return this._data.delete(r),--this.length,t}return null}clear(t){var r;const e=[...Gv(r=this._data).call(r)],n=[];for(let t=0,r=e.length;t<r;t++)n.push(this._data.get(e[t]));return this._data.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n},t),e}max(t){let r=null,e=null;for(const i of wd(n=this._data).call(n)){var n;const o=i[t];"number"==typeof o&&(null==e||o>e)&&(r=i,e=o)}return r||null}min(t){let r=null,e=null;for(const i of wd(n=this._data).call(n)){var n;const o=i[t];"number"==typeof o&&(null==e||o<e)&&(r=i,e=o)}return r||null}distinct(t){const r=this._data,e=[...Gv(r).call(r)],n=[];let i=0;for(let o=0,u=e.length;o<u;o++){const u=e[o],a=r.get(u)[t];let s=!1;for(let t=0;t<i;t++)if(n[t]==a){s=!0;break}s||void 0===a||(n[i]=a,i++)}return n}_addItem(t){const r=function(t,r){return null==t[r]&&(t[r]=zd()),t}(t,this._idProp),e=r[this._idProp];if(this._data.has(e))throw new Error("Cannot add item: item with id "+e+" already exists");return this._data.set(e,r),++this.length,e}_updateItem(t){const r=t[this._idProp];if(null==r)throw new Error("Cannot update item: item has no id (item: "+jf(t)+")");const e=this._data.get(r);if(!e)throw new Error("Cannot update item: no item with id "+r+" found");return this._data.set(r,{...e,...t}),r}stream(t){if(t){const r=this._data;return new Rg({*[kd](){for(const e of t){const t=r.get(e);null!=t&&(yield[e,t])}}})}var r;return new Rg({[kd]:Ne(r=Rd(this._data)).call(r,this._data)})}}var zg,qg,Ug,Wg,Yg,Bg,Xg={exports:{}},Jg={};function Gg(){if(zg)return Jg;zg=1;var t=ee(),r=M(),e=te().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==e,sham:!r},{defineProperty:e}),Jg}function Hg(){if(qg)return Xg.exports;qg=1,Gg();var t=At().Object,r=Xg.exports=function(r,e,n){return t.defineProperty(r,e,n)};return t.defineProperty.sham&&(r.sham=!0),Xg.exports}function Vg(){return Wg?Ug:(Wg=1,Ug=Hg())}var Kg=c(Bg?Yg:(Bg=1,Yg=Vg()));class Qg extends Ud{length=0;get idProp(){return this.getDataSet().idProp}_ids=(()=>new Ig)();constructor(t,r){var e;super(),this._options=r||{},this._listener=Ne(e=this._onEvent).call(e,this),this.setData(t)}setData(t){if(this._data){this._data.off&&this._data.off("*",this._listener);const t=this._data.getIds({filter:Gn(this._options)}),r=this._data.get(t);this._ids.clear(),this.length=0,this._trigger("remove",{items:t,oldData:r})}if(null!=t){this._data=t;const r=this._data.getIds({filter:Gn(this._options)});for(let t=0,e=r.length;t<e;t++){const e=r[t];this._ids.add(e)}this.length=r.length,this._trigger("add",{items:r})}else this._data=new Lg;this._data.on&&this._data.on("*",this._listener)}refresh(){const t=this._data.getIds({filter:Gn(this._options)}),r=[...this._ids],e={},n=[],i=[],o=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];e[i]=!0,this._ids.has(i)||(n.push(i),this._ids.add(i))}for(let t=0,n=r.length;t<n;t++){const n=r[t],u=this._data.get(n);null==u?console.error("If you see this, report it please."):e[n]||(i.push(n),o.push(u),this._ids.delete(n))}this.length+=n.length-i.length,n.length&&this._trigger("add",{items:n}),i.length&&this._trigger("remove",{items:i,oldData:o})}get(t,r){if(null==this._data)return null;let e,n=null;qd(t)||Rs(t)?(n=t,e=r):e=t;const i=Wc({},this._options,e),o=Gn(this._options),u=e&&Gn(e);return o&&u&&(i.filter=t=>o(t)&&u(t)),null==n?this._data.get(i):this._data.get(n,i)}getIds(t){if(this._data.length){const r=Gn(this._options),e=null!=t?Gn(t):null;let n;return n=e?r?t=>r(t)&&e(t):e:r,this._data.getIds({filter:n,order:t&&t.order})}return[]}forEach(t,r){if(this._data){var e;const n=Gn(this._options),i=r&&Gn(r);let o;o=i?n?function(t){return n(t)&&i(t)}:i:n,vc(e=this._data).call(e,t,{filter:o,order:r&&r.order})}}map(t,r){if(this._data){var e;const n=Gn(this._options),i=r&&Gn(r);let o;return o=i?n?t=>n(t)&&i(t):i:n,ni(e=this._data).call(e,t,{filter:o,order:r&&r.order})}return[]}getDataSet(){return this._data.getDataSet()}stream(t){var r;return this._data.stream(t||{[kd]:Ne(r=Gv(this._ids)).call(r,this._ids)})}dispose(){this._data?.off&&this._data.off("*",this._listener);const t="This data view has already been disposed of.",r={get:()=>{throw new Error(t)},set:()=>{throw new Error(t)},configurable:!1};for(const t of As(Qg.prototype))Kg(this,t,r)}_onEvent(t,r,e){if(!r||!r.items||!this._data)return;const n=r.items,i=[],o=[],u=[],a=[],s=[],c=[];switch(t){case"add":for(let t=0,r=n.length;t<r;t++){const r=n[t];this.get(r)&&(this._ids.add(r),i.push(r))}break;case"update":for(let t=0,e=n.length;t<e;t++){const e=n[t];this.get(e)?this._ids.has(e)?(o.push(e),s.push(r.data[t]),a.push(r.oldData[t])):(this._ids.add(e),i.push(e)):this._ids.has(e)&&(this._ids.delete(e),u.push(e),c.push(r.oldData[t]))}break;case"remove":for(let t=0,e=n.length;t<e;t++){const e=n[t];this._ids.has(e)&&(this._ids.delete(e),u.push(e),c.push(r.oldData[t]))}}this.length+=i.length-u.length,i.length&&this._trigger("add",{items:i},e),o.length&&this._trigger("update",{items:o,oldData:a,data:s},e),u.length&&this._trigger("remove",{items:u,oldData:c},e)}}function $g(t,r){return"object"==typeof r&&null!==r&&t===r.idProp&&"function"==typeof r.add&&"function"==typeof r.clear&&"function"==typeof r.distinct&&"function"==typeof vc(r)&&"function"==typeof r.get&&"function"==typeof r.getDataSet&&"function"==typeof r.getIds&&"number"==typeof r.length&&"function"==typeof ni(r)&&"function"==typeof r.max&&"function"==typeof r.min&&"function"==typeof r.off&&"function"==typeof r.on&&"function"==typeof r.remove&&"function"==typeof r.setOptions&&"function"==typeof r.stream&&"function"==typeof r.update&&"function"==typeof r.updateOnly}function Zg(t,r){return"object"==typeof r&&null!==r&&t===r.idProp&&"function"==typeof vc(r)&&"function"==typeof r.get&&"function"==typeof r.getDataSet&&"function"==typeof r.getIds&&"number"==typeof r.length&&"function"==typeof ni(r)&&"function"==typeof r.off&&"function"==typeof r.on&&"function"==typeof r.stream&&$g(t,r.getDataSet())}export{Ph as DELETE,Lg as DataSet,Rg as DataStream,Qg as DataView,Fg as Queue,Ai as createNewDataPipeFrom,$g as isDataSetLike,Zg as isDataViewLike};
//# sourceMappingURL=vis-data.min.js.map