vis-data 7.1.6 → 7.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
6
6
  *
7
- * @version 7.1.6
8
- * @date 2023-03-22T11:39:37.256Z
7
+ * @version 7.1.7
8
+ * @date 2023-09-13T18:13:28.258Z
9
9
  *
10
10
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11
11
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -23,11 +23,12 @@
23
23
  *
24
24
  * vis.js may be distributed under either license.
25
25
  */
26
- function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={},o={get exports(){return n},set exports(t){n=t}},i={},a={get exports(){return i},set exports(t){i=t}},s={},u={get exports(){return s},set exports(t){s=t}},c=function(t){return t&&t.Math==Math&&t},f=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof e&&e)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},p=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=p,v=Function.prototype,d=v.apply,y=v.call,g="object"==typeof Reflect&&Reflect.apply||(h?y.bind(d):function(){return y.apply(d,arguments)}),m=p,b=Function.prototype,x=b.call,_=m&&b.bind.bind(x,x),w=m?_:function(t){return function(){return x.apply(t,arguments)}},E=w,T=E({}.toString),O=E("".slice),S=function(t){return O(T(t),8,-1)},k=S,j=w,A=function(t){if("Function"===k(t))return j(t)},P="object"==typeof document&&document.all,I={all:P,IS_HTMLDDA:void 0===P&&void 0!==P},D=I.all,C=I.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},L={},R=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=p,N=Function.prototype.call,F=M?N.bind(N):function(){return N.apply(N,arguments)},z={},U={}.propertyIsEnumerable,q=Object.getOwnPropertyDescriptor,Y=q&&!U.call({1:2},1);z.f=Y?function(t){var e=q(this,t);return!!e&&e.enumerable}:U;var W,G,X=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=l,B=S,H=Object,$=w("".split),J=V((function(){return!H("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?$(t,""):H(t)}:H,K=function(t){return null==t},Q=K,Z=TypeError,tt=function(t){if(Q(t))throw Z("Can't call method on "+t);return t},et=J,rt=tt,nt=function(t){return et(rt(t))},ot=C,it=I.all,at=I.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:ot(t)||t===it}:function(t){return"object"==typeof t?null!==t:ot(t)},st={},ut=st,ct=f,ft=C,lt=function(t){return ft(t)?t:void 0},pt=function(t,e){return arguments.length<2?lt(ut[t])||lt(ct[t]):ut[t]&&ut[t][e]||ct[t]&&ct[t][e]},ht=w({}.isPrototypeOf),vt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",dt=f,yt=vt,gt=dt.process,mt=dt.Deno,bt=gt&&gt.versions||mt&&mt.version,xt=bt&&bt.v8;xt&&(G=(W=xt.split("."))[0]>0&&W[0]<4?1:+(W[0]+W[1])),!G&&yt&&(!(W=yt.match(/Edge\/(\d+)/))||W[1]>=74)&&(W=yt.match(/Chrome\/(\d+)/))&&(G=+W[1]);var _t=G,wt=_t,Et=l,Tt=!!Object.getOwnPropertySymbols&&!Et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41})),Ot=Tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=pt,kt=C,jt=ht,At=Object,Pt=Ot?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return kt(e)&&jt(e.prototype,At(t))},It=String,Dt=function(t){try{return It(t)}catch(t){return"Object"}},Ct=C,Lt=Dt,Rt=TypeError,Mt=function(t){if(Ct(t))return t;throw Rt(Lt(t)+" is not a function")},Nt=Mt,Ft=K,zt=function(t,e){var r=t[e];return Ft(r)?void 0:Nt(r)},Ut=F,qt=C,Yt=at,Wt=TypeError,Gt={},Xt={get exports(){return Gt},set exports(t){Gt=t}},Vt=f,Bt=Object.defineProperty,Ht=function(t,e){try{Bt(Vt,t,{value:e,configurable:!0,writable:!0})}catch(r){Vt[t]=e}return e},$t="__core-js_shared__",Jt=f[$t]||Ht($t,{}),Kt=Jt;(Xt.exports=function(t,e){return Kt[t]||(Kt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Qt=tt,Zt=Object,te=function(t){return Zt(Qt(t))},ee=te,re=w({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return re(ee(t),e)},oe=w,ie=0,ae=Math.random(),se=oe(1..toString),ue=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++ie+ae,36)},ce=Gt,fe=ne,le=ue,pe=Tt,he=Ot,ve=f.Symbol,de=ce("wks"),ye=he?ve.for||ve:ve&&ve.withoutSetter||le,ge=function(t){return fe(de,t)||(de[t]=pe&&fe(ve,t)?ve[t]:ye("Symbol."+t)),de[t]},me=F,be=at,xe=Pt,_e=zt,we=function(t,e){var r,n;if("string"===e&&qt(r=t.toString)&&!Yt(n=Ut(r,t)))return n;if(qt(r=t.valueOf)&&!Yt(n=Ut(r,t)))return n;if("string"!==e&&qt(r=t.toString)&&!Yt(n=Ut(r,t)))return n;throw Wt("Can't convert object to primitive value")},Ee=TypeError,Te=ge("toPrimitive"),Oe=function(t,e){if(!be(t)||xe(t))return t;var r,n=_e(t,Te);if(n){if(void 0===e&&(e="default"),r=me(n,t,e),!be(r)||xe(r))return r;throw Ee("Can't convert object to primitive value")}return void 0===e&&(e="number"),we(t,e)},Se=Pt,ke=function(t){var e=Oe(t,"string");return Se(e)?e:e+""},je=at,Ae=f.document,Pe=je(Ae)&&je(Ae.createElement),Ie=function(t){return Pe?Ae.createElement(t):{}},De=Ie,Ce=!R&&!l((function(){return 7!=Object.defineProperty(De("div"),"a",{get:function(){return 7}}).a})),Le=R,Re=F,Me=z,Ne=X,Fe=nt,ze=ke,Ue=ne,qe=Ce,Ye=Object.getOwnPropertyDescriptor;L.f=Le?Ye:function(t,e){if(t=Fe(t),e=ze(e),qe)try{return Ye(t,e)}catch(t){}if(Ue(t,e))return Ne(!Re(Me.f,t,e),t[e])};var We=l,Ge=C,Xe=/#|\.prototype\./,Ve=function(t,e){var r=He[Be(t)];return r==Je||r!=$e&&(Ge(e)?We(e):!!e)},Be=Ve.normalize=function(t){return String(t).replace(Xe,".").toLowerCase()},He=Ve.data={},$e=Ve.NATIVE="N",Je=Ve.POLYFILL="P",Ke=Ve,Qe=Mt,Ze=p,tr=A(A.bind),er=function(t,e){return Qe(t),void 0===e?t:Ze?tr(t,e):function(){return t.apply(e,arguments)}},rr={},nr=R&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),or=at,ir=String,ar=TypeError,sr=function(t){if(or(t))return t;throw ar(ir(t)+" is not an object")},ur=R,cr=Ce,fr=nr,lr=sr,pr=ke,hr=TypeError,vr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,yr="enumerable",gr="configurable",mr="writable";rr.f=ur?fr?function(t,e,r){if(lr(t),e=pr(e),lr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&mr in r&&!r[mr]){var n=dr(t,e);n&&n[mr]&&(t[e]=r.value,r={configurable:gr in r?r[gr]:n[gr],enumerable:yr in r?r[yr]:n[yr],writable:!1})}return vr(t,e,r)}:vr:function(t,e,r){if(lr(t),e=pr(e),lr(r),cr)try{return vr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw hr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var br=rr,xr=X,_r=R?function(t,e,r){return br.f(t,e,xr(1,r))}:function(t,e,r){return t[e]=r,t},wr=f,Er=g,Tr=A,Or=C,Sr=L.f,kr=Ke,jr=st,Ar=er,Pr=_r,Ir=ne,Dr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return Er(t,this,arguments)};return e.prototype=t.prototype,e},Cr=function(t,e){var r,n,o,i,a,s,u,c,f,l=t.target,p=t.global,h=t.stat,v=t.proto,d=p?wr:h?wr[l]:(wr[l]||{}).prototype,y=p?jr:jr[l]||Pr(jr,l,{})[l],g=y.prototype;for(i in e)n=!(r=kr(p?i:l+(h?".":"#")+i,t.forced))&&d&&Ir(d,i),s=y[i],n&&(u=t.dontCallGetSet?(f=Sr(d,i))&&f.value:d[i]),a=n&&u?u:e[i],n&&typeof s==typeof a||(c=t.bind&&n?Ar(a,wr):t.wrap&&n?Dr(a):v&&Or(a)?Tr(a):a,(t.sham||a&&a.sham||s&&s.sham)&&Pr(c,"sham",!0),Pr(y,i,c),v&&(Ir(jr,o=l+"Prototype")||Pr(jr,o,{}),Pr(jr[o],i,a),t.real&&g&&(r||!g[i])&&Pr(g,i,a)))},Lr=Cr,Rr=R,Mr=rr.f;Lr({target:"Object",stat:!0,forced:Object.defineProperty!==Mr,sham:!Rr},{defineProperty:Mr});var Nr=st.Object,Fr=u.exports=function(t,e,r){return Nr.defineProperty(t,e,r)};Nr.defineProperty.sham&&(Fr.sham=!0);var zr=s,Ur=zr;a.exports=Ur,o.exports=i;var qr=r(n),Yr={},Wr={get exports(){return Yr},set exports(t){Yr=t}},Gr={},Xr={get exports(){return Gr},set exports(t){Gr=t}},Vr=S,Br=Array.isArray||function(t){return"Array"==Vr(t)},Hr=Math.ceil,$r=Math.floor,Jr=Math.trunc||function(t){var e=+t;return(e>0?$r:Hr)(e)},Kr=function(t){var e=+t;return e!=e||0===e?0:Jr(e)},Qr=Kr,Zr=Math.min,tn=function(t){return t>0?Zr(Qr(t),9007199254740991):0},en=function(t){return tn(t.length)},rn=TypeError,nn=function(t){if(t>9007199254740991)throw rn("Maximum allowed index exceeded");return t},on=ke,an=rr,sn=X,un=function(t,e,r){var n=on(e);n in t?an.f(t,n,sn(0,r)):t[n]=r},cn={};cn[ge("toStringTag")]="z";var fn="[object z]"===String(cn),ln=fn,pn=C,hn=S,vn=ge("toStringTag"),dn=Object,yn="Arguments"==hn(function(){return arguments}()),gn=ln?hn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),vn))?r:yn?hn(e):"Object"==(n=hn(e))&&pn(e.callee)?"Arguments":n},mn=C,bn=Jt,xn=w(Function.toString);mn(bn.inspectSource)||(bn.inspectSource=function(t){return xn(t)});var _n=bn.inspectSource,wn=w,En=l,Tn=C,On=gn,Sn=_n,kn=function(){},jn=[],An=pt("Reflect","construct"),Pn=/^\s*(?:class|function)\b/,In=wn(Pn.exec),Dn=!Pn.exec(kn),Cn=function(t){if(!Tn(t))return!1;try{return An(kn,jn,t),!0}catch(t){return!1}},Ln=function(t){if(!Tn(t))return!1;switch(On(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Dn||!!In(Pn,Sn(t))}catch(t){return!0}};Ln.sham=!0;var Rn=!An||En((function(){var t;return Cn(Cn.call)||!Cn(Object)||!Cn((function(){t=!0}))||t}))?Ln:Cn,Mn=Br,Nn=Rn,Fn=at,zn=ge("species"),Un=Array,qn=function(t){var e;return Mn(t)&&(e=t.constructor,(Nn(e)&&(e===Un||Mn(e.prototype))||Fn(e)&&null===(e=e[zn]))&&(e=void 0)),void 0===e?Un:e},Yn=function(t,e){return new(qn(t))(0===e?0:e)},Wn=l,Gn=_t,Xn=ge("species"),Vn=function(t){return Gn>=51||!Wn((function(){var e=[];return(e.constructor={})[Xn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Bn=Cr,Hn=l,$n=Br,Jn=at,Kn=te,Qn=en,Zn=nn,to=un,eo=Yn,ro=Vn,no=_t,oo=ge("isConcatSpreadable"),io=no>=51||!Hn((function(){var t=[];return t[oo]=!1,t.concat()[0]!==t})),ao=function(t){if(!Jn(t))return!1;var e=t[oo];return void 0!==e?!!e:$n(t)};Bn({target:"Array",proto:!0,arity:1,forced:!io||!ro("concat")},{concat:function(t){var e,r,n,o,i,a=Kn(this),s=eo(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(ao(i=-1===e?a:arguments[e]))for(o=Qn(i),Zn(u+o),r=0;r<o;r++,u++)r in i&&to(s,u,i[r]);else Zn(u+1),to(s,u++,i);return s.length=u,s}});var so=gn,uo=String,co=function(t){if("Symbol"===so(t))throw TypeError("Cannot convert a Symbol value to a string");return uo(t)},fo={},lo=Kr,po=Math.max,ho=Math.min,vo=function(t,e){var r=lo(t);return r<0?po(r+e,0):ho(r,e)},yo=nt,go=vo,mo=en,bo=function(t){return function(e,r,n){var o,i=yo(e),a=mo(i),s=go(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},xo={includes:bo(!0),indexOf:bo(!1)},_o={},wo=ne,Eo=nt,To=xo.indexOf,Oo=_o,So=w([].push),ko=function(t,e){var r,n=Eo(t),o=0,i=[];for(r in n)!wo(Oo,r)&&wo(n,r)&&So(i,r);for(;e.length>o;)wo(n,r=e[o++])&&(~To(i,r)||So(i,r));return i},jo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ao=ko,Po=jo,Io=Object.keys||function(t){return Ao(t,Po)},Do=R,Co=nr,Lo=rr,Ro=sr,Mo=nt,No=Io;fo.f=Do&&!Co?Object.defineProperties:function(t,e){Ro(t);for(var r,n=Mo(e),o=No(e),i=o.length,a=0;i>a;)Lo.f(t,r=o[a++],n[r]);return t};var Fo,zo=pt("document","documentElement"),Uo=ue,qo=Gt("keys"),Yo=function(t){return qo[t]||(qo[t]=Uo(t))},Wo=sr,Go=fo,Xo=jo,Vo=_o,Bo=zo,Ho=Ie,$o="prototype",Jo="script",Ko=Yo("IE_PROTO"),Qo=function(){},Zo=function(t){return"<"+Jo+">"+t+"</"+Jo+">"},ti=function(t){t.write(Zo("")),t.close();var e=t.parentWindow.Object;return t=null,e},ei=function(){try{Fo=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;ei="undefined"!=typeof document?document.domain&&Fo?ti(Fo):(e=Ho("iframe"),r="java"+Jo+":",e.style.display="none",Bo.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Zo("document.F=Object")),t.close(),t.F):ti(Fo);for(var n=Xo.length;n--;)delete ei[$o][Xo[n]];return ei()};Vo[Ko]=!0;var ri=Object.create||function(t,e){var r;return null!==t?(Qo[$o]=Wo(t),r=new Qo,Qo[$o]=null,r[Ko]=t):r=ei(),void 0===e?r:Go.f(r,e)},ni={},oi=ko,ii=jo.concat("length","prototype");ni.f=Object.getOwnPropertyNames||function(t){return oi(t,ii)};var ai={},si=vo,ui=en,ci=un,fi=Array,li=Math.max,pi=function(t,e,r){for(var n=ui(t),o=si(e,n),i=si(void 0===r?n:r,n),a=fi(li(i-o,0)),s=0;o<i;o++,s++)ci(a,s,t[o]);return a.length=s,a},hi=S,vi=nt,di=ni.f,yi=pi,gi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ai.f=function(t){return gi&&"Window"==hi(t)?function(t){try{return di(t)}catch(t){return yi(gi)}}(t):di(vi(t))};var mi={};mi.f=Object.getOwnPropertySymbols;var bi=_r,xi=function(t,e,r,n){return n&&n.enumerable?t[e]=r:bi(t,e,r),t},_i=rr,wi=function(t,e,r){return _i.f(t,e,r)},Ei={},Ti=ge;Ei.f=Ti;var Oi,Si,ki,ji=st,Ai=ne,Pi=Ei,Ii=rr.f,Di=function(t){var e=ji.Symbol||(ji.Symbol={});Ai(e,t)||Ii(e,t,{value:Pi.f(t)})},Ci=F,Li=pt,Ri=ge,Mi=xi,Ni=function(){var t=Li("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Ri("toPrimitive");e&&!e[n]&&Mi(e,n,(function(t){return Ci(r,this)}),{arity:1})},Fi=gn,zi=fn?{}.toString:function(){return"[object "+Fi(this)+"]"},Ui=fn,qi=rr.f,Yi=_r,Wi=ne,Gi=zi,Xi=ge("toStringTag"),Vi=function(t,e,r,n){if(t){var o=r?t:t.prototype;Wi(o,Xi)||qi(o,Xi,{configurable:!0,value:e}),n&&!Ui&&Yi(o,"toString",Gi)}},Bi=C,Hi=f.WeakMap,$i=Bi(Hi)&&/native code/.test(String(Hi)),Ji=f,Ki=at,Qi=_r,Zi=ne,ta=Jt,ea=Yo,ra=_o,na="Object already initialized",oa=Ji.TypeError,ia=Ji.WeakMap;if($i||ta.state){var aa=ta.state||(ta.state=new ia);aa.get=aa.get,aa.has=aa.has,aa.set=aa.set,Oi=function(t,e){if(aa.has(t))throw oa(na);return e.facade=t,aa.set(t,e),e},Si=function(t){return aa.get(t)||{}},ki=function(t){return aa.has(t)}}else{var sa=ea("state");ra[sa]=!0,Oi=function(t,e){if(Zi(t,sa))throw oa(na);return e.facade=t,Qi(t,sa,e),e},Si=function(t){return Zi(t,sa)?t[sa]:{}},ki=function(t){return Zi(t,sa)}}var ua={set:Oi,get:Si,has:ki,enforce:function(t){return ki(t)?Si(t):Oi(t,{})},getterFor:function(t){return function(e){var r;if(!Ki(e)||(r=Si(e)).type!==t)throw oa("Incompatible receiver, "+t+" required");return r}}},ca=er,fa=J,la=te,pa=en,ha=Yn,va=w([].push),da=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var p,h,v=la(u),d=fa(v),y=ca(c,f),g=pa(d),m=0,b=l||ha,x=e?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in d)&&(h=y(p=d[m],m,v),t))if(e)x[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:va(x,p)}else switch(t){case 4:return!1;case 7:va(x,p)}return i?-1:n||o?o:x}},ya={forEach:da(0),map:da(1),filter:da(2),some:da(3),every:da(4),find:da(5),findIndex:da(6),filterReject:da(7)},ga=Cr,ma=f,ba=F,xa=w,_a=R,wa=Tt,Ea=l,Ta=ne,Oa=ht,Sa=sr,ka=nt,ja=ke,Aa=co,Pa=X,Ia=ri,Da=Io,Ca=ni,La=ai,Ra=mi,Ma=L,Na=rr,Fa=fo,za=z,Ua=xi,qa=wi,Ya=Gt,Wa=_o,Ga=ue,Xa=ge,Va=Ei,Ba=Di,Ha=Ni,$a=Vi,Ja=ua,Ka=ya.forEach,Qa=Yo("hidden"),Za="Symbol",ts="prototype",es=Ja.set,rs=Ja.getterFor(Za),ns=Object[ts],os=ma.Symbol,is=os&&os[ts],as=ma.TypeError,ss=ma.QObject,us=Ma.f,cs=Na.f,fs=La.f,ls=za.f,ps=xa([].push),hs=Ya("symbols"),vs=Ya("op-symbols"),ds=Ya("wks"),ys=!ss||!ss[ts]||!ss[ts].findChild,gs=_a&&Ea((function(){return 7!=Ia(cs({},"a",{get:function(){return cs(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=us(ns,e);n&&delete ns[e],cs(t,e,r),n&&t!==ns&&cs(ns,e,n)}:cs,ms=function(t,e){var r=hs[t]=Ia(is);return es(r,{type:Za,tag:t,description:e}),_a||(r.description=e),r},bs=function(t,e,r){t===ns&&bs(vs,e,r),Sa(t);var n=ja(e);return Sa(r),Ta(hs,n)?(r.enumerable?(Ta(t,Qa)&&t[Qa][n]&&(t[Qa][n]=!1),r=Ia(r,{enumerable:Pa(0,!1)})):(Ta(t,Qa)||cs(t,Qa,Pa(1,{})),t[Qa][n]=!0),gs(t,n,r)):cs(t,n,r)},xs=function(t,e){Sa(t);var r=ka(e),n=Da(r).concat(Ts(r));return Ka(n,(function(e){_a&&!ba(_s,r,e)||bs(t,e,r[e])})),t},_s=function(t){var e=ja(t),r=ba(ls,this,e);return!(this===ns&&Ta(hs,e)&&!Ta(vs,e))&&(!(r||!Ta(this,e)||!Ta(hs,e)||Ta(this,Qa)&&this[Qa][e])||r)},ws=function(t,e){var r=ka(t),n=ja(e);if(r!==ns||!Ta(hs,n)||Ta(vs,n)){var o=us(r,n);return!o||!Ta(hs,n)||Ta(r,Qa)&&r[Qa][n]||(o.enumerable=!0),o}},Es=function(t){var e=fs(ka(t)),r=[];return Ka(e,(function(t){Ta(hs,t)||Ta(Wa,t)||ps(r,t)})),r},Ts=function(t){var e=t===ns,r=fs(e?vs:ka(t)),n=[];return Ka(r,(function(t){!Ta(hs,t)||e&&!Ta(ns,t)||ps(n,hs[t])})),n};wa||(Ua(is=(os=function(){if(Oa(is,this))throw as("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Aa(arguments[0]):void 0,e=Ga(t),r=function(t){this===ns&&ba(r,vs,t),Ta(this,Qa)&&Ta(this[Qa],e)&&(this[Qa][e]=!1),gs(this,e,Pa(1,t))};return _a&&ys&&gs(ns,e,{configurable:!0,set:r}),ms(e,t)})[ts],"toString",(function(){return rs(this).tag})),Ua(os,"withoutSetter",(function(t){return ms(Ga(t),t)})),za.f=_s,Na.f=bs,Fa.f=xs,Ma.f=ws,Ca.f=La.f=Es,Ra.f=Ts,Va.f=function(t){return ms(Xa(t),t)},_a&&qa(is,"description",{configurable:!0,get:function(){return rs(this).description}})),ga({global:!0,constructor:!0,wrap:!0,forced:!wa,sham:!wa},{Symbol:os}),Ka(Da(ds),(function(t){Ba(t)})),ga({target:Za,stat:!0,forced:!wa},{useSetter:function(){ys=!0},useSimple:function(){ys=!1}}),ga({target:"Object",stat:!0,forced:!wa,sham:!_a},{create:function(t,e){return void 0===e?Ia(t):xs(Ia(t),e)},defineProperty:bs,defineProperties:xs,getOwnPropertyDescriptor:ws}),ga({target:"Object",stat:!0,forced:!wa},{getOwnPropertyNames:Es}),Ha(),$a(os,Za),Wa[Qa]=!0;var Os=Tt&&!!Symbol.for&&!!Symbol.keyFor,Ss=Cr,ks=pt,js=ne,As=co,Ps=Gt,Is=Os,Ds=Ps("string-to-symbol-registry"),Cs=Ps("symbol-to-string-registry");Ss({target:"Symbol",stat:!0,forced:!Is},{for:function(t){var e=As(t);if(js(Ds,e))return Ds[e];var r=ks("Symbol")(e);return Ds[e]=r,Cs[r]=e,r}});var Ls=Cr,Rs=ne,Ms=Pt,Ns=Dt,Fs=Os,zs=Gt("symbol-to-string-registry");Ls({target:"Symbol",stat:!0,forced:!Fs},{keyFor:function(t){if(!Ms(t))throw TypeError(Ns(t)+" is not a symbol");if(Rs(zs,t))return zs[t]}});var Us=w([].slice),qs=Br,Ys=C,Ws=S,Gs=co,Xs=w([].push),Vs=Cr,Bs=pt,Hs=g,$s=F,Js=w,Ks=l,Qs=C,Zs=Pt,tu=Us,eu=function(t){if(Ys(t))return t;if(qs(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?Xs(r,o):"number"!=typeof o&&"Number"!=Ws(o)&&"String"!=Ws(o)||Xs(r,Gs(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(qs(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},ru=Tt,nu=String,ou=Bs("JSON","stringify"),iu=Js(/./.exec),au=Js("".charAt),su=Js("".charCodeAt),uu=Js("".replace),cu=Js(1..toString),fu=/[\uD800-\uDFFF]/g,lu=/^[\uD800-\uDBFF]$/,pu=/^[\uDC00-\uDFFF]$/,hu=!ru||Ks((function(){var t=Bs("Symbol")();return"[null]"!=ou([t])||"{}"!=ou({a:t})||"{}"!=ou(Object(t))})),vu=Ks((function(){return'"\\udf06\\ud834"'!==ou("\udf06\ud834")||'"\\udead"'!==ou("\udead")})),du=function(t,e){var r=tu(arguments),n=eu(e);if(Qs(n)||void 0!==t&&!Zs(t))return r[1]=function(t,e){if(Qs(n)&&(e=$s(n,this,nu(t),e)),!Zs(e))return e},Hs(ou,null,r)},yu=function(t,e,r){var n=au(r,e-1),o=au(r,e+1);return iu(lu,t)&&!iu(pu,o)||iu(pu,t)&&!iu(lu,n)?"\\u"+cu(su(t,0),16):t};ou&&Vs({target:"JSON",stat:!0,arity:3,forced:hu||vu},{stringify:function(t,e,r){var n=tu(arguments),o=Hs(hu?du:ou,null,n);return vu&&"string"==typeof o?uu(o,fu,yu):o}});var gu=mi,mu=te;Cr({target:"Object",stat:!0,forced:!Tt||l((function(){gu.f(1)}))},{getOwnPropertySymbols:function(t){var e=gu.f;return e?e(mu(t)):[]}}),Di("asyncIterator"),Di("hasInstance"),Di("isConcatSpreadable"),Di("iterator"),Di("match"),Di("matchAll"),Di("replace"),Di("search"),Di("species"),Di("split");var bu=Ni;Di("toPrimitive"),bu();var xu=pt,_u=Vi;Di("toStringTag"),_u(xu("Symbol"),"Symbol"),Di("unscopables"),Vi(f.JSON,"JSON",!0);var wu,Eu,Tu,Ou=st.Symbol,Su={},ku=R,ju=ne,Au=Function.prototype,Pu=ku&&Object.getOwnPropertyDescriptor,Iu=ju(Au,"name"),Du={EXISTS:Iu,PROPER:Iu&&"something"===function(){}.name,CONFIGURABLE:Iu&&(!ku||ku&&Pu(Au,"name").configurable)},Cu=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Lu=ne,Ru=C,Mu=te,Nu=Cu,Fu=Yo("IE_PROTO"),zu=Object,Uu=zu.prototype,qu=Nu?zu.getPrototypeOf:function(t){var e=Mu(t);if(Lu(e,Fu))return e[Fu];var r=e.constructor;return Ru(r)&&e instanceof r?r.prototype:e instanceof zu?Uu:null},Yu=l,Wu=C,Gu=at,Xu=ri,Vu=qu,Bu=xi,Hu=ge("iterator"),$u=!1;[].keys&&("next"in(Tu=[].keys())?(Eu=Vu(Vu(Tu)))!==Object.prototype&&(wu=Eu):$u=!0);var Ju=!Gu(wu)||Yu((function(){var t={};return wu[Hu].call(t)!==t}));Wu((wu=Ju?{}:Xu(wu))[Hu])||Bu(wu,Hu,(function(){return this}));var Ku={IteratorPrototype:wu,BUGGY_SAFARI_ITERATORS:$u},Qu=Ku.IteratorPrototype,Zu=ri,tc=X,ec=Vi,rc=Su,nc=function(){return this},oc=w,ic=Mt,ac=C,sc=String,uc=TypeError,cc=function(t,e,r){try{return oc(ic(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},fc=sr,lc=function(t){if("object"==typeof t||ac(t))return t;throw uc("Can't set "+sc(t)+" as a prototype")},pc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=cc(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return fc(r),lc(n),e?t(r,n):r.__proto__=n,r}}():void 0),hc=Cr,vc=F,dc=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Zu(Qu,{next:tc(+!n,r)}),ec(t,o,!1,!0),rc[o]=nc,t},yc=qu,gc=Vi,mc=xi,bc=Su,xc=Du.PROPER,_c=Ku.BUGGY_SAFARI_ITERATORS,wc=ge("iterator"),Ec="keys",Tc="values",Oc="entries",Sc=function(){return this},kc=function(t,e,r,n,o,i,a){dc(r,e,n);var s,u,c,f=function(t){if(t===o&&d)return d;if(!_c&&t in h)return h[t];switch(t){case Ec:case Tc:case Oc:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,v=h[wc]||h["@@iterator"]||o&&h[o],d=!_c&&v||f(o),y="Array"==e&&h.entries||v;if(y&&(s=yc(y.call(new t)))!==Object.prototype&&s.next&&(gc(s,l,!0,!0),bc[l]=Sc),xc&&o==Tc&&v&&v.name!==Tc&&(p=!0,d=function(){return vc(v,this)}),o)if(u={values:f(Tc),keys:i?d:f(Ec),entries:f(Oc)},a)for(c in u)(_c||p||!(c in h))&&mc(h,c,u[c]);else hc({target:e,proto:!0,forced:_c||p},u);return a&&h[wc]!==d&&mc(h,wc,d,{name:o}),bc[e]=d,u},jc=function(t,e){return{value:t,done:e}},Ac=nt,Pc=Su,Ic=ua;rr.f;var Dc=kc,Cc=jc,Lc="Array Iterator",Rc=Ic.set,Mc=Ic.getterFor(Lc);Dc(Array,"Array",(function(t,e){Rc(this,{type:Lc,target:Ac(t),index:0,kind:e})}),(function(){var t=Mc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Cc(void 0,!0)):Cc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),Pc.Arguments=Pc.Array;var Nc={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},Fc=f,zc=gn,Uc=_r,qc=Su,Yc=ge("toStringTag");for(var Wc in Nc){var Gc=Fc[Wc],Xc=Gc&&Gc.prototype;Xc&&zc(Xc)!==Yc&&Uc(Xc,Yc,Wc),qc[Wc]=qc.Array}var Vc=Ou;Di("dispose");var Bc=Vc;Di("asyncDispose");var Hc=Cr,$c=w,Jc=pt("Symbol"),Kc=Jc.keyFor,Qc=$c(Jc.prototype.valueOf);Hc({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Kc(Qc(t))}catch(t){return!1}}});for(var Zc=Cr,tf=Gt,ef=pt,rf=w,nf=Pt,of=ge,af=ef("Symbol"),sf=af.isWellKnown,uf=ef("Object","getOwnPropertyNames"),cf=rf(af.prototype.valueOf),ff=tf("wks"),lf=0,pf=uf(af),hf=pf.length;lf<hf;lf++)try{var vf=pf[lf];nf(af[vf])&&of(vf)}catch(t){}Zc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(sf&&sf(t))return!0;try{for(var e=cf(t),r=0,n=uf(ff),o=n.length;r<o;r++)if(ff[n[r]]==e)return!0}catch(t){}return!1}}),Di("matcher"),Di("metadataKey"),Di("observable"),Di("metadata"),Di("patternMatch"),Di("replaceAll");var df=Bc;Xr.exports=df,Wr.exports=Gr;var yf=r(Yr),gf={},mf={get exports(){return gf},set exports(t){gf=t}},bf={},xf={get exports(){return bf},set exports(t){bf=t}},_f=w,wf=Kr,Ef=co,Tf=tt,Of=_f("".charAt),Sf=_f("".charCodeAt),kf=_f("".slice),jf=function(t){return function(e,r){var n,o,i=Ef(Tf(e)),a=wf(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Sf(i,a))<55296||n>56319||a+1===s||(o=Sf(i,a+1))<56320||o>57343?t?Of(i,a):n:t?kf(i,a,a+2):o-56320+(n-55296<<10)+65536}},Af={codeAt:jf(!1),charAt:jf(!0)}.charAt,Pf=co,If=ua,Df=kc,Cf=jc,Lf="String Iterator",Rf=If.set,Mf=If.getterFor(Lf);Df(String,"String",(function(t){Rf(this,{type:Lf,string:Pf(t),index:0})}),(function(){var t,e=Mf(this),r=e.string,n=e.index;return n>=r.length?Cf(void 0,!0):(t=Af(r,n),e.index+=t.length,Cf(t,!1))}));var Nf=Ei.f("iterator"),Ff=Nf;xf.exports=Ff,mf.exports=bf;var zf=r(gf);function Uf(t){return Uf="function"==typeof yf&&"symbol"==typeof zf?function(t){return typeof t}:function(t){return t&&"function"==typeof yf&&t.constructor===yf&&t!==yf.prototype?"symbol":typeof t},Uf(t)}var qf={},Yf={get exports(){return qf},set exports(t){qf=t}},Wf={},Gf={get exports(){return Wf},set exports(t){Wf=t}},Xf=Ei.f("toPrimitive");Gf.exports=Xf,Yf.exports=Wf;var Vf=r(qf);function Bf(t){var e=function(t,e){if("object"!==Uf(t)||null===t)return t;var r=t[Vf];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uf(e)?e:String(e)}function Hf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),qr(t,Bf(n.key),n)}}function $f(t,e,r){return e&&Hf(t.prototype,e),r&&Hf(t,r),qr(t,"prototype",{writable:!1}),t}function Jf(t,e,r){return(e=Bf(e))in t?qr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kf={},Qf={get exports(){return Kf},set exports(t){Kf=t}},Zf=w,tl=Mt,el=at,rl=ne,nl=Us,ol=p,il=Function,al=Zf([].concat),sl=Zf([].join),ul={},cl=function(t,e,r){if(!rl(ul,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";ul[e]=il("C,a","return new C("+sl(n,",")+")")}return ul[e](t,r)},fl=ol?il.bind:function(t){var e=tl(this),r=e.prototype,n=nl(arguments,1),o=function(){var r=al(n,nl(arguments));return this instanceof o?cl(e,r.length,r):e.apply(t,r)};return el(r)&&(o.prototype=r),o},ll=fl;Cr({target:"Function",proto:!0,forced:Function.bind!==ll},{bind:ll});var pl=st,hl=function(t){return pl[t+"Prototype"]},vl=hl("Function").bind,dl=ht,yl=vl,gl=Function.prototype,ml=function(t){var e=t.bind;return t===gl||dl(gl,t)&&e===gl.bind?yl:e};Qf.exports=ml;var bl=r(Kf),xl={},_l={get exports(){return xl},set exports(t){xl=t}},wl=Mt,El=te,Tl=J,Ol=en,Sl=TypeError,kl=function(t){return function(e,r,n,o){wl(r);var i=El(e),a=Tl(i),s=Ol(i),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw Sl("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},jl={left:kl(!1),right:kl(!0)},Al=l,Pl=function(t,e){var r=[][t];return!!r&&Al((function(){r.call(null,e||function(){return 1},1)}))},Il="undefined"!=typeof process&&"process"==S(process),Dl=jl.left;Cr({target:"Array",proto:!0,forced:!Il&&_t>79&&_t<83||!Pl("reduce")},{reduce:function(t){var e=arguments.length;return Dl(this,t,e,e>1?arguments[1]:void 0)}});var Cl=hl("Array").reduce,Ll=ht,Rl=Cl,Ml=Array.prototype,Nl=function(t){var e=t.reduce;return t===Ml||Ll(Ml,t)&&e===Ml.reduce?Rl:e};_l.exports=Nl;var Fl=r(xl),zl={},Ul={get exports(){return zl},set exports(t){zl=t}},ql=ya.filter;Cr({target:"Array",proto:!0,forced:!Vn("filter")},{filter:function(t){return ql(this,t,arguments.length>1?arguments[1]:void 0)}});var Yl=hl("Array").filter,Wl=ht,Gl=Yl,Xl=Array.prototype,Vl=function(t){var e=t.filter;return t===Xl||Wl(Xl,t)&&e===Xl.filter?Gl:e};Ul.exports=Vl;var Bl=r(zl),Hl={},$l={get exports(){return Hl},set exports(t){Hl=t}},Jl=ya.map;Cr({target:"Array",proto:!0,forced:!Vn("map")},{map:function(t){return Jl(this,t,arguments.length>1?arguments[1]:void 0)}});var Kl=hl("Array").map,Ql=ht,Zl=Kl,tp=Array.prototype,ep=function(t){var e=t.map;return t===tp||Ql(tp,t)&&e===tp.map?Zl:e};$l.exports=ep;var rp=r(Hl),np={},op={get exports(){return np},set exports(t){np=t}},ip=Br,ap=en,sp=nn,up=er,cp=function(t,e,r,n,o,i,a,s){for(var u,c,f=o,l=0,p=!!a&&up(a,s);l<n;)l in r&&(u=p?p(r[l],l,e):r[l],i>0&&ip(u)?(c=ap(u),f=cp(t,e,u,c,f,i-1)-1):(sp(f+1),t[f]=u),f++),l++;return f},fp=cp,lp=Mt,pp=te,hp=en,vp=Yn;Cr({target:"Array",proto:!0},{flatMap:function(t){var e,r=pp(this),n=hp(r);return lp(t),(e=vp(r,0)).length=fp(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var dp=hl("Array").flatMap,yp=ht,gp=dp,mp=Array.prototype,bp=function(t){var e=t.flatMap;return t===mp||yp(mp,t)&&e===mp.flatMap?gp:e};op.exports=bp;var xp=r(np);function _p(t){return new Ep(t)}var wp=function(){function e(r,n,o){var i,a,s;t(this,e),Jf(this,"_source",void 0),Jf(this,"_transformers",void 0),Jf(this,"_target",void 0),Jf(this,"_listeners",{add:bl(i=this._add).call(i,this),remove:bl(a=this._remove).call(a,this),update:bl(s=this._update).call(s,this)}),this._source=r,this._transformers=n,this._target=o}return $f(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return Fl(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),e}(),Ep=function(){function e(r){t(this,e),Jf(this,"_source",void 0),Jf(this,"_transformers",[]),this._source=r}return $f(e,[{key:"filter",value:function(t){return this._transformers.push((function(e){return Bl(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return rp(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return xp(e).call(e,t)})),this}},{key:"to",value:function(t){return new wp(this._source,this._transformers,t)}}]),e}(),Tp={},Op={get exports(){return Tp},set exports(t){Tp=t}},Sp=F,kp=sr,jp=zt,Ap=function(t,e,r){var n,o;kp(t);try{if(!(n=jp(t,"return"))){if("throw"===e)throw r;return r}n=Sp(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kp(n),r},Pp=sr,Ip=Ap,Dp=Su,Cp=ge("iterator"),Lp=Array.prototype,Rp=function(t){return void 0!==t&&(Dp.Array===t||Lp[Cp]===t)},Mp=gn,Np=zt,Fp=K,zp=Su,Up=ge("iterator"),qp=function(t){if(!Fp(t))return Np(t,Up)||Np(t,"@@iterator")||zp[Mp(t)]},Yp=F,Wp=Mt,Gp=sr,Xp=Dt,Vp=qp,Bp=TypeError,Hp=function(t,e){var r=arguments.length<2?Vp(t):e;if(Wp(r))return Gp(Yp(r,t));throw Bp(Xp(t)+" is not iterable")},$p=er,Jp=F,Kp=te,Qp=function(t,e,r,n){try{return n?e(Pp(r)[0],r[1]):e(r)}catch(e){Ip(t,"throw",e)}},Zp=Rp,th=Rn,eh=en,rh=un,nh=Hp,oh=qp,ih=Array,ah=ge("iterator"),sh=!1;try{var uh=0,ch={next:function(){return{done:!!uh++}},return:function(){sh=!0}};ch[ah]=function(){return this},Array.from(ch,(function(){throw 2}))}catch(t){}var fh=function(t,e){if(!e&&!sh)return!1;var r=!1;try{var n={};n[ah]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},lh=function(t){var e=Kp(t),r=th(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=$p(o,n>2?arguments[2]:void 0));var a,s,u,c,f,l,p=oh(e),h=0;if(!p||this===ih&&Zp(p))for(a=eh(e),s=r?new this(a):ih(a);a>h;h++)l=i?o(e[h],h):e[h],rh(s,h,l);else for(f=(c=nh(e,p)).next,s=r?new this:[];!(u=Jp(f,c)).done;h++)l=i?Qp(c,o,[u.value,h],!0):u.value,rh(s,h,l);return s.length=h,s};Cr({target:"Array",stat:!0,forced:!fh((function(t){Array.from(t)}))},{from:lh});var ph=st.Array.from;Op.exports=ph;var hh=r(Tp),vh={},dh={get exports(){return vh},set exports(t){vh=t}},yh={},gh=qp;({get exports(){return yh},set exports(t){yh=t}}).exports=gh,dh.exports=yh;var mh=r(vh),bh={},xh={get exports(){return bh},set exports(t){bh=t}},_h=st.Object.getOwnPropertySymbols;xh.exports=_h;var wh=r(bh),Eh={},Th={get exports(){return Eh},set exports(t){Eh=t}},Oh={},Sh={get exports(){return Oh},set exports(t){Oh=t}},kh=Cr,jh=l,Ah=nt,Ph=L.f,Ih=R;kh({target:"Object",stat:!0,forced:!Ih||jh((function(){Ph(1)})),sham:!Ih},{getOwnPropertyDescriptor:function(t,e){return Ph(Ah(t),e)}});var Dh=st.Object,Ch=Sh.exports=function(t,e){return Dh.getOwnPropertyDescriptor(t,e)};Dh.getOwnPropertyDescriptor.sham&&(Ch.sham=!0);var Lh=Oh;Th.exports=Lh;var Rh=r(Eh),Mh={},Nh={get exports(){return Mh},set exports(t){Mh=t}},Fh=pt,zh=ni,Uh=mi,qh=sr,Yh=w([].concat),Wh=Fh("Reflect","ownKeys")||function(t){var e=zh.f(qh(t)),r=Uh.f;return r?Yh(e,r(t)):e},Gh=Wh,Xh=nt,Vh=L,Bh=un;Cr({target:"Object",stat:!0,sham:!R},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Xh(t),o=Vh.f,i=Gh(n),a={},s=0;i.length>s;)void 0!==(r=o(n,e=i[s++]))&&Bh(a,e,r);return a}});var Hh=st.Object.getOwnPropertyDescriptors;Nh.exports=Hh;var $h=r(Mh),Jh={},Kh={get exports(){return Jh},set exports(t){Jh=t}},Qh={},Zh={get exports(){return Qh},set exports(t){Qh=t}},tv=Cr,ev=R,rv=fo.f;tv({target:"Object",stat:!0,forced:Object.defineProperties!==rv,sham:!ev},{defineProperties:rv});var nv=st.Object,ov=Zh.exports=function(t,e){return nv.defineProperties(t,e)};nv.defineProperties.sham&&(ov.sham=!0);var iv=Qh;Kh.exports=iv;var av=r(Jh),sv={};({get exports(){return sv},set exports(t){sv=t}}).exports=zr;var uv=r(sv),cv={},fv={get exports(){return cv},set exports(t){cv=t}},lv={},pv={get exports(){return lv},set exports(t){lv=t}};Cr({target:"Array",stat:!0},{isArray:Br});var hv=st.Array.isArray,vv=hv;pv.exports=vv,fv.exports=lv;var dv=r(cv);var yv={},gv={get exports(){return yv},set exports(t){yv=t}},mv={},bv={get exports(){return mv},set exports(t){mv=t}},xv=Cr,_v=Br,wv=Rn,Ev=at,Tv=vo,Ov=en,Sv=nt,kv=un,jv=ge,Av=Us,Pv=Vn("slice"),Iv=jv("species"),Dv=Array,Cv=Math.max;xv({target:"Array",proto:!0,forced:!Pv},{slice:function(t,e){var r,n,o,i=Sv(this),a=Ov(i),s=Tv(t,a),u=Tv(void 0===e?a:e,a);if(_v(i)&&(r=i.constructor,(wv(r)&&(r===Dv||_v(r.prototype))||Ev(r)&&null===(r=r[Iv]))&&(r=void 0),r===Dv||void 0===r))return Av(i,s,u);for(n=new(void 0===r?Dv:r)(Cv(u-s,0)),o=0;s<u;s++,o++)s in i&&kv(n,o,i[s]);return n.length=o,n}});var Lv=hl("Array").slice,Rv=ht,Mv=Lv,Nv=Array.prototype,Fv=function(t){var e=t.slice;return t===Nv||Rv(Nv,t)&&e===Nv.slice?Mv:e},zv=Fv;bv.exports=zv,gv.exports=mv;var Uv=r(yv),qv={},Yv={get exports(){return qv},set exports(t){qv=t}},Wv={},Gv=ph;({get exports(){return Wv},set exports(t){Wv=t}}).exports=Gv,Yv.exports=Wv;var Xv=r(qv);function Vv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bv(t,e){var r;if(t){if("string"==typeof t)return Vv(t,e);var n=Uv(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Xv(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vv(t,e):void 0}}function Hv(t,e){return function(t){if(dv(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==yf&&mh(t)||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||Bv(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $v(t){return function(t){if(dv(t))return Vv(t)}(t)||function(t){if(void 0!==yf&&null!=mh(t)||null!=t["@@iterator"])return Xv(t)}(t)||Bv(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Jv={};({get exports(){return Jv},set exports(t){Jv=t}}).exports=Vc;var Kv=r(Jv),Qv={},Zv={get exports(){return Qv},set exports(t){Qv=t}},td=hl("Array").concat,ed=ht,rd=td,nd=Array.prototype,od=function(t){var e=t.concat;return t===nd||ed(nd,t)&&e===nd.concat?rd:e};Zv.exports=od;var id=r(Qv),ad={};({get exports(){return ad},set exports(t){ad=t}}).exports=Fv;var sd=r(ad),ud={},cd={get exports(){return ud},set exports(t){ud=t}};Cr({target:"Reflect",stat:!0},{ownKeys:Wh});var fd=st.Reflect.ownKeys;cd.exports=fd;var ld=r(ud),pd={};({get exports(){return pd},set exports(t){pd=t}}).exports=hv;var hd=r(pd),vd={},dd={get exports(){return vd},set exports(t){vd=t}},yd=te,gd=Io;Cr({target:"Object",stat:!0,forced:l((function(){gd(1)}))},{keys:function(t){return gd(yd(t))}});var md=st.Object.keys;dd.exports=md;var bd=r(vd),xd={},_d={get exports(){return xd},set exports(t){xd=t}},wd=Cr,Ed=Date,Td=w(Ed.prototype.getTime);wd({target:"Date",stat:!0},{now:function(){return Td(new Ed)}});var Od=st.Date.now;_d.exports=Od;var Sd={},kd={get exports(){return Sd},set exports(t){Sd=t}},jd=ya.forEach,Ad=Pl("forEach")?[].forEach:function(t){return jd(this,t,arguments.length>1?arguments[1]:void 0)};Cr({target:"Array",proto:!0,forced:[].forEach!=Ad},{forEach:Ad});var Pd=hl("Array").forEach,Id=gn,Dd=ne,Cd=ht,Ld=Pd,Rd=Array.prototype,Md={DOMTokenList:!0,NodeList:!0},Nd=function(t){var e=t.forEach;return t===Rd||Cd(Rd,t)&&e===Rd.forEach||Dd(Md,Id(t))?Ld:e};kd.exports=Nd;var Fd=r(Sd),zd={},Ud={get exports(){return zd},set exports(t){zd=t}},qd=Cr,Yd=Br,Wd=w([].reverse),Gd=[1,2];qd({target:"Array",proto:!0,forced:String(Gd)===String(Gd.reverse())},{reverse:function(){return Yd(this)&&(this.length=this.length),Wd(this)}});var Xd=hl("Array").reverse,Vd=ht,Bd=Xd,Hd=Array.prototype,$d=function(t){var e=t.reverse;return t===Hd||Vd(Hd,t)&&e===Hd.reverse?Bd:e};Ud.exports=$d;var Jd=r(zd),Kd={},Qd={get exports(){return Kd},set exports(t){Kd=t}},Zd=R,ty=Br,ey=TypeError,ry=Object.getOwnPropertyDescriptor,ny=Zd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),oy=Dt,iy=TypeError,ay=function(t,e){if(!delete t[e])throw iy("Cannot delete property "+oy(e)+" of "+oy(t))},sy=Cr,uy=te,cy=vo,fy=Kr,ly=en,py=ny?function(t,e){if(ty(t)&&!ry(t,"length").writable)throw ey("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},hy=nn,vy=Yn,dy=un,yy=ay,gy=Vn("splice"),my=Math.max,by=Math.min;sy({target:"Array",proto:!0,forced:!gy},{splice:function(t,e){var r,n,o,i,a,s,u=uy(this),c=ly(u),f=cy(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=by(my(fy(e),0),c-f)),hy(c+r-n),o=vy(u,n),i=0;i<n;i++)(a=f+i)in u&&dy(o,i,u[a]);if(o.length=n,r<n){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:yy(u,s);for(i=c;i>c-n+r;i--)yy(u,i-1)}else if(r>n)for(i=c-n;i>f;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:yy(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return py(u,c-n+r),o}});var xy=hl("Array").splice,_y=ht,wy=xy,Ey=Array.prototype,Ty=function(t){var e=t.splice;return t===Ey||_y(Ey,t)&&e===Ey.splice?wy:e};Qd.exports=Ty;var Oy=r(Kd),Sy={},ky={get exports(){return Sy},set exports(t){Sy=t}},jy=R,Ay=w,Py=F,Iy=l,Dy=Io,Cy=mi,Ly=z,Ry=te,My=J,Ny=Object.assign,Fy=Object.defineProperty,zy=Ay([].concat),Uy=!Ny||Iy((function(){if(jy&&1!==Ny({b:1},Ny(Fy({},"a",{enumerable:!0,get:function(){Fy(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Ny({},t)[r]||Dy(Ny({},e)).join("")!=n}))?function(t,e){for(var r=Ry(t),n=arguments.length,o=1,i=Cy.f,a=Ly.f;n>o;)for(var s,u=My(arguments[o++]),c=i?zy(Dy(u),i(u)):Dy(u),f=c.length,l=0;f>l;)s=c[l++],jy&&!Py(a,u,s)||(r[s]=u[s]);return r}:Ny,qy=Uy;Cr({target:"Object",stat:!0,arity:2,forced:Object.assign!==qy},{assign:qy});var Yy=st.Object.assign;ky.exports=Yy;var Wy=r(Sy),Gy={},Xy={get exports(){return Gy},set exports(t){Gy=t}},Vy=xo.includes;Cr({target:"Array",proto:!0,forced:l((function(){return!Array(1).includes()}))},{includes:function(t){return Vy(this,t,arguments.length>1?arguments[1]:void 0)}});var By=hl("Array").includes,Hy=at,$y=S,Jy=ge("match"),Ky=function(t){var e;return Hy(t)&&(void 0!==(e=t[Jy])?!!e:"RegExp"==$y(t))},Qy=TypeError,Zy=ge("match"),tg=Cr,eg=function(t){if(Ky(t))throw Qy("The method doesn't accept regular expressions");return t},rg=tt,ng=co,og=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Zy]=!1,"/./"[t](e)}catch(t){}}return!1},ig=w("".indexOf);tg({target:"String",proto:!0,forced:!og("includes")},{includes:function(t){return!!~ig(ng(rg(this)),ng(eg(t)),arguments.length>1?arguments[1]:void 0)}});var ag=hl("String").includes,sg=ht,ug=By,cg=ag,fg=Array.prototype,lg=String.prototype,pg=function(t){var e=t.includes;return t===fg||sg(fg,t)&&e===fg.includes?ug:"string"==typeof t||t===lg||sg(lg,t)&&e===lg.includes?cg:e};Xy.exports=pg;var hg={},vg={get exports(){return hg},set exports(t){hg=t}},dg=te,yg=qu,gg=Cu;Cr({target:"Object",stat:!0,forced:l((function(){yg(1)})),sham:!gg},{getPrototypeOf:function(t){return yg(dg(t))}});var mg=st.Object.getPrototypeOf;vg.exports=mg;var bg={},xg={get exports(){return bg},set exports(t){bg=t}},_g=R,wg=w,Eg=Io,Tg=nt,Og=wg(z.f),Sg=wg([].push),kg=function(t){return function(e){for(var r,n=Tg(e),o=Eg(n),i=o.length,a=0,s=[];i>a;)r=o[a++],_g&&!Og(n,r)||Sg(s,t?[r,n[r]]:n[r]);return s}},jg={entries:kg(!0),values:kg(!1)}.values;Cr({target:"Object",stat:!0},{values:function(t){return jg(t)}});var Ag=st.Object.values;xg.exports=Ag;var Pg={},Ig={get exports(){return Pg},set exports(t){Pg=t}},Dg="\t\n\v\f\r                 \u2028\u2029\ufeff",Cg=tt,Lg=co,Rg=Dg,Mg=w("".replace),Ng=RegExp("^["+Rg+"]+"),Fg=RegExp("(^|[^"+Rg+"])["+Rg+"]+$"),zg=function(t){return function(e){var r=Lg(Cg(e));return 1&t&&(r=Mg(r,Ng,"")),2&t&&(r=Mg(r,Fg,"$1")),r}},Ug={start:zg(1),end:zg(2),trim:zg(3)},qg=f,Yg=l,Wg=w,Gg=co,Xg=Ug.trim,Vg=Dg,Bg=qg.parseInt,Hg=qg.Symbol,$g=Hg&&Hg.iterator,Jg=/^[+-]?0x/i,Kg=Wg(Jg.exec),Qg=8!==Bg(Vg+"08")||22!==Bg(Vg+"0x16")||$g&&!Yg((function(){Bg(Object($g))}))?function(t,e){var r=Xg(Gg(t));return Bg(r,e>>>0||(Kg(Jg,r)?16:10))}:Bg;Cr({global:!0,forced:parseInt!=Qg},{parseInt:Qg});var Zg=st.parseInt;Ig.exports=Zg;var tm={},em={get exports(){return tm},set exports(t){tm=t}},rm=Cr,nm=xo.indexOf,om=Pl,im=A([].indexOf),am=!!im&&1/im([1],1,-0)<0;rm({target:"Array",proto:!0,forced:am||!om("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return am?im(this,t,e)||0:nm(this,t,e)}});var sm=hl("Array").indexOf,um=ht,cm=sm,fm=Array.prototype,lm=function(t){var e=t.indexOf;return t===fm||um(fm,t)&&e===fm.indexOf?cm:e};em.exports=lm;var pm={},hm={get exports(){return pm},set exports(t){pm=t}},vm=Du.PROPER,dm=l,ym=Dg,gm=Ug.trim;Cr({target:"String",proto:!0,forced:function(t){return dm((function(){return!!ym[t]()||"​…᠎"!=="​…᠎"[t]()||vm&&ym[t].name!==t}))}("trim")},{trim:function(){return gm(this)}});var mm=hl("String").trim,bm=ht,xm=mm,_m=String.prototype,wm=function(t){var e=t.trim;return"string"==typeof t||t===_m||bm(_m,t)&&e===_m.trim?xm:e};hm.exports=wm;var Em={},Tm={get exports(){return Em},set exports(t){Em=t}};Cr({target:"Object",stat:!0,sham:!R},{create:ri});var Om=st.Object,Sm=function(t,e){return Om.create(t,e)};Tm.exports=Sm;var km=r(Em),jm={},Am={get exports(){return jm},set exports(t){jm=t}},Pm=st,Im=g;Pm.JSON||(Pm.JSON={stringify:JSON.stringify});var Dm=function(t,e,r){return Im(Pm.JSON.stringify,null,arguments)};Am.exports=Dm;var Cm=r(jm),Lm={},Rm={get exports(){return Lm},set exports(t){Lm=t}},Mm="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Nm=TypeError,Fm=function(t,e){if(t<e)throw Nm("Not enough arguments");return t},zm=f,Um=g,qm=C,Ym=Mm,Wm=vt,Gm=Us,Xm=Fm,Vm=zm.Function,Bm=/MSIE .\./.test(Wm)||Ym&&function(){var t=zm.Bun.version.split(".");return t.length<3||0==t[0]&&(t[1]<3||3==t[1]&&0==t[2])}(),Hm=function(t,e){var r=e?2:1;return Bm?function(n,o){var i=Xm(arguments.length,1)>r,a=qm(n)?n:Vm(n),s=i?Gm(arguments,r):[],u=i?function(){Um(a,this,s)}:a;return e?t(u,o):t(u)}:t},$m=Cr,Jm=f,Km=Hm(Jm.setInterval,!0);$m({global:!0,bind:!0,forced:Jm.setInterval!==Km},{setInterval:Km});var Qm=Cr,Zm=f,tb=Hm(Zm.setTimeout,!0);Qm({global:!0,bind:!0,forced:Zm.setTimeout!==tb},{setTimeout:tb});var eb=st.setTimeout;Rm.exports=eb;var rb=r(Lm),nb={},ob={get exports(){return nb},set exports(t){nb=t}},ib=te,ab=vo,sb=en;Cr({target:"Array",proto:!0},{fill:function(t){for(var e=ib(this),r=sb(e),n=arguments.length,o=ab(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ab(i,r);a>o;)e[o++]=t;return e}});var ub=hl("Array").fill,cb=ht,fb=ub,lb=Array.prototype,pb=function(t){var e=t.fill;return t===lb||cb(lb,t)&&e===lb.fill?fb:e};ob.exports=pb;var hb={},vb={get exports(){return hb},set exports(t){hb=t}};!function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}vb.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}();var db=hb;
26
+ function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={exports:{}},i=function(t){return t&&t.Math==Math&&t},o=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=u,c=Function.prototype,f=c.apply,l=c.call,h="object"==typeof Reflect&&Reflect.apply||(s?l.bind(f):function(){return l.apply(f,arguments)}),p=u,v=Function.prototype,d=v.call,y=p&&v.bind.bind(d,d),g=p?y:function(t){return function(){return d.apply(t,arguments)}},m=g,b=m({}.toString),_=m("".slice),w=function(t){return _(b(t),8,-1)},E=w,T=g,O=function(t){if("Function"===E(t))return T(t)},x="object"==typeof document&&document.all,k={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},S=k.all,j=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===S}:function(t){return"function"==typeof t},A={},P=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=u,D=Function.prototype.call,C=I?D.bind(D):function(){return D.apply(D,arguments)},L={},R={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,N=M&&!R.call({1:2},1);L.f=N?function(t){var e=M(this,t);return!!e&&e.enumerable}:R;var F,z,U=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},q=a,Y=w,W=Object,G=g("".split),X=q((function(){return!W("z").propertyIsEnumerable(0)}))?function(t){return"String"==Y(t)?G(t,""):W(t)}:W,V=function(t){return null==t},B=V,H=TypeError,$=function(t){if(B(t))throw H("Can't call method on "+t);return t},J=X,K=$,Q=function(t){return J(K(t))},Z=j,tt=k.all,et=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Z(t)||t===tt}:function(t){return"object"==typeof t?null!==t:Z(t)},rt={},nt=rt,it=o,ot=j,at=function(t){return ot(t)?t:void 0},ut=function(t,e){return arguments.length<2?at(nt[t])||at(it[t]):nt[t]&&nt[t][e]||it[t]&&it[t][e]},st=g({}.isPrototypeOf),ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ft=o,lt=ct,ht=ft.process,pt=ft.Deno,vt=ht&&ht.versions||pt&&pt.version,dt=vt&&vt.v8;dt&&(z=(F=dt.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!z&&lt&&(!(F=lt.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=lt.match(/Chrome\/(\d+)/))&&(z=+F[1]);var yt=z,gt=yt,mt=a,bt=!!Object.getOwnPropertySymbols&&!mt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),_t=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wt=ut,Et=j,Tt=st,Ot=Object,xt=_t?function(t){return"symbol"==typeof t}:function(t){var e=wt("Symbol");return Et(e)&&Tt(e.prototype,Ot(t))},kt=String,St=function(t){try{return kt(t)}catch(t){return"Object"}},jt=j,At=St,Pt=TypeError,It=function(t){if(jt(t))return t;throw Pt(At(t)+" is not a function")},Dt=It,Ct=V,Lt=function(t,e){var r=t[e];return Ct(r)?void 0:Dt(r)},Rt=C,Mt=j,Nt=et,Ft=TypeError,zt={exports:{}},Ut=o,qt=Object.defineProperty,Yt=function(t,e){try{qt(Ut,t,{value:e,configurable:!0,writable:!0})}catch(r){Ut[t]=e}return e},Wt="__core-js_shared__",Gt=o[Wt]||Yt(Wt,{}),Xt=Gt;(zt.exports=function(t,e){return Xt[t]||(Xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Vt=zt.exports,Bt=$,Ht=Object,$t=function(t){return Ht(Bt(t))},Jt=$t,Kt=g({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Kt(Jt(t),e)},Zt=g,te=0,ee=Math.random(),re=Zt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},ie=Vt,oe=Qt,ae=ne,ue=bt,se=_t,ce=o.Symbol,fe=ie("wks"),le=se?ce.for||ce:ce&&ce.withoutSetter||ae,he=function(t){return oe(fe,t)||(fe[t]=ue&&oe(ce,t)?ce[t]:le("Symbol."+t)),fe[t]},pe=C,ve=et,de=xt,ye=Lt,ge=function(t,e){var r,n;if("string"===e&&Mt(r=t.toString)&&!Nt(n=Rt(r,t)))return n;if(Mt(r=t.valueOf)&&!Nt(n=Rt(r,t)))return n;if("string"!==e&&Mt(r=t.toString)&&!Nt(n=Rt(r,t)))return n;throw Ft("Can't convert object to primitive value")},me=TypeError,be=he("toPrimitive"),_e=function(t,e){if(!ve(t)||de(t))return t;var r,n=ye(t,be);if(n){if(void 0===e&&(e="default"),r=pe(n,t,e),!ve(r)||de(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},we=xt,Ee=function(t){var e=_e(t,"string");return we(e)?e:e+""},Te=et,Oe=o.document,xe=Te(Oe)&&Te(Oe.createElement),ke=function(t){return xe?Oe.createElement(t):{}},Se=ke,je=!P&&!a((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),Ae=P,Pe=C,Ie=L,De=U,Ce=Q,Le=Ee,Re=Qt,Me=je,Ne=Object.getOwnPropertyDescriptor;A.f=Ae?Ne:function(t,e){if(t=Ce(t),e=Le(e),Me)try{return Ne(t,e)}catch(t){}if(Re(t,e))return De(!Pe(Ie.f,t,e),t[e])};var Fe=a,ze=j,Ue=/#|\.prototype\./,qe=function(t,e){var r=We[Ye(t)];return r==Xe||r!=Ge&&(ze(e)?Fe(e):!!e)},Ye=qe.normalize=function(t){return String(t).replace(Ue,".").toLowerCase()},We=qe.data={},Ge=qe.NATIVE="N",Xe=qe.POLYFILL="P",Ve=qe,Be=It,He=u,$e=O(O.bind),Je=function(t,e){return Be(t),void 0===e?t:He?$e(t,e):function(){return t.apply(e,arguments)}},Ke={},Qe=P&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=et,tr=String,er=TypeError,rr=function(t){if(Ze(t))return t;throw er(tr(t)+" is not an object")},nr=P,ir=je,or=Qe,ar=rr,ur=Ee,sr=TypeError,cr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,lr="enumerable",hr="configurable",pr="writable";Ke.f=nr?or?function(t,e,r){if(ar(t),e=ur(e),ar(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pr in r&&!r[pr]){var n=fr(t,e);n&&n[pr]&&(t[e]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return cr(t,e,r)}:cr:function(t,e,r){if(ar(t),e=ur(e),ar(r),ir)try{return cr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var vr=Ke,dr=U,yr=P?function(t,e,r){return vr.f(t,e,dr(1,r))}:function(t,e,r){return t[e]=r,t},gr=o,mr=h,br=O,_r=j,wr=A.f,Er=Ve,Tr=rt,Or=Je,xr=yr,kr=Qt,Sr=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return mr(t,this,arguments)};return e.prototype=t.prototype,e},jr=function(t,e){var r,n,i,o,a,u,s,c,f,l=t.target,h=t.global,p=t.stat,v=t.proto,d=h?gr:p?gr[l]:(gr[l]||{}).prototype,y=h?Tr:Tr[l]||xr(Tr,l,{})[l],g=y.prototype;for(o in e)n=!(r=Er(h?o:l+(p?".":"#")+o,t.forced))&&d&&kr(d,o),u=y[o],n&&(s=t.dontCallGetSet?(f=wr(d,o))&&f.value:d[o]),a=n&&s?s:e[o],n&&typeof u==typeof a||(c=t.bind&&n?Or(a,gr):t.wrap&&n?Sr(a):v&&_r(a)?br(a):a,(t.sham||a&&a.sham||u&&u.sham)&&xr(c,"sham",!0),xr(y,o,c),v&&(kr(Tr,i=l+"Prototype")||xr(Tr,i,{}),xr(Tr[i],o,a),t.real&&g&&(r||!g[o])&&xr(g,o,a)))},Ar=jr,Pr=P,Ir=Ke.f;Ar({target:"Object",stat:!0,forced:Object.defineProperty!==Ir,sham:!Pr},{defineProperty:Ir});var Dr=rt.Object,Cr=n.exports=function(t,e,r){return Dr.defineProperty(t,e,r)};Dr.defineProperty.sham&&(Cr.sham=!0);var Lr=n.exports,Rr=Lr,Mr=r(Rr),Nr=w,Fr=Array.isArray||function(t){return"Array"==Nr(t)},zr=Math.ceil,Ur=Math.floor,qr=Math.trunc||function(t){var e=+t;return(e>0?Ur:zr)(e)},Yr=function(t){var e=+t;return e!=e||0===e?0:qr(e)},Wr=Yr,Gr=Math.min,Xr=function(t){return t>0?Gr(Wr(t),9007199254740991):0},Vr=function(t){return Xr(t.length)},Br=TypeError,Hr=function(t){if(t>9007199254740991)throw Br("Maximum allowed index exceeded");return t},$r=Ee,Jr=Ke,Kr=U,Qr=function(t,e,r){var n=$r(e);n in t?Jr.f(t,n,Kr(0,r)):t[n]=r},Zr={};Zr[he("toStringTag")]="z";var tn="[object z]"===String(Zr),en=tn,rn=j,nn=w,on=he("toStringTag"),an=Object,un="Arguments"==nn(function(){return arguments}()),sn=en?nn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=an(t),on))?r:un?nn(e):"Object"==(n=nn(e))&&rn(e.callee)?"Arguments":n},cn=j,fn=Gt,ln=g(Function.toString);cn(fn.inspectSource)||(fn.inspectSource=function(t){return ln(t)});var hn=fn.inspectSource,pn=g,vn=a,dn=j,yn=sn,gn=hn,mn=function(){},bn=[],_n=ut("Reflect","construct"),wn=/^\s*(?:class|function)\b/,En=pn(wn.exec),Tn=!wn.exec(mn),On=function(t){if(!dn(t))return!1;try{return _n(mn,bn,t),!0}catch(t){return!1}},xn=function(t){if(!dn(t))return!1;switch(yn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tn||!!En(wn,gn(t))}catch(t){return!0}};xn.sham=!0;var kn=!_n||vn((function(){var t;return On(On.call)||!On(Object)||!On((function(){t=!0}))||t}))?xn:On,Sn=Fr,jn=kn,An=et,Pn=he("species"),In=Array,Dn=function(t){var e;return Sn(t)&&(e=t.constructor,(jn(e)&&(e===In||Sn(e.prototype))||An(e)&&null===(e=e[Pn]))&&(e=void 0)),void 0===e?In:e},Cn=function(t,e){return new(Dn(t))(0===e?0:e)},Ln=a,Rn=yt,Mn=he("species"),Nn=function(t){return Rn>=51||!Ln((function(){var e=[];return(e.constructor={})[Mn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Fn=jr,zn=a,Un=Fr,qn=et,Yn=$t,Wn=Vr,Gn=Hr,Xn=Qr,Vn=Cn,Bn=Nn,Hn=yt,$n=he("isConcatSpreadable"),Jn=Hn>=51||!zn((function(){var t=[];return t[$n]=!1,t.concat()[0]!==t})),Kn=function(t){if(!qn(t))return!1;var e=t[$n];return void 0!==e?!!e:Un(t)};Fn({target:"Array",proto:!0,arity:1,forced:!Jn||!Bn("concat")},{concat:function(t){var e,r,n,i,o,a=Yn(this),u=Vn(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Kn(o=-1===e?a:arguments[e]))for(i=Wn(o),Gn(s+i),r=0;r<i;r++,s++)r in o&&Xn(u,s,o[r]);else Gn(s+1),Xn(u,s++,o);return u.length=s,u}});var Qn=sn,Zn=String,ti=function(t){if("Symbol"===Qn(t))throw TypeError("Cannot convert a Symbol value to a string");return Zn(t)},ei={},ri=Yr,ni=Math.max,ii=Math.min,oi=function(t,e){var r=ri(t);return r<0?ni(r+e,0):ii(r,e)},ai=Q,ui=oi,si=Vr,ci=function(t){return function(e,r,n){var i,o=ai(e),a=si(o),u=ui(n,a);if(t&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},fi={includes:ci(!0),indexOf:ci(!1)},li={},hi=Qt,pi=Q,vi=fi.indexOf,di=li,yi=g([].push),gi=function(t,e){var r,n=pi(t),i=0,o=[];for(r in n)!hi(di,r)&&hi(n,r)&&yi(o,r);for(;e.length>i;)hi(n,r=e[i++])&&(~vi(o,r)||yi(o,r));return o},mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bi=gi,_i=mi,wi=Object.keys||function(t){return bi(t,_i)},Ei=P,Ti=Qe,Oi=Ke,xi=rr,ki=Q,Si=wi;ei.f=Ei&&!Ti?Object.defineProperties:function(t,e){xi(t);for(var r,n=ki(e),i=Si(e),o=i.length,a=0;o>a;)Oi.f(t,r=i[a++],n[r]);return t};var ji,Ai=ut("document","documentElement"),Pi=ne,Ii=Vt("keys"),Di=function(t){return Ii[t]||(Ii[t]=Pi(t))},Ci=rr,Li=ei,Ri=mi,Mi=li,Ni=Ai,Fi=ke,zi="prototype",Ui="script",qi=Di("IE_PROTO"),Yi=function(){},Wi=function(t){return"<"+Ui+">"+t+"</"+Ui+">"},Gi=function(t){t.write(Wi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xi=function(){try{ji=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Xi="undefined"!=typeof document?document.domain&&ji?Gi(ji):(e=Fi("iframe"),r="java"+Ui+":",e.style.display="none",Ni.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Wi("document.F=Object")),t.close(),t.F):Gi(ji);for(var n=Ri.length;n--;)delete Xi[zi][Ri[n]];return Xi()};Mi[qi]=!0;var Vi=Object.create||function(t,e){var r;return null!==t?(Yi[zi]=Ci(t),r=new Yi,Yi[zi]=null,r[qi]=t):r=Xi(),void 0===e?r:Li.f(r,e)},Bi={},Hi=gi,$i=mi.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(t){return Hi(t,$i)};var Ji={},Ki=oi,Qi=Vr,Zi=Qr,to=Array,eo=Math.max,ro=function(t,e,r){for(var n=Qi(t),i=Ki(e,n),o=Ki(void 0===r?n:r,n),a=to(eo(o-i,0)),u=0;i<o;i++,u++)Zi(a,u,t[i]);return a.length=u,a},no=w,io=Q,oo=Bi.f,ao=ro,uo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ji.f=function(t){return uo&&"Window"==no(t)?function(t){try{return oo(t)}catch(t){return ao(uo)}}(t):oo(io(t))};var so={};so.f=Object.getOwnPropertySymbols;var co=yr,fo=function(t,e,r,n){return n&&n.enumerable?t[e]=r:co(t,e,r),t},lo=Ke,ho=function(t,e,r){return lo.f(t,e,r)},po={},vo=he;po.f=vo;var yo,go,mo,bo=rt,_o=Qt,wo=po,Eo=Ke.f,To=function(t){var e=bo.Symbol||(bo.Symbol={});_o(e,t)||Eo(e,t,{value:wo.f(t)})},Oo=C,xo=ut,ko=he,So=fo,jo=function(){var t=xo("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=ko("toPrimitive");e&&!e[n]&&So(e,n,(function(t){return Oo(r,this)}),{arity:1})},Ao=sn,Po=tn?{}.toString:function(){return"[object "+Ao(this)+"]"},Io=tn,Do=Ke.f,Co=yr,Lo=Qt,Ro=Po,Mo=he("toStringTag"),No=function(t,e,r,n){if(t){var i=r?t:t.prototype;Lo(i,Mo)||Do(i,Mo,{configurable:!0,value:e}),n&&!Io&&Co(i,"toString",Ro)}},Fo=j,zo=o.WeakMap,Uo=Fo(zo)&&/native code/.test(String(zo)),qo=o,Yo=et,Wo=yr,Go=Qt,Xo=Gt,Vo=Di,Bo=li,Ho="Object already initialized",$o=qo.TypeError,Jo=qo.WeakMap;if(Uo||Xo.state){var Ko=Xo.state||(Xo.state=new Jo);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,yo=function(t,e){if(Ko.has(t))throw $o(Ho);return e.facade=t,Ko.set(t,e),e},go=function(t){return Ko.get(t)||{}},mo=function(t){return Ko.has(t)}}else{var Qo=Vo("state");Bo[Qo]=!0,yo=function(t,e){if(Go(t,Qo))throw $o(Ho);return e.facade=t,Wo(t,Qo,e),e},go=function(t){return Go(t,Qo)?t[Qo]:{}},mo=function(t){return Go(t,Qo)}}var Zo={set:yo,get:go,has:mo,enforce:function(t){return mo(t)?go(t):yo(t,{})},getterFor:function(t){return function(e){var r;if(!Yo(e)||(r=go(e)).type!==t)throw $o("Incompatible receiver, "+t+" required");return r}}},ta=Je,ea=X,ra=$t,na=Vr,ia=Cn,oa=g([].push),aa=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,o=6==t,a=7==t,u=5==t||o;return function(s,c,f,l){for(var h,p,v=ra(s),d=ea(v),y=ta(c,f),g=na(d),m=0,b=l||ia,_=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)_[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:oa(_,h)}else switch(t){case 4:return!1;case 7:oa(_,h)}return o?-1:n||i?i:_}},ua={forEach:aa(0),map:aa(1),filter:aa(2),some:aa(3),every:aa(4),find:aa(5),findIndex:aa(6),filterReject:aa(7)},sa=jr,ca=o,fa=C,la=g,ha=P,pa=bt,va=a,da=Qt,ya=st,ga=rr,ma=Q,ba=Ee,_a=ti,wa=U,Ea=Vi,Ta=wi,Oa=Bi,xa=Ji,ka=so,Sa=A,ja=Ke,Aa=ei,Pa=L,Ia=fo,Da=ho,Ca=Vt,La=li,Ra=ne,Ma=he,Na=po,Fa=To,za=jo,Ua=No,qa=Zo,Ya=ua.forEach,Wa=Di("hidden"),Ga="Symbol",Xa="prototype",Va=qa.set,Ba=qa.getterFor(Ga),Ha=Object[Xa],$a=ca.Symbol,Ja=$a&&$a[Xa],Ka=ca.TypeError,Qa=ca.QObject,Za=Sa.f,tu=ja.f,eu=xa.f,ru=Pa.f,nu=la([].push),iu=Ca("symbols"),ou=Ca("op-symbols"),au=Ca("wks"),uu=!Qa||!Qa[Xa]||!Qa[Xa].findChild,su=ha&&va((function(){return 7!=Ea(tu({},"a",{get:function(){return tu(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Za(Ha,e);n&&delete Ha[e],tu(t,e,r),n&&t!==Ha&&tu(Ha,e,n)}:tu,cu=function(t,e){var r=iu[t]=Ea(Ja);return Va(r,{type:Ga,tag:t,description:e}),ha||(r.description=e),r},fu=function(t,e,r){t===Ha&&fu(ou,e,r),ga(t);var n=ba(e);return ga(r),da(iu,n)?(r.enumerable?(da(t,Wa)&&t[Wa][n]&&(t[Wa][n]=!1),r=Ea(r,{enumerable:wa(0,!1)})):(da(t,Wa)||tu(t,Wa,wa(1,{})),t[Wa][n]=!0),su(t,n,r)):tu(t,n,r)},lu=function(t,e){ga(t);var r=ma(e),n=Ta(r).concat(du(r));return Ya(n,(function(e){ha&&!fa(hu,r,e)||fu(t,e,r[e])})),t},hu=function(t){var e=ba(t),r=fa(ru,this,e);return!(this===Ha&&da(iu,e)&&!da(ou,e))&&(!(r||!da(this,e)||!da(iu,e)||da(this,Wa)&&this[Wa][e])||r)},pu=function(t,e){var r=ma(t),n=ba(e);if(r!==Ha||!da(iu,n)||da(ou,n)){var i=Za(r,n);return!i||!da(iu,n)||da(r,Wa)&&r[Wa][n]||(i.enumerable=!0),i}},vu=function(t){var e=eu(ma(t)),r=[];return Ya(e,(function(t){da(iu,t)||da(La,t)||nu(r,t)})),r},du=function(t){var e=t===Ha,r=eu(e?ou:ma(t)),n=[];return Ya(r,(function(t){!da(iu,t)||e&&!da(Ha,t)||nu(n,iu[t])})),n};pa||(Ia(Ja=($a=function(){if(ya(Ja,this))throw Ka("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?_a(arguments[0]):void 0,e=Ra(t),r=function(t){this===Ha&&fa(r,ou,t),da(this,Wa)&&da(this[Wa],e)&&(this[Wa][e]=!1),su(this,e,wa(1,t))};return ha&&uu&&su(Ha,e,{configurable:!0,set:r}),cu(e,t)})[Xa],"toString",(function(){return Ba(this).tag})),Ia($a,"withoutSetter",(function(t){return cu(Ra(t),t)})),Pa.f=hu,ja.f=fu,Aa.f=lu,Sa.f=pu,Oa.f=xa.f=vu,ka.f=du,Na.f=function(t){return cu(Ma(t),t)},ha&&Da(Ja,"description",{configurable:!0,get:function(){return Ba(this).description}})),sa({global:!0,constructor:!0,wrap:!0,forced:!pa,sham:!pa},{Symbol:$a}),Ya(Ta(au),(function(t){Fa(t)})),sa({target:Ga,stat:!0,forced:!pa},{useSetter:function(){uu=!0},useSimple:function(){uu=!1}}),sa({target:"Object",stat:!0,forced:!pa,sham:!ha},{create:function(t,e){return void 0===e?Ea(t):lu(Ea(t),e)},defineProperty:fu,defineProperties:lu,getOwnPropertyDescriptor:pu}),sa({target:"Object",stat:!0,forced:!pa},{getOwnPropertyNames:vu}),za(),Ua($a,Ga),La[Wa]=!0;var yu=bt&&!!Symbol.for&&!!Symbol.keyFor,gu=jr,mu=ut,bu=Qt,_u=ti,wu=Vt,Eu=yu,Tu=wu("string-to-symbol-registry"),Ou=wu("symbol-to-string-registry");gu({target:"Symbol",stat:!0,forced:!Eu},{for:function(t){var e=_u(t);if(bu(Tu,e))return Tu[e];var r=mu("Symbol")(e);return Tu[e]=r,Ou[r]=e,r}});var xu=jr,ku=Qt,Su=xt,ju=St,Au=yu,Pu=Vt("symbol-to-string-registry");xu({target:"Symbol",stat:!0,forced:!Au},{keyFor:function(t){if(!Su(t))throw TypeError(ju(t)+" is not a symbol");if(ku(Pu,t))return Pu[t]}});var Iu=g([].slice),Du=Fr,Cu=j,Lu=w,Ru=ti,Mu=g([].push),Nu=jr,Fu=ut,zu=h,Uu=C,qu=g,Yu=a,Wu=j,Gu=xt,Xu=Iu,Vu=function(t){if(Cu(t))return t;if(Du(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?Mu(r,i):"number"!=typeof i&&"Number"!=Lu(i)&&"String"!=Lu(i)||Mu(r,Ru(i))}var o=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Du(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}},Bu=bt,Hu=String,$u=Fu("JSON","stringify"),Ju=qu(/./.exec),Ku=qu("".charAt),Qu=qu("".charCodeAt),Zu=qu("".replace),ts=qu(1..toString),es=/[\uD800-\uDFFF]/g,rs=/^[\uD800-\uDBFF]$/,ns=/^[\uDC00-\uDFFF]$/,is=!Bu||Yu((function(){var t=Fu("Symbol")();return"[null]"!=$u([t])||"{}"!=$u({a:t})||"{}"!=$u(Object(t))})),os=Yu((function(){return'"\\udf06\\ud834"'!==$u("\udf06\ud834")||'"\\udead"'!==$u("\udead")})),as=function(t,e){var r=Xu(arguments),n=Vu(e);if(Wu(n)||void 0!==t&&!Gu(t))return r[1]=function(t,e){if(Wu(n)&&(e=Uu(n,this,Hu(t),e)),!Gu(e))return e},zu($u,null,r)},us=function(t,e,r){var n=Ku(r,e-1),i=Ku(r,e+1);return Ju(rs,t)&&!Ju(ns,i)||Ju(ns,t)&&!Ju(rs,n)?"\\u"+ts(Qu(t,0),16):t};$u&&Nu({target:"JSON",stat:!0,arity:3,forced:is||os},{stringify:function(t,e,r){var n=Xu(arguments),i=zu(is?as:$u,null,n);return os&&"string"==typeof i?Zu(i,es,us):i}});var ss=so,cs=$t;jr({target:"Object",stat:!0,forced:!bt||a((function(){ss.f(1)}))},{getOwnPropertySymbols:function(t){var e=ss.f;return e?e(cs(t)):[]}}),To("asyncIterator"),To("hasInstance"),To("isConcatSpreadable"),To("iterator"),To("match"),To("matchAll"),To("replace"),To("search"),To("species"),To("split");var fs=jo;To("toPrimitive"),fs();var ls=ut,hs=No;To("toStringTag"),hs(ls("Symbol"),"Symbol"),To("unscopables"),No(o.JSON,"JSON",!0);var ps,vs,ds,ys=rt.Symbol,gs={},ms=P,bs=Qt,_s=Function.prototype,ws=ms&&Object.getOwnPropertyDescriptor,Es=bs(_s,"name"),Ts={EXISTS:Es,PROPER:Es&&"something"===function(){}.name,CONFIGURABLE:Es&&(!ms||ms&&ws(_s,"name").configurable)},Os=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xs=Qt,ks=j,Ss=$t,js=Os,As=Di("IE_PROTO"),Ps=Object,Is=Ps.prototype,Ds=js?Ps.getPrototypeOf:function(t){var e=Ss(t);if(xs(e,As))return e[As];var r=e.constructor;return ks(r)&&e instanceof r?r.prototype:e instanceof Ps?Is:null},Cs=a,Ls=j,Rs=et,Ms=Vi,Ns=Ds,Fs=fo,zs=he("iterator"),Us=!1;[].keys&&("next"in(ds=[].keys())?(vs=Ns(Ns(ds)))!==Object.prototype&&(ps=vs):Us=!0);var qs=!Rs(ps)||Cs((function(){var t={};return ps[zs].call(t)!==t}));Ls((ps=qs?{}:Ms(ps))[zs])||Fs(ps,zs,(function(){return this}));var Ys={IteratorPrototype:ps,BUGGY_SAFARI_ITERATORS:Us},Ws=Ys.IteratorPrototype,Gs=Vi,Xs=U,Vs=No,Bs=gs,Hs=function(){return this},$s=g,Js=It,Ks=j,Qs=String,Zs=TypeError,tc=function(t,e,r){try{return $s(Js(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},ec=rr,rc=function(t){if("object"==typeof t||Ks(t))return t;throw Zs("Can't set "+Qs(t)+" as a prototype")},nc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=tc(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return ec(r),rc(n),e?t(r,n):r.__proto__=n,r}}():void 0),ic=jr,oc=C,ac=Ts,uc=function(t,e,r,n){var i=e+" Iterator";return t.prototype=Gs(Ws,{next:Xs(+!n,r)}),Vs(t,i,!1,!0),Bs[i]=Hs,t},sc=Ds,cc=No,fc=fo,lc=gs,hc=Ys,pc=ac.PROPER,vc=hc.BUGGY_SAFARI_ITERATORS,dc=he("iterator"),yc="keys",gc="values",mc="entries",bc=function(){return this},_c=function(t,e,r,n,i,o,a){uc(r,e,n);var u,s,c,f=function(t){if(t===i&&d)return d;if(!vc&&t in p)return p[t];switch(t){case yc:case gc:case mc:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,v=p[dc]||p["@@iterator"]||i&&p[i],d=!vc&&v||f(i),y="Array"==e&&p.entries||v;if(y&&(u=sc(y.call(new t)))!==Object.prototype&&u.next&&(cc(u,l,!0,!0),lc[l]=bc),pc&&i==gc&&v&&v.name!==gc&&(h=!0,d=function(){return oc(v,this)}),i)if(s={values:f(gc),keys:o?d:f(yc),entries:f(mc)},a)for(c in s)(vc||h||!(c in p))&&fc(p,c,s[c]);else ic({target:e,proto:!0,forced:vc||h},s);return a&&p[dc]!==d&&fc(p,dc,d,{name:i}),lc[e]=d,s},wc=function(t,e){return{value:t,done:e}},Ec=Q,Tc=gs,Oc=Zo;Ke.f;var xc=_c,kc=wc,Sc="Array Iterator",jc=Oc.set,Ac=Oc.getterFor(Sc);xc(Array,"Array",(function(t,e){jc(this,{type:Sc,target:Ec(t),index:0,kind:e})}),(function(){var t=Ac(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,kc(void 0,!0)):kc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),Tc.Arguments=Tc.Array;var Pc={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},Ic=o,Dc=sn,Cc=yr,Lc=gs,Rc=he("toStringTag");for(var Mc in Pc){var Nc=Ic[Mc],Fc=Nc&&Nc.prototype;Fc&&Dc(Fc)!==Rc&&Cc(Fc,Rc,Mc),Lc[Mc]=Lc.Array}var zc=ys;To("dispose");var Uc=zc;To("asyncDispose");var qc=jr,Yc=g,Wc=ut("Symbol"),Gc=Wc.keyFor,Xc=Yc(Wc.prototype.valueOf);qc({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Gc(Xc(t))}catch(t){return!1}}});for(var Vc=jr,Bc=Vt,Hc=ut,$c=g,Jc=xt,Kc=he,Qc=Hc("Symbol"),Zc=Qc.isWellKnown,tf=Hc("Object","getOwnPropertyNames"),ef=$c(Qc.prototype.valueOf),rf=Bc("wks"),nf=0,of=tf(Qc),af=of.length;nf<af;nf++)try{var uf=of[nf];Jc(Qc[uf])&&Kc(uf)}catch(t){}Vc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Zc&&Zc(t))return!0;try{for(var e=ef(t),r=0,n=tf(rf),i=n.length;r<i;r++)if(rf[n[r]]==e)return!0}catch(t){}return!1}}),To("matcher"),To("metadataKey"),To("observable"),To("metadata"),To("patternMatch"),To("replaceAll");var sf=Uc,cf=r(sf),ff=g,lf=Yr,hf=ti,pf=$,vf=ff("".charAt),df=ff("".charCodeAt),yf=ff("".slice),gf=function(t){return function(e,r){var n,i,o=hf(pf(e)),a=lf(r),u=o.length;return a<0||a>=u?t?"":void 0:(n=df(o,a))<55296||n>56319||a+1===u||(i=df(o,a+1))<56320||i>57343?t?vf(o,a):n:t?yf(o,a,a+2):i-56320+(n-55296<<10)+65536}},mf={codeAt:gf(!1),charAt:gf(!0)}.charAt,bf=ti,_f=Zo,wf=_c,Ef=wc,Tf="String Iterator",Of=_f.set,xf=_f.getterFor(Tf);wf(String,"String",(function(t){Of(this,{type:Tf,string:bf(t),index:0})}),(function(){var t,e=xf(this),r=e.string,n=e.index;return n>=r.length?Ef(void 0,!0):(t=mf(r,n),e.index+=t.length,Ef(t,!1))}));var kf=po.f("iterator"),Sf=kf,jf=r(Sf);function Af(t){return Af="function"==typeof cf&&"symbol"==typeof jf?function(t){return typeof t}:function(t){return t&&"function"==typeof cf&&t.constructor===cf&&t!==cf.prototype?"symbol":typeof t},Af(t)}var Pf=r(po.f("toPrimitive"));function If(t){var e=function(t,e){if("object"!==Af(t)||null===t)return t;var r=t[Pf];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Af(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Af(e)?e:String(e)}function Df(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Mr(t,If(n.key),n)}}function Cf(t,e,r){return e&&Df(t.prototype,e),r&&Df(t,r),Mr(t,"prototype",{writable:!1}),t}function Lf(t,e,r){return(e=If(e))in t?Mr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rf=g,Mf=It,Nf=et,Ff=Qt,zf=Iu,Uf=u,qf=Function,Yf=Rf([].concat),Wf=Rf([].join),Gf={},Xf=Uf?qf.bind:function(t){var e=Mf(this),r=e.prototype,n=zf(arguments,1),i=function(){var r=Yf(n,zf(arguments));return this instanceof i?function(t,e,r){if(!Ff(Gf,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";Gf[e]=qf("C,a","return new C("+Wf(n,",")+")")}return Gf[e](t,r)}(e,r.length,r):e.apply(t,r)};return Nf(r)&&(i.prototype=r),i},Vf=Xf;jr({target:"Function",proto:!0,forced:Function.bind!==Vf},{bind:Vf});var Bf=rt,Hf=function(t){return Bf[t+"Prototype"]},$f=Hf("Function").bind,Jf=st,Kf=$f,Qf=Function.prototype,Zf=function(t){var e=t.bind;return t===Qf||Jf(Qf,t)&&e===Qf.bind?Kf:e},tl=r(Zf),el=It,rl=$t,nl=X,il=Vr,ol=TypeError,al=function(t){return function(e,r,n,i){el(r);var o=rl(e),a=nl(o),u=il(o),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw ol("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(i=r(i,a[s],s,o));return i}},ul={left:al(!1),right:al(!0)},sl=a,cl=function(t,e){var r=[][t];return!!r&&sl((function(){r.call(null,e||function(){return 1},1)}))},fl="undefined"!=typeof process&&"process"==w(process),ll=ul.left;jr({target:"Array",proto:!0,forced:!fl&&yt>79&&yt<83||!cl("reduce")},{reduce:function(t){var e=arguments.length;return ll(this,t,e,e>1?arguments[1]:void 0)}});var hl=Hf("Array").reduce,pl=st,vl=hl,dl=Array.prototype,yl=r((function(t){var e=t.reduce;return t===dl||pl(dl,t)&&e===dl.reduce?vl:e})),gl=ua.filter;jr({target:"Array",proto:!0,forced:!Nn("filter")},{filter:function(t){return gl(this,t,arguments.length>1?arguments[1]:void 0)}});var ml=Hf("Array").filter,bl=st,_l=ml,wl=Array.prototype,El=r((function(t){var e=t.filter;return t===wl||bl(wl,t)&&e===wl.filter?_l:e})),Tl=ua.map;jr({target:"Array",proto:!0,forced:!Nn("map")},{map:function(t){return Tl(this,t,arguments.length>1?arguments[1]:void 0)}});var Ol=Hf("Array").map,xl=st,kl=Ol,Sl=Array.prototype,jl=r((function(t){var e=t.map;return t===Sl||xl(Sl,t)&&e===Sl.map?kl:e})),Al=Fr,Pl=Vr,Il=Hr,Dl=Je,Cl=function(t,e,r,n,i,o,a,u){for(var s,c,f=i,l=0,h=!!a&&Dl(a,u);l<n;)l in r&&(s=h?h(r[l],l,e):r[l],o>0&&Al(s)?(c=Pl(s),f=Cl(t,e,s,c,f,o-1)-1):(Il(f+1),t[f]=s),f++),l++;return f},Ll=Cl,Rl=It,Ml=$t,Nl=Vr,Fl=Cn;jr({target:"Array",proto:!0},{flatMap:function(t){var e,r=Ml(this),n=Nl(r);return Rl(t),(e=Fl(r,0)).length=Ll(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var zl=Hf("Array").flatMap,Ul=st,ql=zl,Yl=Array.prototype,Wl=r((function(t){var e=t.flatMap;return t===Yl||Ul(Yl,t)&&e===Yl.flatMap?ql:e}));function Gl(t){return new Vl(t)}var Xl=function(){function e(r,n,i){var o,a,u;t(this,e),Lf(this,"_source",void 0),Lf(this,"_transformers",void 0),Lf(this,"_target",void 0),Lf(this,"_listeners",{add:tl(o=this._add).call(o,this),remove:tl(a=this._remove).call(a,this),update:tl(u=this._update).call(u,this)}),this._source=r,this._transformers=n,this._target=i}return Cf(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return yl(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),e}(),Vl=function(){function e(r){t(this,e),Lf(this,"_source",void 0),Lf(this,"_transformers",[]),this._source=r}return Cf(e,[{key:"filter",value:function(t){return this._transformers.push((function(e){return El(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return jl(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Wl(e).call(e,t)})),this}},{key:"to",value:function(t){return new Xl(this._source,this._transformers,t)}}]),e}(),Bl=C,Hl=rr,$l=Lt,Jl=function(t,e,r){var n,i;Hl(t);try{if(!(n=$l(t,"return"))){if("throw"===e)throw r;return r}n=Bl(n,t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return Hl(n),r},Kl=rr,Ql=Jl,Zl=gs,th=he("iterator"),eh=Array.prototype,rh=function(t){return void 0!==t&&(Zl.Array===t||eh[th]===t)},nh=sn,ih=Lt,oh=V,ah=gs,uh=he("iterator"),sh=function(t){if(!oh(t))return ih(t,uh)||ih(t,"@@iterator")||ah[nh(t)]},ch=C,fh=It,lh=rr,hh=St,ph=sh,vh=TypeError,dh=function(t,e){var r=arguments.length<2?ph(t):e;if(fh(r))return lh(ch(r,t));throw vh(hh(t)+" is not iterable")},yh=Je,gh=C,mh=$t,bh=function(t,e,r,n){try{return n?e(Kl(r)[0],r[1]):e(r)}catch(e){Ql(t,"throw",e)}},_h=rh,wh=kn,Eh=Vr,Th=Qr,Oh=dh,xh=sh,kh=Array,Sh=he("iterator"),jh=!1;try{var Ah=0,Ph={next:function(){return{done:!!Ah++}},return:function(){jh=!0}};Ph[Sh]=function(){return this},Array.from(Ph,(function(){throw 2}))}catch(t){}var Ih=function(t,e){if(!e&&!jh)return!1;var r=!1;try{var n={};n[Sh]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Dh=function(t){var e=mh(t),r=wh(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=yh(i,n>2?arguments[2]:void 0));var a,u,s,c,f,l,h=xh(e),p=0;if(!h||this===kh&&_h(h))for(a=Eh(e),u=r?new this(a):kh(a);a>p;p++)l=o?i(e[p],p):e[p],Th(u,p,l);else for(f=(c=Oh(e,h)).next,u=r?new this:[];!(s=gh(f,c)).done;p++)l=o?bh(c,i,[s.value,p],!0):s.value,Th(u,p,l);return u.length=p,u};jr({target:"Array",stat:!0,forced:!Ih((function(t){Array.from(t)}))},{from:Dh});var Ch=rt.Array.from,Lh=r(Ch),Rh=r(sh),Mh=r(rt.Object.getOwnPropertySymbols),Nh={exports:{}},Fh=jr,zh=a,Uh=Q,qh=A.f,Yh=P;Fh({target:"Object",stat:!0,forced:!Yh||zh((function(){qh(1)})),sham:!Yh},{getOwnPropertyDescriptor:function(t,e){return qh(Uh(t),e)}});var Wh=rt.Object,Gh=Nh.exports=function(t,e){return Wh.getOwnPropertyDescriptor(t,e)};Wh.getOwnPropertyDescriptor.sham&&(Gh.sham=!0);var Xh=r(Nh.exports),Vh=ut,Bh=Bi,Hh=so,$h=rr,Jh=g([].concat),Kh=Vh("Reflect","ownKeys")||function(t){var e=Bh.f($h(t)),r=Hh.f;return r?Jh(e,r(t)):e},Qh=Kh,Zh=Q,tp=A,ep=Qr;jr({target:"Object",stat:!0,sham:!P},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Zh(t),i=tp.f,o=Qh(n),a={},u=0;o.length>u;)void 0!==(r=i(n,e=o[u++]))&&ep(a,e,r);return a}});var rp=r(rt.Object.getOwnPropertyDescriptors),np={exports:{}},ip=jr,op=P,ap=ei.f;ip({target:"Object",stat:!0,forced:Object.defineProperties!==ap,sham:!op},{defineProperties:ap});var up=rt.Object,sp=np.exports=function(t,e){return up.defineProperties(t,e)};up.defineProperties.sham&&(sp.sham=!0);var cp=r(np.exports),fp=r(Lr);jr({target:"Array",stat:!0},{isArray:Fr});var lp=rt.Array.isArray,hp=r(lp);var pp=jr,vp=Fr,dp=kn,yp=et,gp=oi,mp=Vr,bp=Q,_p=Qr,wp=he,Ep=Iu,Tp=Nn("slice"),Op=wp("species"),xp=Array,kp=Math.max;pp({target:"Array",proto:!0,forced:!Tp},{slice:function(t,e){var r,n,i,o=bp(this),a=mp(o),u=gp(t,a),s=gp(void 0===e?a:e,a);if(vp(o)&&(r=o.constructor,(dp(r)&&(r===xp||vp(r.prototype))||yp(r)&&null===(r=r[Op]))&&(r=void 0),r===xp||void 0===r))return Ep(o,u,s);for(n=new(void 0===r?xp:r)(kp(s-u,0)),i=0;u<s;u++,i++)u in o&&_p(n,i,o[u]);return n.length=i,n}});var Sp=Hf("Array").slice,jp=st,Ap=Sp,Pp=Array.prototype,Ip=function(t){var e=t.slice;return t===Pp||jp(Pp,t)&&e===Pp.slice?Ap:e},Dp=Ip,Cp=r(Dp),Lp=r(Ch);function Rp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mp(t,e){var r;if(t){if("string"==typeof t)return Rp(t,e);var n=Cp(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Lp(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rp(t,e):void 0}}function Np(t,e){return function(t){if(hp(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==cf&&Rh(t)||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],s=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||Mp(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fp(t){return function(t){if(hp(t))return Rp(t)}(t)||function(t){if(void 0!==cf&&null!=Rh(t)||null!=t["@@iterator"])return Lp(t)}(t)||Mp(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var zp=r(zc),Up=Hf("Array").concat,qp=st,Yp=Up,Wp=Array.prototype,Gp=r((function(t){var e=t.concat;return t===Wp||qp(Wp,t)&&e===Wp.concat?Yp:e})),Xp=r(Ip);jr({target:"Reflect",stat:!0},{ownKeys:Kh});var Vp=r(rt.Reflect.ownKeys),Bp=r(lp),Hp=$t,$p=wi;jr({target:"Object",stat:!0,forced:a((function(){$p(1)}))},{keys:function(t){return $p(Hp(t))}});var Jp=r(rt.Object.keys),Kp=ua.forEach,Qp=cl("forEach")?[].forEach:function(t){return Kp(this,t,arguments.length>1?arguments[1]:void 0)};jr({target:"Array",proto:!0,forced:[].forEach!=Qp},{forEach:Qp});var Zp=Hf("Array").forEach,tv=sn,ev=Qt,rv=st,nv=Zp,iv=Array.prototype,ov={DOMTokenList:!0,NodeList:!0},av=function(t){var e=t.forEach;return t===iv||rv(iv,t)&&e===iv.forEach||ev(ov,tv(t))?nv:e},uv=r(av),sv=jr,cv=Fr,fv=g([].reverse),lv=[1,2];sv({target:"Array",proto:!0,forced:String(lv)===String(lv.reverse())},{reverse:function(){return cv(this)&&(this.length=this.length),fv(this)}});var hv=Hf("Array").reverse,pv=st,vv=hv,dv=Array.prototype,yv=function(t){var e=t.reverse;return t===dv||pv(dv,t)&&e===dv.reverse?vv:e},gv=r(yv),mv=P,bv=Fr,_v=TypeError,wv=Object.getOwnPropertyDescriptor,Ev=mv&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Tv=St,Ov=TypeError,xv=function(t,e){if(!delete t[e])throw Ov("Cannot delete property "+Tv(e)+" of "+Tv(t))},kv=jr,Sv=$t,jv=oi,Av=Yr,Pv=Vr,Iv=Ev?function(t,e){if(bv(t)&&!wv(t,"length").writable)throw _v("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Dv=Hr,Cv=Cn,Lv=Qr,Rv=xv,Mv=Nn("splice"),Nv=Math.max,Fv=Math.min;kv({target:"Array",proto:!0,forced:!Mv},{splice:function(t,e){var r,n,i,o,a,u,s=Sv(this),c=Pv(s),f=jv(t,c),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=c-f):(r=l-2,n=Fv(Nv(Av(e),0),c-f)),Dv(c+r-n),i=Cv(s,n),o=0;o<n;o++)(a=f+o)in s&&Lv(i,o,s[a]);if(i.length=n,r<n){for(o=f;o<c-n;o++)u=o+r,(a=o+n)in s?s[u]=s[a]:Rv(s,u);for(o=c;o>c-n+r;o--)Rv(s,o-1)}else if(r>n)for(o=c-n;o>f;o--)u=o+r-1,(a=o+n-1)in s?s[u]=s[a]:Rv(s,u);for(o=0;o<r;o++)s[o+f]=arguments[o+2];return Iv(s,c-n+r),i}});var zv=Hf("Array").splice,Uv=st,qv=zv,Yv=Array.prototype,Wv=r((function(t){var e=t.splice;return t===Yv||Uv(Yv,t)&&e===Yv.splice?qv:e})),Gv=P,Xv=g,Vv=C,Bv=a,Hv=wi,$v=so,Jv=L,Kv=$t,Qv=X,Zv=Object.assign,td=Object.defineProperty,ed=Xv([].concat),rd=!Zv||Bv((function(){if(Gv&&1!==Zv({b:1},Zv(td({},"a",{enumerable:!0,get:function(){td(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Zv({},t)[r]||Hv(Zv({},e)).join("")!=n}))?function(t,e){for(var r=Kv(t),n=arguments.length,i=1,o=$v.f,a=Jv.f;n>i;)for(var u,s=Qv(arguments[i++]),c=o?ed(Hv(s),o(s)):Hv(s),f=c.length,l=0;f>l;)u=c[l++],Gv&&!Vv(a,s,u)||(r[u]=s[u]);return r}:Zv,nd=rd;jr({target:"Object",stat:!0,arity:2,forced:Object.assign!==nd},{assign:nd});var id=r(rt.Object.assign),od=$t,ad=Ds,ud=Os;jr({target:"Object",stat:!0,forced:a((function(){ad(1)})),sham:!ud},{getPrototypeOf:function(t){return ad(od(t))}});var sd=rt.Object.getPrototypeOf;jr({target:"Object",stat:!0,sham:!P},{create:Vi});var cd=rt.Object,fd=function(t,e){return cd.create(t,e)},ld=r(fd),hd=rt,pd=h;hd.JSON||(hd.JSON={stringify:JSON.stringify});var vd=r((function(t,e,r){return pd(hd.JSON.stringify,null,arguments)})),dd="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,yd=TypeError,gd=function(t,e){if(t<e)throw yd("Not enough arguments");return t},md=o,bd=h,_d=j,wd=dd,Ed=ct,Td=Iu,Od=gd,xd=md.Function,kd=/MSIE .\./.test(Ed)||wd&&function(){var t=md.Bun.version.split(".");return t.length<3||0==t[0]&&(t[1]<3||3==t[1]&&0==t[2])}(),Sd=function(t,e){var r=e?2:1;return kd?function(n,i){var o=Od(arguments.length,1)>r,a=_d(n)?n:xd(n),u=o?Td(arguments,r):[],s=o?function(){bd(a,this,u)}:a;return e?t(s,i):t(s)}:t},jd=jr,Ad=o,Pd=Sd(Ad.setInterval,!0);jd({global:!0,bind:!0,forced:Ad.setInterval!==Pd},{setInterval:Pd});var Id=jr,Dd=o,Cd=Sd(Dd.setTimeout,!0);Id({global:!0,bind:!0,forced:Dd.setTimeout!==Cd},{setTimeout:Cd});var Ld=r(rt.setTimeout),Rd={exports:{}};!function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}Rd.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var i=(r=r.slice(0)).length;n<i;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}();var Md=r(Rd.exports);
27
27
  /*! Hammer.JS - v2.0.17-rc - 2019-12-16
28
28
  * http://naver.github.io/egjs
29
29
  *
30
30
  * Forked By Naver egjs
31
31
  * Copyright (c) hammerjs
32
- * Licensed under the MIT license */function yb(){return yb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yb.apply(this,arguments)}function gb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function mb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var bb,xb="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,_b=["","webkit","Moz","MS","ms","o"],wb="undefined"==typeof document?{style:{}}:document.createElement("div"),Eb="function",Tb=Math.round,Ob=Math.abs,Sb=Date.now;function kb(t,e){for(var r,n,o=e[0].toUpperCase()+e.slice(1),i=0;i<_b.length;){if((n=(r=_b[i])?r+o:e)in t)return n;i++}}bb="undefined"==typeof window?{}:window;var jb=kb(wb.style,"touchAction"),Ab=void 0!==jb;var Pb="compute",Ib="auto",Db="manipulation",Cb="none",Lb="pan-x",Rb="pan-y",Mb=function(){if(!Ab)return!1;var t={},e=bb.CSS&&bb.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){return t[r]=!e||bb.CSS.supports("touch-action",r)})),t}(),Nb="ontouchstart"in bb,Fb=void 0!==kb(bb,"PointerEvent"),zb=Nb&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Ub="touch",qb="mouse",Yb=25,Wb=1,Gb=2,Xb=4,Vb=8,Bb=1,Hb=2,$b=4,Jb=8,Kb=16,Qb=Hb|$b,Zb=Jb|Kb,tx=Qb|Zb,ex=["x","y"],rx=["clientX","clientY"];function nx(t,e,r){var n;if(t)if(t.forEach)t.forEach(e,r);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(r,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function ox(t,e){return typeof t===Eb?t.apply(e&&e[0]||void 0,e):t}function ix(t,e){return t.indexOf(e)>-1}var ax=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Pb&&(t=this.compute()),Ab&&this.manager.element.style&&Mb[t]&&(this.manager.element.style[jb]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return nx(this.manager.recognizers,(function(e){ox(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(ix(t,Cb))return Cb;var e=ix(t,Lb),r=ix(t,Rb);return e&&r?Cb:e||r?e?Lb:Rb:ix(t,Db)?Db:Ib}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,r=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=ix(n,Cb)&&!Mb[Cb],i=ix(n,Rb)&&!Mb[Rb],a=ix(n,Lb)&&!Mb[Lb];if(o){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!i)return o||i&&r&Qb||a&&r&Zb?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function sx(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function ux(t){var e=t.length;if(1===e)return{x:Tb(t[0].clientX),y:Tb(t[0].clientY)};for(var r=0,n=0,o=0;o<e;)r+=t[o].clientX,n+=t[o].clientY,o++;return{x:Tb(r/e),y:Tb(n/e)}}function cx(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:Tb(t.pointers[r].clientX),clientY:Tb(t.pointers[r].clientY)},r++;return{timeStamp:Sb(),pointers:e,center:ux(e),deltaX:t.deltaX,deltaY:t.deltaY}}function fx(t,e,r){r||(r=ex);var n=e[r[0]]-t[r[0]],o=e[r[1]]-t[r[1]];return Math.sqrt(n*n+o*o)}function lx(t,e,r){r||(r=ex);var n=e[r[0]]-t[r[0]],o=e[r[1]]-t[r[1]];return 180*Math.atan2(o,n)/Math.PI}function px(t,e){return t===e?Bb:Ob(t)>=Ob(e)?t<0?Hb:$b:e<0?Jb:Kb}function hx(t,e,r){return{x:e/t||0,y:r/t||0}}function vx(t,e){var r=t.session,n=e.pointers,o=n.length;r.firstInput||(r.firstInput=cx(e)),o>1&&!r.firstMultiple?r.firstMultiple=cx(e):1===o&&(r.firstMultiple=!1);var i=r.firstInput,a=r.firstMultiple,s=a?a.center:i.center,u=e.center=ux(n);e.timeStamp=Sb(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=lx(s,u),e.distance=fx(s,u),function(t,e){var r=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};e.eventType!==Wb&&i.eventType!==Xb||(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},n=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=o.x+(r.x-n.x),e.deltaY=o.y+(r.y-n.y)}(r,e),e.offsetDirection=px(e.deltaX,e.deltaY);var c,f,l=hx(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=Ob(l.x)>Ob(l.y)?l.x:l.y,e.scale=a?(c=a.pointers,fx((f=n)[0],f[1],rx)/fx(c[0],c[1],rx)):1,e.rotation=a?function(t,e){return lx(e[1],e[0],rx)+lx(t[1],t[0],rx)}(a.pointers,n):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,function(t,e){var r,n,o,i,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!==Vb&&(s>Yb||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,f=hx(s,u,c);n=f.x,o=f.y,r=Ob(f.x)>Ob(f.y)?f.x:f.y,i=px(u,c),t.lastInterval=e}else r=a.velocity,n=a.velocityX,o=a.velocityY,i=a.direction;e.velocity=r,e.velocityX=n,e.velocityY=o,e.direction=i}(r,e);var p,h=t.element,v=e.srcEvent;sx(p=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,h)&&(h=p),e.target=h}function dx(t,e,r){var n=r.pointers.length,o=r.changedPointers.length,i=e&Wb&&n-o==0,a=e&(Xb|Vb)&&n-o==0;r.isFirst=!!i,r.isFinal=!!a,i&&(t.session={}),r.eventType=e,vx(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function yx(t){return t.trim().split(/\s+/g)}function gx(t,e,r){nx(yx(e),(function(e){t.addEventListener(e,r,!1)}))}function mx(t,e,r){nx(yx(e),(function(e){t.removeEventListener(e,r,!1)}))}function bx(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var xx=function(){function t(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){ox(t.options.enable,[t])&&r.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&gx(this.element,this.evEl,this.domHandler),this.evTarget&&gx(this.target,this.evTarget,this.domHandler),this.evWin&&gx(bx(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&mx(this.element,this.evEl,this.domHandler),this.evTarget&&mx(this.target,this.evTarget,this.domHandler),this.evWin&&mx(bx(this.element),this.evWin,this.domHandler)},t}();function _x(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var n=0;n<t.length;){if(r&&t[n][r]==e||!r&&t[n]===e)return n;n++}return-1}var wx={pointerdown:Wb,pointermove:Gb,pointerup:Xb,pointercancel:Vb,pointerout:Vb},Ex={2:Ub,3:"pen",4:qb,5:"kinect"},Tx="pointerdown",Ox="pointermove pointerup pointercancel";bb.MSPointerEvent&&!bb.PointerEvent&&(Tx="MSPointerDown",Ox="MSPointerMove MSPointerUp MSPointerCancel");var Sx=function(t){function e(){var r,n=e.prototype;return n.evEl=Tx,n.evWin=Ox,(r=t.apply(this,arguments)||this).store=r.manager.session.pointerEvents=[],r}return gb(e,t),e.prototype.handler=function(t){var e=this.store,r=!1,n=t.type.toLowerCase().replace("ms",""),o=wx[n],i=Ex[t.pointerType]||t.pointerType,a=i===Ub,s=_x(e,t.pointerId,"pointerId");o&Wb&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):o&(Xb|Vb)&&(r=!0),s<0||(e[s]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:i,srcEvent:t}),r&&e.splice(s,1))},e}(xx);function kx(t){return Array.prototype.slice.call(t,0)}function jx(t,e,r){for(var n=[],o=[],i=0;i<t.length;){var a=e?t[i][e]:t[i];_x(o,a)<0&&n.push(t[i]),o[i]=a,i++}return r&&(n=e?n.sort((function(t,r){return t[e]>r[e]})):n.sort()),n}var Ax={touchstart:Wb,touchmove:Gb,touchend:Xb,touchcancel:Vb},Px="touchstart touchmove touchend touchcancel",Ix=function(t){function e(){var r;return e.prototype.evTarget=Px,(r=t.apply(this,arguments)||this).targetIds={},r}return gb(e,t),e.prototype.handler=function(t){var e=Ax[t.type],r=Dx.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:Ub,srcEvent:t})},e}(xx);function Dx(t,e){var r,n,o=kx(t.touches),i=this.targetIds;if(e&(Wb|Gb)&&1===o.length)return i[o[0].identifier]=!0,[o,o];var a=kx(t.changedTouches),s=[],u=this.target;if(n=o.filter((function(t){return sx(t.target,u)})),e===Wb)for(r=0;r<n.length;)i[n[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(Xb|Vb)&&delete i[a[r].identifier],r++;return s.length?[jx(n.concat(s),"identifier",!0),s]:void 0}var Cx={mousedown:Wb,mousemove:Gb,mouseup:Xb},Lx="mousedown",Rx="mousemove mouseup",Mx=function(t){function e(){var r,n=e.prototype;return n.evEl=Lx,n.evWin=Rx,(r=t.apply(this,arguments)||this).pressed=!1,r}return gb(e,t),e.prototype.handler=function(t){var e=Cx[t.type];e&Wb&&0===t.button&&(this.pressed=!0),e&Gb&&1!==t.which&&(e=Xb),this.pressed&&(e&Xb&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:qb,srcEvent:t}))},e}(xx),Nx=2500,Fx=25;function zx(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var r={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(r);setTimeout((function(){var t=n.indexOf(r);t>-1&&n.splice(t,1)}),Nx)}}function Ux(t,e){t&Wb?(this.primaryTouch=e.changedPointers[0].identifier,zx.call(this,e)):t&(Xb|Vb)&&zx.call(this,e)}function qx(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],i=Math.abs(e-o.x),a=Math.abs(r-o.y);if(i<=Fx&&a<=Fx)return!0}return!1}var Yx=function(){return function(t){function e(e,r){var n;return(n=t.call(this,e,r)||this).handler=function(t,e,r){var o=r.pointerType===Ub,i=r.pointerType===qb;if(!(i&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(o)Ux.call(mb(mb(n)),e,r);else if(i&&qx.call(mb(mb(n)),r))return;n.callback(t,e,r)}},n.touch=new Ix(n.manager,n.handler),n.mouse=new Mx(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return gb(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(xx)}();function Wx(t,e,r){return!!Array.isArray(t)&&(nx(t,r[e],r),!0)}var Gx=1,Xx=2,Vx=4,Bx=8,Hx=Bx,$x=16,Jx=32,Kx=1;function Qx(t,e){var r=e.manager;return r?r.get(t):t}function Zx(t){return t&$x?"cancel":t&Bx?"end":t&Vx?"move":t&Xx?"start":""}var t_=function(){function t(t){void 0===t&&(t={}),this.options=yb({enable:!0},t),this.id=Kx++,this.manager=null,this.state=Gx,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return xb(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Wx(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Qx(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Wx(t,"dropRecognizeWith",this)||(t=Qx(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Wx(t,"requireFailure",this))return this;var e=this.requireFail;return-1===_x(e,t=Qx(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Wx(t,"dropRequireFailure",this))return this;t=Qx(t,this);var e=_x(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,r=this.state;function n(r){e.manager.emit(r,t)}r<Bx&&n(e.options.event+Zx(r)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),r>=Bx&&n(e.options.event+Zx(r))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Jx},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Jx|Gx)))return!1;t++}return!0},e.recognize=function(t){var e=xb({},t);if(!ox(this.options.enable,[this,e]))return this.reset(),void(this.state=Jx);this.state&(Hx|$x|Jx)&&(this.state=Gx),this.state=this.process(e),this.state&(Xx|Vx|Bx|$x)&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),e_=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,yb({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,r.pCenter=!1,r._timer=null,r._input=null,r.count=0,r}gb(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Db]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,o=t.distance<r.threshold,i=t.deltaTime<r.time;if(this.reset(),t.eventType&Wb&&0===this.count)return this.failTimeout();if(o&&i&&n){if(t.eventType!==Xb)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<r.interval,s=!this.pCenter||fx(this.pCenter,t.center)<r.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0===this.count%r.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=Hx,e.tryEmit()}),r.interval),Xx):Hx}return Jx},r.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Jx}),this.options.interval),Jx},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){this.state===Hx&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(t_),r_=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yb({pointers:1},e))||this}gb(e,t);var r=e.prototype;return r.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},r.process=function(t){var e=this.state,r=t.eventType,n=e&(Xx|Vx),o=this.attrTest(t);return n&&(r&Vb||!o)?e|$x:n||o?r&Xb?e|Bx:e&Xx?e|Vx:Xx:Jx},e}(t_);function n_(t){return t===Kb?"down":t===Jb?"up":t===Hb?"left":t===$b?"right":""}var o_=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,yb({event:"pan",threshold:10,pointers:1,direction:tx},e))||this).pX=null,r.pY=null,r}gb(e,t);var r=e.prototype;return r.getTouchAction=function(){var t=this.options.direction,e=[];return t&Qb&&e.push(Rb),t&Zb&&e.push(Lb),e},r.directionTest=function(t){var e=this.options,r=!0,n=t.distance,o=t.direction,i=t.deltaX,a=t.deltaY;return o&e.direction||(e.direction&Qb?(o=0===i?Bb:i<0?Hb:$b,r=i!==this.pX,n=Math.abs(t.deltaX)):(o=0===a?Bb:a<0?Jb:Kb,r=a!==this.pY,n=Math.abs(t.deltaY))),t.direction=o,r&&n>e.threshold&&o&e.direction},r.attrTest=function(t){return r_.prototype.attrTest.call(this,t)&&(this.state&Xx||!(this.state&Xx)&&this.directionTest(t))},r.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var r=n_(e.direction);r&&(e.additionalEvent=this.options.event+r),t.prototype.emit.call(this,e)},e}(r_),i_=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yb({event:"swipe",threshold:10,velocity:.3,direction:Qb|Zb,pointers:1},e))||this}gb(e,t);var r=e.prototype;return r.getTouchAction=function(){return o_.prototype.getTouchAction.call(this)},r.attrTest=function(e){var r,n=this.options.direction;return n&(Qb|Zb)?r=e.overallVelocity:n&Qb?r=e.overallVelocityX:n&Zb&&(r=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Ob(r)>this.options.velocity&&e.eventType&Xb},r.emit=function(t){var e=n_(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(r_),a_=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yb({event:"pinch",threshold:0,pointers:2},e))||this}gb(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Cb]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Xx)},r.emit=function(e){if(1!==e.scale){var r=e.scale<1?"in":"out";e.additionalEvent=this.options.event+r}t.prototype.emit.call(this,e)},e}(r_),s_=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yb({event:"rotate",threshold:0,pointers:2},e))||this}gb(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Cb]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Xx)},e}(r_),u_=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,yb({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,r._input=null,r}gb(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Ib]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,o=t.distance<r.threshold,i=t.deltaTime>r.time;if(this._input=t,!o||!n||t.eventType&(Xb|Vb)&&!i)this.reset();else if(t.eventType&Wb)this.reset(),this._timer=setTimeout((function(){e.state=Hx,e.tryEmit()}),r.time);else if(t.eventType&Xb)return Hx;return Jx},r.reset=function(){clearTimeout(this._timer)},r.emit=function(t){this.state===Hx&&(t&&t.eventType&Xb?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Sb(),this.manager.emit(this.options.event,this._input)))},e}(t_),c_={domEvents:!1,touchAction:Pb,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},f_=[[s_,{enable:!1}],[a_,{enable:!1},["rotate"]],[i_,{direction:Qb}],[o_,{direction:Qb},["swipe"]],[e_],[e_,{event:"doubletap",taps:2},["tap"]],[u_]];function l_(t,e){var r,n=t.element;n.style&&(nx(t.options.cssProps,(function(o,i){r=kb(n.style,i),e?(t.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=t.oldCssProps[r]||""})),e||(t.oldCssProps={}))}var p_=function(){function t(t,e){var r,n=this;this.options=xb({},c_,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((r=this).options.inputClass||(Fb?Sx:zb?Ix:Nb?Yx:Mx))(r,dx),this.touchAction=new ax(this,this.options.touchAction),l_(this,!0),nx(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return xb(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var r;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Hx)&&(e.curRecognizer=null,o=null);for(var i=0;i<n.length;)r=n[i],2===e.stopped||o&&r!==o&&!r.canRecognizeWith(o)?r.reset():r.recognize(t),!o&&r.state&(Xx|Vx|Bx)&&(e.curRecognizer=r,o=r),i++}},e.get=function(t){if(t instanceof t_)return t;for(var e=this.recognizers,r=0;r<e.length;r++)if(e[r].options.event===t)return e[r];return null},e.add=function(t){if(Wx(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Wx(t,"remove",this))return this;var e=this.get(t);if(t){var r=this.recognizers,n=_x(r,e);-1!==n&&(r.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var r=this.handlers;return nx(yx(t),(function(t){r[t]=r[t]||[],r[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var r=this.handlers;return nx(yx(t),(function(t){e?r[t]&&r[t].splice(_x(r[t],e),1):delete r[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}(t,e);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<r.length;)r[n](e),n++}},e.destroy=function(){this.element&&l_(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),h_={touchstart:Wb,touchmove:Gb,touchend:Xb,touchcancel:Vb},v_="touchstart",d_="touchstart touchmove touchend touchcancel",y_=function(t){function e(){var r,n=e.prototype;return n.evTarget=v_,n.evWin=d_,(r=t.apply(this,arguments)||this).started=!1,r}return gb(e,t),e.prototype.handler=function(t){var e=h_[t.type];if(e===Wb&&(this.started=!0),this.started){var r=g_.call(this,t,e);e&(Xb|Vb)&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:Ub,srcEvent:t})}},e}(xx);function g_(t,e){var r=kx(t.touches),n=kx(t.changedTouches);return e&(Xb|Vb)&&(r=jx(r.concat(n),"identifier",!0)),[r,n]}function m_(t,e,r){var n="DEPRECATED METHOD: "+e+"\n"+r+" AT \n";return function(){var e=new Error("get-stack-trace"),r=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,r),t.apply(this,arguments)}}var b_=m_((function(t,e,r){for(var n=Object.keys(e),o=0;o<n.length;)(!r||r&&void 0===t[n[o]])&&(t[n[o]]=e[n[o]]),o++;return t}),"extend","Use `assign`."),x_=m_((function(t,e){return b_(t,e,!0)}),"merge","Use `assign`.");function __(t,e,r){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,r&&xb(n,r)}function w_(t,e){return function(){return t.apply(e,arguments)}}var E_=function(){var t=function(t,e){return void 0===e&&(e={}),new p_(t,yb({recognizers:f_.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=tx,t.DIRECTION_DOWN=Kb,t.DIRECTION_LEFT=Hb,t.DIRECTION_RIGHT=$b,t.DIRECTION_UP=Jb,t.DIRECTION_HORIZONTAL=Qb,t.DIRECTION_VERTICAL=Zb,t.DIRECTION_NONE=Bb,t.DIRECTION_DOWN=Kb,t.INPUT_START=Wb,t.INPUT_MOVE=Gb,t.INPUT_END=Xb,t.INPUT_CANCEL=Vb,t.STATE_POSSIBLE=Gx,t.STATE_BEGAN=Xx,t.STATE_CHANGED=Vx,t.STATE_ENDED=Bx,t.STATE_RECOGNIZED=Hx,t.STATE_CANCELLED=$x,t.STATE_FAILED=Jx,t.Manager=p_,t.Input=xx,t.TouchAction=ax,t.TouchInput=Ix,t.MouseInput=Mx,t.PointerEventInput=Sx,t.TouchMouseInput=Yx,t.SingleTouchInput=y_,t.Recognizer=t_,t.AttrRecognizer=r_,t.Tap=e_,t.Pan=o_,t.Swipe=i_,t.Pinch=a_,t.Rotate=s_,t.Press=u_,t.on=gx,t.off=mx,t.each=nx,t.merge=x_,t.extend=b_,t.bindFn=w_,t.assign=xb,t.inherit=__,t.bindFn=w_,t.prefixed=kb,t.toArray=kx,t.inArray=_x,t.uniqueArray=jx,t.splitStr=yx,t.boolOrFn=ox,t.hasParent=sx,t.addEventListeners=gx,t.removeEventListeners=mx,t.defaults=xb({},c_,{preset:f_}),t}();function T_(t,e){var r=void 0!==Kv&&mh(t)||t["@@iterator"];if(!r){if(hd(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return O_(t,e);var n=sd(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O_(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function O_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var S_=Kv("DELETE");function k_(){var t=j_.apply(void 0,arguments);return P_(t),t}function j_(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<2)return e[0];var n;if(e.length>2)return j_.apply(void 0,id(n=[k_(e[0],e[1])]).call(n,$v(sd(e).call(e,2))));var o,i=e[0],a=e[1],s=T_(ld(a));try{for(s.s();!(o=s.n()).done;){var u=o.value;Object.prototype.propertyIsEnumerable.call(a,u)&&(a[u]===S_?delete i[u]:null===i[u]||null===a[u]||"object"!==Uf(i[u])||"object"!==Uf(a[u])||hd(i[u])||hd(a[u])?i[u]=A_(a[u]):i[u]=j_(i[u],a[u]))}}catch(t){s.e(t)}finally{s.f()}return i}function A_(t){return hd(t)?rp(t).call(t,(function(t){return A_(t)})):"object"===Uf(t)&&null!==t?j_({},t):t}function P_(t){for(var e=0,r=bd(t);e<r.length;e++){var n=r[e];t[n]===S_?delete t[n]:"object"===Uf(t[n])&&null!==t[n]&&P_(t[n])}}var I_="undefined"!=typeof window?window.Hammer||E_:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function D_(t){var e,r=this;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((function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)}));var n=I_(this._dom.overlay);n.on("tap",bl(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Fd(o).call(o,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",r._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&r.deactivate()}}db(D_.prototype),D_.current=null,D_.prototype.destroy=function(){var t,e;this.deactivate();var r,n=T_(Jd(t=Oy(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(r=n.n()).done;){(0,r.value)()}}catch(t){n.e(t)}finally{n.f()}},D_.prototype.activate=function(){D_.current&&D_.current.deactivate(),D_.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)},D_.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")},D_.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var C_={},L_={get exports(){return C_},set exports(t){C_=t}},R_=Rn,M_=Dt,N_=TypeError,F_=function(t){if(R_(t))return t;throw N_(M_(t)+" is not a constructor")},z_=Cr,U_=g,q_=fl,Y_=F_,W_=sr,G_=at,X_=ri,V_=l,B_=pt("Reflect","construct"),H_=Object.prototype,$_=[].push,J_=V_((function(){function t(){}return!(B_((function(){}),[],t)instanceof t)})),K_=!V_((function(){B_((function(){}))})),Q_=J_||K_;z_({target:"Reflect",stat:!0,forced:Q_,sham:Q_},{construct:function(t,e){Y_(t),W_(e);var r=arguments.length<3?t:Y_(arguments[2]);if(K_&&!J_)return B_(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return U_($_,n,e),new(U_(q_,t,n))}var o=r.prototype,i=X_(G_(o)?o:H_),a=U_(t,i,e);return G_(a)?a:i}});var Z_=st.Reflect.construct;L_.exports=Z_;var tw=r(C_);function ew(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var rw={},nw={get exports(){return rw},set exports(t){rw=t}},ow={},iw=Sm;({get exports(){return ow},set exports(t){ow=t}}).exports=iw,nw.exports=ow;var aw=r(rw),sw={},uw={get exports(){return sw},set exports(t){sw=t}},cw={},fw={get exports(){return cw},set exports(t){cw=t}};Cr({target:"Object",stat:!0},{setPrototypeOf:pc});var lw=st.Object.setPrototypeOf;fw.exports=lw,uw.exports=cw;var pw=r(sw),hw={},vw={get exports(){return hw},set exports(t){hw=t}},dw={},yw=ml;({get exports(){return dw},set exports(t){dw=t}}).exports=yw,vw.exports=dw;var gw=r(hw);function mw(t,e){var r;return mw=pw?gw(r=pw).call(r):function(t,e){return t.__proto__=e,t},mw(t,e)}function bw(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=aw(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),qr(t,"prototype",{writable:!1}),e&&mw(t,e)}function xw(t,e){if(e&&("object"===Uf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ew(t)}var _w={},ww={get exports(){return _w},set exports(t){_w=t}},Ew={},Tw=mg;({get exports(){return Ew},set exports(t){Ew=t}}).exports=Tw,ww.exports=Ew;var Ow=r(_w);function Sw(t){var e;return Sw=pw?gw(e=Ow).call(e):function(t){return t.__proto__||Ow(t)},Sw(t)}var kw={},jw={get exports(){return kw},set exports(t){kw=t}},Aw={};!function(t){var e=Yr,r=gf;function n(o){return t.exports=n="function"==typeof e&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}({get exports(){return Aw},set exports(t){Aw=t}});var Pw={},Iw={get exports(){return Pw},set exports(t){Pw=t}},Dw={},Cw=Nd;({get exports(){return Dw},set exports(t){Dw=t}}).exports=Cw,Iw.exports=Dw;var Lw={},Rw={get exports(){return Lw},set exports(t){Lw=t}},Mw={},Nw={get exports(){return Mw},set exports(t){Mw=t}},Fw=ne,zw=Wh,Uw=L,qw=rr,Yw=at,Ww=_r,Gw=Error,Xw=w("".replace),Vw=String(Gw("zxcasd").stack),Bw=/\n\s*at [^:]*:[^\n]*/,Hw=Bw.test(Vw),$w=X,Jw=!l((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",$w(1,7)),7!==t.stack)})),Kw=_r,Qw=function(t,e){if(Hw&&"string"==typeof t&&!Gw.prepareStackTrace)for(;e--;)t=Xw(t,Bw,"");return t},Zw=Jw,tE=Error.captureStackTrace,eE=er,rE=F,nE=sr,oE=Dt,iE=Rp,aE=en,sE=ht,uE=Hp,cE=qp,fE=Ap,lE=TypeError,pE=function(t,e){this.stopped=t,this.result=e},hE=pE.prototype,vE=function(t,e,r){var n,o,i,a,s,u,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),d=eE(e,f),y=function(t){return n&&fE(n,"normal",t),new pE(!0,t)},g=function(t){return l?(nE(t),v?d(t[0],t[1],y):d(t[0],t[1])):v?d(t,y):d(t)};if(p)n=t.iterator;else if(h)n=t;else{if(!(o=cE(t)))throw lE(oE(t)+" is not iterable");if(iE(o)){for(i=0,a=aE(t);a>i;i++)if((s=g(t[i]))&&sE(hE,s))return s;return new pE(!1)}n=uE(t,o)}for(u=p?t.next:n.next;!(c=rE(u,n)).done;){try{s=g(c.value)}catch(t){fE(n,"throw",t)}if("object"==typeof s&&s&&sE(hE,s))return s}return new pE(!1)},dE=co,yE=Cr,gE=ht,mE=qu,bE=pc,xE=function(t,e,r){for(var n=zw(e),o=qw.f,i=Uw.f,a=0;a<n.length;a++){var s=n[a];Fw(t,s)||r&&Fw(r,s)||o(t,s,i(e,s))}},_E=ri,wE=_r,EE=X,TE=function(t,e){Yw(e)&&"cause"in e&&Ww(t,"cause",e.cause)},OE=function(t,e,r,n){Zw&&(tE?tE(t,e):Kw(t,"stack",Qw(r,n)))},SE=vE,kE=function(t,e){return void 0===t?arguments.length<2?"":e:dE(t)},jE=ge("toStringTag"),AE=Error,PE=[].push,IE=function(t,e){var r,n=gE(DE,this);bE?r=bE(AE(),n?mE(this):DE):(r=n?this:_E(DE),wE(r,jE,"Error")),void 0!==e&&wE(r,"message",kE(e)),OE(r,IE,r.stack,1),arguments.length>2&&TE(r,arguments[2]);var o=[];return SE(t,PE,{that:o}),wE(r,"errors",o),r};bE?bE(IE,AE):xE(IE,AE,{name:!0});var DE=IE.prototype=_E(AE.prototype,{constructor:EE(1,IE),message:EE(1,""),name:EE(1,"AggregateError")});yE({global:!0,constructor:!0,arity:2},{AggregateError:IE});var CE,LE,RE,ME,NE=pt,FE=wi,zE=R,UE=ge("species"),qE=function(t){var e=NE(t);zE&&e&&!e[UE]&&FE(e,UE,{configurable:!0,get:function(){return this}})},YE=ht,WE=TypeError,GE=function(t,e){if(YE(e,t))return t;throw WE("Incorrect invocation")},XE=sr,VE=F_,BE=K,HE=ge("species"),$E=function(t,e){var r,n=XE(t).constructor;return void 0===n||BE(r=XE(n)[HE])?e:VE(r)},JE=/(?:ipad|iphone|ipod).*applewebkit/i.test(vt),KE=f,QE=g,ZE=er,tT=C,eT=ne,rT=l,nT=zo,oT=Us,iT=Ie,aT=Fm,sT=JE,uT=Il,cT=KE.setImmediate,fT=KE.clearImmediate,lT=KE.process,pT=KE.Dispatch,hT=KE.Function,vT=KE.MessageChannel,dT=KE.String,yT=0,gT={},mT="onreadystatechange";rT((function(){CE=KE.location}));var bT=function(t){if(eT(gT,t)){var e=gT[t];delete gT[t],e()}},xT=function(t){return function(){bT(t)}},_T=function(t){bT(t.data)},wT=function(t){KE.postMessage(dT(t),CE.protocol+"//"+CE.host)};cT&&fT||(cT=function(t){aT(arguments.length,1);var e=tT(t)?t:hT(t),r=oT(arguments,1);return gT[++yT]=function(){QE(e,void 0,r)},LE(yT),yT},fT=function(t){delete gT[t]},uT?LE=function(t){lT.nextTick(xT(t))}:pT&&pT.now?LE=function(t){pT.now(xT(t))}:vT&&!sT?(ME=(RE=new vT).port2,RE.port1.onmessage=_T,LE=ZE(ME.postMessage,ME)):KE.addEventListener&&tT(KE.postMessage)&&!KE.importScripts&&CE&&"file:"!==CE.protocol&&!rT(wT)?(LE=wT,KE.addEventListener("message",_T,!1)):LE=mT in iT("script")?function(t){nT.appendChild(iT("script"))[mT]=function(){nT.removeChild(this),bT(t)}}:function(t){setTimeout(xT(t),0)});var ET={set:cT,clear:fT},TT=function(){this.head=null,this.tail=null};TT.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var OT,ST,kT,jT,AT,PT=TT,IT=/ipad|iphone|ipod/i.test(vt)&&"undefined"!=typeof Pebble,DT=/web0s(?!.*chrome)/i.test(vt),CT=f,LT=er,RT=L.f,MT=ET.set,NT=PT,FT=JE,zT=IT,UT=DT,qT=Il,YT=CT.MutationObserver||CT.WebKitMutationObserver,WT=CT.document,GT=CT.process,XT=CT.Promise,VT=RT(CT,"queueMicrotask"),BT=VT&&VT.value;if(!BT){var HT=new NT,$T=function(){var t,e;for(qT&&(t=GT.domain)&&t.exit();e=HT.get();)try{e()}catch(t){throw HT.head&&OT(),t}t&&t.enter()};FT||qT||UT||!YT||!WT?!zT&&XT&&XT.resolve?((jT=XT.resolve(void 0)).constructor=XT,AT=LT(jT.then,jT),OT=function(){AT($T)}):qT?OT=function(){GT.nextTick($T)}:(MT=LT(MT,CT),OT=function(){MT($T)}):(ST=!0,kT=WT.createTextNode(""),new YT($T).observe(kT,{characterData:!0}),OT=function(){kT.data=ST=!ST}),BT=function(t){HT.head||OT(),HT.add(t)}}var JT=BT,KT=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},QT=f.Promise,ZT="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,tO=!ZT&&!Il&&"object"==typeof window&&"object"==typeof document,eO=f,rO=QT,nO=C,oO=Ke,iO=_n,aO=ge,sO=tO,uO=ZT,cO=_t,fO=rO&&rO.prototype,lO=aO("species"),pO=!1,hO=nO(eO.PromiseRejectionEvent),vO=oO("Promise",(function(){var t=iO(rO),e=t!==String(rO);if(!e&&66===cO)return!0;if(!fO.catch||!fO.finally)return!0;if(!cO||cO<51||!/native code/.test(t)){var r=new rO((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[lO]=n,!(pO=r.then((function(){}))instanceof n))return!0}return!e&&(sO||uO)&&!hO})),dO={CONSTRUCTOR:vO,REJECTION_EVENT:hO,SUBCLASSING:pO},yO={},gO=Mt,mO=TypeError,bO=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw mO("Bad Promise constructor");e=t,r=n})),this.resolve=gO(e),this.reject=gO(r)};yO.f=function(t){return new bO(t)};var xO,_O,wO=Cr,EO=Il,TO=f,OO=F,SO=xi,kO=Vi,jO=qE,AO=Mt,PO=C,IO=at,DO=GE,CO=$E,LO=ET.set,RO=JT,MO=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}},NO=KT,FO=PT,zO=ua,UO=QT,qO=yO,YO="Promise",WO=dO.CONSTRUCTOR,GO=dO.REJECTION_EVENT,XO=zO.getterFor(YO),VO=zO.set,BO=UO&&UO.prototype,HO=UO,$O=BO,JO=TO.TypeError,KO=TO.document,QO=TO.process,ZO=qO.f,tS=ZO,eS=!!(KO&&KO.createEvent&&TO.dispatchEvent),rS="unhandledrejection",nS=function(t){var e;return!(!IO(t)||!PO(e=t.then))&&e},oS=function(t,e){var r,n,o,i=e.value,a=1==e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{s?(a||(2===e.rejection&&cS(e),e.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===t.promise?c(JO("Promise-chain cycle")):(n=nS(r))?OO(n,r,u,c):u(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},iS=function(t,e){t.notified||(t.notified=!0,RO((function(){for(var r,n=t.reactions;r=n.get();)oS(r,t);t.notified=!1,e&&!t.rejection&&sS(t)})))},aS=function(t,e,r){var n,o;eS?((n=KO.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),TO.dispatchEvent(n)):n={promise:e,reason:r},!GO&&(o=TO["on"+t])?o(n):t===rS&&MO("Unhandled promise rejection",r)},sS=function(t){OO(LO,TO,(function(){var e,r=t.facade,n=t.value;if(uS(t)&&(e=NO((function(){EO?QO.emit("unhandledRejection",n,r):aS(rS,r,n)})),t.rejection=EO||uS(t)?2:1,e.error))throw e.value}))},uS=function(t){return 1!==t.rejection&&!t.parent},cS=function(t){OO(LO,TO,(function(){var e=t.facade;EO?QO.emit("rejectionHandled",e):aS("rejectionhandled",e,t.value)}))},fS=function(t,e,r){return function(n){t(e,n,r)}},lS=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,iS(t,!0))},pS=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw JO("Promise can't be resolved itself");var n=nS(e);n?RO((function(){var r={done:!1};try{OO(n,e,fS(pS,r,t),fS(lS,r,t))}catch(e){lS(r,e,t)}})):(t.value=e,t.state=1,iS(t,!1))}catch(e){lS({done:!1},e,t)}}};WO&&($O=(HO=function(t){DO(this,$O),AO(t),OO(xO,this);var e=XO(this);try{t(fS(pS,e),fS(lS,e))}catch(t){lS(e,t)}}).prototype,(xO=function(t){VO(this,{type:YO,done:!1,notified:!1,parent:!1,reactions:new FO,rejection:!1,state:0,value:void 0})}).prototype=SO($O,"then",(function(t,e){var r=XO(this),n=ZO(CO(this,HO));return r.parent=!0,n.ok=!PO(t)||t,n.fail=PO(e)&&e,n.domain=EO?QO.domain:void 0,0==r.state?r.reactions.add(n):RO((function(){oS(n,r)})),n.promise})),_O=function(){var t=new xO,e=XO(t);this.promise=t,this.resolve=fS(pS,e),this.reject=fS(lS,e)},qO.f=ZO=function(t){return t===HO||undefined===t?new _O(t):tS(t)}),wO({global:!0,constructor:!0,wrap:!0,forced:WO},{Promise:HO}),kO(HO,YO,!1,!0),jO(YO);var hS=QT,vS=dO.CONSTRUCTOR||!fh((function(t){hS.all(t).then(void 0,(function(){}))})),dS=F,yS=Mt,gS=yO,mS=KT,bS=vE;Cr({target:"Promise",stat:!0,forced:vS},{all:function(t){var e=this,r=gS.f(e),n=r.resolve,o=r.reject,i=mS((function(){var r=yS(e.resolve),i=[],a=0,s=1;bS(t,(function(t){var u=a++,c=!1;s++,dS(r,e,t).then((function(t){c||(c=!0,i[u]=t,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var xS=Cr,_S=dO.CONSTRUCTOR;QT&&QT.prototype,xS({target:"Promise",proto:!0,forced:_S,real:!0},{catch:function(t){return this.then(void 0,t)}});var wS=F,ES=Mt,TS=yO,OS=KT,SS=vE;Cr({target:"Promise",stat:!0,forced:vS},{race:function(t){var e=this,r=TS.f(e),n=r.reject,o=OS((function(){var o=ES(e.resolve);SS(t,(function(t){wS(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var kS=F,jS=yO;Cr({target:"Promise",stat:!0,forced:dO.CONSTRUCTOR},{reject:function(t){var e=jS.f(this);return kS(e.reject,void 0,t),e.promise}});var AS=sr,PS=at,IS=yO,DS=function(t,e){if(AS(t),PS(e)&&e.constructor===t)return e;var r=IS.f(t);return(0,r.resolve)(e),r.promise},CS=Cr,LS=QT,RS=dO.CONSTRUCTOR,MS=DS,NS=pt("Promise"),FS=!RS;CS({target:"Promise",stat:!0,forced:true},{resolve:function(t){return MS(FS&&this===NS?LS:this,t)}});var zS=F,US=Mt,qS=yO,YS=KT,WS=vE;Cr({target:"Promise",stat:!0,forced:vS},{allSettled:function(t){var e=this,r=qS.f(e),n=r.resolve,o=r.reject,i=YS((function(){var r=US(e.resolve),o=[],i=0,a=1;WS(t,(function(t){var s=i++,u=!1;a++,zS(r,e,t).then((function(t){u||(u=!0,o[s]={status:"fulfilled",value:t},--a||n(o))}),(function(t){u||(u=!0,o[s]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var GS=F,XS=Mt,VS=pt,BS=yO,HS=KT,$S=vE,JS="No one promise resolved";Cr({target:"Promise",stat:!0,forced:vS},{any:function(t){var e=this,r=VS("AggregateError"),n=BS.f(e),o=n.resolve,i=n.reject,a=HS((function(){var n=XS(e.resolve),a=[],s=0,u=1,c=!1;$S(t,(function(t){var f=s++,l=!1;u++,GS(n,e,t).then((function(t){l||c||(c=!0,o(t))}),(function(t){l||c||(l=!0,a[f]=t,--u||i(new r(a,JS)))}))})),--u||i(new r(a,JS))}));return a.error&&i(a.value),n.promise}});var KS=Cr,QS=QT,ZS=l,tk=pt,ek=C,rk=$E,nk=DS,ok=QS&&QS.prototype;KS({target:"Promise",proto:!0,real:!0,forced:!!QS&&ZS((function(){ok.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=rk(this,tk("Promise")),r=ek(t);return this.then(r?function(r){return nk(e,t()).then((function(){return r}))}:t,r?function(r){return nk(e,t()).then((function(){throw r}))}:t)}});var ik=st.Promise,ak=yO,sk=KT;Cr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=ak.f(this),r=sk(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var uk=ik;Nw.exports=uk,Rw.exports=Mw;var ck={},fk={get exports(){return ck},set exports(t){ck=t}},lk={},pk=$d;({get exports(){return lk},set exports(t){lk=t}}).exports=pk,fk.exports=lk,function(t){var e=Aw.default,r=n,o=Yr,i=rw,a=_w,s=Pw,u=sw,c=Lw,f=ck,l=yv;function p(){t.exports=p=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},h=Object.prototype,v=h.hasOwnProperty,d=r||function(t,e,r){t[e]=r.value},y="function"==typeof o?o:{},g=y.iterator||"@@iterator",m=y.asyncIterator||"@@asyncIterator",b=y.toStringTag||"@@toStringTag";function x(t,e,n){return r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{x({},"")}catch(t){x=function(t,e,r){return t[e]=r}}function _(t,e,r,n){var o=e&&e.prototype instanceof T?e:T,a=i(o.prototype),s=new M(n||[]);return d(a,"_invoke",{value:D(t,r,s)}),a}function w(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=_;var E={};function T(){}function O(){}function S(){}var k={};x(k,g,(function(){return this}));var j=a&&a(a(N([])));j&&j!==h&&v.call(j,g)&&(k=j);var A=S.prototype=T.prototype=i(k);function P(t){var e;s(e=["next","throw","return"]).call(e,(function(e){x(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,r){function n(o,i,a,s){var u=w(t[o],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==e(f)&&v.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):r.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;d(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function D(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return F()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===E)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=w(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===E)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function C(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),E;var o=w(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,E;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,E):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,L,this),this.reset(!0)}function N(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(v.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:F}}function F(){return{value:void 0,done:!0}}return O.prototype=S,d(A,"constructor",{value:S,configurable:!0}),d(S,"constructor",{value:O,configurable:!0}),O.displayName=x(S,b,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return u?u(t,S):(t.__proto__=S,x(t,b,"GeneratorFunction")),t.prototype=i(A),t},n.awrap=function(t){return{__await:t}},P(I.prototype),x(I.prototype,m,(function(){return this})),n.AsyncIterator=I,n.async=function(t,e,r,o,i){void 0===i&&(i=c);var a=new I(_(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(A),x(A,b,"Generator"),x(A,g,(function(){return this})),x(A,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return f(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=N,M.prototype={constructor:M,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,s(e=this.tryEntries).call(e,R),!t)for(var r in this)"t"===r.charAt(0)&&v.call(this,r)&&!isNaN(+l(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=v.call(o,"catchLoc"),s=v.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),E}},n}t.exports=p,t.exports.__esModule=!0,t.exports.default=t.exports}(jw);var hk=kw(),vk=hk;try{regeneratorRuntime=hk}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=hk:Function("r","regeneratorRuntime = r")(hk)}var dk={},yk={get exports(){return dk},set exports(t){dk=t}},gk={},mk={get exports(){return gk},set exports(t){gk=t}},bk=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),xk=l,_k=at,wk=S,Ek=bk,Tk=Object.isExtensible,Ok=xk((function(){Tk(1)}))||Ek?function(t){return!!_k(t)&&((!Ek||"ArrayBuffer"!=wk(t))&&(!Tk||Tk(t)))}:Tk,Sk=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),kk=Cr,jk=w,Ak=_o,Pk=at,Ik=ne,Dk=rr.f,Ck=ni,Lk=ai,Rk=Ok,Mk=Sk,Nk=!1,Fk=ue("meta"),zk=0,Uk=function(t){Dk(t,Fk,{value:{objectID:"O"+zk++,weakData:{}}})},qk=mk.exports={enable:function(){qk.enable=function(){},Nk=!0;var t=Ck.f,e=jk([].splice),r={};r[Fk]=1,t(r).length&&(Ck.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===Fk){e(n,o,1);break}return n},kk({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Lk.f}))},fastKey:function(t,e){if(!Pk(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ik(t,Fk)){if(!Rk(t))return"F";if(!e)return"E";Uk(t)}return t[Fk].objectID},getWeakData:function(t,e){if(!Ik(t,Fk)){if(!Rk(t))return!0;if(!e)return!1;Uk(t)}return t[Fk].weakData},onFreeze:function(t){return Mk&&Nk&&Rk(t)&&!Ik(t,Fk)&&Uk(t),t}};Ak[Fk]=!0;var Yk=Cr,Wk=f,Gk=gk,Xk=l,Vk=_r,Bk=vE,Hk=GE,$k=C,Jk=at,Kk=Vi,Qk=rr.f,Zk=ya.forEach,tj=R,ej=ua.set,rj=ua.getterFor,nj=function(t,e,r){var n,o=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),a=o?"set":"add",s=Wk[t],u=s&&s.prototype,c={};if(tj&&$k(s)&&(i||u.forEach&&!Xk((function(){(new s).entries().next()})))){var f=(n=e((function(e,r){ej(Hk(e,f),{type:t,collection:new s}),null!=r&&Bk(r,e[a],{that:e,AS_ENTRIES:o})}))).prototype,l=rj(t);Zk(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in u)||i&&"clear"==t||Vk(f,t,(function(r,n){var o=l(this).collection;if(!e&&i&&!Jk(r))return"get"==t&&void 0;var a=o[t](0===r?0:r,n);return e?this:a}))})),i||Qk(f,"size",{configurable:!0,get:function(){return l(this).collection.size}})}else n=r.getConstructor(e,t,o,a),Gk.enable();return Kk(n,t,!1,!0),c[t]=n,Yk({global:!0,forced:!0},c),i||r.setStrong(n,t,o),n},oj=xi,ij=ri,aj=wi,sj=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:oj(t,n,e[n],r);return t},uj=er,cj=GE,fj=K,lj=vE,pj=kc,hj=jc,vj=qE,dj=R,yj=gk.fastKey,gj=ua.set,mj=ua.getterFor,bj={getConstructor:function(t,e,r,n){var o=t((function(t,o){cj(t,i),gj(t,{type:e,index:ij(null),first:void 0,last:void 0,size:0}),dj||(t.size=0),fj(o)||lj(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=mj(e),s=function(t,e,r){var n,o,i=a(t),s=u(t,e);return s?s.value=r:(i.last=s={index:o=yj(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),dj?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},u=function(t,e){var r,n=a(t),o=yj(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return sj(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,dj?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),dj?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=uj(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),sj(i,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),dj&&aj(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=mj(e),i=mj(n);pj(t,e,(function(t,e){gj(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?hj("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,hj(void 0,!0))}),r?"entries":"values",!r,!0),vj(e)}};nj("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),bj);var xj=st.Map;yk.exports=xj;var _j=r(dk),wj={},Ej={get exports(){return wj},set exports(t){wj=t}},Tj=ya.some;Cr({target:"Array",proto:!0,forced:!Pl("some")},{some:function(t){return Tj(this,t,arguments.length>1?arguments[1]:void 0)}});var Oj=hl("Array").some,Sj=ht,kj=Oj,jj=Array.prototype,Aj=function(t){var e=t.some;return t===jj||Sj(jj,t)&&e===jj.some?kj:e};Ej.exports=Aj;var Pj=r(wj),Ij={},Dj={get exports(){return Ij},set exports(t){Ij=t}},Cj=hl("Array").keys,Lj=gn,Rj=ne,Mj=ht,Nj=Cj,Fj=Array.prototype,zj={DOMTokenList:!0,NodeList:!0},Uj=function(t){var e=t.keys;return t===Fj||Mj(Fj,t)&&e===Fj.keys||Rj(zj,Lj(t))?Nj:e};Dj.exports=Uj;var qj=r(Ij),Yj={},Wj={get exports(){return Yj},set exports(t){Yj=t}},Gj=pi,Xj=Math.floor,Vj=function(t,e){var r=t.length,n=Xj(r/2);return r<8?Bj(t,e):Hj(t,Vj(Gj(t,0,n),e),Vj(Gj(t,n),e),e)},Bj=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Hj=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,s=0;a<o||s<i;)t[a+s]=a<o&&s<i?n(e[a],r[s])<=0?e[a++]:r[s++]:a<o?e[a++]:r[s++];return t},$j=Vj,Jj=vt.match(/firefox\/(\d+)/i),Kj=!!Jj&&+Jj[1],Qj=/MSIE|Trident/.test(vt),Zj=vt.match(/AppleWebKit\/(\d+)\./),tA=!!Zj&&+Zj[1],eA=Cr,rA=w,nA=Mt,oA=te,iA=en,aA=ay,sA=co,uA=l,cA=$j,fA=Pl,lA=Kj,pA=Qj,hA=_t,vA=tA,dA=[],yA=rA(dA.sort),gA=rA(dA.push),mA=uA((function(){dA.sort(void 0)})),bA=uA((function(){dA.sort(null)})),xA=fA("sort"),_A=!uA((function(){if(hA)return hA<70;if(!(lA&&lA>3)){if(pA)return!0;if(vA)return vA<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)dA.push({k:e+n,v:r})}for(dA.sort((function(t,e){return e.v-t.v})),n=0;n<dA.length;n++)e=dA[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));eA({target:"Array",proto:!0,forced:mA||!bA||!xA||!_A},{sort:function(t){void 0!==t&&nA(t);var e=oA(this);if(_A)return void 0===t?yA(e):yA(e,t);var r,n,o=[],i=iA(e);for(n=0;n<i;n++)n in e&&gA(o,e[n]);for(cA(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:sA(e)>sA(r)?1:-1}}(t)),r=iA(o),n=0;n<r;)e[n]=o[n++];for(;n<i;)aA(e,n++);return e}});var wA=hl("Array").sort,EA=ht,TA=wA,OA=Array.prototype,SA=function(t){var e=t.sort;return t===OA||EA(OA,t)&&e===OA.sort?TA:e};Wj.exports=SA;var kA=r(Yj),jA={},AA={get exports(){return jA},set exports(t){jA=t}},PA=hl("Array").values,IA=gn,DA=ne,CA=ht,LA=PA,RA=Array.prototype,MA={DOMTokenList:!0,NodeList:!0},NA=function(t){var e=t.values;return t===RA||CA(RA,t)&&e===RA.values||DA(MA,IA(t))?LA:e};AA.exports=NA;var FA=r(jA),zA={};({get exports(){return zA},set exports(t){zA=t}}).exports=Nf;var UA=r(zA),qA={},YA={get exports(){return qA},set exports(t){qA=t}},WA=hl("Array").entries,GA=gn,XA=ne,VA=ht,BA=WA,HA=Array.prototype,$A={DOMTokenList:!0,NodeList:!0},JA=function(t){var e=t.entries;return t===HA||VA(HA,t)&&e===HA.entries||XA($A,GA(t))?BA:e};YA.exports=JA;var KA=r(qA);let QA;const ZA=new Uint8Array(16);function tP(){if(!QA&&(QA="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!QA))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return QA(ZA)}const eP=[];for(let t=0;t<256;++t)eP.push((t+256).toString(16).slice(1));var rP={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nP(t,e,r){if(rP.randomUUID&&!e&&!t)return rP.randomUUID();const n=(t=t||{}).random||(t.rng||tP)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return function(t,e=0){return(eP[t[e+0]]+eP[t[e+1]]+eP[t[e+2]]+eP[t[e+3]]+"-"+eP[t[e+4]]+eP[t[e+5]]+"-"+eP[t[e+6]]+eP[t[e+7]]+"-"+eP[t[e+8]]+eP[t[e+9]]+"-"+eP[t[e+10]]+eP[t[e+11]]+eP[t[e+12]]+eP[t[e+13]]+eP[t[e+14]]+eP[t[e+15]]).toLowerCase()}(n)}function oP(t){return"string"==typeof t||"number"==typeof t}var iP=function(){function e(r){t(this,e),Jf(this,"delay",void 0),Jf(this,"max",void 0),Jf(this,"_queue",[]),Jf(this,"_timeout",null),Jf(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return $f(e,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,r=0;r<e.length;r++){var n=e[r];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var r=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];r.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;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=rb((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;Fd(t=Oy(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(t,r){var n=new e(r);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(r&&r.replace)for(var i=0;i<r.replace.length;i++){var a=r.replace[i];o.push({name:a,original:t[a]}),n.replace(t,a)}return n._extended={object:t,methods:o},n}}]),e}(),aP=function(){function e(){t(this,e),Jf(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Jf(this,"subscribe",e.prototype.on),Jf(this,"unsubscribe",e.prototype.off)}return $f(e,[{key:"_trigger",value:function(t,e,r){var n,o;if("*"===t)throw new Error("Cannot trigger event *");Fd(n=id(o=[]).call(o,$v(this._subscribers[t]),$v(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=r?r:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var r;this._subscribers[t]=Bl(r=this._subscribers[t]).call(r,(function(t){return t!==e}))}}]),e}(),sP={},uP={get exports(){return sP},set exports(t){sP=t}};nj("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),bj);var cP=st.Set;uP.exports=cP;var fP=r(sP),lP={},pP={get exports(){return lP},set exports(t){lP=t}},hP={},vP=Hp;({get exports(){return hP},set exports(t){hP=t}}).exports=vP,pP.exports=hP;var dP,yP=r(lP);function gP(t,e){var r=void 0!==Kv&&mh(t)||t["@@iterator"];if(!r){if(hd(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return mP(t,e);var n=sd(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mP(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function mP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}dP=UA;var bP=function(){function e(r){t(this,e),Jf(this,"_pairs",void 0),this._pairs=r}return $f(e,[{key:dP,value:vk.mark((function t(){var e,r,n,o,i;return vk.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=gP(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Hv(r.value,2),o=n[0],i=n[1],t.next=7,[o,i];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:vk.mark((function t(){var e,r,n,o,i;return vk.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=gP(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Hv(r.value,2),o=n[0],i=n[1],t.next=7,[o,i];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:vk.mark((function t(){var e,r,n,o;return vk.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=gP(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Hv(r.value,1),o=n[0],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:vk.mark((function t(){var e,r,n,o;return vk.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=gP(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Hv(r.value,2),o=n[1],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return rp(t=$v(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return rp(t=$v(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return $v(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=km(null),r=gP(this._pairs);try{for(r.s();!(t=r.n()).done;){var n=Hv(t.value,2),o=n[0],i=n[1];e[o]=i}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"toMap",value:function(){return new _j(this._pairs)}},{key:"toIdSet",value:function(){return new fP(this.toIdArray())}},{key:"toItemSet",value:function(){return new fP(this.toItemArray())}},{key:"cache",value:function(){return new e($v(this._pairs))}},{key:"distinct",value:function(t){var e,r=new fP,n=gP(this._pairs);try{for(n.s();!(e=n.n()).done;){var o=Hv(e.value,2),i=o[0],a=o[1];r.add(t(a,i))}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"filter",value:function(t){var r=this._pairs;return new e(Jf({},UA,vk.mark((function e(){var n,o,i,a,s;return vk.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=gP(r),e.prev=1,n.s();case 3:if((o=n.n()).done){e.next=10;break}if(i=Hv(o.value,2),a=i[0],s=i[1],!t(s,a)){e.next=8;break}return e.next=8,[a,s];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(t){var e,r=gP(this._pairs);try{for(r.s();!(e=r.n()).done;){var n=Hv(e.value,2),o=n[0];t(n[1],o)}}catch(t){r.e(t)}finally{r.f()}}},{key:"map",value:function(t){var r=this._pairs;return new e(Jf({},UA,vk.mark((function e(){var n,o,i,a,s;return vk.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=gP(r),e.prev=1,n.s();case 3:if((o=n.n()).done){e.next=9;break}return i=Hv(o.value,2),a=i[0],s=i[1],e.next=7,[a,t(s,a)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))))}},{key:"max",value:function(t){var e=yP(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=Hv(r.value,2),a=i[0],s=i[1],u=t(s,a);u>o&&(o=u,n=s)}return n}},{key:"min",value:function(t){var e=yP(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=Hv(r.value,2),a=i[0],s=i[1],u=t(s,a);u<o&&(o=u,n=s)}return n}},{key:"reduce",value:function(t,e){var r,n=gP(this._pairs);try{for(n.s();!(r=n.n()).done;){var o=Hv(r.value,2),i=o[0];e=t(e,o[1],i)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(t){var r=this;return new e(Jf({},UA,(function(){var e;return yP(kA(e=$v(r._pairs)).call(e,(function(e,r){var n=Hv(e,2),o=n[0],i=n[1],a=Hv(r,2),s=a[0],u=a[1];return t(i,u,o,s)})))})))}}]),e}();function xP(t,e){var r=bd(t);if(wh){var n=wh(t);e&&(n=Bl(n).call(n,(function(e){return Rh(t,e).enumerable}))),r.push.apply(r,n)}return r}function _P(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?Fd(r=xP(Object(o),!0)).call(r,(function(e){Jf(t,e,o[e])})):$h?av(t,$h(o)):Fd(n=xP(Object(o))).call(n,(function(e){uv(t,e,Rh(o,e))}))}return t}function wP(t,e){var r=void 0!==Kv&&mh(t)||t["@@iterator"];if(!r){if(hd(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return EP(t,e);var n=sd(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EP(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function EP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function TP(t){var e=function(){if("undefined"==typeof Reflect||!tw)return!1;if(tw.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(tw(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Sw(t);if(e){var o=Sw(this).constructor;r=tw(n,arguments,o)}else r=n.apply(this,arguments);return xw(this,r)}}var OP=function(e){bw(n,aP);var r=TP(n);function n(e,o){var i;return t(this,n),Jf(ew(i=r.call(this)),"flush",void 0),Jf(ew(i),"length",void 0),Jf(ew(i),"_options",void 0),Jf(ew(i),"_data",void 0),Jf(ew(i),"_idProp",void 0),Jf(ew(i),"_queue",null),e&&!hd(e)&&(o=e,e=[]),i._options=o||{},i._data=new _j,i.length=0,i._idProp=i._options.fieldId||"id",e&&e.length&&i.add(e),i.setOptions(o),i}return $f(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=iP.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===Uf(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var r,n=this,o=[];if(hd(t)){var i=rp(t).call(t,(function(t){return t[n._idProp]}));if(Pj(i).call(i,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,s=t.length;a<s;a++)r=this._addItem(t[a]),o.push(r)}else{if(!t||"object"!==Uf(t))throw new Error("Unknown dataType");r=this._addItem(t),o.push(r)}return o.length&&this._trigger("add",{items:o},e),o}},{key:"update",value:function(t,e){var r=this,n=[],o=[],i=[],a=[],s=this._idProp,u=function(t){var e=t[s];if(null!=e&&r._data.has(e)){var u=t,c=Wy({},r._data.get(e)),f=r._updateItem(u);o.push(f),a.push(u),i.push(c)}else{var l=r._addItem(t);n.push(l)}};if(hd(t))for(var c=0,f=t.length;c<f;c++)t[c]&&"object"===Uf(t[c])?u(t[c]):console.warn("Ignoring input item, which is not an object at index "+c);else{if(!t||"object"!==Uf(t))throw new Error("Unknown dataType");u(t)}if(n.length&&this._trigger("add",{items:n},e),o.length){var l={items:o,oldData:i,data:a};this._trigger("update",l,e)}return id(n).call(n,o)}},{key:"updateOnly",value:function(t,e){var r,n=this;hd(t)||(t=[t]);var o=rp(r=rp(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(r,(function(t){var e=t.oldData,r=t.update,o=e[n._idProp],i=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return k_.apply(void 0,id(e=[{},t]).call(e,n))}(e,r);return n._data.set(o,i),{id:o,oldData:e,updatedData:i}}));if(o.length){var i={items:rp(o).call(o,(function(t){return t.id})),oldData:rp(o).call(o,(function(t){return t.oldData})),data:rp(o).call(o,(function(t){return t.updatedData}))};return this._trigger("update",i,e),i.items}return[]}},{key:"get",value:function(t,e){var r=void 0,n=void 0,o=void 0;oP(t)?(r=t,o=e):hd(t)?(n=t,o=e):o=t;var i,a=o&&"Object"===o.returnType?"Object":"Array",s=o&&Bl(o),u=[],c=void 0,f=void 0,l=void 0;if(null!=r)(c=this._data.get(r))&&s&&!s(c)&&(c=void 0);else if(null!=n)for(var p=0,h=n.length;p<h;p++)null==(c=this._data.get(n[p]))||s&&!s(c)||u.push(c);else for(var v,d=0,y=(f=$v(qj(v=this._data).call(v))).length;d<y;d++)l=f[d],null==(c=this._data.get(l))||s&&!s(c)||u.push(c);if(o&&o.order&&null==r&&this._sort(u,o.order),o&&o.fields){var g=o.fields;if(null!=r&&null!=c)c=this._filterFields(c,g);else for(var m=0,b=u.length;m<b;m++)u[m]=this._filterFields(u[m],g)}if("Object"==a){for(var x={},_=0,w=u.length;_<w;_++){var E=u[_];x[E[this._idProp]]=E}return x}return null!=r?null!==(i=c)&&void 0!==i?i:null:u}},{key:"getIds",value:function(t){var e=this._data,r=t&&Bl(t),n=t&&t.order,o=$v(qj(e).call(e)),i=[];if(r)if(n){for(var a=[],s=0,u=o.length;s<u;s++){var c=o[s],f=this._data.get(c);null!=f&&r(f)&&a.push(f)}this._sort(a,n);for(var l=0,p=a.length;l<p;l++)i.push(a[l][this._idProp])}else for(var h=0,v=o.length;h<v;h++){var d=o[h],y=this._data.get(d);null!=y&&r(y)&&i.push(y[this._idProp])}else if(n){for(var g=[],m=0,b=o.length;m<b;m++){var x=o[m];g.push(e.get(x))}this._sort(g,n);for(var _=0,w=g.length;_<w;_++)i.push(g[_][this._idProp])}else for(var E=0,T=o.length;E<T;E++){var O=o[E],S=e.get(O);null!=S&&i.push(S[this._idProp])}return i}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var r=e&&Bl(e),n=this._data,o=$v(qj(n).call(n));if(e&&e.order)for(var i=this.get(e),a=0,s=i.length;a<s;a++){var u=i[a];t(u,u[this._idProp])}else for(var c=0,f=o.length;c<f;c++){var l=o[c],p=this._data.get(l);null==p||r&&!r(p)||t(p,l)}}},{key:"map",value:function(t,e){for(var r=e&&Bl(e),n=[],o=this._data,i=$v(qj(o).call(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=this._data.get(u);null==c||r&&!r(c)||n.push(t(c,u))}return e&&e.order&&this._sort(n,e.order),n}},{key:"_filterFields",value:function(t,e){var r;return t?Fl(r=hd(e)?e:bd(e)).call(r,(function(e,r){return e[r]=t[r],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var r=e;kA(t).call(t,(function(t,e){var n=t[r],o=e[r];return n>o?1:n<o?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");kA(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var r=[],n=[],o=hd(t)?t:[t],i=0,a=o.length;i<a;i++){var s=this._remove(o[i]);if(s){var u=s[this._idProp];null!=u&&(r.push(u),n.push(s))}}return r.length&&this._trigger("remove",{items:r,oldData:n},e),r}},{key:"_remove",value:function(t){var e;if(oP(t)?e=t:t&&"object"===Uf(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var r=this._data.get(e)||null;return this._data.delete(e),--this.length,r}return null}},{key:"clear",value:function(t){for(var e,r=$v(qj(e=this._data).call(e)),n=[],o=0,i=r.length;o<i;o++)n.push(this._data.get(r[o]));return this._data.clear(),this.length=0,this._trigger("remove",{items:r,oldData:n},t),r}},{key:"max",value:function(t){var e,r,n=null,o=null,i=wP(FA(e=this._data).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a[t];"number"==typeof s&&(null==o||s>o)&&(n=a,o=s)}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:"min",value:function(t){var e,r,n=null,o=null,i=wP(FA(e=this._data).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a[t];"number"==typeof s&&(null==o||s<o)&&(n=a,o=s)}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,r=$v(qj(e).call(e)),n=[],o=0,i=0,a=r.length;i<a;i++){for(var s=r[i],u=e.get(s)[t],c=!1,f=0;f<o;f++)if(n[f]==u){c=!0;break}c||void 0===u||(n[o]=u,o++)}return n}},{key:"_addItem",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=nP()),t}(t,this._idProp),r=e[this._idProp];if(this._data.has(r))throw new Error("Cannot add item: item with id "+r+" already exists");return this._data.set(r,e),++this.length,r}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+Cm(t)+")");var r=this._data.get(e);if(!r)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,_P(_P({},r),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new bP(Jf({},UA,vk.mark((function r(){var n,o,i,a;return vk.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=wP(t),r.prev=1,n.s();case 3:if((o=n.n()).done){r.next=11;break}if(i=o.value,null==(a=e.get(i))){r.next=9;break}return r.next=9,[i,a];case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),n.e(r.t0);case 16:return r.prev=16,n.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])}))))}var r;return new bP(Jf({},UA,bl(r=KA(this._data)).call(r,this._data)))}}]),n}();function SP(t,e){var r=void 0!==Kv&&mh(t)||t["@@iterator"];if(!r){if(hd(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return kP(t,e);var n=sd(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kP(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function kP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jP(t){var e=function(){if("undefined"==typeof Reflect||!tw)return!1;if(tw.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(tw(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Sw(t);if(e){var o=Sw(this).constructor;r=tw(n,arguments,o)}else r=n.apply(this,arguments);return xw(this,r)}}var AP=function(e){bw(n,aP);var r=jP(n);function n(e,o){var i,a;return t(this,n),Jf(ew(a=r.call(this)),"length",0),Jf(ew(a),"_listener",void 0),Jf(ew(a),"_data",void 0),Jf(ew(a),"_ids",new fP),Jf(ew(a),"_options",void 0),a._options=o||{},a._listener=bl(i=a._onEvent).call(i,ew(a)),a.setData(e),a}return $f(n,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:Bl(this._options)}),r=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:r})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:Bl(this._options)}),o=0,i=n.length;o<i;o++){var a=n[o];this._ids.add(a)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new OP;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:Bl(this._options)}),e=$v(this._ids),r={},n=[],o=[],i=[],a=0,s=t.length;a<s;a++){var u=t[a];r[u]=!0,this._ids.has(u)||(n.push(u),this._ids.add(u))}for(var c=0,f=e.length;c<f;c++){var l=e[c],p=this._data.get(l);null==p?console.error("If you see this, report it please."):r[l]||(o.push(l),i.push(p),this._ids.delete(l))}this.length+=n.length-o.length,n.length&&this._trigger("add",{items:n}),o.length&&this._trigger("remove",{items:o,oldData:i})}},{key:"get",value:function(t,e){if(null==this._data)return null;var r,n=null;oP(t)||hd(t)?(n=t,r=e):r=t;var o=Wy({},this._options,r),i=Bl(this._options),a=r&&Bl(r);return i&&a&&(o.filter=function(t){return i(t)&&a(t)}),null==n?this._data.get(o):this._data.get(n,o)}},{key:"getIds",value:function(t){if(this._data.length){var e,r=Bl(this._options),n=null!=t?Bl(t):null;return e=n?r?function(t){return r(t)&&n(t)}:n:r,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var r,n,o=Bl(this._options),i=e&&Bl(e);n=i?o?function(t){return o(t)&&i(t)}:i:o,Fd(r=this._data).call(r,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var r,n,o=Bl(this._options),i=e&&Bl(e);return n=i?o?function(t){return o(t)&&i(t)}:i:o,rp(r=this._data).call(r,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||Jf({},UA,bl(e=qj(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,r="This data view has already been disposed of.",o={get:function(){throw new Error(r)},set:function(){throw new Error(r)},configurable:!1},i=SP(ld(n.prototype));try{for(i.s();!(e=i.n()).done;){var a=e.value;uv(this,a,o)}}catch(t){i.e(t)}finally{i.f()}}},{key:"_onEvent",value:function(t,e,r){if(e&&e.items&&this._data){var n=e.items,o=[],i=[],a=[],s=[],u=[],c=[];switch(t){case"add":for(var f=0,l=n.length;f<l;f++){var p=n[f];this.get(p)&&(this._ids.add(p),o.push(p))}break;case"update":for(var h=0,v=n.length;h<v;h++){var d=n[h];this.get(d)?this._ids.has(d)?(i.push(d),u.push(e.data[h]),s.push(e.oldData[h])):(this._ids.add(d),o.push(d)):this._ids.has(d)&&(this._ids.delete(d),a.push(d),c.push(e.oldData[h]))}break;case"remove":for(var y=0,g=n.length;y<g;y++){var m=n[y];this._ids.has(m)&&(this._ids.delete(m),a.push(m),c.push(e.oldData[y]))}}this.length+=o.length-a.length,o.length&&this._trigger("add",{items:o},r),i.length&&this._trigger("update",{items:i,oldData:s,data:u},r),a.length&&this._trigger("remove",{items:a,oldData:c},r)}}}]),n}();function PP(t,e){return"object"===Uf(e)&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof Fd(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof rp(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}function IP(t,e){return"object"===Uf(e)&&null!==e&&t===e.idProp&&"function"==typeof Fd(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof rp(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&PP(t,e.getDataSet())}export{S_ as DELETE,OP as DataSet,bP as DataStream,AP as DataView,iP as Queue,_p as createNewDataPipeFrom,PP as isDataSetLike,IP as isDataViewLike};
32
+ * Licensed under the MIT license */
33
+ function Nd(){return Nd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nd.apply(this,arguments)}function Fd(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function zd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Ud,qd="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}:Object.assign,Yd=["","webkit","Moz","MS","ms","o"],Wd="undefined"==typeof document?{style:{}}:document.createElement("div"),Gd=Math.round,Xd=Math.abs,Vd=Date.now;function Bd(t,e){for(var r,n,i=e[0].toUpperCase()+e.slice(1),o=0;o<Yd.length;){if((n=(r=Yd[o])?r+i:e)in t)return n;o++}}Ud="undefined"==typeof window?{}:window;var Hd=Bd(Wd.style,"touchAction"),$d=void 0!==Hd;var Jd="compute",Kd="auto",Qd="manipulation",Zd="none",ty="pan-x",ey="pan-y",ry=function(){if(!$d)return!1;var t={},e=Ud.CSS&&Ud.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){return t[r]=!e||Ud.CSS.supports("touch-action",r)})),t}(),ny="ontouchstart"in Ud,iy=void 0!==Bd(Ud,"PointerEvent"),oy=ny&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ay="touch",uy="mouse",sy=25,cy=1,fy=4,ly=8,hy=1,py=2,vy=4,dy=8,yy=16,gy=py|vy,my=dy|yy,by=gy|my,_y=["x","y"],wy=["clientX","clientY"];function Ey(t,e,r){var n;if(t)if(t.forEach)t.forEach(e,r);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(r,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function Ty(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Oy(t,e){return t.indexOf(e)>-1}var xy=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Jd&&(t=this.compute()),$d&&this.manager.element.style&&ry[t]&&(this.manager.element.style[Hd]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Ey(this.manager.recognizers,(function(e){Ty(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Oy(t,Zd))return Zd;var e=Oy(t,ty),r=Oy(t,ey);return e&&r?Zd:e||r?e?ty:ey:Oy(t,Qd)?Qd:Kd}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,r=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,i=Oy(n,Zd)&&!ry[Zd],o=Oy(n,ey)&&!ry[ey],a=Oy(n,ty)&&!ry[ty];if(i){var u=1===t.pointers.length,s=t.distance<2,c=t.deltaTime<250;if(u&&s&&c)return}if(!a||!o)return i||o&&r&gy||a&&r&my?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function ky(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Sy(t){var e=t.length;if(1===e)return{x:Gd(t[0].clientX),y:Gd(t[0].clientY)};for(var r=0,n=0,i=0;i<e;)r+=t[i].clientX,n+=t[i].clientY,i++;return{x:Gd(r/e),y:Gd(n/e)}}function jy(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:Gd(t.pointers[r].clientX),clientY:Gd(t.pointers[r].clientY)},r++;return{timeStamp:Vd(),pointers:e,center:Sy(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Ay(t,e,r){r||(r=_y);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return Math.sqrt(n*n+i*i)}function Py(t,e,r){r||(r=_y);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return 180*Math.atan2(i,n)/Math.PI}function Iy(t,e){return t===e?hy:Xd(t)>=Xd(e)?t<0?py:vy:e<0?dy:yy}function Dy(t,e,r){return{x:e/t||0,y:r/t||0}}function Cy(t,e){var r=t.session,n=e.pointers,i=n.length;r.firstInput||(r.firstInput=jy(e)),i>1&&!r.firstMultiple?r.firstMultiple=jy(e):1===i&&(r.firstMultiple=!1);var o=r.firstInput,a=r.firstMultiple,u=a?a.center:o.center,s=e.center=Sy(n);e.timeStamp=Vd(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Py(u,s),e.distance=Ay(u,s),function(t,e){var r=e.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==cy&&o.eventType!==fy||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=i.x+(r.x-n.x),e.deltaY=i.y+(r.y-n.y)}(r,e),e.offsetDirection=Iy(e.deltaX,e.deltaY);var c,f,l=Dy(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=Xd(l.x)>Xd(l.y)?l.x:l.y,e.scale=a?(c=a.pointers,Ay((f=n)[0],f[1],wy)/Ay(c[0],c[1],wy)):1,e.rotation=a?function(t,e){return Py(e[1],e[0],wy)+Py(t[1],t[0],wy)}(a.pointers,n):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,function(t,e){var r,n,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!==ly&&(u>sy||void 0===a.velocity)){var s=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,f=Dy(u,s,c);n=f.x,i=f.y,r=Xd(f.x)>Xd(f.y)?f.x:f.y,o=Iy(s,c),t.lastInterval=e}else r=a.velocity,n=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=r,e.velocityX=n,e.velocityY=i,e.direction=o}(r,e);var h,p=t.element,v=e.srcEvent;ky(h=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=h),e.target=p}function Ly(t,e,r){var n=r.pointers.length,i=r.changedPointers.length,o=e&cy&&n-i==0,a=e&(fy|ly)&&n-i==0;r.isFirst=!!o,r.isFinal=!!a,o&&(t.session={}),r.eventType=e,Cy(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function Ry(t){return t.trim().split(/\s+/g)}function My(t,e,r){Ey(Ry(e),(function(e){t.addEventListener(e,r,!1)}))}function Ny(t,e,r){Ey(Ry(e),(function(e){t.removeEventListener(e,r,!1)}))}function Fy(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var zy=function(){function t(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Ty(t.options.enable,[t])&&r.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&My(this.element,this.evEl,this.domHandler),this.evTarget&&My(this.target,this.evTarget,this.domHandler),this.evWin&&My(Fy(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ny(this.element,this.evEl,this.domHandler),this.evTarget&&Ny(this.target,this.evTarget,this.domHandler),this.evWin&&Ny(Fy(this.element),this.evWin,this.domHandler)},t}();function Uy(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var n=0;n<t.length;){if(r&&t[n][r]==e||!r&&t[n]===e)return n;n++}return-1}var qy={pointerdown:cy,pointermove:2,pointerup:fy,pointercancel:ly,pointerout:ly},Yy={2:ay,3:"pen",4:uy,5:"kinect"},Wy="pointerdown",Gy="pointermove pointerup pointercancel";Ud.MSPointerEvent&&!Ud.PointerEvent&&(Wy="MSPointerDown",Gy="MSPointerMove MSPointerUp MSPointerCancel");var Xy=function(t){function e(){var r,n=e.prototype;return n.evEl=Wy,n.evWin=Gy,(r=t.apply(this,arguments)||this).store=r.manager.session.pointerEvents=[],r}return Fd(e,t),e.prototype.handler=function(t){var e=this.store,r=!1,n=t.type.toLowerCase().replace("ms",""),i=qy[n],o=Yy[t.pointerType]||t.pointerType,a=o===ay,u=Uy(e,t.pointerId,"pointerId");i&cy&&(0===t.button||a)?u<0&&(e.push(t),u=e.length-1):i&(fy|ly)&&(r=!0),u<0||(e[u]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),r&&e.splice(u,1))},e}(zy);function Vy(t){return Array.prototype.slice.call(t,0)}function By(t,e,r){for(var n=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];Uy(i,a)<0&&n.push(t[o]),i[o]=a,o++}return r&&(n=e?n.sort((function(t,r){return t[e]>r[e]})):n.sort()),n}var Hy={touchstart:cy,touchmove:2,touchend:fy,touchcancel:ly},$y=function(t){function e(){var r;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(r=t.apply(this,arguments)||this).targetIds={},r}return Fd(e,t),e.prototype.handler=function(t){var e=Hy[t.type],r=Jy.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:ay,srcEvent:t})},e}(zy);function Jy(t,e){var r,n,i=Vy(t.touches),o=this.targetIds;if(e&(2|cy)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Vy(t.changedTouches),u=[],s=this.target;if(n=i.filter((function(t){return ky(t.target,s)})),e===cy)for(r=0;r<n.length;)o[n[r].identifier]=!0,r++;for(r=0;r<a.length;)o[a[r].identifier]&&u.push(a[r]),e&(fy|ly)&&delete o[a[r].identifier],r++;return u.length?[By(n.concat(u),"identifier",!0),u]:void 0}var Ky={mousedown:cy,mousemove:2,mouseup:fy},Qy=function(t){function e(){var r,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(r=t.apply(this,arguments)||this).pressed=!1,r}return Fd(e,t),e.prototype.handler=function(t){var e=Ky[t.type];e&cy&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=fy),this.pressed&&(e&fy&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:uy,srcEvent:t}))},e}(zy),Zy=2500;function tg(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var r={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(r);setTimeout((function(){var t=n.indexOf(r);t>-1&&n.splice(t,1)}),Zy)}}function eg(t,e){t&cy?(this.primaryTouch=e.changedPointers[0].identifier,tg.call(this,e)):t&(fy|ly)&&tg.call(this,e)}function rg(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(e-i.x),a=Math.abs(r-i.y);if(o<=25&&a<=25)return!0}return!1}var ng=function(){return function(t){function e(e,r){var n;return(n=t.call(this,e,r)||this).handler=function(t,e,r){var i=r.pointerType===ay,o=r.pointerType===uy;if(!(o&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(i)eg.call(zd(zd(n)),e,r);else if(o&&rg.call(zd(zd(n)),r))return;n.callback(t,e,r)}},n.touch=new $y(n.manager,n.handler),n.mouse=new Qy(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return Fd(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(zy)}();function ig(t,e,r){return!!Array.isArray(t)&&(Ey(t,r[e],r),!0)}var og=32,ag=1;function ug(t,e){var r=e.manager;return r?r.get(t):t}function sg(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var cg=function(){function t(t){void 0===t&&(t={}),this.options=Nd({enable:!0},t),this.id=ag++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return qd(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(ig(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=ug(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return ig(t,"dropRecognizeWith",this)||(t=ug(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(ig(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Uy(e,t=ug(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(ig(t,"dropRequireFailure",this))return this;t=ug(t,this);var e=Uy(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,r=this.state;function n(r){e.manager.emit(r,t)}r<8&&n(e.options.event+sg(r)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),r>=8&&n(e.options.event+sg(r))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=og},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=qd({},t);if(!Ty(this.options.enable,[this,e]))return this.reset(),void(this.state=og);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),fg=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Nd({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,r.pCenter=!1,r._timer=null,r._input=null,r.count=0,r}Fd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Qd]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,i=t.distance<r.threshold,o=t.deltaTime<r.time;if(this.reset(),t.eventType&cy&&0===this.count)return this.failTimeout();if(i&&o&&n){if(t.eventType!==fy)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<r.interval,u=!this.pCenter||Ay(this.pCenter,t.center)<r.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,u&&a?this.count+=1:this.count=1,this._input=t,0===this.count%r.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),r.interval),2):8}return og},r.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=og}),this.options.interval),og},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(cg),lg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Nd({pointers:1},e))||this}Fd(e,t);var r=e.prototype;return r.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},r.process=function(t){var e=this.state,r=t.eventType,n=6&e,i=this.attrTest(t);return n&&(r&ly||!i)?16|e:n||i?r&fy?8|e:2&e?4|e:2:og},e}(cg);function hg(t){return t===yy?"down":t===dy?"up":t===py?"left":t===vy?"right":""}var pg=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Nd({event:"pan",threshold:10,pointers:1,direction:by},e))||this).pX=null,r.pY=null,r}Fd(e,t);var r=e.prototype;return r.getTouchAction=function(){var t=this.options.direction,e=[];return t&gy&&e.push(ey),t&my&&e.push(ty),e},r.directionTest=function(t){var e=this.options,r=!0,n=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&gy?(i=0===o?hy:o<0?py:vy,r=o!==this.pX,n=Math.abs(t.deltaX)):(i=0===a?hy:a<0?dy:yy,r=a!==this.pY,n=Math.abs(t.deltaY))),t.direction=i,r&&n>e.threshold&&i&e.direction},r.attrTest=function(t){return lg.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},r.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var r=hg(e.direction);r&&(e.additionalEvent=this.options.event+r),t.prototype.emit.call(this,e)},e}(lg),vg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Nd({event:"swipe",threshold:10,velocity:.3,direction:gy|my,pointers:1},e))||this}Fd(e,t);var r=e.prototype;return r.getTouchAction=function(){return pg.prototype.getTouchAction.call(this)},r.attrTest=function(e){var r,n=this.options.direction;return n&(gy|my)?r=e.overallVelocity:n&gy?r=e.overallVelocityX:n&my&&(r=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Xd(r)>this.options.velocity&&e.eventType&fy},r.emit=function(t){var e=hg(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(lg),dg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Nd({event:"pinch",threshold:0,pointers:2},e))||this}Fd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Zd]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},r.emit=function(e){if(1!==e.scale){var r=e.scale<1?"in":"out";e.additionalEvent=this.options.event+r}t.prototype.emit.call(this,e)},e}(lg),yg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Nd({event:"rotate",threshold:0,pointers:2},e))||this}Fd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Zd]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(lg),gg=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Nd({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,r._input=null,r}Fd(e,t);var r=e.prototype;return r.getTouchAction=function(){return[Kd]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,i=t.distance<r.threshold,o=t.deltaTime>r.time;if(this._input=t,!i||!n||t.eventType&(fy|ly)&&!o)this.reset();else if(t.eventType&cy)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),r.time);else if(t.eventType&fy)return 8;return og},r.reset=function(){clearTimeout(this._timer)},r.emit=function(t){8===this.state&&(t&&t.eventType&fy?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Vd(),this.manager.emit(this.options.event,this._input)))},e}(cg),mg={domEvents:!1,touchAction:Jd,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},bg=[[yg,{enable:!1}],[dg,{enable:!1},["rotate"]],[vg,{direction:gy}],[pg,{direction:gy},["swipe"]],[fg],[fg,{event:"doubletap",taps:2},["tap"]],[gg]];function _g(t,e){var r,n=t.element;n.style&&(Ey(t.options.cssProps,(function(i,o){r=Bd(n.style,o),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""})),e||(t.oldCssProps={}))}var wg=function(){function t(t,e){var r,n=this;this.options=qd({},mg,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((r=this).options.inputClass||(iy?Xy:oy?$y:ny?ng:Qy))(r,Ly),this.touchAction=new xy(this,this.options.touchAction),_g(this,!0),Ey(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return qd(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var r;this.touchAction.preventDefaults(t);var n=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<n.length;)r=n[o],2===e.stopped||i&&r!==i&&!r.canRecognizeWith(i)?r.reset():r.recognize(t),!i&&14&r.state&&(e.curRecognizer=r,i=r),o++}},e.get=function(t){if(t instanceof cg)return t;for(var e=this.recognizers,r=0;r<e.length;r++)if(e[r].options.event===t)return e[r];return null},e.add=function(t){if(ig(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(ig(t,"remove",this))return this;var e=this.get(t);if(t){var r=this.recognizers,n=Uy(r,e);-1!==n&&(r.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var r=this.handlers;return Ey(Ry(t),(function(t){r[t]=r[t]||[],r[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var r=this.handlers;return Ey(Ry(t),(function(t){e?r[t]&&r[t].splice(Uy(r[t],e),1):delete r[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}(t,e);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<r.length;)r[n](e),n++}},e.destroy=function(){this.element&&_g(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Eg={touchstart:cy,touchmove:2,touchend:fy,touchcancel:ly},Tg=function(t){function e(){var r,n=e.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(r=t.apply(this,arguments)||this).started=!1,r}return Fd(e,t),e.prototype.handler=function(t){var e=Eg[t.type];if(e===cy&&(this.started=!0),this.started){var r=Og.call(this,t,e);e&(fy|ly)&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:ay,srcEvent:t})}},e}(zy);function Og(t,e){var r=Vy(t.touches),n=Vy(t.changedTouches);return e&(fy|ly)&&(r=By(r.concat(n),"identifier",!0)),[r,n]}function xg(t,e,r){var n="DEPRECATED METHOD: "+e+"\n"+r+" AT \n";return function(){var e=new Error("get-stack-trace"),r=e&&e.stack?e.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,r),t.apply(this,arguments)}}var kg=xg((function(t,e,r){for(var n=Object.keys(e),i=0;i<n.length;)(!r||r&&void 0===t[n[i]])&&(t[n[i]]=e[n[i]]),i++;return t}),"extend","Use `assign`."),Sg=xg((function(t,e){return kg(t,e,!0)}),"merge","Use `assign`.");function jg(t,e,r){var n,i=e.prototype;(n=t.prototype=Object.create(i)).constructor=t,n._super=i,r&&qd(n,r)}function Ag(t,e){return function(){return t.apply(e,arguments)}}var Pg=function(){var t=function(t,e){return void 0===e&&(e={}),new wg(t,Nd({recognizers:bg.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=by,t.DIRECTION_DOWN=yy,t.DIRECTION_LEFT=py,t.DIRECTION_RIGHT=vy,t.DIRECTION_UP=dy,t.DIRECTION_HORIZONTAL=gy,t.DIRECTION_VERTICAL=my,t.DIRECTION_NONE=hy,t.DIRECTION_DOWN=yy,t.INPUT_START=cy,t.INPUT_MOVE=2,t.INPUT_END=fy,t.INPUT_CANCEL=ly,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=og,t.Manager=wg,t.Input=zy,t.TouchAction=xy,t.TouchInput=$y,t.MouseInput=Qy,t.PointerEventInput=Xy,t.TouchMouseInput=ng,t.SingleTouchInput=Tg,t.Recognizer=cg,t.AttrRecognizer=lg,t.Tap=fg,t.Pan=pg,t.Swipe=vg,t.Pinch=dg,t.Rotate=yg,t.Press=gg,t.on=My,t.off=Ny,t.each=Ey,t.merge=Sg,t.extend=kg,t.bindFn=Ag,t.assign=qd,t.inherit=jg,t.bindFn=Ag,t.prefixed=Bd,t.toArray=Vy,t.inArray=Uy,t.uniqueArray=By,t.splitStr=Ry,t.boolOrFn=Ty,t.hasParent=ky,t.addEventListeners=My,t.removeEventListeners=Ny,t.defaults=qd({},mg,{preset:bg}),t}();function Ig(t,e){var r=void 0!==zp&&Rh(t)||t["@@iterator"];if(!r){if(Bp(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return Dg(t,e);var n=Xp(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Lh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dg(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function Dg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Cg=zp("DELETE");function Lg(){var t=Rg.apply(void 0,arguments);return Ng(t),t}function Rg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<2)return e[0];var n;if(e.length>2)return Rg.apply(void 0,Gp(n=[Lg(e[0],e[1])]).call(n,Fp(Xp(e).call(e,2))));var i,o=e[0],a=e[1],u=Ig(Vp(a));try{for(u.s();!(i=u.n()).done;){var s=i.value;Object.prototype.propertyIsEnumerable.call(a,s)&&(a[s]===Cg?delete o[s]:null===o[s]||null===a[s]||"object"!==Af(o[s])||"object"!==Af(a[s])||Bp(o[s])||Bp(a[s])?o[s]=Mg(a[s]):o[s]=Rg(o[s],a[s]))}}catch(t){u.e(t)}finally{u.f()}return o}function Mg(t){return Bp(t)?jl(t).call(t,(function(t){return Mg(t)})):"object"===Af(t)&&null!==t?Rg({},t):t}function Ng(t){for(var e=0,r=Jp(t);e<r.length;e++){var n=r[e];t[n]===Cg?delete t[n]:"object"===Af(t[n])&&null!==t[n]&&Ng(t[n])}}var Fg="undefined"!=typeof window?window.Hammer||Pg:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function zg(t){var e,r=this;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((function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)}));var n=Fg(this._dom.overlay);n.on("tap",tl(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];uv(i).call(i,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",r._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&r.deactivate()}}Md(zg.prototype),zg.current=null,zg.prototype.destroy=function(){var t,e;this.deactivate();var r,n=Ig(gv(t=Wv(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(r=n.n()).done;){(0,r.value)()}}catch(t){n.e(t)}finally{n.f()}},zg.prototype.activate=function(){zg.current&&zg.current.deactivate(),zg.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)},zg.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")},zg.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Ug=kn,qg=St,Yg=TypeError,Wg=function(t){if(Ug(t))return t;throw Yg(qg(t)+" is not a constructor")},Gg=jr,Xg=h,Vg=Xf,Bg=Wg,Hg=rr,$g=et,Jg=Vi,Kg=a,Qg=ut("Reflect","construct"),Zg=Object.prototype,tm=[].push,em=Kg((function(){function t(){}return!(Qg((function(){}),[],t)instanceof t)})),rm=!Kg((function(){Qg((function(){}))})),nm=em||rm;Gg({target:"Reflect",stat:!0,forced:nm,sham:nm},{construct:function(t,e){Bg(t),Hg(e);var r=arguments.length<3?t:Bg(arguments[2]);if(rm&&!em)return Qg(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return Xg(tm,n,e),new(Xg(Vg,t,n))}var i=r.prototype,o=Jg($g(i)?i:Zg),a=Xg(t,o,e);return $g(a)?a:o}});var im=r(rt.Reflect.construct);function om(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var am=fd,um=r(am);jr({target:"Object",stat:!0},{setPrototypeOf:nc});var sm=rt.Object.setPrototypeOf,cm=r(sm),fm=r(Zf);function lm(t,e){var r;return lm=cm?fm(r=cm).call(r):function(t,e){return t.__proto__=e,t},lm(t,e)}function hm(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=um(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Mr(t,"prototype",{writable:!1}),e&&lm(t,e)}function pm(t,e){if(e&&("object"===Af(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return om(t)}var vm=sd,dm=r(vm);function ym(t){var e;return ym=cm?fm(e=dm).call(e):function(t){return t.__proto__||dm(t)},ym(t)}var gm={exports:{}},mm={exports:{}};!function(t){var e=sf,r=Sf;function n(i){return t.exports=n="function"==typeof e&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(mm);var bm=mm.exports,_m=av,wm=Qt,Em=Kh,Tm=A,Om=Ke,xm=et,km=yr,Sm=Error,jm=g("".replace),Am=String(Sm("zxcasd").stack),Pm=/\n\s*at [^:]*:[^\n]*/,Im=Pm.test(Am),Dm=U,Cm=!a((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Dm(1,7)),7!==t.stack)})),Lm=yr,Rm=function(t,e){if(Im&&"string"==typeof t&&!Sm.prepareStackTrace)for(;e--;)t=jm(t,Pm,"");return t},Mm=Cm,Nm=Error.captureStackTrace,Fm=Je,zm=C,Um=rr,qm=St,Ym=rh,Wm=Vr,Gm=st,Xm=dh,Vm=sh,Bm=Jl,Hm=TypeError,$m=function(t,e){this.stopped=t,this.result=e},Jm=$m.prototype,Km=function(t,e,r){var n,i,o,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),d=Fm(e,f),y=function(t){return n&&Bm(n,"normal",t),new $m(!0,t)},g=function(t){return l?(Um(t),v?d(t[0],t[1],y):d(t[0],t[1])):v?d(t,y):d(t)};if(h)n=t.iterator;else if(p)n=t;else{if(!(i=Vm(t)))throw Hm(qm(t)+" is not iterable");if(Ym(i)){for(o=0,a=Wm(t);a>o;o++)if((u=g(t[o]))&&Gm(Jm,u))return u;return new $m(!1)}n=Xm(t,i)}for(s=h?t.next:n.next;!(c=zm(s,n)).done;){try{u=g(c.value)}catch(t){Bm(n,"throw",t)}if("object"==typeof u&&u&&Gm(Jm,u))return u}return new $m(!1)},Qm=ti,Zm=jr,tb=st,eb=Ds,rb=nc,nb=function(t,e,r){for(var n=Em(e),i=Om.f,o=Tm.f,a=0;a<n.length;a++){var u=n[a];wm(t,u)||r&&wm(r,u)||i(t,u,o(e,u))}},ib=Vi,ob=yr,ab=U,ub=function(t,e){xm(e)&&"cause"in e&&km(t,"cause",e.cause)},sb=function(t,e,r,n){Mm&&(Nm?Nm(t,e):Lm(t,"stack",Rm(r,n)))},cb=Km,fb=function(t,e){return void 0===t?arguments.length<2?"":e:Qm(t)},lb=he("toStringTag"),hb=Error,pb=[].push,vb=function(t,e){var r,n=tb(db,this);rb?r=rb(hb(),n?eb(this):db):(r=n?this:ib(db),ob(r,lb,"Error")),void 0!==e&&ob(r,"message",fb(e)),sb(r,vb,r.stack,1),arguments.length>2&&ub(r,arguments[2]);var i=[];return cb(t,pb,{that:i}),ob(r,"errors",i),r};rb?rb(vb,hb):nb(vb,hb,{name:!0});var db=vb.prototype=ib(hb.prototype,{constructor:ab(1,vb),message:ab(1,""),name:ab(1,"AggregateError")});Zm({global:!0,constructor:!0,arity:2},{AggregateError:vb});var yb,gb,mb,bb,_b=ut,wb=ho,Eb=P,Tb=he("species"),Ob=function(t){var e=_b(t);Eb&&e&&!e[Tb]&&wb(e,Tb,{configurable:!0,get:function(){return this}})},xb=st,kb=TypeError,Sb=function(t,e){if(xb(e,t))return t;throw kb("Incorrect invocation")},jb=rr,Ab=Wg,Pb=V,Ib=he("species"),Db=function(t,e){var r,n=jb(t).constructor;return void 0===n||Pb(r=jb(n)[Ib])?e:Ab(r)},Cb=/(?:ipad|iphone|ipod).*applewebkit/i.test(ct),Lb=o,Rb=h,Mb=Je,Nb=j,Fb=Qt,zb=a,Ub=Ai,qb=Iu,Yb=ke,Wb=gd,Gb=Cb,Xb=fl,Vb=Lb.setImmediate,Bb=Lb.clearImmediate,Hb=Lb.process,$b=Lb.Dispatch,Jb=Lb.Function,Kb=Lb.MessageChannel,Qb=Lb.String,Zb=0,t_={},e_="onreadystatechange";zb((function(){yb=Lb.location}));var r_=function(t){if(Fb(t_,t)){var e=t_[t];delete t_[t],e()}},n_=function(t){return function(){r_(t)}},i_=function(t){r_(t.data)},o_=function(t){Lb.postMessage(Qb(t),yb.protocol+"//"+yb.host)};Vb&&Bb||(Vb=function(t){Wb(arguments.length,1);var e=Nb(t)?t:Jb(t),r=qb(arguments,1);return t_[++Zb]=function(){Rb(e,void 0,r)},gb(Zb),Zb},Bb=function(t){delete t_[t]},Xb?gb=function(t){Hb.nextTick(n_(t))}:$b&&$b.now?gb=function(t){$b.now(n_(t))}:Kb&&!Gb?(bb=(mb=new Kb).port2,mb.port1.onmessage=i_,gb=Mb(bb.postMessage,bb)):Lb.addEventListener&&Nb(Lb.postMessage)&&!Lb.importScripts&&yb&&"file:"!==yb.protocol&&!zb(o_)?(gb=o_,Lb.addEventListener("message",i_,!1)):gb=e_ in Yb("script")?function(t){Ub.appendChild(Yb("script"))[e_]=function(){Ub.removeChild(this),r_(t)}}:function(t){setTimeout(n_(t),0)});var a_={set:Vb,clear:Bb},u_=function(){this.head=null,this.tail=null};u_.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var s_,c_,f_,l_,h_,p_=u_,v_=/ipad|iphone|ipod/i.test(ct)&&"undefined"!=typeof Pebble,d_=/web0s(?!.*chrome)/i.test(ct),y_=o,g_=Je,m_=A.f,b_=a_.set,__=p_,w_=Cb,E_=v_,T_=d_,O_=fl,x_=y_.MutationObserver||y_.WebKitMutationObserver,k_=y_.document,S_=y_.process,j_=y_.Promise,A_=m_(y_,"queueMicrotask"),P_=A_&&A_.value;if(!P_){var I_=new __,D_=function(){var t,e;for(O_&&(t=S_.domain)&&t.exit();e=I_.get();)try{e()}catch(t){throw I_.head&&s_(),t}t&&t.enter()};w_||O_||T_||!x_||!k_?!E_&&j_&&j_.resolve?((l_=j_.resolve(void 0)).constructor=j_,h_=g_(l_.then,l_),s_=function(){h_(D_)}):O_?s_=function(){S_.nextTick(D_)}:(b_=g_(b_,y_),s_=function(){b_(D_)}):(c_=!0,f_=k_.createTextNode(""),new x_(D_).observe(f_,{characterData:!0}),s_=function(){f_.data=c_=!c_}),P_=function(t){I_.head||s_(),I_.add(t)}}var C_=P_,L_=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},R_=o.Promise,M_="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,N_=!M_&&!fl&&"object"==typeof window&&"object"==typeof document,F_=o,z_=R_,U_=j,q_=Ve,Y_=hn,W_=he,G_=N_,X_=M_,V_=yt,B_=z_&&z_.prototype,H_=W_("species"),$_=!1,J_=U_(F_.PromiseRejectionEvent),K_=q_("Promise",(function(){var t=Y_(z_),e=t!==String(z_);if(!e&&66===V_)return!0;if(!B_.catch||!B_.finally)return!0;if(!V_||V_<51||!/native code/.test(t)){var r=new z_((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[H_]=n,!($_=r.then((function(){}))instanceof n))return!0}return!e&&(G_||X_)&&!J_})),Q_={CONSTRUCTOR:K_,REJECTION_EVENT:J_,SUBCLASSING:$_},Z_={},tw=It,ew=TypeError,rw=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw ew("Bad Promise constructor");e=t,r=n})),this.resolve=tw(e),this.reject=tw(r)};Z_.f=function(t){return new rw(t)};var nw,iw,ow=jr,aw=fl,uw=o,sw=C,cw=fo,fw=No,lw=Ob,hw=It,pw=j,vw=et,dw=Sb,yw=Db,gw=a_.set,mw=C_,bw=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}},_w=L_,ww=p_,Ew=Zo,Tw=R_,Ow=Q_,xw=Z_,kw="Promise",Sw=Ow.CONSTRUCTOR,jw=Ow.REJECTION_EVENT,Aw=Ew.getterFor(kw),Pw=Ew.set,Iw=Tw&&Tw.prototype,Dw=Tw,Cw=Iw,Lw=uw.TypeError,Rw=uw.document,Mw=uw.process,Nw=xw.f,Fw=Nw,zw=!!(Rw&&Rw.createEvent&&uw.dispatchEvent),Uw="unhandledrejection",qw=function(t){var e;return!(!vw(t)||!pw(e=t.then))&&e},Yw=function(t,e){var r,n,i,o=e.value,a=1==e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&Bw(e),e.rejection=1),!0===u?r=o:(f&&f.enter(),r=u(o),f&&(f.exit(),i=!0)),r===t.promise?c(Lw("Promise-chain cycle")):(n=qw(r))?sw(n,r,s,c):s(r)):c(o)}catch(t){f&&!i&&f.exit(),c(t)}},Ww=function(t,e){t.notified||(t.notified=!0,mw((function(){for(var r,n=t.reactions;r=n.get();)Yw(r,t);t.notified=!1,e&&!t.rejection&&Xw(t)})))},Gw=function(t,e,r){var n,i;zw?((n=Rw.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),uw.dispatchEvent(n)):n={promise:e,reason:r},!jw&&(i=uw["on"+t])?i(n):t===Uw&&bw("Unhandled promise rejection",r)},Xw=function(t){sw(gw,uw,(function(){var e,r=t.facade,n=t.value;if(Vw(t)&&(e=_w((function(){aw?Mw.emit("unhandledRejection",n,r):Gw(Uw,r,n)})),t.rejection=aw||Vw(t)?2:1,e.error))throw e.value}))},Vw=function(t){return 1!==t.rejection&&!t.parent},Bw=function(t){sw(gw,uw,(function(){var e=t.facade;aw?Mw.emit("rejectionHandled",e):Gw("rejectionhandled",e,t.value)}))},Hw=function(t,e,r){return function(n){t(e,n,r)}},$w=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Ww(t,!0))},Jw=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Lw("Promise can't be resolved itself");var n=qw(e);n?mw((function(){var r={done:!1};try{sw(n,e,Hw(Jw,r,t),Hw($w,r,t))}catch(e){$w(r,e,t)}})):(t.value=e,t.state=1,Ww(t,!1))}catch(e){$w({done:!1},e,t)}}};Sw&&(Cw=(Dw=function(t){dw(this,Cw),hw(t),sw(nw,this);var e=Aw(this);try{t(Hw(Jw,e),Hw($w,e))}catch(t){$w(e,t)}}).prototype,(nw=function(t){Pw(this,{type:kw,done:!1,notified:!1,parent:!1,reactions:new ww,rejection:!1,state:0,value:void 0})}).prototype=cw(Cw,"then",(function(t,e){var r=Aw(this),n=Nw(yw(this,Dw));return r.parent=!0,n.ok=!pw(t)||t,n.fail=pw(e)&&e,n.domain=aw?Mw.domain:void 0,0==r.state?r.reactions.add(n):mw((function(){Yw(n,r)})),n.promise})),iw=function(){var t=new nw,e=Aw(t);this.promise=t,this.resolve=Hw(Jw,e),this.reject=Hw($w,e)},xw.f=Nw=function(t){return t===Dw||undefined===t?new iw(t):Fw(t)}),ow({global:!0,constructor:!0,wrap:!0,forced:Sw},{Promise:Dw}),fw(Dw,kw,!1,!0),lw(kw);var Kw=R_,Qw=Q_.CONSTRUCTOR||!Ih((function(t){Kw.all(t).then(void 0,(function(){}))})),Zw=C,tE=It,eE=Z_,rE=L_,nE=Km;jr({target:"Promise",stat:!0,forced:Qw},{all:function(t){var e=this,r=eE.f(e),n=r.resolve,i=r.reject,o=rE((function(){var r=tE(e.resolve),o=[],a=0,u=1;nE(t,(function(t){var s=a++,c=!1;u++,Zw(r,e,t).then((function(t){c||(c=!0,o[s]=t,--u||n(o))}),i)})),--u||n(o)}));return o.error&&i(o.value),r.promise}});var iE=jr,oE=Q_.CONSTRUCTOR;R_&&R_.prototype,iE({target:"Promise",proto:!0,forced:oE,real:!0},{catch:function(t){return this.then(void 0,t)}});var aE=C,uE=It,sE=Z_,cE=L_,fE=Km;jr({target:"Promise",stat:!0,forced:Qw},{race:function(t){var e=this,r=sE.f(e),n=r.reject,i=cE((function(){var i=uE(e.resolve);fE(t,(function(t){aE(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var lE=C,hE=Z_;jr({target:"Promise",stat:!0,forced:Q_.CONSTRUCTOR},{reject:function(t){var e=hE.f(this);return lE(e.reject,void 0,t),e.promise}});var pE=rr,vE=et,dE=Z_,yE=function(t,e){if(pE(t),vE(e)&&e.constructor===t)return e;var r=dE.f(t);return(0,r.resolve)(e),r.promise},gE=jr,mE=R_,bE=Q_.CONSTRUCTOR,_E=yE,wE=ut("Promise"),EE=!bE;gE({target:"Promise",stat:!0,forced:true},{resolve:function(t){return _E(EE&&this===wE?mE:this,t)}});var TE=C,OE=It,xE=Z_,kE=L_,SE=Km;jr({target:"Promise",stat:!0,forced:Qw},{allSettled:function(t){var e=this,r=xE.f(e),n=r.resolve,i=r.reject,o=kE((function(){var r=OE(e.resolve),i=[],o=0,a=1;SE(t,(function(t){var u=o++,s=!1;a++,TE(r,e,t).then((function(t){s||(s=!0,i[u]={status:"fulfilled",value:t},--a||n(i))}),(function(t){s||(s=!0,i[u]={status:"rejected",reason:t},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var jE=C,AE=It,PE=ut,IE=Z_,DE=L_,CE=Km,LE="No one promise resolved";jr({target:"Promise",stat:!0,forced:Qw},{any:function(t){var e=this,r=PE("AggregateError"),n=IE.f(e),i=n.resolve,o=n.reject,a=DE((function(){var n=AE(e.resolve),a=[],u=0,s=1,c=!1;CE(t,(function(t){var f=u++,l=!1;s++,jE(n,e,t).then((function(t){l||c||(c=!0,i(t))}),(function(t){l||c||(l=!0,a[f]=t,--s||o(new r(a,LE)))}))})),--s||o(new r(a,LE))}));return a.error&&o(a.value),n.promise}});var RE=jr,ME=R_,NE=a,FE=ut,zE=j,UE=Db,qE=yE,YE=ME&&ME.prototype;RE({target:"Promise",proto:!0,real:!0,forced:!!ME&&NE((function(){YE.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=UE(this,FE("Promise")),r=zE(t);return this.then(r?function(r){return qE(e,t()).then((function(){return r}))}:t,r?function(r){return qE(e,t()).then((function(){throw r}))}:t)}});var WE=rt.Promise,GE=Z_,XE=L_;jr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=GE.f(this),r=XE(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var VE=WE,BE=yv;!function(t){var e=bm.default,r=Rr,n=sf,i=am,o=vm,a=_m,u=sm,s=VE,c=BE,f=Dp;function l(){t.exports=l=function(){return h},t.exports.__esModule=!0,t.exports.default=t.exports;var h={},p=Object.prototype,v=p.hasOwnProperty,d=r||function(t,e,r){t[e]=r.value},y="function"==typeof n?n:{},g=y.iterator||"@@iterator",m=y.asyncIterator||"@@asyncIterator",b=y.toStringTag||"@@toStringTag";function _(t,e,n){return r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{_({},"")}catch(t){_=function(t,e,r){return t[e]=r}}function w(t,e,r,n){var o=e&&e.prototype instanceof O?e:O,a=i(o.prototype),u=new M(n||[]);return d(a,"_invoke",{value:D(t,r,u)}),a}function E(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}h.wrap=w;var T={};function O(){}function x(){}function k(){}var S={};_(S,g,(function(){return this}));var j=o&&o(o(N([])));j&&j!==p&&v.call(j,g)&&(S=j);var A=k.prototype=O.prototype=i(S);function P(t){var e;a(e=["next","throw","return"]).call(e,(function(e){_(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,r){function n(i,o,a,u){var s=E(t[i],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==e(f)&&v.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;d(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,i){n(t,e,r,i)}))}return i=i?i.then(o,o):o()}})}function D(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return F()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=C(a,r);if(u){if(u===T)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=E(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===T)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function C(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),T;var i=E(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,T;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,T):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],a(t).call(t,L,this),this.reset(!0)}function N(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(v.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:F}}function F(){return{value:void 0,done:!0}}return x.prototype=k,d(A,"constructor",{value:k,configurable:!0}),d(k,"constructor",{value:x,configurable:!0}),x.displayName=_(k,b,"GeneratorFunction"),h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return u?u(t,k):(t.__proto__=k,_(t,b,"GeneratorFunction")),t.prototype=i(A),t},h.awrap=function(t){return{__await:t}},P(I.prototype),_(I.prototype,m,(function(){return this})),h.AsyncIterator=I,h.async=function(t,e,r,n,i){void 0===i&&(i=s);var o=new I(w(t,e,r,n),i);return h.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},P(A),_(A,b,"Generator"),_(A,g,(function(){return this})),_(A,"toString",(function(){return"[object Generator]"})),h.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return c(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},h.values=N,M.prototype={constructor:M,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,a(e=this.tryEntries).call(e,R),!t)for(var r in this)"t"===r.charAt(0)&&v.call(this,r)&&!isNaN(+f(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=v.call(i,"catchLoc"),u=v.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,T):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),T}},h}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports}(gm);var HE=(0,gm.exports)(),$E=HE;try{regeneratorRuntime=HE}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=HE:Function("r","regeneratorRuntime = r")(HE)}var JE=r($E),KE={exports:{}},QE=a((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),ZE=a,tT=et,eT=w,rT=QE,nT=Object.isExtensible,iT=ZE((function(){nT(1)}))||rT?function(t){return!!tT(t)&&((!rT||"ArrayBuffer"!=eT(t))&&(!nT||nT(t)))}:nT,oT=!a((function(){return Object.isExtensible(Object.preventExtensions({}))})),aT=jr,uT=g,sT=li,cT=et,fT=Qt,lT=Ke.f,hT=Bi,pT=Ji,vT=iT,dT=oT,yT=!1,gT=ne("meta"),mT=0,bT=function(t){lT(t,gT,{value:{objectID:"O"+mT++,weakData:{}}})},_T=KE.exports={enable:function(){_T.enable=function(){},yT=!0;var t=hT.f,e=uT([].splice),r={};r[gT]=1,t(r).length&&(hT.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===gT){e(n,i,1);break}return n},aT({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:pT.f}))},fastKey:function(t,e){if(!cT(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!fT(t,gT)){if(!vT(t))return"F";if(!e)return"E";bT(t)}return t[gT].objectID},getWeakData:function(t,e){if(!fT(t,gT)){if(!vT(t))return!0;if(!e)return!1;bT(t)}return t[gT].weakData},onFreeze:function(t){return dT&&yT&&vT(t)&&!fT(t,gT)&&bT(t),t}};sT[gT]=!0;var wT=KE.exports,ET=jr,TT=o,OT=wT,xT=a,kT=yr,ST=Km,jT=Sb,AT=j,PT=et,IT=No,DT=Ke.f,CT=ua.forEach,LT=P,RT=Zo.set,MT=Zo.getterFor,NT=function(t,e,r){var n,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",u=TT[t],s=u&&u.prototype,c={};if(LT&&AT(u)&&(o||s.forEach&&!xT((function(){(new u).entries().next()})))){var f=(n=e((function(e,r){RT(jT(e,f),{type:t,collection:new u}),null!=r&&ST(r,e[a],{that:e,AS_ENTRIES:i})}))).prototype,l=MT(t);CT(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in s)||o&&"clear"==t||kT(f,t,(function(r,n){var i=l(this).collection;if(!e&&o&&!PT(r))return"get"==t&&void 0;var a=i[t](0===r?0:r,n);return e?this:a}))})),o||DT(f,"size",{configurable:!0,get:function(){return l(this).collection.size}})}else n=r.getConstructor(e,t,i,a),OT.enable();return IT(n,t,!1,!0),c[t]=n,ET({global:!0,forced:!0},c),o||r.setStrong(n,t,i),n},FT=fo,zT=Vi,UT=ho,qT=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:FT(t,n,e[n],r);return t},YT=Je,WT=Sb,GT=V,XT=Km,VT=_c,BT=wc,HT=Ob,$T=P,JT=wT.fastKey,KT=Zo.set,QT=Zo.getterFor,ZT={getConstructor:function(t,e,r,n){var i=t((function(t,i){WT(t,o),KT(t,{type:e,index:zT(null),first:void 0,last:void 0,size:0}),$T||(t.size=0),GT(i)||XT(i,t[n],{that:t,AS_ENTRIES:r})})),o=i.prototype,a=QT(e),u=function(t,e,r){var n,i,o=a(t),u=s(t,e);return u?u.value=r:(o.last=u={index:i=JT(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=u),n&&(n.next=u),$T?o.size++:t.size++,"F"!==i&&(o.index[i]=u)),t},s=function(t,e){var r,n=a(t),i=JT(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return qT(o,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,$T?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=s(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),$T?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=YT(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),qT(o,r?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),$T&&UT(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,r){var n=e+" Iterator",i=QT(e),o=QT(n);VT(t,e,(function(t,e){KT(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?BT("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,BT(void 0,!0))}),r?"entries":"values",!r,!0),HT(e)}};NT("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ZT);var tO=r(rt.Map),eO=ua.some;jr({target:"Array",proto:!0,forced:!cl("some")},{some:function(t){return eO(this,t,arguments.length>1?arguments[1]:void 0)}});var rO=Hf("Array").some,nO=st,iO=rO,oO=Array.prototype,aO=r((function(t){var e=t.some;return t===oO||nO(oO,t)&&e===oO.some?iO:e})),uO=Hf("Array").keys,sO=sn,cO=Qt,fO=st,lO=uO,hO=Array.prototype,pO={DOMTokenList:!0,NodeList:!0},vO=r((function(t){var e=t.keys;return t===hO||fO(hO,t)&&e===hO.keys||cO(pO,sO(t))?lO:e})),dO=ro,yO=Math.floor,gO=function(t,e){var r=t.length,n=yO(r/2);return r<8?mO(t,e):bO(t,gO(dO(t,0,n),e),gO(dO(t,n),e),e)},mO=function(t,e){for(var r,n,i=t.length,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}return t},bO=function(t,e,r,n){for(var i=e.length,o=r.length,a=0,u=0;a<i||u<o;)t[a+u]=a<i&&u<o?n(e[a],r[u])<=0?e[a++]:r[u++]:a<i?e[a++]:r[u++];return t},_O=gO,wO=ct.match(/firefox\/(\d+)/i),EO=!!wO&&+wO[1],TO=/MSIE|Trident/.test(ct),OO=ct.match(/AppleWebKit\/(\d+)\./),xO=!!OO&&+OO[1],kO=jr,SO=g,jO=It,AO=$t,PO=Vr,IO=xv,DO=ti,CO=a,LO=_O,RO=cl,MO=EO,NO=TO,FO=yt,zO=xO,UO=[],qO=SO(UO.sort),YO=SO(UO.push),WO=CO((function(){UO.sort(void 0)})),GO=CO((function(){UO.sort(null)})),XO=RO("sort"),VO=!CO((function(){if(FO)return FO<70;if(!(MO&&MO>3)){if(NO)return!0;if(zO)return zO<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)UO.push({k:e+n,v:r})}for(UO.sort((function(t,e){return e.v-t.v})),n=0;n<UO.length;n++)e=UO[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));kO({target:"Array",proto:!0,forced:WO||!GO||!XO||!VO},{sort:function(t){void 0!==t&&jO(t);var e=AO(this);if(VO)return void 0===t?qO(e):qO(e,t);var r,n,i=[],o=PO(e);for(n=0;n<o;n++)n in e&&YO(i,e[n]);for(LO(i,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:DO(e)>DO(r)?1:-1}}(t)),r=PO(i),n=0;n<r;)e[n]=i[n++];for(;n<o;)IO(e,n++);return e}});var BO=Hf("Array").sort,HO=st,$O=BO,JO=Array.prototype,KO=r((function(t){var e=t.sort;return t===JO||HO(JO,t)&&e===JO.sort?$O:e})),QO=Hf("Array").values,ZO=sn,tx=Qt,ex=st,rx=QO,nx=Array.prototype,ix={DOMTokenList:!0,NodeList:!0},ox=r((function(t){var e=t.values;return t===nx||ex(nx,t)&&e===nx.values||tx(ix,ZO(t))?rx:e})),ax=r(kf),ux=Hf("Array").entries,sx=sn,cx=Qt,fx=st,lx=ux,hx=Array.prototype,px={DOMTokenList:!0,NodeList:!0},vx=r((function(t){var e=t.entries;return t===hx||fx(hx,t)&&e===hx.entries||cx(px,sx(t))?lx:e}));let dx;const yx=new Uint8Array(16);function gx(){if(!dx&&(dx="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!dx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dx(yx)}const mx=[];for(let t=0;t<256;++t)mx.push((t+256).toString(16).slice(1));var bx={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _x(t,e,r){if(bx.randomUUID&&!e&&!t)return bx.randomUUID();const n=(t=t||{}).random||(t.rng||gx)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return function(t,e=0){return mx[t[e+0]]+mx[t[e+1]]+mx[t[e+2]]+mx[t[e+3]]+"-"+mx[t[e+4]]+mx[t[e+5]]+"-"+mx[t[e+6]]+mx[t[e+7]]+"-"+mx[t[e+8]]+mx[t[e+9]]+"-"+mx[t[e+10]]+mx[t[e+11]]+mx[t[e+12]]+mx[t[e+13]]+mx[t[e+14]]+mx[t[e+15]]}(n)}function wx(t){return"string"==typeof t||"number"==typeof t}var Ex=function(){function e(r){t(this,e),Lf(this,"delay",void 0),Lf(this,"max",void 0),Lf(this,"_queue",[]),Lf(this,"_timeout",null),Lf(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return Cf(e,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,r=0;r<e.length;r++){var n=e[r];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var r=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];r.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;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=Ld((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;uv(t=Wv(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(t,r){var n=new e(r);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(r&&r.replace)for(var o=0;o<r.replace.length;o++){var a=r.replace[o];i.push({name:a,original:t[a]}),n.replace(t,a)}return n._extended={object:t,methods:i},n}}]),e}(),Tx=function(){function e(){t(this,e),Lf(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Lf(this,"subscribe",e.prototype.on),Lf(this,"unsubscribe",e.prototype.off)}return Cf(e,[{key:"_trigger",value:function(t,e,r){var n,i;if("*"===t)throw new Error("Cannot trigger event *");uv(n=Gp(i=[]).call(i,Fp(this._subscribers[t]),Fp(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=r?r:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var r;this._subscribers[t]=El(r=this._subscribers[t]).call(r,(function(t){return t!==e}))}}]),e}();NT("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ZT);var Ox,xx=r(rt.Set),kx=r(dh);function Sx(t,e){var r=void 0!==zp&&Rh(t)||t["@@iterator"];if(!r){if(Bp(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return jx(t,e);var n=Xp(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Lh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jx(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function jx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Ox=ax;var Ax=function(){function e(r){t(this,e),Lf(this,"_pairs",void 0),this._pairs=r}return Cf(e,[{key:Ox,value:JE.mark((function t(){var e,r,n,i,o;return JE.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Sx(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Np(r.value,2),i=n[0],o=n[1],t.next=7,[i,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:JE.mark((function t(){var e,r,n,i,o;return JE.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Sx(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Np(r.value,2),i=n[0],o=n[1],t.next=7,[i,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:JE.mark((function t(){var e,r,n,i;return JE.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Sx(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Np(r.value,1),i=n[0],t.next=7,i;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:JE.mark((function t(){var e,r,n,i;return JE.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Sx(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Np(r.value,2),i=n[1],t.next=7,i;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return jl(t=Fp(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return jl(t=Fp(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Fp(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=ld(null),r=Sx(this._pairs);try{for(r.s();!(t=r.n()).done;){var n=Np(t.value,2),i=n[0],o=n[1];e[i]=o}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"toMap",value:function(){return new tO(this._pairs)}},{key:"toIdSet",value:function(){return new xx(this.toIdArray())}},{key:"toItemSet",value:function(){return new xx(this.toItemArray())}},{key:"cache",value:function(){return new e(Fp(this._pairs))}},{key:"distinct",value:function(t){var e,r=new xx,n=Sx(this._pairs);try{for(n.s();!(e=n.n()).done;){var i=Np(e.value,2),o=i[0],a=i[1];r.add(t(a,o))}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"filter",value:function(t){var r=this._pairs;return new e(Lf({},ax,JE.mark((function e(){var n,i,o,a,u;return JE.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Sx(r),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=10;break}if(o=Np(i.value,2),a=o[0],u=o[1],!t(u,a)){e.next=8;break}return e.next=8,[a,u];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(t){var e,r=Sx(this._pairs);try{for(r.s();!(e=r.n()).done;){var n=Np(e.value,2),i=n[0];t(n[1],i)}}catch(t){r.e(t)}finally{r.f()}}},{key:"map",value:function(t){var r=this._pairs;return new e(Lf({},ax,JE.mark((function e(){var n,i,o,a,u;return JE.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Sx(r),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=9;break}return o=Np(i.value,2),a=o[0],u=o[1],e.next=7,[a,t(u,a)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))))}},{key:"max",value:function(t){var e=kx(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],i=t(r.value[1],r.value[0]);!(r=e.next()).done;){var o=Np(r.value,2),a=o[0],u=o[1],s=t(u,a);s>i&&(i=s,n=u)}return n}},{key:"min",value:function(t){var e=kx(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],i=t(r.value[1],r.value[0]);!(r=e.next()).done;){var o=Np(r.value,2),a=o[0],u=o[1],s=t(u,a);s<i&&(i=s,n=u)}return n}},{key:"reduce",value:function(t,e){var r,n=Sx(this._pairs);try{for(n.s();!(r=n.n()).done;){var i=Np(r.value,2),o=i[0];e=t(e,i[1],o)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(t){var r=this;return new e(Lf({},ax,(function(){var e;return kx(KO(e=Fp(r._pairs)).call(e,(function(e,r){var n=Np(e,2),i=n[0],o=n[1],a=Np(r,2),u=a[0],s=a[1];return t(o,s,i,u)})))})))}}]),e}();function Px(t,e){var r=Jp(t);if(Mh){var n=Mh(t);e&&(n=El(n).call(n,(function(e){return Xh(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ix(t){for(var e=1;e<arguments.length;e++){var r,n,i=null!=arguments[e]?arguments[e]:{};e%2?uv(r=Px(Object(i),!0)).call(r,(function(e){Lf(t,e,i[e])})):rp?cp(t,rp(i)):uv(n=Px(Object(i))).call(n,(function(e){fp(t,e,Xh(i,e))}))}return t}function Dx(t,e){var r=void 0!==zp&&Rh(t)||t["@@iterator"];if(!r){if(Bp(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return Cx(t,e);var n=Xp(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Lh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cx(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function Cx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Lx(t){var e=function(){if("undefined"==typeof Reflect||!im)return!1;if(im.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(im(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ym(t);if(e){var i=ym(this).constructor;r=im(n,arguments,i)}else r=n.apply(this,arguments);return pm(this,r)}}var Rx=function(e){hm(n,Tx);var r=Lx(n);function n(e,i){var o;return t(this,n),Lf(om(o=r.call(this)),"flush",void 0),Lf(om(o),"length",void 0),Lf(om(o),"_options",void 0),Lf(om(o),"_data",void 0),Lf(om(o),"_idProp",void 0),Lf(om(o),"_queue",null),e&&!Bp(e)&&(i=e,e=[]),o._options=i||{},o._data=new tO,o.length=0,o._idProp=o._options.fieldId||"id",e&&e.length&&o.add(e),o.setOptions(i),o}return Cf(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Ex.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===Af(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var r,n=this,i=[];if(Bp(t)){var o=jl(t).call(t,(function(t){return t[n._idProp]}));if(aO(o).call(o,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,u=t.length;a<u;a++)r=this._addItem(t[a]),i.push(r)}else{if(!t||"object"!==Af(t))throw new Error("Unknown dataType");r=this._addItem(t),i.push(r)}return i.length&&this._trigger("add",{items:i},e),i}},{key:"update",value:function(t,e){var r=this,n=[],i=[],o=[],a=[],u=this._idProp,s=function(t){var e=t[u];if(null!=e&&r._data.has(e)){var s=t,c=id({},r._data.get(e)),f=r._updateItem(s);i.push(f),a.push(s),o.push(c)}else{var l=r._addItem(t);n.push(l)}};if(Bp(t))for(var c=0,f=t.length;c<f;c++)t[c]&&"object"===Af(t[c])?s(t[c]):console.warn("Ignoring input item, which is not an object at index "+c);else{if(!t||"object"!==Af(t))throw new Error("Unknown dataType");s(t)}if(n.length&&this._trigger("add",{items:n},e),i.length){var l={items:i,oldData:o,data:a};this._trigger("update",l,e)}return Gp(n).call(n,i)}},{key:"updateOnly",value:function(t,e){var r,n=this;Bp(t)||(t=[t]);var i=jl(r=jl(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(r,(function(t){var e=t.oldData,r=t.update,i=e[n._idProp],o=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Lg.apply(void 0,Gp(e=[{},t]).call(e,n))}(e,r);return n._data.set(i,o),{id:i,oldData:e,updatedData:o}}));if(i.length){var o={items:jl(i).call(i,(function(t){return t.id})),oldData:jl(i).call(i,(function(t){return t.oldData})),data:jl(i).call(i,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var r=void 0,n=void 0,i=void 0;wx(t)?(r=t,i=e):Bp(t)?(n=t,i=e):i=t;var o,a=i&&"Object"===i.returnType?"Object":"Array",u=i&&El(i),s=[],c=void 0,f=void 0,l=void 0;if(null!=r)(c=this._data.get(r))&&u&&!u(c)&&(c=void 0);else if(null!=n)for(var h=0,p=n.length;h<p;h++)null==(c=this._data.get(n[h]))||u&&!u(c)||s.push(c);else for(var v,d=0,y=(f=Fp(vO(v=this._data).call(v))).length;d<y;d++)l=f[d],null==(c=this._data.get(l))||u&&!u(c)||s.push(c);if(i&&i.order&&null==r&&this._sort(s,i.order),i&&i.fields){var g=i.fields;if(null!=r&&null!=c)c=this._filterFields(c,g);else for(var m=0,b=s.length;m<b;m++)s[m]=this._filterFields(s[m],g)}if("Object"==a){for(var _={},w=0,E=s.length;w<E;w++){var T=s[w];_[T[this._idProp]]=T}return _}return null!=r?null!==(o=c)&&void 0!==o?o:null:s}},{key:"getIds",value:function(t){var e=this._data,r=t&&El(t),n=t&&t.order,i=Fp(vO(e).call(e)),o=[];if(r)if(n){for(var a=[],u=0,s=i.length;u<s;u++){var c=i[u],f=this._data.get(c);null!=f&&r(f)&&a.push(f)}this._sort(a,n);for(var l=0,h=a.length;l<h;l++)o.push(a[l][this._idProp])}else for(var p=0,v=i.length;p<v;p++){var d=i[p],y=this._data.get(d);null!=y&&r(y)&&o.push(y[this._idProp])}else if(n){for(var g=[],m=0,b=i.length;m<b;m++){var _=i[m];g.push(e.get(_))}this._sort(g,n);for(var w=0,E=g.length;w<E;w++)o.push(g[w][this._idProp])}else for(var T=0,O=i.length;T<O;T++){var x=i[T],k=e.get(x);null!=k&&o.push(k[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var r=e&&El(e),n=this._data,i=Fp(vO(n).call(n));if(e&&e.order)for(var o=this.get(e),a=0,u=o.length;a<u;a++){var s=o[a];t(s,s[this._idProp])}else for(var c=0,f=i.length;c<f;c++){var l=i[c],h=this._data.get(l);null==h||r&&!r(h)||t(h,l)}}},{key:"map",value:function(t,e){for(var r=e&&El(e),n=[],i=this._data,o=Fp(vO(i).call(i)),a=0,u=o.length;a<u;a++){var s=o[a],c=this._data.get(s);null==c||r&&!r(c)||n.push(t(c,s))}return e&&e.order&&this._sort(n,e.order),n}},{key:"_filterFields",value:function(t,e){var r;return t?yl(r=Bp(e)?e:Jp(e)).call(r,(function(e,r){return e[r]=t[r],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var r=e;KO(t).call(t,(function(t,e){var n=t[r],i=e[r];return n>i?1:n<i?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");KO(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var r=[],n=[],i=Bp(t)?t:[t],o=0,a=i.length;o<a;o++){var u=this._remove(i[o]);if(u){var s=u[this._idProp];null!=s&&(r.push(s),n.push(u))}}return r.length&&this._trigger("remove",{items:r,oldData:n},e),r}},{key:"_remove",value:function(t){var e;if(wx(t)?e=t:t&&"object"===Af(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var r=this._data.get(e)||null;return this._data.delete(e),--this.length,r}return null}},{key:"clear",value:function(t){for(var e,r=Fp(vO(e=this._data).call(e)),n=[],i=0,o=r.length;i<o;i++)n.push(this._data.get(r[i]));return this._data.clear(),this.length=0,this._trigger("remove",{items:r,oldData:n},t),r}},{key:"max",value:function(t){var e,r,n=null,i=null,o=Dx(ox(e=this._data).call(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a[t];"number"==typeof u&&(null==i||u>i)&&(n=a,i=u)}}catch(t){o.e(t)}finally{o.f()}return n||null}},{key:"min",value:function(t){var e,r,n=null,i=null,o=Dx(ox(e=this._data).call(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a[t];"number"==typeof u&&(null==i||u<i)&&(n=a,i=u)}}catch(t){o.e(t)}finally{o.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,r=Fp(vO(e).call(e)),n=[],i=0,o=0,a=r.length;o<a;o++){for(var u=r[o],s=e.get(u)[t],c=!1,f=0;f<i;f++)if(n[f]==s){c=!0;break}c||void 0===s||(n[i]=s,i++)}return n}},{key:"_addItem",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=_x()),t}(t,this._idProp),r=e[this._idProp];if(this._data.has(r))throw new Error("Cannot add item: item with id "+r+" already exists");return this._data.set(r,e),++this.length,r}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+vd(t)+")");var r=this._data.get(e);if(!r)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,Ix(Ix({},r),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new Ax(Lf({},ax,JE.mark((function r(){var n,i,o,a;return JE.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=Dx(t),r.prev=1,n.s();case 3:if((i=n.n()).done){r.next=11;break}if(o=i.value,null==(a=e.get(o))){r.next=9;break}return r.next=9,[o,a];case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),n.e(r.t0);case 16:return r.prev=16,n.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])}))))}var r;return new Ax(Lf({},ax,tl(r=vx(this._data)).call(r,this._data)))}}]),n}();function Mx(t,e){var r=void 0!==zp&&Rh(t)||t["@@iterator"];if(!r){if(Bp(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return Nx(t,e);var n=Xp(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Lh(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nx(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function Nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fx(t){var e=function(){if("undefined"==typeof Reflect||!im)return!1;if(im.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(im(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ym(t);if(e){var i=ym(this).constructor;r=im(n,arguments,i)}else r=n.apply(this,arguments);return pm(this,r)}}var zx=function(e){hm(n,Tx);var r=Fx(n);function n(e,i){var o,a;return t(this,n),Lf(om(a=r.call(this)),"length",0),Lf(om(a),"_listener",void 0),Lf(om(a),"_data",void 0),Lf(om(a),"_ids",new xx),Lf(om(a),"_options",void 0),a._options=i||{},a._listener=tl(o=a._onEvent).call(o,om(a)),a.setData(e),a}return Cf(n,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:El(this._options)}),r=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:r})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:El(this._options)}),i=0,o=n.length;i<o;i++){var a=n[i];this._ids.add(a)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new Rx;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:El(this._options)}),e=Fp(this._ids),r={},n=[],i=[],o=[],a=0,u=t.length;a<u;a++){var s=t[a];r[s]=!0,this._ids.has(s)||(n.push(s),this._ids.add(s))}for(var c=0,f=e.length;c<f;c++){var l=e[c],h=this._data.get(l);null==h?console.error("If you see this, report it please."):r[l]||(i.push(l),o.push(h),this._ids.delete(l))}this.length+=n.length-i.length,n.length&&this._trigger("add",{items:n}),i.length&&this._trigger("remove",{items:i,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var r,n=null;wx(t)||Bp(t)?(n=t,r=e):r=t;var i=id({},this._options,r),o=El(this._options),a=r&&El(r);return o&&a&&(i.filter=function(t){return o(t)&&a(t)}),null==n?this._data.get(i):this._data.get(n,i)}},{key:"getIds",value:function(t){if(this._data.length){var e,r=El(this._options),n=null!=t?El(t):null;return e=n?r?function(t){return r(t)&&n(t)}:n:r,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var r,n,i=El(this._options),o=e&&El(e);n=o?i?function(t){return i(t)&&o(t)}:o:i,uv(r=this._data).call(r,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var r,n,i=El(this._options),o=e&&El(e);return n=o?i?function(t){return i(t)&&o(t)}:o:i,jl(r=this._data).call(r,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||Lf({},ax,tl(e=vO(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,r="This data view has already been disposed of.",i={get:function(){throw new Error(r)},set:function(){throw new Error(r)},configurable:!1},o=Mx(Vp(n.prototype));try{for(o.s();!(e=o.n()).done;){var a=e.value;fp(this,a,i)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_onEvent",value:function(t,e,r){if(e&&e.items&&this._data){var n=e.items,i=[],o=[],a=[],u=[],s=[],c=[];switch(t){case"add":for(var f=0,l=n.length;f<l;f++){var h=n[f];this.get(h)&&(this._ids.add(h),i.push(h))}break;case"update":for(var p=0,v=n.length;p<v;p++){var d=n[p];this.get(d)?this._ids.has(d)?(o.push(d),s.push(e.data[p]),u.push(e.oldData[p])):(this._ids.add(d),i.push(d)):this._ids.has(d)&&(this._ids.delete(d),a.push(d),c.push(e.oldData[p]))}break;case"remove":for(var y=0,g=n.length;y<g;y++){var m=n[y];this._ids.has(m)&&(this._ids.delete(m),a.push(m),c.push(e.oldData[y]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},r),o.length&&this._trigger("update",{items:o,oldData:u,data:s},r),a.length&&this._trigger("remove",{items:a,oldData:c},r)}}}]),n}();function Ux(t,e){return"object"===Af(e)&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof uv(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof jl(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}function qx(t,e){return"object"===Af(e)&&null!==e&&t===e.idProp&&"function"==typeof uv(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof jl(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&Ux(t,e.getDataSet())}export{Cg as DELETE,Rx as DataSet,Ax as DataStream,zx as DataView,Ex as Queue,Gl as createNewDataPipeFrom,Ux as isDataSetLike,qx as isDataViewLike};
33
34
  //# sourceMappingURL=vis-data.min.js.map