import{C as La,ap as gP,i as AP,aq as IP,a7 as V5,B as vp,a9 as uu,an as Z5,ar as H5,d as od,as as U5,e as Y5,o as Sr,q as J$,b as wt,c as Yr,x as Ml,a as bm,t as xa,u as He,n as os,F as du,D as hu,l as Es,M as K5,H as CP,at as X5,Y as Q5,al as q5,f as J5,au as ej,av as tj,aj as rj,I as ij,aw as nj,S as aj,a1 as oj,ax as wC}from"./index-Dwf2ZVS8.js";/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 9.1.9 * @date 2023-11-03T01:42:27.418Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */var Bh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function X(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var EC=function(i){return i&&i.Math===Math&&i},qe=EC(typeof globalThis=="object"&&globalThis)||EC(typeof window=="object"&&window)||EC(typeof self=="object"&&self)||EC(typeof Bh=="object"&&Bh)||function(){return this}()||Bh||Function("return this")(),we=function(i){try{return!!i()}catch{return!0}},sj=we,oI=!sj(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")}),gj=oI,lP=Function.prototype,e1=lP.apply,t1=lP.call,Ag=typeof Reflect=="object"&&Reflect.apply||(gj?t1.bind(e1):function(){return t1.apply(e1,arguments)}),uP=oI,dP=Function.prototype,pp=dP.call,Aj=uP&&dP.bind.bind(pp,pp),xe=uP?Aj:function(i){return function(){return pp.apply(i,arguments)}},hP=xe,Ij=hP({}.toString),Cj=hP("".slice),$n=function(i){return Cj(Ij(i),8,-1)},lj=$n,uj=xe,$m=function(i){if(lj(i)==="Function")return uj(i)},yp=typeof document=="object"&&document.all,dj=typeof yp>"u"&&yp!==void 0,cP={all:yp,IS_HTMLDDA:dj},fP=cP,hj=fP.all,ct=fP.IS_HTMLDDA?function(i){return typeof i=="function"||i===hj}:function(i){return typeof i=="function"},ga={},cj=we,Ht=!cj(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),fj=oI,OC=Function.prototype.call,Lt=fj?OC.bind(OC):function(){return OC.apply(OC,arguments)},sd={},vP={}.propertyIsEnumerable,pP=Object.getOwnPropertyDescriptor,vj=pP&&!vP.call({1:2},1);sd.f=vj?function(n){var e=pP(this,n);return!!e&&e.enumerable}:vP;var fo=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}},pj=xe,yj=we,mj=$n,zh=Object,bj=pj("".split),gd=yj(function(){return!zh("z").propertyIsEnumerable(0)})?function(i){return mj(i)==="String"?bj(i,""):zh(i)}:zh,vo=function(i){return i==null},$j=vo,wj=TypeError,sI=function(i){if($j(i))throw new wj("Can't call method on "+i);return i},Ej=gd,Oj=sI,Ki=function(i){return Ej(Oj(i))},r1=ct,yP=cP,Tj=yP.all,St=yP.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:r1(i)||i===Tj}:function(i){return typeof i=="object"?i!==null:r1(i)},Ee={},Lh=Ee,jh=qe,Sj=ct,i1=function(i){return Sj(i)?i:void 0},pr=function(i,n){return arguments.length<2?i1(Lh[i])||i1(jh[i]):Lh[i]&&Lh[i][n]||jh[i]&&jh[i][n]},kj=xe,It=kj({}.isPrototypeOf),Aa=typeof navigator<"u"&&String(navigator.userAgent)||"",mP=qe,Gh=Aa,n1=mP.process,a1=mP.Deno,o1=n1&&n1.versions||a1&&a1.version,s1=o1&&o1.v8,ci,cu;s1&&(ci=s1.split("."),cu=ci[0]>0&&ci[0]<4?1:+(ci[0]+ci[1]));!cu&&Gh&&(ci=Gh.match(/Edge\/(\d+)/),(!ci||ci[1]>=74)&&(ci=Gh.match(/Chrome\/(\d+)/),ci&&(cu=+ci[1])));var Ig=cu,g1=Ig,_j=we,Pj=qe,Rj=Pj.String,Cg=!!Object.getOwnPropertySymbols&&!_j(function(){var i=Symbol("symbol detection");return!Rj(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&g1&&g1<41}),xj=Cg,bP=xj&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dj=pr,Nj=ct,Mj=It,Fj=bP,Bj=Object,gI=Fj?function(i){return typeof i=="symbol"}:function(i){var n=Dj("Symbol");return Nj(n)&&Mj(n.prototype,Bj(i))},zj=String,lg=function(i){try{return zj(i)}catch{return"Object"}},Lj=ct,jj=lg,Gj=TypeError,Fr=function(i){if(Lj(i))return i;throw new Gj(jj(i)+" is not a function")},Wj=Fr,Vj=vo,wm=function(i,n){var e=i[n];return Vj(e)?void 0:Wj(e)},Wh=Lt,Vh=ct,Zh=St,Zj=TypeError,Hj=function(i,n){var e,t;if(n==="string"&&Vh(e=i.toString)&&!Zh(t=Wh(e,i))||Vh(e=i.valueOf)&&!Zh(t=Wh(e,i))||n!=="string"&&Vh(e=i.toString)&&!Zh(t=Wh(e,i)))return t;throw new Zj("Can't convert object to primitive value")},$P={exports:{}},Uj=!0,A1=qe,Yj=Object.defineProperty,Kj=function(i,n){try{Yj(A1,i,{value:n,configurable:!0,writable:!0})}catch{A1[i]=n}return n},Xj=qe,Qj=Kj,I1="__core-js_shared__",qj=Xj[I1]||Qj(I1,{}),Em=qj,C1=Em;($P.exports=function(i,n){return C1[i]||(C1[i]=n!==void 0?n:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ug=$P.exports,Jj=sI,eG=Object,yr=function(i){return eG(Jj(i))},tG=xe,rG=yr,iG=tG({}.hasOwnProperty),ft=Object.hasOwn||function(n,e){return iG(rG(n),e)},nG=xe,aG=0,oG=Math.random(),sG=nG(1 .toString),Ad=function(i){return"Symbol("+(i===void 0?"":i)+")_"+sG(++aG+oG,36)},gG=qe,AG=ug,l1=ft,IG=Ad,CG=Cg,lG=bP,ss=gG.Symbol,Hh=AG("wks"),uG=lG?ss.for||ss:ss&&ss.withoutSetter||IG,st=function(i){return l1(Hh,i)||(Hh[i]=CG&&l1(ss,i)?ss[i]:uG("Symbol."+i)),Hh[i]},dG=Lt,u1=St,d1=gI,hG=wm,cG=Hj,fG=st,vG=TypeError,pG=fG("toPrimitive"),yG=function(i,n){if(!u1(i)||d1(i))return i;var e=hG(i,pG),t;if(e){if(n===void 0&&(n="default"),t=dG(e,i,n),!u1(t)||d1(t))return t;throw new vG("Can't convert object to primitive value")}return n===void 0&&(n="number"),cG(i,n)},mG=yG,bG=gI,Id=function(i){var n=mG(i,"string");return bG(n)?n:n+""},$G=qe,h1=St,mp=$G.document,wG=h1(mp)&&h1(mp.createElement),Om=function(i){return wG?mp.createElement(i):{}},EG=Ht,OG=we,TG=Om,wP=!EG&&!OG(function(){return Object.defineProperty(TG("div"),"a",{get:function(){return 7}}).a!==7}),SG=Ht,kG=Lt,_G=sd,PG=fo,RG=Ki,xG=Id,DG=ft,NG=wP,c1=Object.getOwnPropertyDescriptor;ga.f=SG?c1:function(n,e){if(n=RG(n),e=xG(e),NG)try{return c1(n,e)}catch{}if(DG(n,e))return PG(!kG(_G.f,n,e),n[e])};var MG=we,FG=ct,BG=/#|\.prototype\./,AI=function(i,n){var e=LG[zG(i)];return e===GG?!0:e===jG?!1:FG(n)?MG(n):!!n},zG=AI.normalize=function(i){return String(i).replace(BG,".").toLowerCase()},LG=AI.data={},jG=AI.NATIVE="N",GG=AI.POLYFILL="P",EP=AI,f1=$m,WG=Fr,VG=oI,ZG=f1(f1.bind),Ia=function(i,n){return WG(i),n===void 0?i:VG?ZG(i,n):function(){return i.apply(n,arguments)}},Br={},HG=Ht,UG=we,OP=HG&&UG(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),YG=St,KG=String,XG=TypeError,mr=function(i){if(YG(i))return i;throw new XG(KG(i)+" is not an object")},QG=Ht,qG=wP,JG=OP,TC=mr,v1=Id,eW=TypeError,Uh=Object.defineProperty,tW=Object.getOwnPropertyDescriptor,Yh="enumerable",Kh="configurable",Xh="writable";Br.f=QG?JG?function(n,e,t){if(TC(n),e=v1(e),TC(t),typeof n=="function"&&e==="prototype"&&"value"in t&&Xh in t&&!t[Xh]){var r=tW(n,e);r&&r[Xh]&&(n[e]=t.value,t={configurable:Kh in t?t[Kh]:r[Kh],enumerable:Yh in t?t[Yh]:r[Yh],writable:!1})}return Uh(n,e,t)}:Uh:function(n,e,t){if(TC(n),e=v1(e),TC(t),qG)try{return Uh(n,e,t)}catch{}if("get"in t||"set"in t)throw new eW("Accessors not supported");return"value"in t&&(n[e]=t.value),n};var rW=Ht,iW=Br,nW=fo,wn=rW?function(i,n,e){return iW.f(i,n,nW(1,e))}:function(i,n,e){return i[n]=e,i},SC=qe,aW=Ag,oW=$m,sW=ct,gW=ga.f,AW=EP,Lo=Ee,IW=Ia,jo=wn,p1=ft,CW=function(i){var n=function(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,r)}return aW(i,this,arguments)};return n.prototype=i.prototype,n},Q=function(i,n){var e=i.target,t=i.global,r=i.stat,a=i.proto,o=t?SC:r?SC[e]:(SC[e]||{}).prototype,s=t?Lo:Lo[e]||jo(Lo,e,{})[e],g=s.prototype,A,I,C,l,u,d,h,c,f;for(l in n)A=AW(t?l:e+(r?".":"#")+l,i.forced),I=!A&&o&&p1(o,l),d=s[l],I&&(i.dontCallGetSet?(f=gW(o,l),h=f&&f.value):h=o[l]),u=I&&h?h:n[l],!(I&&typeof d==typeof u)&&(i.bind&&I?c=IW(u,SC):i.wrap&&I?c=CW(u):a&&sW(u)?c=oW(u):c=u,(i.sham||u&&u.sham||d&&d.sham)&&jo(c,"sham",!0),jo(s,l,c),a&&(C=e+"Prototype",p1(Lo,C)||jo(Lo,C,{}),jo(Lo[C],l,u),i.real&&g&&(A||!g[l])&&jo(g,l,u)))},lW=Math.ceil,uW=Math.floor,dW=Math.trunc||function(n){var e=+n;return(e>0?uW:lW)(e)},hW=dW,Cd=function(i){var n=+i;return n!==n||n===0?0:hW(n)},cW=Cd,fW=Math.max,vW=Math.min,II=function(i,n){var e=cW(i);return e<0?fW(e+n,0):vW(e,n)},pW=Cd,yW=Math.min,mW=function(i){return i>0?yW(pW(i),9007199254740991):0},bW=mW,zr=function(i){return bW(i.length)},$W=Ki,wW=II,EW=zr,y1=function(i){return function(n,e,t){var r=$W(n),a=EW(r),o=wW(t,a),s;if(i&&e!==e){for(;a>o;)if(s=r[o++],s!==s)return!0}else for(;a>o;o++)if((i||o in r)&&r[o]===e)return i||o||0;return!i&&-1}},Tm={includes:y1(!0),indexOf:y1(!1)},CI={},OW=xe,Qh=ft,TW=Ki,SW=Tm.indexOf,kW=CI,m1=OW([].push),TP=function(i,n){var e=TW(i),t=0,r=[],a;for(a in e)!Qh(kW,a)&&Qh(e,a)&&m1(r,a);for(;n.length>t;)Qh(e,a=n[t++])&&(~SW(r,a)||m1(r,a));return r},Sm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_W=TP,PW=Sm,ld=Object.keys||function(n){return _W(n,PW)},lI={};lI.f=Object.getOwnPropertySymbols;var b1=Ht,RW=xe,xW=Lt,DW=we,qh=ld,NW=lI,MW=sd,FW=yr,BW=gd,Go=Object.assign,$1=Object.defineProperty,zW=RW([].concat),LW=!Go||DW(function(){if(b1&&Go({b:1},Go($1({},"a",{enumerable:!0,get:function(){$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var i={},n={},e=Symbol("assign detection"),t="abcdefghijklmnopqrst";return i[e]=7,t.split("").forEach(function(r){n[r]=r}),Go({},i)[e]!==7||qh(Go({},n)).join("")!==t})?function(n,e){for(var t=FW(n),r=arguments.length,a=1,o=NW.f,s=MW.f;r>a;)for(var g=BW(arguments[a++]),A=o?zW(qh(g),o(g)):qh(g),I=A.length,C=0,l;I>C;)l=A[C++],(!b1||xW(s,g,l))&&(t[l]=g[l]);return t}:Go,jW=Q,w1=LW;jW({target:"Object",stat:!0,forced:Object.assign!==w1},{assign:w1});var GW=Ee,WW=GW.Object.assign,VW=WW,ZW=VW,HW=ZW,Et=X(HW),UW=xe,uI=UW([].slice),SP=xe,YW=Fr,KW=St,XW=ft,E1=uI,QW=oI,kP=Function,qW=SP([].concat),JW=SP([].join),Jh={},e4=function(i,n,e){if(!XW(Jh,n)){for(var t=[],r=0;r=.1;)d=+a[C++%o],d>I&&(d=I),u=Math.sqrt(d*d/(1+A*A)),u=s<0?-u:u,n+=u,e+=A*u,l===!0?i.lineTo(n,e):i.moveTo(n,e),I-=d,l=!l}function h4(i,n,e,t){i.beginPath();var r=6,a=Math.PI*2/r;i.moveTo(n+t,e);for(var o=1;o1?e-1:0),r=1;r"u")){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}}var f4=`.vis-overlay { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; /* Must be displayed above for example selected Timeline items */ z-index: 10; } .vis-active { box-shadow: 0 0 10px #86d5f8; } `;po(f4);var v4=`/* override some bootstrap styles screwing up the timelines css */ .vis [class*="span"] { min-height: 0; width: auto; } `;po(v4);var p4=`div.vis-color-picker { position: absolute; top: 0px; left: 30px; margin-top: -140px; margin-left: 30px; width: 310px; height: 444px; z-index: 1; padding: 10px; border-radius: 15px; background-color: #ffffff; display: none; box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px; } div.vis-color-picker div.vis-arrow { position: absolute; top: 147px; left: 5px; } div.vis-color-picker div.vis-arrow::after, div.vis-color-picker div.vis-arrow::before { right: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } div.vis-color-picker div.vis-arrow:after { border-color: rgba(255, 255, 255, 0); border-right-color: #ffffff; border-width: 30px; margin-top: -30px; } div.vis-color-picker div.vis-color { position: absolute; width: 289px; height: 289px; cursor: pointer; } div.vis-color-picker div.vis-brightness { position: absolute; top: 313px; } div.vis-color-picker div.vis-opacity { position: absolute; top: 350px; } div.vis-color-picker div.vis-selector { position: absolute; top: 137px; left: 137px; width: 15px; height: 15px; border-radius: 15px; border: 1px solid #ffffff; background: #4c4c4c; /* Old browsers */ background: -moz-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #4c4c4c), color-stop(12%, #595959), color-stop(25%, #666666), color-stop(39%, #474747), color-stop(50%, #2c2c2c), color-stop(51%, #000000), color-stop(60%, #111111), color-stop(76%, #2b2b2b), color-stop(91%, #1c1c1c), color-stop(100%, #131313) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* IE10+ */ background: linear-gradient( to bottom, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ } div.vis-color-picker div.vis-new-color { position: absolute; width: 140px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; top: 380px; left: 159px; text-align: right; padding-right: 2px; font-size: 10px; color: rgba(0, 0, 0, 0.4); vertical-align: middle; line-height: 20px; } div.vis-color-picker div.vis-initial-color { position: absolute; width: 140px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; top: 380px; left: 10px; text-align: left; padding-left: 2px; font-size: 10px; color: rgba(0, 0, 0, 0.4); vertical-align: middle; line-height: 20px; } div.vis-color-picker div.vis-label { position: absolute; width: 300px; left: 10px; } div.vis-color-picker div.vis-label.vis-brightness { top: 300px; } div.vis-color-picker div.vis-label.vis-opacity { top: 338px; } div.vis-color-picker div.vis-button { position: absolute; width: 68px; height: 25px; border-radius: 10px; vertical-align: middle; text-align: center; line-height: 25px; top: 410px; border: 2px solid #d9d9d9; background-color: #f7f7f7; cursor: pointer; } div.vis-color-picker div.vis-button.vis-cancel { /*border:2px solid #ff4e33;*/ /*background-color: #ff7761;*/ left: 5px; } div.vis-color-picker div.vis-button.vis-load { /*border:2px solid #a153e6;*/ /*background-color: #cb8dff;*/ left: 82px; } div.vis-color-picker div.vis-button.vis-apply { /*border:2px solid #4588e6;*/ /*background-color: #82b6ff;*/ left: 159px; } div.vis-color-picker div.vis-button.vis-save { /*border:2px solid #45e655;*/ /*background-color: #6dff7c;*/ left: 236px; } div.vis-color-picker input.vis-range { width: 290px; height: 20px; } /* TODO: is this redundant? div.vis-color-picker input.vis-range-brightness { width: 289px !important; } div.vis-color-picker input.vis-saturation-range { width: 289px !important; }*/ `;po(p4);var y4=`div.vis-configuration { position: relative; display: block; float: left; font-size: 12px; } div.vis-configuration-wrapper { display: block; width: 700px; } div.vis-configuration-wrapper::after { clear: both; content: ""; display: block; } div.vis-configuration.vis-config-option-container { display: block; width: 495px; background-color: #ffffff; border: 2px solid #f7f8fa; border-radius: 4px; margin-top: 20px; left: 10px; padding-left: 5px; } div.vis-configuration.vis-config-button { display: block; width: 495px; height: 25px; vertical-align: middle; line-height: 25px; background-color: #f7f8fa; border: 2px solid #ceced0; border-radius: 4px; margin-top: 20px; left: 10px; padding-left: 5px; cursor: pointer; margin-bottom: 30px; } div.vis-configuration.vis-config-button.hover { background-color: #4588e6; border: 2px solid #214373; color: #ffffff; } div.vis-configuration.vis-config-item { display: block; float: left; width: 495px; height: 25px; vertical-align: middle; line-height: 25px; } div.vis-configuration.vis-config-item.vis-config-s2 { left: 10px; background-color: #f7f8fa; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-item.vis-config-s3 { left: 20px; background-color: #e4e9f0; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-item.vis-config-s4 { left: 30px; background-color: #cfd8e6; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-header { font-size: 18px; font-weight: bold; } div.vis-configuration.vis-config-label { width: 120px; height: 25px; line-height: 25px; } div.vis-configuration.vis-config-label.vis-config-s3 { width: 110px; } div.vis-configuration.vis-config-label.vis-config-s4 { width: 100px; } div.vis-configuration.vis-config-colorBlock { top: 1px; width: 30px; height: 19px; border: 1px solid #444444; border-radius: 2px; padding: 0px; margin: 0px; cursor: pointer; } input.vis-configuration.vis-config-checkbox { left: -5px; } input.vis-configuration.vis-config-rangeinput { position: relative; top: -5px; width: 60px; /*height:13px;*/ padding: 1px; margin: 0; pointer-events: none; } input.vis-configuration.vis-config-range { /*removes default webkit styles*/ -webkit-appearance: none; /*fix for FF unable to apply focus style bug */ border: 0px solid white; background-color: rgba(0, 0, 0, 0); /*required for proper track sizing in FF*/ width: 300px; height: 20px; } input.vis-configuration.vis-config-range::-webkit-slider-runnable-track { width: 300px; height: 5px; background: #dedede; /* Old browsers */ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ border: 1px solid #999999; box-shadow: #aaaaaa 0px 0px 3px 0px; border-radius: 3px; } input.vis-configuration.vis-config-range::-webkit-slider-thumb { -webkit-appearance: none; border: 1px solid #14334b; height: 17px; width: 17px; border-radius: 50%; background: #3876c2; /* Old browsers */ background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #3876c2), color-stop(100%, #385380) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #3876c2 0%, #385380 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #3876c2 0%, #385380 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */ background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */ box-shadow: #111927 0px 0px 1px 0px; margin-top: -7px; } input.vis-configuration.vis-config-range:focus { outline: none; } input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track { background: #9d9d9d; /* Old browsers */ background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #9d9d9d), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #9d9d9d 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #9d9d9d 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ } input.vis-configuration.vis-config-range::-moz-range-track { width: 300px; height: 10px; background: #dedede; /* Old browsers */ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ border: 1px solid #999999; box-shadow: #aaaaaa 0px 0px 3px 0px; border-radius: 3px; } input.vis-configuration.vis-config-range::-moz-range-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: #385380; } /*hide the outline behind the border*/ input.vis-configuration.vis-config-range:-moz-focusring { outline: 1px solid white; outline-offset: -1px; } input.vis-configuration.vis-config-range::-ms-track { width: 300px; height: 5px; /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */ background: transparent; /*leave room for the larger thumb to overflow with a transparent border */ border-color: transparent; border-width: 6px 0; /*remove default tick marks*/ color: transparent; } input.vis-configuration.vis-config-range::-ms-fill-lower { background: #777; border-radius: 10px; } input.vis-configuration.vis-config-range::-ms-fill-upper { background: #ddd; border-radius: 10px; } input.vis-configuration.vis-config-range::-ms-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: #385380; } input.vis-configuration.vis-config-range:focus::-ms-fill-lower { background: #888; } input.vis-configuration.vis-config-range:focus::-ms-fill-upper { background: #ccc; } .vis-configuration-popup { position: absolute; background: rgba(57, 76, 89, 0.85); border: 2px solid #f2faff; line-height: 30px; height: 30px; width: 150px; text-align: center; color: #ffffff; font-size: 14px; border-radius: 4px; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; } .vis-configuration-popup:after, .vis-configuration-popup:before { left: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .vis-configuration-popup:after { border-color: rgba(136, 183, 213, 0); border-left-color: rgba(57, 76, 89, 0.85); border-width: 8px; margin-top: -8px; } .vis-configuration-popup:before { border-color: rgba(194, 225, 245, 0); border-left-color: #f2faff; border-width: 12px; margin-top: -12px; } `;po(y4);var m4=`div.vis-tooltip { position: absolute; visibility: hidden; padding: 5px; white-space: nowrap; font-family: verdana; font-size: 14px; color: #000000; background-color: #f5f4ed; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #808074; box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); pointer-events: none; z-index: 5; } `;po(m4);var NP={exports:{}};(function(i){i.exports=n;function n(t){if(t)return e(t)}function e(t){for(var r in n.prototype)t[r]=n.prototype[r];return t}n.prototype.on=n.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this},n.prototype.once=function(t,r){function a(){this.off(t,a),r.apply(this,arguments)}return a.fn=r,this.on(t,a),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+t];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var o,s=0;s=a?i?"":void 0:(o=S1(t,r),o<55296||o>56319||r+1===a||(s=S1(t,r+1))<56320||s>57343?i?F4(t,r):o:i?B4(t,r,r+2):(o-55296<<10)+(s-56320)+65536)}},L4={charAt:z4(!0)},j4=qe,G4=ct,k1=j4.WeakMap,BP=G4(k1)&&/native code/.test(String(k1)),W4=ug,V4=Ad,_1=W4("keys"),ud=function(i){return _1[i]||(_1[i]=V4(i))},Z4=BP,zP=qe,H4=St,U4=wn,tc=ft,rc=Em,Y4=ud,K4=CI,P1="Object already initialized",$p=zP.TypeError,X4=zP.WeakMap,fu,DA,vu,Q4=function(i){return vu(i)?DA(i):fu(i,{})},q4=function(i){return function(n){var e;if(!H4(n)||(e=DA(n)).type!==i)throw new $p("Incompatible receiver, "+i+" required");return e}};if(Z4||rc.state){var _i=rc.state||(rc.state=new X4);_i.get=_i.get,_i.has=_i.has,_i.set=_i.set,fu=function(i,n){if(_i.has(i))throw new $p(P1);return n.facade=i,_i.set(i,n),n},DA=function(i){return _i.get(i)||{}},vu=function(i){return _i.has(i)}}else{var Wo=Y4("state");K4[Wo]=!0,fu=function(i,n){if(tc(i,Wo))throw new $p(P1);return n.facade=i,U4(i,Wo,n),n},DA=function(i){return tc(i,Wo)?i[Wo]:{}},vu=function(i){return tc(i,Wo)}}var Ca={set:fu,get:DA,has:vu,enforce:Q4,getterFor:q4},wp=Ht,J4=ft,LP=Function.prototype,eV=wp&&Object.getOwnPropertyDescriptor,jP=J4(LP,"name"),tV=jP&&function(){}.name==="something";jP&&(!wp||wp&&eV(LP,"name").configurable);var rV={PROPER:tV},dd={},iV=Ht,nV=OP,aV=Br,oV=mr,sV=Ki,gV=ld;dd.f=iV&&!nV?Object.defineProperties:function(n,e){oV(n);for(var t=sV(e),r=gV(e),a=r.length,o=0,s;a>o;)aV.f(n,s=r[o++],t[s]);return n};var AV=pr,GP=AV("document","documentElement"),IV=mr,CV=dd,R1=Sm,lV=CI,uV=GP,dV=Om,hV=ud,x1=">",D1="<",Ep="prototype",Op="script",WP=hV("IE_PROTO"),ic=function(){},VP=function(i){return D1+Op+x1+i+D1+"/"+Op+x1},N1=function(i){i.write(VP("")),i.close();var n=i.parentWindow.Object;return i=null,n},cV=function(){var i=dV("iframe"),n="java"+Op+":",e;return i.style.display="none",uV.appendChild(i),i.src=String(n),e=i.contentWindow.document,e.open(),e.write(VP("document.F=Object")),e.close(),e.F},kC,Bl=function(){try{kC=new ActiveXObject("htmlfile")}catch{}Bl=typeof document<"u"?document.domain&&kC?N1(kC):cV():N1(kC);for(var i=R1.length;i--;)delete Bl[Ep][R1[i]];return Bl()};lV[WP]=!0;var yo=Object.create||function(n,e){var t;return n!==null?(ic[Ep]=IV(n),t=new ic,ic[Ep]=null,t[WP]=n):t=Bl(),e===void 0?t:CV.f(t,e)},fV=we,ZP=!fV(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype}),vV=ft,pV=ct,yV=yr,mV=ud,bV=ZP,M1=mV("IE_PROTO"),Tp=Object,$V=Tp.prototype,dI=bV?Tp.getPrototypeOf:function(i){var n=yV(i);if(vV(n,M1))return n[M1];var e=n.constructor;return pV(e)&&n instanceof e?e.prototype:n instanceof Tp?$V:null},wV=wn,dg=function(i,n,e,t){return t&&t.enumerable?i[n]=e:wV(i,n,e),i},EV=we,OV=ct,TV=St,SV=yo,F1=dI,kV=dg,_V=st,Sp=_V("iterator"),HP=!1,nn,nc,ac;[].keys&&(ac=[].keys(),"next"in ac?(nc=F1(F1(ac)),nc!==Object.prototype&&(nn=nc)):HP=!0);var PV=!TV(nn)||EV(function(){var i={};return nn[Sp].call(i)!==i});PV?nn={}:nn=SV(nn);OV(nn[Sp])||kV(nn,Sp,function(){return this});var UP={IteratorPrototype:nn,BUGGY_SAFARI_ITERATORS:HP},RV=_m,xV=En,DV=RV?{}.toString:function(){return"[object "+xV(this)+"]"},NV=_m,MV=Br.f,FV=wn,BV=ft,zV=DV,LV=st,B1=LV("toStringTag"),mo=function(i,n,e,t){if(i){var r=e?i:i.prototype;BV(r,B1)||MV(r,B1,{configurable:!0,value:n}),t&&!NV&&FV(r,"toString",zV)}},hg={},jV=UP.IteratorPrototype,GV=yo,WV=fo,VV=mo,ZV=hg,HV=function(){return this},UV=function(i,n,e,t){var r=n+" Iterator";return i.prototype=GV(jV,{next:WV(+!t,e)}),VV(i,r,!1,!0),ZV[r]=HV,i},YV=xe,KV=Fr,XV=function(i,n,e){try{return YV(KV(Object.getOwnPropertyDescriptor(i,n)[e]))}catch{}},QV=ct,qV=String,JV=TypeError,eZ=function(i){if(typeof i=="object"||QV(i))return i;throw new JV("Can't set "+qV(i)+" as a prototype")},tZ=XV,rZ=mr,iZ=eZ,YP=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,n={},e;try{e=tZ(Object.prototype,"__proto__","set"),e(n,[]),i=n instanceof Array}catch{}return function(r,a){return rZ(r),iZ(a),i?e(r,a):r.__proto__=a,r}}():void 0),nZ=Q,aZ=Lt,oZ=rV,sZ=UV,gZ=dI,AZ=mo,z1=dg,IZ=st,L1=hg,CZ=UP,lZ=oZ.PROPER,_C=CZ.BUGGY_SAFARI_ITERATORS,oc=IZ("iterator"),j1="keys",PC="values",G1="entries",uZ=function(){return this},Rm=function(i,n,e,t,r,a,o){sZ(e,n,t);var s=function(f){if(f===r&&l)return l;if(!_C&&f&&f in I)return I[f];switch(f){case j1:return function(){return new e(this,f)};case PC:return function(){return new e(this,f)};case G1:return function(){return new e(this,f)}}return function(){return new e(this)}},g=n+" Iterator",A=!1,I=i.prototype,C=I[oc]||I["@@iterator"]||r&&I[r],l=!_C&&C||s(r),u=n==="Array"&&I.entries||C,d,h,c;if(u&&(d=gZ(u.call(new i)),d!==Object.prototype&&d.next&&(AZ(d,g,!0,!0),L1[g]=uZ)),lZ&&r===PC&&C&&C.name!==PC&&(A=!0,l=function(){return aZ(C,this)}),r)if(h={values:s(PC),keys:a?l:s(j1),entries:s(G1)},o)for(c in h)(_C||A||!(c in I))&&z1(I,c,h[c]);else nZ({target:n,proto:!0,forced:_C||A},h);return o&&I[oc]!==l&&z1(I,oc,l,{}),L1[n]=l,h},xm=function(i,n){return{value:i,done:n}},dZ=L4.charAt,hZ=ki,KP=Ca,cZ=Rm,W1=xm,XP="String Iterator",fZ=KP.set,vZ=KP.getterFor(XP);cZ(String,"String",function(i){fZ(this,{type:XP,string:hZ(i),index:0})},function(){var n=vZ(this),e=n.string,t=n.index,r;return t>=e.length?W1(void 0,!0):(r=dZ(e,t),n.index+=r.length,W1(r,!1))});var pZ=Lt,V1=mr,yZ=wm,QP=function(i,n,e){var t,r;V1(i);try{if(t=yZ(i,"return"),!t){if(n==="throw")throw e;return e}t=pZ(t,i)}catch(a){r=!0,t=a}if(n==="throw")throw e;if(r)throw t;return V1(t),e},mZ=mr,bZ=QP,$Z=function(i,n,e,t){try{return t?n(mZ(e)[0],e[1]):n(e)}catch(r){bZ(i,"throw",r)}},wZ=st,EZ=hg,OZ=wZ("iterator"),TZ=Array.prototype,qP=function(i){return i!==void 0&&(EZ.Array===i||TZ[OZ]===i)},SZ=xe,kZ=ct,kp=Em,_Z=SZ(Function.toString);kZ(kp.inspectSource)||(kp.inspectSource=function(i){return _Z(i)});var JP=kp.inspectSource,PZ=xe,RZ=we,eR=ct,xZ=En,DZ=pr,NZ=JP,tR=function(){},MZ=[],rR=DZ("Reflect","construct"),Dm=/^\s*(?:class|function)\b/,FZ=PZ(Dm.exec),BZ=!Dm.test(tR),Xg=function(n){if(!eR(n))return!1;try{return rR(tR,MZ,n),!0}catch{return!1}},iR=function(n){if(!eR(n))return!1;switch(xZ(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return BZ||!!FZ(Dm,NZ(n))}catch{return!0}};iR.sham=!0;var hd=!rR||RZ(function(){var i;return Xg(Xg.call)||!Xg(Object)||!Xg(function(){i=!0})||i})?iR:Xg,zZ=Id,LZ=Br,jZ=fo,cg=function(i,n,e){var t=zZ(n);t in i?LZ.f(i,t,jZ(0,e)):i[t]=e},GZ=En,Z1=wm,WZ=vo,VZ=hg,ZZ=st,HZ=ZZ("iterator"),cd=function(i){if(!WZ(i))return Z1(i,HZ)||Z1(i,"@@iterator")||VZ[GZ(i)]},UZ=Lt,YZ=Fr,KZ=mr,XZ=lg,QZ=cd,qZ=TypeError,Nm=function(i,n){var e=arguments.length<2?QZ(i):n;if(YZ(e))return KZ(UZ(e,i));throw new qZ(XZ(i)+" is not iterable")},JZ=Ia,eH=Lt,tH=yr,rH=$Z,iH=qP,nH=hd,aH=zr,H1=cg,oH=Nm,sH=cd,U1=Array,gH=function(n){var e=tH(n),t=nH(this),r=arguments.length,a=r>1?arguments[1]:void 0,o=a!==void 0;o&&(a=JZ(a,r>2?arguments[2]:void 0));var s=sH(e),g=0,A,I,C,l,u,d;if(s&&!(this===U1&&iH(s)))for(l=oH(e,s),u=l.next,I=t?new this:[];!(C=eH(u,l)).done;g++)d=o?rH(l,a,[C.value,g],!0):C.value,H1(I,g,d);else for(A=aH(e),I=t?new this(A):U1(A);A>g;g++)d=o?a(e[g],g):e[g],H1(I,g,d);return I.length=g,I},AH=st,nR=AH("iterator"),aR=!1;try{var IH=0,Y1={next:function(){return{done:!!IH++}},return:function(){aR=!0}};Y1[nR]=function(){return this},Array.from(Y1,function(){throw 2})}catch{}var oR=function(i,n){try{if(!n&&!aR)return!1}catch{return!1}var e=!1;try{var t={};t[nR]=function(){return{next:function(){return{done:e=!0}}}},i(t)}catch{}return e},CH=Q,lH=gH,uH=oR,dH=!uH(function(i){Array.from(i)});CH({target:"Array",stat:!0,forced:dH},{from:lH});var hH=Ee,cH=hH.Array.from,fH=cH,sR=fH,vH=sR,la=X(vH),pH=Ki,K1=hg,gR=Ca;Br.f;var yH=Rm,RC=xm,AR="Array Iterator",mH=gR.set,bH=gR.getterFor(AR);yH(Array,"Array",function(i,n){mH(this,{type:AR,target:pH(i),index:0,kind:n})},function(){var i=bH(this),n=i.target,e=i.kind,t=i.index++;if(!n||t>=n.length)return i.target=void 0,RC(void 0,!0);switch(e){case"keys":return RC(t,!1);case"values":return RC(n[t],!1)}return RC([t,n[t]],!1)},"values");K1.Arguments=K1.Array;var $H=cd,wH=$H,EH={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},OH=EH,TH=qe,SH=En,kH=wn,X1=hg,_H=st,Q1=_H("toStringTag");for(var sc in OH){var q1=TH[sc],gc=q1&&q1.prototype;gc&&SH(gc)!==Q1&&kH(gc,Q1,sc),X1[sc]=X1.Array}var PH=wH,RH=PH,xH=RH,DH=xH,NH=DH,MH=NH,IR=MH,CR=X(IR),FH=IR,ua=X(FH);function j(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}var lR={exports:{}},BH=Q,zH=Ht,J1=Br.f;BH({target:"Object",stat:!0,forced:Object.defineProperty!==J1,sham:!zH},{defineProperty:J1});var LH=Ee,uR=LH.Object,jH=lR.exports=function(n,e,t){return uR.defineProperty(n,e,t)};uR.defineProperty.sham&&(jH.sham=!0);var GH=lR.exports,WH=GH,dR=WH,VH=dR,ZH=VH,HH=ZH,UH=HH,hR=UH,fd=X(hR),YH=$n,da=Array.isArray||function(n){return YH(n)==="Array"},KH=TypeError,XH=9007199254740991,vd=function(i){if(i>XH)throw KH("Maximum allowed index exceeded");return i},e0=da,QH=hd,qH=St,JH=st,e8=JH("species"),t0=Array,t8=function(i){var n;return e0(i)&&(n=i.constructor,QH(n)&&(n===t0||e0(n.prototype))?n=void 0:qH(n)&&(n=n[e8],n===null&&(n=void 0))),n===void 0?t0:n},r8=t8,pd=function(i,n){return new(r8(i))(n===0?0:n)},i8=we,n8=st,a8=Ig,o8=n8("species"),hI=function(i){return a8>=51||!i8(function(){var n=[],e=n.constructor={};return e[o8]=function(){return{foo:1}},n[i](Boolean).foo!==1})},s8=Q,g8=we,A8=da,I8=St,C8=yr,l8=zr,r0=vd,i0=cg,u8=pd,d8=hI,h8=st,c8=Ig,cR=h8("isConcatSpreadable"),f8=c8>=51||!g8(function(){var i=[];return i[cR]=!1,i.concat()[0]!==i}),v8=function(i){if(!I8(i))return!1;var n=i[cR];return n!==void 0?!!n:A8(i)},p8=!f8||!d8("concat");s8({target:"Array",proto:!0,forced:p8},{concat:function(n){var e=C8(this),t=u8(e,0),r=0,a,o,s,g,A;for(a=-1,s=arguments.length;ac;c++)if((s||c in u)&&(y=u[c],p=d(y,c,l),i))if(n)v[c]=p;else if(p)switch(i){case 3:return!0;case 5:return y;case 6:return c;case 2:o0(v,y)}else switch(i){case 4:return!1;case 7:o0(v,y)}return a?-1:t||r?r:v}},ha={forEach:Oa(0),map:Oa(1),filter:Oa(2),some:Oa(3),every:Oa(4),find:Oa(5),findIndex:Oa(6)},md=Q,bd=qe,Fm=Lt,H8=xe,Fs=Ht,Bs=Cg,U8=we,Wt=ft,Y8=It,_p=mr,$d=Ki,Bm=Id,K8=ki,Pp=fo,NA=yo,mR=ld,X8=cI,bR=yd,Q8=lI,$R=ga,wR=Br,q8=dd,ER=sd,s0=dg,J8=Mm,zm=ug,e9=ud,OR=CI,g0=Ad,t9=st,r9=fI,i9=vt,n9=yR,a9=mo,TR=Ca,wd=ha.forEach,kr=e9("hidden"),Ed="Symbol",MA="prototype",o9=TR.set,A0=TR.getterFor(Ed),bi=Object[MA],ja=bd.Symbol,gA=ja&&ja[MA],s9=bd.RangeError,g9=bd.TypeError,Ac=bd.QObject,SR=$R.f,Ga=wR.f,kR=bR.f,A9=ER.f,_R=H8([].push),fn=zm("symbols"),vI=zm("op-symbols"),I9=zm("wks"),Rp=!Ac||!Ac[MA]||!Ac[MA].findChild,PR=function(i,n,e){var t=SR(bi,n);t&&delete bi[n],Ga(i,n,e),t&&i!==bi&&Ga(bi,n,t)},xp=Fs&&U8(function(){return NA(Ga({},"a",{get:function(){return Ga(this,"a",{value:7}).a}})).a!==7})?PR:Ga,Ic=function(i,n){var e=fn[i]=NA(gA);return o9(e,{type:Ed,tag:i,description:n}),Fs||(e.description=n),e},Od=function(n,e,t){n===bi&&Od(vI,e,t),_p(n);var r=Bm(e);return _p(t),Wt(fn,r)?(t.enumerable?(Wt(n,kr)&&n[kr][r]&&(n[kr][r]=!1),t=NA(t,{enumerable:Pp(0,!1)})):(Wt(n,kr)||Ga(n,kr,Pp(1,{})),n[kr][r]=!0),xp(n,r,t)):Ga(n,r,t)},Lm=function(n,e){_p(n);var t=$d(e),r=mR(t).concat(NR(t));return wd(r,function(a){(!Fs||Fm(RR,t,a))&&Od(n,a,t[a])}),n},C9=function(n,e){return e===void 0?NA(n):Lm(NA(n),e)},RR=function(n){var e=Bm(n),t=Fm(A9,this,e);return this===bi&&Wt(fn,e)&&!Wt(vI,e)?!1:t||!Wt(this,e)||!Wt(fn,e)||Wt(this,kr)&&this[kr][e]?t:!0},xR=function(n,e){var t=$d(n),r=Bm(e);if(!(t===bi&&Wt(fn,r)&&!Wt(vI,r))){var a=SR(t,r);return a&&Wt(fn,r)&&!(Wt(t,kr)&&t[kr][r])&&(a.enumerable=!0),a}},DR=function(n){var e=kR($d(n)),t=[];return wd(e,function(r){!Wt(fn,r)&&!Wt(OR,r)&&_R(t,r)}),t},NR=function(i){var n=i===bi,e=kR(n?vI:$d(i)),t=[];return wd(e,function(r){Wt(fn,r)&&(!n||Wt(bi,r))&&_R(t,fn[r])}),t};Bs||(ja=function(){if(Y8(gA,this))throw new g9("Symbol is not a constructor");var n=!arguments.length||arguments[0]===void 0?void 0:K8(arguments[0]),e=g0(n),t=function(r){this===bi&&Fm(t,vI,r),Wt(this,kr)&&Wt(this[kr],e)&&(this[kr][e]=!1);var a=Pp(1,r);try{xp(this,e,a)}catch(o){if(!(o instanceof s9))throw o;PR(this,e,a)}};return Fs&&Rp&&xp(bi,e,{configurable:!0,set:t}),Ic(e,n)},gA=ja[MA],s0(gA,"toString",function(){return A0(this).tag}),s0(ja,"withoutSetter",function(i){return Ic(g0(i),i)}),ER.f=RR,wR.f=Od,q8.f=Lm,$R.f=xR,X8.f=bR.f=DR,Q8.f=NR,r9.f=function(i){return Ic(t9(i),i)},Fs&&J8(gA,"description",{configurable:!0,get:function(){return A0(this).description}}));md({global:!0,wrap:!0,forced:!Bs,sham:!Bs},{Symbol:ja});wd(mR(I9),function(i){i9(i)});md({target:Ed,stat:!0,forced:!Bs},{useSetter:function(){Rp=!0},useSimple:function(){Rp=!1}});md({target:"Object",stat:!0,forced:!Bs,sham:!Fs},{create:C9,defineProperty:Od,defineProperties:Lm,getOwnPropertyDescriptor:xR});md({target:"Object",stat:!0,forced:!Bs},{getOwnPropertyNames:DR});n9();a9(ja,Ed);OR[kr]=!0;var l9=Cg,MR=l9&&!!Symbol.for&&!!Symbol.keyFor,u9=Q,d9=pr,h9=ft,c9=ki,FR=ug,f9=MR,Cc=FR("string-to-symbol-registry"),v9=FR("symbol-to-string-registry");u9({target:"Symbol",stat:!0,forced:!f9},{for:function(i){var n=c9(i);if(h9(Cc,n))return Cc[n];var e=d9("Symbol")(n);return Cc[n]=e,v9[e]=n,e}});var p9=Q,y9=ft,m9=gI,b9=lg,$9=ug,w9=MR,I0=$9("symbol-to-string-registry");p9({target:"Symbol",stat:!0,forced:!w9},{keyFor:function(n){if(!m9(n))throw new TypeError(b9(n)+" is not a symbol");if(y9(I0,n))return I0[n]}});var E9=xe,C0=da,O9=ct,l0=$n,T9=ki,u0=E9([].push),S9=function(i){if(O9(i))return i;if(C0(i)){for(var n=i.length,e=[],t=0;ti.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?arguments[1]:void 0)}});var eK=kt,tK=eK("Array").map,rK=It,iK=tK,fc=Array.prototype,nK=function(i){var n=i.map;return i===fc||rK(fc,i)&&n===fc.map?iK:n},aK=nK,oK=aK,sK=oK,nr=X(sK),gK=Q,AK=yr,ax=ld,IK=we,CK=IK(function(){ax(1)});gK({target:"Object",stat:!0,forced:CK},{keys:function(n){return ax(AK(n))}});var lK=Ee,uK=lK.Object.keys,dK=uK,hK=dK,cK=hK,at=X(cK),fK=Q,vK=xe,ox=Date,pK=vK(ox.prototype.getTime);fK({target:"Date",stat:!0},{now:function(){return pK(new ox)}});var yK=Ee,mK=yK.Date.now,bK=mK,$K=bK,wK=$K,yu=X(wK),EK=we,fg=function(i,n){var e=[][i];return!!e&&EK(function(){e.call(null,n||function(){return 1},1)})},OK=ha.forEach,TK=fg,SK=TK("forEach"),kK=SK?[].forEach:function(n){return OK(this,n,arguments.length>1?arguments[1]:void 0)},_K=Q,_0=kK;_K({target:"Array",proto:!0,forced:[].forEach!==_0},{forEach:_0});var PK=kt,RK=PK("Array").forEach,xK=RK,DK=xK,NK=En,MK=ft,FK=It,BK=DK,vc=Array.prototype,zK={DOMTokenList:!0,NodeList:!0},sx=function(i){var n=i.forEach;return i===vc||FK(vc,i)&&n===vc.forEach||MK(zK,NK(i))?BK:n},LK=sx,_e=X(LK),jK=Q,GK=xe,WK=da,VK=GK([].reverse),P0=[1,2];jK({target:"Array",proto:!0,forced:String(P0)===String(P0.reverse())},{reverse:function(){return WK(this)&&(this.length=this.length),VK(this)}});var ZK=kt,HK=ZK("Array").reverse,UK=It,YK=HK,pc=Array.prototype,KK=function(i){var n=i.reverse;return i===pc||UK(pc,i)&&n===pc.reverse?YK:n},XK=KK,gx=XK,QK=gx,Wa=X(QK),R0=lg,qK=TypeError,Ax=function(i,n){if(!delete i[n])throw new qK("Cannot delete property "+R0(n)+" of "+R0(i))},JK=Q,eX=yr,tX=II,rX=Cd,iX=zr,nX=JR,aX=vd,oX=pd,sX=cg,yc=Ax,gX=hI,AX=gX("splice"),IX=Math.max,CX=Math.min;JK({target:"Array",proto:!0,forced:!AX},{splice:function(n,e){var t=eX(this),r=iX(t),a=tX(n,r),o=arguments.length,s,g,A,I,C,l;for(o===0?s=g=0:o===1?(s=0,g=r-a):(s=o-2,g=CX(IX(rX(e),0),r-a)),aX(r+s-g),A=oX(t,g),I=0;Ir-g+s;I--)yc(t,I-1)}else if(s>g)for(I=r-g;I>a;I--)C=I+g-1,l=I+s-1,C in t?t[l]=t[C]:yc(t,l);for(I=0;I1?arguments[1]:void 0)}});var wX=kt,EX=wX("Array").includes,OX=St,TX=$n,SX=st,kX=SX("match"),_X=function(i){var n;return OX(i)&&((n=i[kX])!==void 0?!!n:TX(i)==="RegExp")},PX=_X,RX=TypeError,xX=function(i){if(PX(i))throw new RX("The method doesn't accept regular expressions");return i},DX=st,NX=DX("match"),MX=function(i){var n=/./;try{"/./"[i](n)}catch{try{return n[NX]=!1,"/./"[i](n)}catch{}}return!1},FX=Q,BX=xe,zX=xX,LX=sI,x0=ki,jX=MX,GX=BX("".indexOf);FX({target:"String",proto:!0,forced:!jX("includes")},{includes:function(n){return!!~GX(x0(LX(this)),x0(zX(n)),arguments.length>1?arguments[1]:void 0)}});var WX=kt,VX=WX("String").includes,D0=It,ZX=EX,HX=VX,bc=Array.prototype,$c=String.prototype,UX=function(i){var n=i.includes;return i===bc||D0(bc,i)&&n===bc.includes?ZX:typeof i=="string"||i===$c||D0($c,i)&&n===$c.includes?HX:n},YX=UX,KX=YX,XX=KX,Vn=X(XX),QX=Q,qX=we,JX=yr,Ix=dI,eQ=ZP,tQ=qX(function(){Ix(1)});QX({target:"Object",stat:!0,forced:tQ,sham:!eQ},{getPrototypeOf:function(n){return Ix(JX(n))}});var rQ=Ee,iQ=rQ.Object.getPrototypeOf,nQ=iQ,Cx=nQ,aQ=Cx,N0=X(aQ),oQ=Q,sQ=ha.filter,gQ=hI,AQ=gQ("filter");oQ({target:"Array",proto:!0,forced:!AQ},{filter:function(n){return sQ(this,n,arguments.length>1?arguments[1]:void 0)}});var IQ=kt,CQ=IQ("Array").filter,lQ=It,uQ=CQ,wc=Array.prototype,dQ=function(i){var n=i.filter;return i===wc||lQ(wc,i)&&n===wc.filter?uQ:n},hQ=dQ,cQ=hQ,fQ=cQ,Pt=X(fQ),Vm=` \v\f\r                 \u2028\u2029\uFEFF`,vQ=xe,pQ=sI,yQ=ki,Np=Vm,M0=vQ("".replace),mQ=RegExp("^["+Np+"]+"),bQ=RegExp("(^|[^"+Np+"])["+Np+"]+$"),$Q=function(i){return function(n){var e=yQ(pQ(n));return i&1&&(e=M0(e,mQ,"")),i&2&&(e=M0(e,bQ,"$1")),e}},lx={trim:$Q(3)},ux=qe,wQ=we,EQ=xe,OQ=ki,TQ=lx.trim,F0=Vm,hA=ux.parseInt,B0=ux.Symbol,z0=B0&&B0.iterator,dx=/^[+-]?0x/i,SQ=EQ(dx.exec),kQ=hA(F0+"08")!==8||hA(F0+"0x16")!==22||z0&&!wQ(function(){hA(Object(z0))}),_Q=kQ?function(n,e){var t=TQ(OQ(n));return hA(t,e>>>0||(SQ(dx,t)?16:10))}:hA,PQ=Q,L0=_Q;PQ({global:!0,forced:parseInt!==L0},{parseInt:L0});var RQ=Ee,xQ=RQ.parseInt,DQ=xQ,NQ=DQ,MQ=NQ,fi=X(MQ),FQ=Q,BQ=$m,zQ=Tm.indexOf,LQ=fg,Mp=BQ([].indexOf),hx=!!Mp&&1/Mp([1],1,-0)<0,jQ=hx||!LQ("indexOf");FQ({target:"Array",proto:!0,forced:jQ},{indexOf:function(n){var e=arguments.length>1?arguments[1]:void 0;return hx?Mp(this,n,e)||0:zQ(this,n,e)}});var GQ=kt,WQ=GQ("Array").indexOf,VQ=It,ZQ=WQ,Ec=Array.prototype,HQ=function(i){var n=i.indexOf;return i===Ec||VQ(Ec,i)&&n===Ec.indexOf?ZQ:n},UQ=HQ,YQ=UQ,KQ=YQ,Pe=X(KQ),XQ=Q,QQ=Ht,qQ=yo;XQ({target:"Object",stat:!0,sham:!QQ},{create:qQ});var JQ=Ee,e7=JQ.Object,t7=function(n,e){return e7.create(n,e)},r7=t7,cx=r7,i7=cx,Zn=X(i7),Fp=Ee,n7=Ag;Fp.JSON||(Fp.JSON={stringify:JSON.stringify});var a7=function(n,e,t){return n7(Fp.JSON.stringify,null,arguments)},o7=a7,s7=o7,g7=s7,vg=X(g7),A7=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",I7=TypeError,fx=function(i,n){if(ie,o=l7(t)?t:f7(t),s=a?h7(arguments,e):[],g=a?function(){C7(o,this,s)}:o;return n?i(g,r):i(g)}:i},p7=Q,yx=qe,y7=px,j0=y7(yx.setInterval,!0);p7({global:!0,bind:!0,forced:yx.setInterval!==j0},{setInterval:j0});var m7=Q,mx=qe,b7=px,G0=b7(mx.setTimeout,!0);m7({global:!0,bind:!0,forced:mx.setTimeout!==G0},{setTimeout:G0});var $7=Ee,w7=$7.setTimeout,E7=w7,Ei=X(E7),O7=yr,W0=II,T7=zr,S7=function(n){for(var e=O7(this),t=T7(e),r=arguments.length,a=W0(r>1?arguments[1]:void 0,t),o=r>2?arguments[2]:void 0,s=o===void 0?t:W0(o,t);s>a;)e[a++]=n;return e},k7=Q,_7=S7;k7({target:"Array",proto:!0},{fill:_7});var P7=kt,R7=P7("Array").fill,x7=It,D7=R7,Oc=Array.prototype,N7=function(i){var n=i.fill;return i===Oc||x7(Oc,i)&&n===Oc.fill?D7:n},M7=N7,F7=M7,B7=F7,yI=X(B7);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */function Oi(){return Oi=Object.assign||function(i){for(var n=1;n"u"?{style:{}}:document.createElement("div"),L7="function",As=Math.round,io=Math.abs,Zm=Date.now;function Td(i,n){for(var e,t,r=n[0].toUpperCase()+n.slice(1),a=0;a"u"?an={}:an=window;var bx=Td(z7.style,"touchAction"),$x=bx!==void 0;function j7(){if(!$x)return!1;var i={},n=an.CSS&&an.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return i[e]=n?an.CSS.supports("touch-action",e):!0}),i}var wx="compute",Ex="auto",zp="manipulation",Va="none",FA="pan-x",BA="pan-y",NC=j7(),G7=/mobile|tablet|ip(ad|hone|od)|android/i,Ox="ontouchstart"in an,W7=Td(an,"PointerEvent")!==void 0,V7=Ox&&G7.test(navigator.userAgent),mI="touch",Z7="pen",Hm="mouse",H7="kinect",U7=25,cr=1,$o=2,Rt=4,Dr=8,mu=1,bI=2,$I=4,wI=8,zs=16,Gi=bI|$I,Za=wI|zs,Tx=Gi|Za,Sx=["x","y"],bu=["clientX","clientY"];function on(i,n,e){var t;if(i)if(i.forEach)i.forEach(n,e);else if(i.length!==void 0)for(t=0;t-1}function Y7(i){if(Na(i,Va))return Va;var n=Na(i,FA),e=Na(i,BA);return n&&e?Va:n||e?n?FA:BA:Na(i,zp)?zp:Ex}var kx=function(){function i(e,t){this.manager=e,this.set(t)}var n=i.prototype;return n.set=function(t){t===wx&&(t=this.compute()),$x&&this.manager.element.style&&NC[t]&&(this.manager.element.style[bx]=t),this.actions=t.toLowerCase().trim()},n.update=function(){this.set(this.manager.options.touchAction)},n.compute=function(){var t=[];return on(this.manager.recognizers,function(r){Sd(r.options.enable,[r])&&(t=t.concat(r.getTouchAction()))}),Y7(t.join(" "))},n.preventDefaults=function(t){var r=t.srcEvent,a=t.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var o=this.actions,s=Na(o,Va)&&!NC[Va],g=Na(o,BA)&&!NC[BA],A=Na(o,FA)&&!NC[FA];if(s){var I=t.pointers.length===1,C=t.distance<2,l=t.deltaTime<250;if(I&&C&&l)return}if(!(A&&g)&&(s||g&&a&Gi||A&&a&Za))return this.preventSrc(r)},n.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},i}();function Um(i,n){for(;i;){if(i===n)return!0;i=i.parentNode}return!1}function _x(i){var n=i.length;if(n===1)return{x:As(i[0].clientX),y:As(i[0].clientY)};for(var e=0,t=0,r=0;r=io(n)?i<0?bI:$I:n<0?wI:zs}function K7(i,n){var e=n.center,t=i.offsetDelta||{},r=i.prevDelta||{},a=i.prevInput||{};(n.eventType===cr||a.eventType===Rt)&&(r=i.prevDelta={x:a.deltaX||0,y:a.deltaY||0},t=i.offsetDelta={x:e.x,y:e.y}),n.deltaX=r.x+(e.x-t.x),n.deltaY=r.y+(e.y-t.y)}function Rx(i,n,e){return{x:n/i||0,y:e/i||0}}function X7(i,n){return $u(n[0],n[1],bu)/$u(i[0],i[1],bu)}function Q7(i,n){return Lp(n[1],n[0],bu)+Lp(i[1],i[0],bu)}function q7(i,n){var e=i.lastInterval||n,t=n.timeStamp-e.timeStamp,r,a,o,s;if(n.eventType!==Dr&&(t>U7||e.velocity===void 0)){var g=n.deltaX-e.deltaX,A=n.deltaY-e.deltaY,I=Rx(t,g,A);a=I.x,o=I.y,r=io(I.x)>io(I.y)?I.x:I.y,s=Px(g,A),i.lastInterval=n}else r=e.velocity,a=e.velocityX,o=e.velocityY,s=e.direction;n.velocity=r,n.velocityX=a,n.velocityY=o,n.direction=s}function J7(i,n){var e=i.session,t=n.pointers,r=t.length;e.firstInput||(e.firstInput=Z0(n)),r>1&&!e.firstMultiple?e.firstMultiple=Z0(n):r===1&&(e.firstMultiple=!1);var a=e.firstInput,o=e.firstMultiple,s=o?o.center:a.center,g=n.center=_x(t);n.timeStamp=Zm(),n.deltaTime=n.timeStamp-a.timeStamp,n.angle=Lp(s,g),n.distance=$u(s,g),K7(e,n),n.offsetDirection=Px(n.deltaX,n.deltaY);var A=Rx(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=A.x,n.overallVelocityY=A.y,n.overallVelocity=io(A.x)>io(A.y)?A.x:A.y,n.scale=o?X7(o.pointers,t):1,n.rotation=o?Q7(o.pointers,t):0,n.maxPointers=e.prevInput?n.pointers.length>e.prevInput.maxPointers?n.pointers.length:e.prevInput.maxPointers:n.pointers.length,q7(e,n);var I=i.element,C=n.srcEvent,l;C.composedPath?l=C.composedPath()[0]:C.path?l=C.path[0]:l=C.target,Um(l,I)&&(I=l),n.target=I}function eq(i,n,e){var t=e.pointers.length,r=e.changedPointers.length,a=n&cr&&t-r===0,o=n&(Rt|Dr)&&t-r===0;e.isFirst=!!a,e.isFinal=!!o,a&&(i.session={}),e.eventType=n,J7(i,e),i.emit("hammer.input",e),i.recognize(e),i.session.prevInput=e}function zA(i){return i.trim().split(/\s+/g)}function cA(i,n,e){on(zA(n),function(t){i.addEventListener(t,e,!1)})}function fA(i,n,e){on(zA(n),function(t){i.removeEventListener(t,e,!1)})}function H0(i){var n=i.ownerDocument||i;return n.defaultView||n.parentWindow||window}var pg=function(){function i(e,t){var r=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(a){Sd(e.options.enable,[e])&&r.handler(a)},this.init()}var n=i.prototype;return n.handler=function(){},n.init=function(){this.evEl&&cA(this.element,this.evEl,this.domHandler),this.evTarget&&cA(this.target,this.evTarget,this.domHandler),this.evWin&&cA(H0(this.element),this.evWin,this.domHandler)},n.destroy=function(){this.evEl&&fA(this.element,this.evEl,this.domHandler),this.evTarget&&fA(this.target,this.evTarget,this.domHandler),this.evWin&&fA(H0(this.element),this.evWin,this.domHandler)},i}();function no(i,n,e){if(i.indexOf&&!e)return i.indexOf(n);for(var t=0;tg[n]}):t=t.sort()),t}var iq={touchstart:cr,touchmove:$o,touchend:Rt,touchcancel:Dr},nq="touchstart touchmove touchend touchcancel",Km=function(i){Ci(n,i);function n(){var t;return n.prototype.evTarget=nq,t=i.apply(this,arguments)||this,t.targetIds={},t}var e=n.prototype;return e.handler=function(r){var a=iq[r.type],o=aq.call(this,r,a);o&&this.callback(this.manager,a,{pointers:o[0],changedPointers:o[1],pointerType:mI,srcEvent:r})},n}(pg);function aq(i,n){var e=LA(i.touches),t=this.targetIds;if(n&(cr|$o)&&e.length===1)return t[e[0].identifier]=!0,[e,e];var r,a,o=LA(i.changedTouches),s=[],g=this.target;if(a=e.filter(function(A){return Um(A.target,g)}),n===cr)for(r=0;r-1&&r.splice(s,1)};setTimeout(a,Aq)}}function Iq(i,n){i&cr?(this.primaryTouch=n.changedPointers[0].identifier,Y0.call(this,n)):i&(Rt|Dr)&&Y0.call(this,n)}function Cq(i){for(var n=i.srcEvent.clientX,e=i.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(r,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var r=this,a=this.state;function o(s){r.manager.emit(s,t)}a=Hn&&o(r.options.event+K0(a))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Mi},n.canEmit=function(){for(var t=0;ta.threshold&&g&a.direction},e.attrTest=function(r){return js.prototype.attrTest.call(this,r)&&(this.state&gi||!(this.state&gi)&&this.directionTest(r))},e.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var a=Fx(r.direction);a&&(r.additionalEvent=this.options.event+a),i.prototype.emit.call(this,r)},n}(js),Bx=function(i){Ci(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Oi({event:"swipe",threshold:10,velocity:.3,direction:Gi|Za,pointers:1},t))||this}var e=n.prototype;return e.getTouchAction=function(){return Qm.prototype.getTouchAction.call(this)},e.attrTest=function(r){var a=this.options.direction,o;return a&(Gi|Za)?o=r.overallVelocity:a&Gi?o=r.overallVelocityX:a&Za&&(o=r.overallVelocityY),i.prototype.attrTest.call(this,r)&&a&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&io(o)>this.options.velocity&&r.eventType&Rt},e.emit=function(r){var a=Fx(r.offsetDirection);a&&this.manager.emit(this.options.event+a,r),this.manager.emit(this.options.event,r)},n}(js),zx=function(i){Ci(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Oi({event:"pinch",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[Va]},e.attrTest=function(r){return i.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&gi)},e.emit=function(r){if(r.scale!==1){var a=r.scale<1?"in":"out";r.additionalEvent=this.options.event+a}i.prototype.emit.call(this,r)},n}(js),Lx=function(i){Ci(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Oi({event:"rotate",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[Va]},e.attrTest=function(r){return i.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&gi)},n}(js),jx=function(i){Ci(n,i);function n(t){var r;return t===void 0&&(t={}),r=i.call(this,Oi({event:"press",pointers:1,time:251,threshold:9},t))||this,r._timer=null,r._input=null,r}var e=n.prototype;return e.getTouchAction=function(){return[Ex]},e.process=function(r){var a=this,o=this.options,s=r.pointers.length===o.pointers,g=r.distanceo.time;if(this._input=r,!g||!s||r.eventType&(Rt|Dr)&&!A)this.reset();else if(r.eventType&cr)this.reset(),this._timer=setTimeout(function(){a.state=sn,a.tryEmit()},o.time);else if(r.eventType&Rt)return sn;return Mi},e.reset=function(){clearTimeout(this._timer)},e.emit=function(r){this.state===sn&&(r&&r.eventType&Rt?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=Zm(),this.manager.emit(this.options.event,this._input)))},n}(EI),Gx={domEvents:!1,touchAction:wx,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},X0=[[Lx,{enable:!1}],[zx,{enable:!1},["rotate"]],[Bx,{direction:Gi}],[Qm,{direction:Gi},["swipe"]],[jp],[jp,{event:"doubletap",taps:2},["tap"]],[jx]],hq=1,Q0=2;function q0(i,n){var e=i.element;if(e.style){var t;on(i.options.cssProps,function(r,a){t=Td(e.style,a),n?(i.oldCssProps[t]=e.style[t],e.style[t]=r):e.style[t]=i.oldCssProps[t]||""}),n||(i.oldCssProps={})}}function cq(i,n){var e=document.createEvent("Event");e.initEvent(i,!0,!0),e.gesture=n,n.target.dispatchEvent(e)}var J0=function(){function i(e,t){var r=this;this.options=ro({},Gx,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=lq(this),this.touchAction=new kx(this,this.options.touchAction),q0(this,!0),on(this.options.recognizers,function(a){var o=r.add(new a[0](a[1]));a[2]&&o.recognizeWith(a[2]),a[3]&&o.requireFailure(a[3])},this)}var n=i.prototype;return n.set=function(t){return ro(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},n.stop=function(t){this.session.stopped=t?Q0:hq},n.recognize=function(t){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(t);var a,o=this.recognizers,s=r.curRecognizer;(!s||s&&s.state&sn)&&(r.curRecognizer=null,s=null);for(var g=0;g\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,t,a),i.apply(this,arguments)}}var Vx=Wx(function(i,n,e){for(var t=Object.keys(n),r=0;r=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Eq(i,n){var e;if(i){if(typeof i=="string")return tw(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tw(i,n)}}function tw(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?e-1:0),r=1;r2){var t;return wu.apply(void 0,bo(t=[Ux(n[0],n[1])]).call(t,At(zt(n).call(n,2))))}var r=n[0],a=n[1];if(r instanceof Date&&a instanceof Date)return r.setTime(a.getTime()),r;var o=qm(Y6(a)),s;try{for(o.s();!(s=o.n()).done;){var g=s.value;Object.prototype.propertyIsEnumerable.call(a,g)&&(a[g]===Hx?delete r[g]:r[g]!==null&&a[g]!==null&&pe(r[g])==="object"&&pe(a[g])==="object"&&!ce(r[g])&&!ce(a[g])?r[g]=wu(r[g],a[g]):r[g]=Yx(a[g]))}}catch(A){o.e(A)}finally{o.f()}return r}function Yx(i){return ce(i)?nr(i).call(i,function(n){return Yx(n)}):pe(i)==="object"&&i!==null?i instanceof Date?new Date(i.getTime()):wu({},i):i}function Kx(i){for(var n=0,e=at(i);n>>0,r-=i,r*=i,i=r>>>0,r-=i,i+=r*4294967296}return(i>>>0)*23283064365386963e-26}}function _q(){var i=function(){};return{on:i,off:i,destroy:i,emit:i,get:function(){return{set:i}}}}var Jm=typeof window<"u"?window.Hammer||wq:function(){return _q()};function Fi(i){var n=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:i,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)});var t=Jm(this._dom.overlay);t.on("tap",z(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){t.destroy()});var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];_e(r).call(r,function(a){t.on(a,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(a){Pq(a.target,i)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",n._onClick)})),this._escListener=function(a){("key"in a?a.key==="Escape":a.keyCode===27)&&n.deactivate()}}MP(Fi.prototype);Fi.current=null;Fi.prototype.destroy=function(){var i,n;this.deactivate();var e=qm(Wa(i=ji(n=this._cleanupQueue).call(n,0)).call(i)),t;try{for(e.s();!(t=e.n()).done;){var r=t.value;r()}}catch(a){e.e(a)}finally{e.f()}};Fi.prototype.activate=function(){Fi.current&&Fi.current.deactivate(),Fi.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)};Fi.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")};Fi.prototype._onTapOverlay=function(i){this.activate(),i.srcEvent.stopPropagation()};function Pq(i,n){for(;i;){if(i===n)return!0;i=i.parentNode}return!1}var Rq=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,xq=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Dq=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Nq=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Dn(i){if(i)for(;i.hasChildNodes()===!0;){var n=i.firstChild;n&&(Dn(n),i.removeChild(n))}}function Os(i){return i instanceof String||typeof i=="string"}function rw(i){return pe(i)==="object"&&i!==null}function ao(i,n,e,t){var r=!1;t===!0&&(r=n[e]===null&&i[e]!==void 0),r?delete i[e]:i[e]=n[e]}function Xx(i,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var t in i)if(n[t]!==void 0)if(n[t]===null||pe(n[t])!=="object")ao(i,n,t,e);else{var r=i[t],a=n[t];rw(r)&&rw(a)&&Xx(r,a,e)}}function yg(i,n,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ce(e))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;if(ce(e))throw new TypeError("Arrays are not supported by deepExtend");for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!Vn(i).call(i,r))if(e[r]&&e[r].constructor===Object)n[r]===void 0&&(n[r]={}),n[r].constructor===Object?tt(n[r],e[r]):ao(n,e,r,t);else if(ce(e[r])){n[r]=[];for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)||e===!0)if(pe(n[r])==="object"&&n[r]!==null&&N0(n[r])===Object.prototype)i[r]===void 0?i[r]=tt({},n[r],e):pe(i[r])==="object"&&i[r]!==null&&N0(i[r])===Object.prototype?tt(i[r],n[r],e):ao(i,n,r,t);else if(ce(n[r])){var a;i[r]=zt(a=n[r]).call(a)}else ao(i,n,r,t);return i}function Ou(i,n){var e;return bo(e=[]).call(e,At(i),[n])}function Mq(i){return zt(i).call(i)}function Fq(i){return i.getBoundingClientRect().left}function Bq(i){return i.getBoundingClientRect().top}function ye(i,n){if(ce(i))for(var e=i.length,t=0;t3&&arguments[3]!==void 0?arguments[3]:{},r=function(d){return d!=null},a=function(d){return d!==null&&pe(d)==="object"},o=function(d){for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h))return!1;return!0};if(!a(i))throw new Error("Parameter mergeTarget must be an object");if(!a(n))throw new Error("Parameter options must be an object");if(!r(e))throw new Error("Parameter option must have a value");if(!a(t))throw new Error("Parameter globalOptions must be an object");var s=function(d,h,c){a(d[c])||(d[c]={});var f=h[c],v=d[c];for(var y in f)Object.prototype.hasOwnProperty.call(f,y)&&(v[y]=f[y])},g=n[e],A=a(t)&&!o(t),I=A?t[e]:void 0,C=I?I.enabled:void 0;if(g!==void 0){if(typeof g=="boolean"){a(i[e])||(i[e]={}),i[e].enabled=g;return}if(g===null&&!a(i[e]))if(r(I))i[e]=Zn(I);else return;if(a(g)){var l=!0;g.enabled!==void 0?l=g.enabled:C!==void 0&&(l=I.enabled),s(i,n,e),i[e].enabled=l}}}var jq={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:-1+(4-2*n)*n},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}};function Nn(i,n){var e;ce(n)||(n=[n]);var t=qm(i),r;try{for(t.s();!(r=t.n()).done;){var a=r.value;if(a){e=a[n[0]];for(var o=1;o0&&arguments[0]!==void 0?arguments[0]:1;j(this,i),this.pixelRatio=n,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return G(i,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return Gq[e]}},{key:"setColor",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var r,a=this._isColorString(e);if(a!==void 0&&(e=a),Os(e)===!0){if(Jx(e)===!0){var o=e.substr(4).substr(0,e.length-5).split(",");r={r:o[0],g:o[1],b:o[2],a:1}}else if(Lq(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");r={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(qx(e)===!0){var g=eb(e);r={r:g.r,g:g.g,b:g.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var A=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:A}}if(r===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+vg(e));this._setColor(r,t)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t===!0&&(this.previousColor=Et({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ei(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;t===!0&&(this.initialColor=Et({},e)),this.color=e;var r=AA(e.r,e.g,e.b),a=2*Math.PI,o=this.r*r.s,s=this.centerCoordinates.x+o*Math.sin(a*r.h),g=this.centerCoordinates.y+o*Math.cos(a*r.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=g-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=AA(this.color.r,this.color.g,this.color.b);t.v=e/100;var r=Ll(t.h,t.s,t.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,t=AA(e.r,e.g,e.b),r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,a,o),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-t.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),yI(r).call(r),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,r,a;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var g=this;this.opacityRange.onchange=function(){g._setOpacity(this.value)},this.opacityRange.oninput=function(){g._setOpacity(this.value)},this.brightnessRange.onchange=function(){g._setBrightness(this.value)},this.brightnessRange.oninput=function(){g._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=z(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=z(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=z(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=z(a=this._loadLast).call(a,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new Jm(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(t){t.isFirst&&e._moveSelector(t)}),this.hammer.on("tap",function(t){e._moveSelector(t)}),this.hammer.on("panstart",function(t){e._moveSelector(t)}),this.hammer.on("panmove",function(t){e._moveSelector(t)}),this.hammer.on("panend",function(t){e._moveSelector(t)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,r);var a,o,s,g;this.centerCoordinates={x:t*.5,y:r*.5},this.r=.49*t;var A=2*Math.PI/360,I=1/360,C=1/this.r,l;for(s=0;s<360;s++)for(g=0;g3&&arguments[3]!==void 0?arguments[3]:1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};j(this,i),this.parent=n,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=a,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Et(this.options,this.defaultOptions),this.configureOptions=t,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Wq(r),this.wrapper=void 0}return G(i,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var t=!0;if(typeof e=="string")this.options.filter=e;else if(ce(e))this.options.filter=e.join();else if(pe(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),Pt(e)!==void 0&&(this.options.filter=Pt(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(t=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,t=e):typeof e=="function"&&(this.options.filter=e,t=!0);Pt(this.options)===!1&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=Pt(this.options),t=0,r=!1;for(var a in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,a)&&(this.allowCreation=!1,r=!1,typeof e=="function"?(r=e(a,[]),r=r||this._handleObject(this.configureOptions[a],[a],!0)):(e===!0||Pe(e).call(e,a)!==-1)&&(r=!0),r!==!1&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(a),this._handleObject(this.configureOptions[a],[a])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:!1,a=document.createElement("div");if(a.className="vis-configuration vis-config-label vis-config-s"+t.length,r===!0){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(Vp("i","b",e))}else a.innerText=e+":";return a}},{key:"_makeDropdown",value:function(e,t,r){var a=document.createElement("select");a.className="vis-configuration vis-config-select";var o=0;t!==void 0&&Pe(e).call(e,t)!==-1&&(o=Pe(e).call(e,t));for(var s=0;ss&&s!==1&&(A.max=Math.ceil(t*l),C=A.max,I="range increased"),A.value=t}else A.value=a;var u=document.createElement("input");u.className="vis-configuration vis-config-rangeinput",u.value=A.value;var d=this;A.onchange=function(){u.value=this.value,d._update(Number(this.value),r)},A.oninput=function(){u.value=this.value};var h=this._makeLabel(r[r.length-1],r),c=this._makeItem(r,h,A,u);I!==""&&this.popupHistory[c]!==C&&(this.popupHistory[c]=C,this._setupPopup(I,c))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=!1,o=Pt(this.options),s=!1;for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)){a=!0;var A=e[g],I=Ou(t,g);if(typeof o=="function"&&(a=o(g,t),a===!1&&!ce(A)&&typeof A!="string"&&typeof A!="boolean"&&A instanceof Object&&(this.allowCreation=!1,a=this._handleObject(A,I,!0),this.allowCreation=r===!1)),a!==!1){s=!0;var C=this._getValue(I);if(ce(A))this._handleArray(A,C,I);else if(typeof A=="string")this._makeTextInput(A,C,I);else if(typeof A=="boolean")this._makeCheckbox(A,C,I);else if(A instanceof Object){if(!this.hideOption(t,g,this.moduleOptions))if(A.enabled!==void 0){var l=Ou(I,"enabled"),u=this._getValue(l);if(u===!0){var d=this._makeLabel(g,I,!0);this._makeItem(I,d),s=this._handleObject(A,I)||s}else this._makeCheckbox(A,u,I)}else{var h=this._makeLabel(g,I,!0);this._makeItem(I,h),s=this._handleObject(A,I)||s}}else console.error("dont know how to handle",A,g,I)}}return s}},{key:"_handleArray",value:function(e,t,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,t,r),e[1]!==t&&this.changedOptions.push({path:r,value:t})):typeof e[0]=="string"?(this._makeDropdown(e,t,r),e[0]!==t&&this.changedOptions.push({path:r,value:t})):typeof e[0]=="number"&&(this._makeRange(e,t,r),e[0]!==t&&this.changedOptions.push({path:r,value:Number(t)}))}},{key:"_update",value:function(e,t){var r=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var o=0;oo-this.padding&&(A=!0),A?s=this.x-r:s=this.x,I?g=this.y-t:g=this.y}else g=this.y-t,g+t+this.padding>a&&(g=a-t-this.padding),go&&(s=o-r-this.padding),so.distance?A=" in "+i.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+i.printLocation(o.path,o.closestMatch,""):a.distance<=s?A='. Did you mean "'+a.closestMatch+'"?'+i.printLocation(a.path,e):A=". Did you mean one of these: "+i.print(at(t))+i.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+A,Zp),Qg=!0}},{key:"findInOptions",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,s="",g=[],A=e.toLowerCase(),I=void 0;for(var C in t){var l=void 0;if(t[C].__type__!==void 0&&a===!0){var u=i.findInOptions(e,t[C],Ou(r,C));o>u.distance&&(s=u.closestMatch,g=u.path,o=u.distance,I=u.indexMatch)}else{var d;Pe(d=C.toLowerCase()).call(d,A)!==-1&&(I=C),l=i.levenshteinDistance(e,C),o>l&&(s=C,g=Mq(r),o=l)}}return{closestMatch:s,path:g,distance:o,indexMatch:I}}},{key:"printLocation",value:function(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,a=` `+r+`options = { `,o=0;o":!0,"--":!0},Bn="",Gs=0,fe="",se="",Or=Ir.NULL;function qq(){Gs=0,fe=Bn.charAt(0)}function jt(){Gs++,fe=Bn.charAt(Gs)}function Vo(){return Bn.charAt(Gs+1)}function aw(i){var n=i.charCodeAt(0);return n<47?n===35||n===46:n<59?n>47:n<91?n>64:n<96?n===95:n<123?n>96:!1}function ra(i,n){if(i||(i={}),n)for(var e in n)n.hasOwnProperty(e)&&(i[e]=n[e]);return i}function Jq(i,n,e){for(var t=n.split("."),r=i;t.length;){var a=t.shift();t.length?(r[a]||(r[a]={}),r=r[a]):r[a]=e}}function rD(i,n){for(var e,t,r=null,a=[i],o=i;o.parent;)a.push(o.parent),o=o.parent;if(o.nodes){for(e=0,t=o.nodes.length;e=0;e--){var s,g=a[e];g.nodes||(g.nodes=[]),Pe(s=g.nodes).call(s,r)===-1&&g.nodes.push(r)}n.attr&&(r.attr=ra(r.attr,n.attr))}function eJ(i,n){if(i.edges||(i.edges=[]),i.edges.push(n),i.edge){var e=ra({},i.edge);n.attr=ra(e,n.attr)}}function iD(i,n,e,t,r){var a={from:n,to:e,type:t};return i.edge&&(a.attr=ra({},i.edge)),a.attr=ra(a.attr||{},r),r!=null&&r.hasOwnProperty("arrows")&&r.arrows!=null&&(a.arrows={to:{enabled:!0,type:r.arrows.type}},r.arrows=null),a}function it(){for(Or=Ir.NULL,se="";fe===" "||fe===" "||fe===` `||fe==="\r";)jt();do{var i=!1;if(fe==="#"){for(var n=Gs-1;Bn.charAt(n)===" "||Bn.charAt(n)===" ";)n--;if(Bn.charAt(n)===` `||Bn.charAt(n)===""){for(;fe!=""&&fe!=` `;)jt();i=!0}}if(fe==="/"&&Vo()==="/"){for(;fe!=""&&fe!=` `;)jt();i=!0}if(fe==="/"&&Vo()==="*"){for(;fe!="";)if(fe==="*"&&Vo()==="/"){jt(),jt();break}else jt();i=!0}for(;fe===" "||fe===" "||fe===` `||fe==="\r";)jt()}while(i);if(fe===""){Or=Ir.DELIMITER;return}var e=fe+Vo();if(nw[e]){Or=Ir.DELIMITER,se=e,jt(),jt();return}if(nw[fe]){Or=Ir.DELIMITER,se=fe,jt();return}if(aw(fe)||fe==="-"){for(se+=fe,jt();aw(fe);)se+=fe,jt();se==="false"?se=!1:se==="true"?se=!0:isNaN(Number(se))||(se=Number(se)),Or=Ir.IDENTIFIER;return}if(fe==='"'){for(jt();fe!=""&&(fe!='"'||fe==='"'&&Vo()==='"');)fe==='"'?(se+=fe,jt()):fe==="\\"&&Vo()==="n"?(se+=` `,jt()):se+=fe,jt();if(fe!='"')throw Cr('End of string " expected');jt(),Or=Ir.IDENTIFIER;return}for(Or=Ir.UNKNOWN;fe!="";)se+=fe,jt();throw new SyntaxError('Syntax error in part "'+sD(se,30)+'"')}function tJ(){var i={};if(qq(),it(),se==="strict"&&(i.strict=!0,it()),(se==="graph"||se==="digraph")&&(i.type=se,it()),Or===Ir.IDENTIFIER&&(i.id=se,it()),se!="{")throw Cr("Angle bracket { expected");if(it(),nD(i),se!="}")throw Cr("Angle bracket } expected");if(it(),se!=="")throw Cr("End of file expected");return it(),delete i.node,delete i.edge,delete i.graph,i}function nD(i){for(;se!==""&&se!="}";)rJ(i),se===";"&&it()}function rJ(i){var n=aD(i);if(n){oD(i,n);return}var e=iJ(i);if(!e){if(Or!=Ir.IDENTIFIER)throw Cr("Identifier expected");var t=se;if(it(),se==="="){if(it(),Or!=Ir.IDENTIFIER)throw Cr("Identifier expected");i[t]=se,it()}else nJ(i,t)}}function aD(i){var n=null;if(se==="subgraph"&&(n={},n.type="subgraph",it(),Or===Ir.IDENTIFIER&&(n.id=se,it())),se==="{"){if(it(),n||(n={}),n.parent=i,n.node=i.node,n.edge=i.edge,n.graph=i.graph,nD(n),se!="}")throw Cr("Angle bracket } expected");it(),delete n.node,delete n.edge,delete n.graph,delete n.parent,i.subgraphs||(i.subgraphs=[]),i.subgraphs.push(n)}return n}function iJ(i){return se==="node"?(it(),i.node=vA(),"node"):se==="edge"?(it(),i.edge=vA(),"edge"):se==="graph"?(it(),i.graph=vA(),"graph"):null}function nJ(i,n){var e={id:n},t=vA();t&&(e.attr=t),rD(i,e),oD(i,n)}function oD(i,n){for(;se==="->"||se==="--";){var e,t=se;it();var r=aD(i);if(r)e=r;else{if(Or!=Ir.IDENTIFIER)throw Cr("Identifier or subgraph expected");e=se,rD(i,{id:e}),it()}var a=vA(),o=iD(i,n,e,t,a);eJ(i,o),n=e}}function vA(){for(var i,n=null,e={dashed:!0,solid:!1,dotted:[1,5]},t={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},r=new Array,a=new Array;se==="[";){for(it(),n={};se!==""&&se!="]";){if(Or!=Ir.IDENTIFIER)throw Cr("Attribute name expected");var o=se;if(it(),se!="=")throw Cr("Equal sign = expected");if(it(),Or!=Ir.IDENTIFIER)throw Cr("Attribute value expected");var s=se;o==="style"&&(s=e[s]);var g;o==="arrowhead"&&(g=t[s],o="arrows",s={to:{enabled:!0,type:g}}),o==="arrowtail"&&(g=t[s],o="arrows",s={from:{enabled:!0,type:g}}),r.push({attr:n,name:o,value:s}),a.push(o),it(),se==","&&it()}if(se!="]")throw Cr("Bracket ] expected");it()}if(Vn(a).call(a,"dir")){var A={};for(A.arrows={},i=0;i"&&(g.arrows="to"),g};_e(r=n.edges).call(r,function(o){var s,g;if(o.from instanceof Object?s=o.from.nodes:s={id:o.from},o.to instanceof Object?g=o.to.nodes:g={id:o.to},o.from instanceof Object&&o.from.edges){var A;_e(A=o.from.edges).call(A,function(C){var l=a(C);e.edges.push(l)})}if(aJ(s,g,function(C,l){var u=iD(e,C.id,l.id,o.type,o.attr),d=a(u);e.edges.push(d)}),o.to instanceof Object&&o.to.edges){var I;_e(I=o.to.edges).call(I,function(C){var l=a(C);e.edges.push(l)})}})}return n.attr&&(e.options=n.attr),e}function sJ(i,n){var e,t={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};n!=null&&(n.fixed!=null&&(t.nodes.fixed=n.fixed),n.parseColor!=null&&(t.nodes.parseColor=n.parseColor),n.inheritColor!=null&&(t.edges.inheritColor=n.inheritColor));var r=i.edges,a=nr(r).call(r,function(s){var g={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(g.attributes=s.attributes),s.label!=null&&(g.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(g.title=s.attributes.title),s.type==="Directed"&&(g.arrows="to"),s.color&&t.edges.inheritColor===!1&&(g.color=s.color),g}),o=nr(e=i.nodes).call(e,function(s){var g={id:s.id,fixed:t.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(g.attributes=s.attributes),s.label!=null&&(g.label=s.label),s.size!=null&&(g.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(g.title=s.attributes.title),s.title!=null&&(g.title=s.title),s.x!=null&&(g.x=s.x),s.y!=null&&(g.y=s.y),s.color!=null&&(t.nodes.parseColor===!0?g.color=s.color:g.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),g});return{nodes:o,edges:a}}var gJ={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},AJ={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},IJ={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},CJ={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},lJ={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},uJ={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},dJ={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},hJ={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},cJ={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},fJ={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},vJ={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},pJ=Object.freeze({__proto__:null,cn:hJ,cs:vJ,de:AJ,en:gJ,es:IJ,fr:fJ,it:CJ,nl:lJ,pt:uJ,ru:dJ,uk:cJ});function yJ(i,n){try{var e=n.split(/[-_ /]/,2),t=be(e,2),r=t[0],a=t[1],o=r!=null?r.toLowerCase():null,s=a!=null?a.toUpperCase():null;if(o&&s){var g=o+"-"+s;if(Object.prototype.hasOwnProperty.call(i,g))return g;var A;console.warn(bo(A="Unknown variant ".concat(s," of language ")).call(A,o,"."))}if(o){var I=o;if(Object.prototype.hasOwnProperty.call(i,I))return I;console.warn("Unknown language ".concat(o))}return console.warn("Unknown locale ".concat(n,", falling back to English.")),"en"}catch(C){return console.error(C),console.warn("Unexpected error while normalizing locale ".concat(n,", falling back to English.")),"en"}}var mJ=function(){function i(){j(this,i),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return G(i,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,t=this.image.height;this.width=e,this.height=t;var r=Math.floor(t/2),a=Math.floor(t/4),o=Math.floor(t/8),s=Math.floor(t/16),g=Math.floor(e/2),A=Math.floor(e/4),I=Math.floor(e/8),C=Math.floor(e/16);this.canvas.width=3*A,this.canvas.height=r,this.coordinates=[[0,0,g,r],[g,0,A,a],[g,a,I,o],[5*I,a,C,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(var r=1;r2){t*=.5;for(var g=0;t>2&&g=this.NUM_ITERATIONS&&(g=this.NUM_ITERATIONS-1);var A=this.coordinates[g];e.drawImage(this.canvas,A[0],A[1],A[2],A[3],r,a,o,s)}else e.drawImage(this.image,r,a,o,s)}}]),i}(),bJ=function(){function i(n){j(this,i),this.images={},this.imageBroken={},this.callback=n}return G(i,[{key:"_tryloadBrokenUrl",value:function(e,t,r){if(!(e===void 0||r===void 0)){if(t===void 0){console.warn("No broken url image defined");return}r.image.onerror=function(){console.error("Could not load brokenImage:",t)},r.image.src=t}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,t){var r=this,a=this.images[e];if(a)return a;var o=new mJ;return this.images[e]=o,o.image.onload=function(){r._fixImageCoordinates(o.image),o.init(),r._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",e),r._tryloadBrokenUrl(e,t,o)},o.image.src=e,o}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),i}(),gD={exports:{}},$J=we,wJ=$J(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}}),EJ=we,OJ=St,TJ=$n,sw=wJ,jl=Object.isExtensible,SJ=EJ(function(){jl(1)}),kJ=SJ||sw?function(n){return!OJ(n)||sw&&TJ(n)==="ArrayBuffer"?!1:jl?jl(n):!0}:jl,_J=we,AD=!_J(function(){return Object.isExtensible(Object.preventExtensions({}))}),PJ=Q,RJ=xe,xJ=CI,DJ=St,rb=ft,NJ=Br.f,gw=cI,MJ=yd,ib=kJ,FJ=Ad,BJ=AD,ID=!1,vn=FJ("meta"),zJ=0,nb=function(i){NJ(i,vn,{value:{objectID:"O"+zJ++,weakData:{}}})},LJ=function(i,n){if(!DJ(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!rb(i,vn)){if(!ib(i))return"F";if(!n)return"E";nb(i)}return i[vn].objectID},jJ=function(i,n){if(!rb(i,vn)){if(!ib(i))return!0;if(!n)return!1;nb(i)}return i[vn].weakData},GJ=function(i){return BJ&&ID&&ib(i)&&!rb(i,vn)&&nb(i),i},WJ=function(){VJ.enable=function(){},ID=!0;var i=gw.f,n=RJ([].splice),e={};e[vn]=1,i(e).length&&(gw.f=function(t){for(var r=i(t),a=0,o=r.length;aC;C++)if(u=f(i[C]),u&&Aw(Cw,u))return u;return new Gl(!1)}A=QJ(i,I)}for(d=a?i.next:A.next;!(h=HJ(d,A)).done;){try{u=f(h.value)}catch(v){Iw(A,"throw",v)}if(typeof u=="object"&&u&&Aw(Cw,u))return u}return new Gl(!1)},eee=It,tee=TypeError,Pd=function(i,n){if(eee(n,i))return i;throw new tee("Incorrect invocation")},ree=Q,iee=qe,nee=_d,aee=we,oee=wn,see=ca,gee=Pd,Aee=ct,Iee=St,Cee=vo,lee=mo,uee=Br.f,dee=ha.forEach,hee=Ht,CD=Ca,cee=CD.set,fee=CD.getterFor,ab=function(i,n,e){var t=i.indexOf("Map")!==-1,r=i.indexOf("Weak")!==-1,a=t?"set":"add",o=iee[i],s=o&&o.prototype,g={},A;if(!hee||!Aee(o)||!(r||s.forEach&&!aee(function(){new o().entries().next()})))A=e.getConstructor(n,i,t,a),nee.enable();else{A=n(function(l,u){cee(gee(l,I),{type:i,collection:new o}),Cee(u)||see(u,l[a],{that:l,AS_ENTRIES:t})});var I=A.prototype,C=fee(i);dee(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(l){var u=l==="add"||l==="set";l in s&&!(r&&l==="clear")&&oee(I,l,function(d,h){var c=C(this).collection;if(!u&&r&&!Iee(d))return l==="get"?void 0:!1;var f=c[l](d===0?0:d,h);return u?this:f})}),r||uee(I,"size",{configurable:!0,get:function(){return C(this).collection.size}})}return lee(A,i,!1,!0),g[i]=A,ree({global:!0,forced:!0},g),r||e.setStrong(A,i,t),A},vee=dg,ob=function(i,n,e){for(var t in n)e&&e.unsafe&&i[t]?i[t]=n[t]:vee(i,t,n[t],e);return i},pee=pr,yee=Mm,mee=st,bee=Ht,lw=mee("species"),lD=function(i){var n=pee(i);bee&&n&&!n[lw]&&yee(n,lw,{configurable:!0,get:function(){return this}})},$ee=yo,wee=Mm,uw=ob,Eee=Ia,Oee=Pd,Tee=vo,See=ca,kee=Rm,FC=xm,_ee=lD,qg=Ht,dw=_d.fastKey,uD=Ca,hw=uD.set,Sc=uD.getterFor,dD={getConstructor:function(i,n,e,t){var r=i(function(A,I){Oee(A,a),hw(A,{type:n,index:$ee(null),first:void 0,last:void 0,size:0}),qg||(A.size=0),Tee(I)||See(I,A[t],{that:A,AS_ENTRIES:e})}),a=r.prototype,o=Sc(n),s=function(A,I,C){var l=o(A),u=g(A,I),d,h;return u?u.value=C:(l.last=u={index:h=dw(I,!0),key:I,value:C,previous:d=l.last,next:void 0,removed:!1},l.first||(l.first=u),d&&(d.next=u),qg?l.size++:A.size++,h!=="F"&&(l.index[h]=u)),A},g=function(A,I){var C=o(A),l=dw(I),u;if(l!=="F")return C.index[l];for(u=C.first;u;u=u.next)if(u.key===I)return u};return uw(a,{clear:function(){for(var I=this,C=o(I),l=C.index,u=C.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete l[u.index],u=u.next;C.first=C.last=void 0,qg?C.size=0:I.size=0},delete:function(A){var I=this,C=o(I),l=g(I,A);if(l){var u=l.next,d=l.previous;delete C.index[l.index],l.removed=!0,d&&(d.next=u),u&&(u.previous=d),C.first===l&&(C.first=u),C.last===l&&(C.last=d),qg?C.size--:I.size--}return!!l},forEach:function(I){for(var C=o(this),l=Eee(I,arguments.length>1?arguments[1]:void 0),u;u=u?u.next:C.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(I){return!!g(this,I)}}),uw(a,e?{get:function(I){var C=g(this,I);return C&&C.value},set:function(I,C){return s(this,I===0?0:I,C)}}:{add:function(I){return s(this,I=I===0?0:I,I)}}),qg&&wee(a,"size",{configurable:!0,get:function(){return o(this).size}}),r},setStrong:function(i,n,e){var t=n+" Iterator",r=Sc(n),a=Sc(t);kee(i,n,function(o,s){hw(this,{type:t,target:o,state:r(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,g=o.last;g&&g.removed;)g=g.previous;return!o.target||!(o.last=g=g?g.next:o.state.first)?(o.target=void 0,FC(void 0,!0)):FC(s==="keys"?g.key:s==="values"?g.value:[g.key,g.value],!1)},e?"entries":"values",!e,!0),_ee(n)}},Pee=ab,Ree=dD;Pee("Map",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},Ree);var xee=Ee,Dee=xee.Map,Nee=Dee,Mee=Nee,Fee=Mee,Rd=X(Fee),Bee=function(){function i(){j(this,i),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Et(this.options,this.defaultOptions)}return G(i,[{key:"setOptions",value:function(e){var t=["useDefaultGroups"];if(e!==void 0){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Pe(t).call(t,r)===-1){var a=e[r];this.add(r,a)}}}},{key:"clear",value:function(){this._groups=new Rd,this._groupNames=[]}},{key:"get",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this._groups.get(e);if(r===void 0&&t)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var a=this._groupIndex%this._groupNames.length;++this._groupIndex,r={},r.color=this._groups.get(this._groupNames[a]),this._groups.set(e,r)}else{var o=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,r={},r.color=this._defaultGroups[o],this._groups.set(e,r)}return r}},{key:"add",value:function(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}}]),i}(),zee=Q;zee({target:"Number",stat:!0},{isNaN:function(n){return n!==n}});var Lee=Ee,jee=Lee.Number.isNaN,Gee=jee,Wee=Gee,Vee=Wee,Hp=X(Vee),Zee=qe,Hee=Zee.isFinite,Uee=Number.isFinite||function(n){return typeof n=="number"&&Hee(n)},Yee=Q,Kee=Uee;Yee({target:"Number",stat:!0},{isFinite:Kee});var Xee=Ee,Qee=Xee.Number.isFinite,qee=Qee,Jee=qee,ete=Jee,Ma=X(ete),tte=Q,rte=ha.some,ite=fg,nte=ite("some");tte({target:"Array",proto:!0,forced:!nte},{some:function(n){return rte(this,n,arguments.length>1?arguments[1]:void 0)}});var ate=kt,ote=ate("Array").some,ste=It,gte=ote,kc=Array.prototype,Ate=function(i){var n=i.some;return i===kc||ste(kc,i)&&n===kc.some?gte:n},Ite=Ate,Cte=Ite,lte=Cte,hD=X(lte);function _a(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var ute=cx,dte=ute,hte=dte,cte=hte,cD=cte,fte=X(cD),vte=Q,pte=YP;vte({target:"Object",stat:!0},{setPrototypeOf:pte});var yte=Ee,mte=yte.Object.setPrototypeOf,bte=mte,$te=bte,wte=$te,Ete=wte,Ote=Ete,Tte=Ote,fD=Tte,Up=X(fD),Ste=PP,kte=Ste,_te=kte,Pte=_te,Rte=Pte,sb=X(Rte);function Yp(i,n){var e;return Yp=Up?sb(e=Up).call(e):function(r,a){return r.__proto__=a,r},Yp(i,n)}function De(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=fte(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),fd(i,"prototype",{writable:!1}),n&&Yp(i,n)}function je(i,n){if(n&&(pe(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _a(i)}var xte=Cx,Dte=xte,Nte=Dte,Mte=Nte,vD=Mte,cw=X(vD);function q(i){var n;return q=Up?sb(n=cw).call(n):function(t){return t.__proto__||cw(t)},q(i)}function ot(i,n,e){return n=XR(n),n in i?fd(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}var pD={exports:{}},yD={exports:{}};(function(i){var n=Gm,e=KR;function t(r){"@babel/helpers - typeof";return i.exports=t=typeof n=="function"&&typeof e=="symbol"?function(a){return typeof a}:function(a){return a&&typeof n=="function"&&a.constructor===n&&a!==n.prototype?"symbol":typeof a},i.exports.__esModule=!0,i.exports.default=i.exports,t(r)}i.exports=t,i.exports.__esModule=!0,i.exports.default=i.exports})(yD);var Fte=yD.exports,Bte=sx,zte=Bte,Lte=zte,jte=Lte,Gte=jte,fw=ft,Wte=Wm,Vte=ga,Zte=Br,Hte=function(i,n,e){for(var t=Wte(n),r=Zte.f,a=Vte.f,o=0;o2&&dre(r,arguments[2]);var a=[];return cre(n,yre,{that:a}),_c(r,"errors",a),r};Tu?Tu(Ws,Su):ure(Ws,Su,{name:!0});var Rc=Ws.prototype=$D(Su.prototype,{constructor:Pc(1,Ws),message:Pc(1,""),name:Pc(1,"AggregateError")});Ire({global:!0},{AggregateError:Ws});var mre=qe,bre=$n,OI=bre(mre.process)==="process",$re=hd,wre=lg,Ere=TypeError,wD=function(i){if($re(i))return i;throw new Ere(wre(i)+" is not a constructor")},pw=mr,Ore=wD,Tre=vo,Sre=st,kre=Sre("species"),ED=function(i,n){var e=pw(i).constructor,t;return e===void 0||Tre(t=pw(e)[kre])?n:Ore(t)},_re=Aa,OD=/(?:ipad|iphone|ipod).*applewebkit/i.test(_re),Kr=qe,Pre=Ag,Rre=Ia,yw=ct,xre=ft,TD=we,mw=GP,Dre=uI,bw=Om,Nre=fx,Mre=OD,Fre=OI,Kp=Kr.setImmediate,$w=Kr.clearImmediate,Bre=Kr.process,xc=Kr.Dispatch,zre=Kr.Function,ww=Kr.MessageChannel,Lre=Kr.String,Dc=0,pA={},Ew="onreadystatechange",GA,Ta,Nc,Mc;TD(function(){GA=Kr.location});var gb=function(i){if(xre(pA,i)){var n=pA[i];delete pA[i],n()}},Fc=function(i){return function(){gb(i)}},Ow=function(i){gb(i.data)},Tw=function(i){Kr.postMessage(Lre(i),GA.protocol+"//"+GA.host)};(!Kp||!$w)&&(Kp=function(n){Nre(arguments.length,1);var e=yw(n)?n:zre(n),t=Dre(arguments,1);return pA[++Dc]=function(){Pre(e,void 0,t)},Ta(Dc),Dc},$w=function(n){delete pA[n]},Fre?Ta=function(i){Bre.nextTick(Fc(i))}:xc&&xc.now?Ta=function(i){xc.now(Fc(i))}:ww&&!Mre?(Nc=new ww,Mc=Nc.port2,Nc.port1.onmessage=Ow,Ta=Rre(Mc.postMessage,Mc)):Kr.addEventListener&&yw(Kr.postMessage)&&!Kr.importScripts&&GA&&GA.protocol!=="file:"&&!TD(Tw)?(Ta=Tw,Kr.addEventListener("message",Ow,!1)):Ew in bw("script")?Ta=function(i){mw.appendChild(bw("script"))[Ew]=function(){mw.removeChild(this),gb(i)}}:Ta=function(i){setTimeout(Fc(i),0)});var SD={set:Kp},kD=function(){this.head=null,this.tail=null};kD.prototype={add:function(i){var n={item:i,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var i=this.head;if(i){var n=this.head=i.next;return n===null&&(this.tail=null),i.item}}};var _D=kD,jre=Aa,Gre=/ipad|iphone|ipod/i.test(jre)&&typeof Pebble<"u",Wre=Aa,Vre=/web0s(?!.*chrome)/i.test(Wre),oo=qe,Sw=Ia,Zre=ga.f,Bc=SD.set,Hre=_D,Ure=OD,Yre=Gre,Kre=Vre,zc=OI,kw=oo.MutationObserver||oo.WebKitMutationObserver,_w=oo.document,Pw=oo.process,BC=oo.Promise,Rw=Zre(oo,"queueMicrotask"),Xp=Rw&&Rw.value,Zo,Lc,jc,zC,xw;if(!Xp){var LC=new Hre,jC=function(){var i,n;for(zc&&(i=Pw.domain)&&i.exit();n=LC.get();)try{n()}catch(e){throw LC.head&&Zo(),e}i&&i.enter()};!Ure&&!zc&&!Kre&&kw&&_w?(Lc=!0,jc=_w.createTextNode(""),new kw(jC).observe(jc,{characterData:!0}),Zo=function(){jc.data=Lc=!Lc}):!Yre&&BC&&BC.resolve?(zC=BC.resolve(void 0),zC.constructor=BC,xw=Sw(zC.then,zC),Zo=function(){xw(jC)}):zc?Zo=function(){Pw.nextTick(jC)}:(Bc=Sw(Bc,oo),Zo=function(){Bc(jC)}),Xp=function(i){LC.head||Zo(),LC.add(i)}}var Xre=Xp,Qre=function(i,n){try{arguments.length===1?console.error(i):console.error(i,n)}catch{}},mg=function(i){try{return{error:!1,value:i()}}catch(n){return{error:!0,value:n}}},qre=qe,bg=qre.Promise,PD=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Jre=PD,eie=OI,tie=!Jre&&!eie&&typeof window=="object"&&typeof document=="object",rie=qe,yA=bg,iie=ct,nie=EP,aie=JP,oie=st,sie=tie,gie=PD,Gc=Ig,Dw=yA&&yA.prototype,Aie=oie("species"),Nw=!1,RD=iie(rie.PromiseRejectionEvent),Iie=nie("Promise",function(){var i=aie(yA),n=i!==String(yA);if(!n&&Gc===66||!(Dw.catch&&Dw.finally))return!0;if(!Gc||Gc<51||!/native code/.test(i)){var e=new yA(function(a){a(1)}),t=function(a){a(function(){},function(){})},r=e.constructor={};if(r[Aie]=t,Nw=e.then(function(){})instanceof t,!Nw)return!0}return!n&&(sie||gie)&&!RD}),TI={CONSTRUCTOR:Iie,REJECTION_EVENT:RD},Xi={},Mw=Fr,Cie=TypeError,lie=function(i){var n,e;this.promise=new i(function(t,r){if(n!==void 0||e!==void 0)throw new Cie("Bad Promise constructor");n=t,e=r}),this.resolve=Mw(n),this.reject=Mw(e)};Xi.f=function(i){return new lie(i)};var uie=Q,ku=OI,ia=qe,SI=Lt,die=dg,hie=mo,cie=lD,fie=Fr,Qp=ct,vie=St,pie=Pd,yie=ED,xD=SD.set,Ab=Xre,mie=Qre,bie=mg,$ie=_D,DD=Ca,qp=bg,ND=TI,MD=Xi,xd="Promise",FD=ND.CONSTRUCTOR,wie=ND.REJECTION_EVENT,Wc=DD.getterFor(xd),Eie=DD.set,Oie=qp&&qp.prototype,Cs=qp,Vc=Oie,BD=ia.TypeError,Jp=ia.document,Ib=ia.process,ey=MD.f,Tie=ey,Sie=!!(Jp&&Jp.createEvent&&ia.dispatchEvent),zD="unhandledrejection",kie="rejectionhandled",Fw=0,LD=1,_ie=2,Cb=1,jD=2,GC,Bw,Pie,GD=function(i){var n;return vie(i)&&Qp(n=i.then)?n:!1},WD=function(i,n){var e=n.value,t=n.state===LD,r=t?i.ok:i.fail,a=i.resolve,o=i.reject,s=i.domain,g,A,I;try{r?(t||(n.rejection===jD&&xie(n),n.rejection=Cb),r===!0?g=e:(s&&s.enter(),g=r(e),s&&(s.exit(),I=!0)),g===i.promise?o(new BD("Promise-chain cycle")):(A=GD(g))?SI(A,g,a,o):a(g)):o(e)}catch(C){s&&!I&&s.exit(),o(C)}},VD=function(i,n){i.notified||(i.notified=!0,Ab(function(){for(var e=i.reactions,t;t=e.get();)WD(t,i);i.notified=!1,n&&!i.rejection&&Rie(i)}))},ZD=function(i,n,e){var t,r;Sie?(t=Jp.createEvent("Event"),t.promise=n,t.reason=e,t.initEvent(i,!1,!0),ia.dispatchEvent(t)):t={promise:n,reason:e},!wie&&(r=ia["on"+i])?r(t):i===zD&&mie("Unhandled promise rejection",e)},Rie=function(i){SI(xD,ia,function(){var n=i.facade,e=i.value,t=zw(i),r;if(t&&(r=bie(function(){ku?Ib.emit("unhandledRejection",e,n):ZD(zD,n,e)}),i.rejection=ku||zw(i)?jD:Cb,r.error))throw r.value})},zw=function(i){return i.rejection!==Cb&&!i.parent},xie=function(i){SI(xD,ia,function(){var n=i.facade;ku?Ib.emit("rejectionHandled",n):ZD(kie,n,i.value)})},ls=function(i,n,e){return function(t){i(n,t,e)}},Ss=function(i,n,e){i.done||(i.done=!0,e&&(i=e),i.value=n,i.state=_ie,VD(i,!0))},ty=function(i,n,e){if(!i.done){i.done=!0,e&&(i=e);try{if(i.facade===n)throw new BD("Promise can't be resolved itself");var t=GD(n);t?Ab(function(){var r={done:!1};try{SI(t,n,ls(ty,r,i),ls(Ss,r,i))}catch(a){Ss(r,a,i)}}):(i.value=n,i.state=LD,VD(i,!1))}catch(r){Ss({done:!1},r,i)}}};FD&&(Cs=function(n){pie(this,Vc),fie(n),SI(GC,this);var e=Wc(this);try{n(ls(ty,e),ls(Ss,e))}catch(t){Ss(e,t)}},Vc=Cs.prototype,GC=function(n){Eie(this,{type:xd,done:!1,notified:!1,parent:!1,reactions:new $ie,rejection:!1,state:Fw,value:void 0})},GC.prototype=die(Vc,"then",function(n,e){var t=Wc(this),r=ey(yie(this,Cs));return t.parent=!0,r.ok=Qp(n)?n:!0,r.fail=Qp(e)&&e,r.domain=ku?Ib.domain:void 0,t.state===Fw?t.reactions.add(r):Ab(function(){WD(r,t)}),r.promise}),Bw=function(){var i=new GC,n=Wc(i);this.promise=i,this.resolve=ls(ty,n),this.reject=ls(Ss,n)},MD.f=ey=function(i){return i===Cs||i===Pie?new Bw(i):Tie(i)});uie({global:!0,wrap:!0,forced:FD},{Promise:Cs});hie(Cs,xd,!1,!0);cie(xd);var Die=bg,Nie=oR,Mie=TI.CONSTRUCTOR,Dd=Mie||!Nie(function(i){Die.all(i).then(void 0,function(){})}),Fie=Q,Bie=Lt,zie=Fr,Lie=Xi,jie=mg,Gie=ca,Wie=Dd;Fie({target:"Promise",stat:!0,forced:Wie},{all:function(n){var e=this,t=Lie.f(e),r=t.resolve,a=t.reject,o=jie(function(){var s=zie(e.resolve),g=[],A=0,I=1;Gie(n,function(C){var l=A++,u=!1;I++,Bie(s,e,C).then(function(d){u||(u=!0,g[l]=d,--I||r(g))},a)}),--I||r(g)});return o.error&&a(o.value),t.promise}});var Vie=Q,Zie=TI.CONSTRUCTOR,Lw=bg;Lw&&Lw.prototype;Vie({target:"Promise",proto:!0,forced:Zie,real:!0},{catch:function(i){return this.then(void 0,i)}});var Hie=Q,Uie=Lt,Yie=Fr,Kie=Xi,Xie=mg,Qie=ca,qie=Dd;Hie({target:"Promise",stat:!0,forced:qie},{race:function(n){var e=this,t=Kie.f(e),r=t.reject,a=Xie(function(){var o=Yie(e.resolve);Qie(n,function(s){Uie(o,e,s).then(t.resolve,r)})});return a.error&&r(a.value),t.promise}});var Jie=Q,ene=Lt,tne=Xi,rne=TI.CONSTRUCTOR;Jie({target:"Promise",stat:!0,forced:rne},{reject:function(n){var e=tne.f(this);return ene(e.reject,void 0,n),e.promise}});var ine=mr,nne=St,ane=Xi,HD=function(i,n){if(ine(i),nne(n)&&n.constructor===i)return n;var e=ane.f(i),t=e.resolve;return t(n),e.promise},one=Q,sne=pr,gne=Uj,Ane=bg,Ine=TI.CONSTRUCTOR,Cne=HD,lne=sne("Promise"),une=!Ine;one({target:"Promise",stat:!0,forced:gne},{resolve:function(n){return Cne(une&&this===lne?Ane:this,n)}});var dne=Q,hne=Lt,cne=Fr,fne=Xi,vne=mg,pne=ca,yne=Dd;dne({target:"Promise",stat:!0,forced:yne},{allSettled:function(n){var e=this,t=fne.f(e),r=t.resolve,a=t.reject,o=vne(function(){var s=cne(e.resolve),g=[],A=0,I=1;pne(n,function(C){var l=A++,u=!1;I++,hne(s,e,C).then(function(d){u||(u=!0,g[l]={status:"fulfilled",value:d},--I||r(g))},function(d){u||(u=!0,g[l]={status:"rejected",reason:d},--I||r(g))})}),--I||r(g)});return o.error&&a(o.value),t.promise}});var mne=Q,bne=Lt,$ne=Fr,wne=pr,Ene=Xi,One=mg,Tne=ca,Sne=Dd,jw="No one promise resolved";mne({target:"Promise",stat:!0,forced:Sne},{any:function(n){var e=this,t=wne("AggregateError"),r=Ene.f(e),a=r.resolve,o=r.reject,s=One(function(){var g=$ne(e.resolve),A=[],I=0,C=1,l=!1;Tne(n,function(u){var d=I++,h=!1;C++,bne(g,e,u).then(function(c){h||l||(l=!0,a(c))},function(c){h||l||(h=!0,A[d]=c,--C||o(new t(A,jw)))})}),--C||o(new t(A,jw))});return s.error&&o(s.value),r.promise}});var kne=Q,ry=bg,_ne=we,Pne=pr,Rne=ct,xne=ED,Gw=HD,Dne=ry&&ry.prototype,Nne=!!ry&&_ne(function(){Dne.finally.call({then:function(){}},function(){})});kne({target:"Promise",proto:!0,real:!0,forced:Nne},{finally:function(i){var n=xne(this,Pne("Promise")),e=Rne(i);return this.then(e?function(t){return Gw(n,i()).then(function(){return t})}:i,e?function(t){return Gw(n,i()).then(function(){throw t})}:i)}});var Mne=Ee,Fne=Mne.Promise,Bne=Fne,zne=Bne,Lne=Q,jne=Xi;Lne({target:"Promise",stat:!0},{withResolvers:function(){var n=jne.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}});var Gne=zne,Wne=Gne,Vne=Q,Zne=Xi,Hne=mg;Vne({target:"Promise",stat:!0,forced:!0},{try:function(i){var n=Zne.f(this),e=Hne(i);return(e.error?n.reject:n.resolve)(e.value),n.promise}});var Une=Wne,Yne=Une,Kne=Yne,Xne=gx,Qne=Xne,qne=Qne,Jne=qne,eae=Jne;(function(i){var n=Fte.default,e=hR,t=Gm,r=cD,a=vD,o=Gte,s=ex,g=fD,A=Kne,I=eae,C=rx;function l(){i.exports=l=function(){return d},i.exports.__esModule=!0,i.exports.default=i.exports;var u,d={},h=Object.prototype,c=h.hasOwnProperty,f=e||function(E,b,$){E[b]=$.value},v=typeof t=="function"?t:{},y=v.iterator||"@@iterator",p=v.asyncIterator||"@@asyncIterator",m=v.toStringTag||"@@toStringTag";function w(E,b,$){return e(E,b,{value:$,enumerable:!0,configurable:!0,writable:!0}),E[b]}try{w({},"")}catch{w=function($,D,W){return $[D]=W}}function k(E,b,$,D){var W=b&&b.prototype instanceof Ce?b:Ce,M=r(W.prototype),ue=new Xe(D||[]);return f(M,"_invoke",{value:he(E,$,ue)}),M}function R(E,b,$){try{return{type:"normal",arg:E.call(b,$)}}catch(D){return{type:"throw",arg:D}}}d.wrap=k;var O="suspendedStart",_="suspendedYield",N="executing",K="completed",H={};function Ce(){}function $e(){}function de(){}var Ye={};w(Ye,y,function(){return this});var Fe=a,Oe=Fe&&Fe(Fe(ke([])));Oe&&Oe!==h&&c.call(Oe,y)&&(Ye=Oe);var Ke=de.prototype=Ce.prototype=r(Ye);function Te(E){var b;o(b=["next","throw","return"]).call(b,function($){w(E,$,function(D){return this._invoke($,D)})})}function oe(E,b){function $(W,M,ue,Be){var We=R(E[W],E,M);if(We.type!=="throw"){var gr=We.arg,er=gr.value;return er&&n(er)=="object"&&c.call(er,"__await")?b.resolve(er.__await).then(function(Ar){$("next",Ar,ue,Be)},function(Ar){$("throw",Ar,ue,Be)}):b.resolve(er).then(function(Ar){gr.value=Ar,ue(gr)},function(Ar){return $("throw",Ar,ue,Be)})}Be(We.arg)}var D;f(this,"_invoke",{value:function(M,ue){function Be(){return new b(function(We,gr){$(M,ue,We,gr)})}return D=D?D.then(Be,Be):Be()}})}function he(E,b,$){var D=O;return function(W,M){if(D===N)throw new Error("Generator is already running");if(D===K){if(W==="throw")throw M;return{value:u,done:!0}}for($.method=W,$.arg=M;;){var ue=$.delegate;if(ue){var Be=le(ue,$);if(Be){if(Be===H)continue;return Be}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(D===O)throw D=K,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);D=N;var We=R(E,b,$);if(We.type==="normal"){if(D=$.done?K:_,We.arg===H)continue;return{value:We.arg,done:$.done}}We.type==="throw"&&(D=K,$.method="throw",$.arg=We.arg)}}}function le(E,b){var $=b.method,D=E.iterator[$];if(D===u)return b.delegate=null,$==="throw"&&E.iterator.return&&(b.method="return",b.arg=u,le(E,b),b.method==="throw")||$!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+$+"' method")),H;var W=R(D,E.iterator,b.arg);if(W.type==="throw")return b.method="throw",b.arg=W.arg,b.delegate=null,H;var M=W.arg;return M?M.done?(b[E.resultName]=M.value,b.next=E.nextLoc,b.method!=="return"&&(b.method="next",b.arg=u),b.delegate=null,H):M:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,H)}function Se(E){var b,$={tryLoc:E[0]};1 in E&&($.catchLoc=E[1]),2 in E&&($.finallyLoc=E[2],$.afterLoc=E[3]),s(b=this.tryEntries).call(b,$)}function Bt(E){var b=E.completion||{};b.type="normal",delete b.arg,E.completion=b}function Xe(E){this.tryEntries=[{tryLoc:"root"}],o(E).call(E,Se,this),this.reset(!0)}function ke(E){if(E||E===""){var b=E[y];if(b)return b.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var $=-1,D=function W(){for(;++$=0;--W){var M=this.tryEntries[W],ue=M.completion;if(M.tryLoc==="root")return D("end");if(M.tryLoc<=this.prev){var Be=c.call(M,"catchLoc"),We=c.call(M,"finallyLoc");if(Be&&We){if(this.prev=0;--D){var W=this.tryEntries[D];if(W.tryLoc<=this.prev&&c.call(W,"finallyLoc")&&this.prev=0;--$){var D=this.tryEntries[$];if(D.finallyLoc===b)return this.complete(D.completion,D.afterLoc),Bt(D),H}},catch:function(b){for(var $=this.tryEntries.length-1;$>=0;--$){var D=this.tryEntries[$];if(D.tryLoc===b){var W=D.completion;if(W.type==="throw"){var M=W.arg;Bt(D)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(b,$,D){return this.delegate={iterator:ke(b),resultName:$,nextLoc:D},this.method==="next"&&(this.arg=u),H}},d}i.exports=l,i.exports.__esModule=!0,i.exports.default=i.exports})(pD);var tae=pD.exports,Wl=tae(),rae=Wl;try{regeneratorRuntime=Wl}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Wl:Function("r","regeneratorRuntime = r")(Wl)}var wr=X(rae),iae=Fr,nae=yr,aae=gd,oae=zr,sae=TypeError,gae=function(i){return function(n,e,t,r){iae(e);var a=nae(n),o=aae(a),s=oae(a),g=i?s-1:0,A=i?-1:1;if(t<2)for(;;){if(g in o){r=o[g],g+=A;break}if(g+=A,i?g<0:s<=g)throw new sae("Reduce of empty array with no initial value")}for(;i?g>=0:s>g;g+=A)g in o&&(r=e(r,o[g],g,a));return r}},Aae={left:gae(!1)},Iae=Q,Cae=Aae.left,lae=fg,Ww=Ig,uae=OI,dae=!uae&&Ww>79&&Ww<83,hae=dae||!lae("reduce");Iae({target:"Array",proto:!0,forced:hae},{reduce:function(n){var e=arguments.length;return Cae(this,n,e,e>1?arguments[1]:void 0)}});var cae=kt,fae=cae("Array").reduce,vae=It,pae=fae,Zc=Array.prototype,yae=function(i){var n=i.reduce;return i===Zc||vae(Zc,i)&&n===Zc.reduce?pae:n},mae=yae,bae=mae,$ae=bae,lb=X($ae),wae=da,Eae=zr,Oae=vd,Tae=Ia,UD=function(i,n,e,t,r,a,o,s){for(var g=r,A=0,I=o?Tae(o,s):!1,C,l;A0&&wae(C)?(l=Eae(C),g=UD(i,n,C,l,g,a-1)-1):(Oae(g+1),i[g]=C),g++),A++;return g},Sae=UD,kae=Q,_ae=Sae,Pae=Fr,Rae=yr,xae=zr,Dae=pd;kae({target:"Array",proto:!0},{flatMap:function(n){var e=Rae(this),t=xae(e),r;return Pae(n),r=Dae(e,0),r.length=_ae(r,e,e,t,0,1,n,arguments.length>1?arguments[1]:void 0),r}});var Nae=kt;Nae("Array").flatMap;var Mae=ab,Fae=dD;Mae("Set",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},Fae);var Bae=Ee,zae=Bae.Set,Lae=zae,jae=Lae,Gae=jae,Di=X(Gae),Wae=YR,ks=X(Wae),Vae=Nm,Zae=Vae,Hae=Zae,Uae=Hae,Yae=Uae,Kae=Yae,Xae=Kae,Qae=Xae,qae=Qae,Jae=qae,Hc=X(Jae),Vw=fR,eoe=Math.floor,iy=function(i,n){var e=i.length,t=eoe(e/2);return e<8?toe(i,n):roe(i,iy(Vw(i,0,t),n),iy(Vw(i,t),n),n)},toe=function(i,n){for(var e=i.length,t=1,r,a;t0;)i[a]=i[--a];a!==t++&&(i[a]=r)}return i},roe=function(i,n,e,t){for(var r=n.length,a=e.length,o=0,s=0;o3)){if(coe)return!0;if(Qw)return Qw<603;var i="",n,e,t,r;for(n=65;n<76;n++){switch(e=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)zn.push({k:e+r,v:t})}for(zn.sort(function(a,o){return o.v-a.v}),r=0;rYw(e)?1:-1}};Ioe({target:"Array",proto:!0,forced:moe},{sort:function(n){n!==void 0&&Coe(n);var e=loe(this);if(KD)return n===void 0?qw(e):qw(e,n);var t=[],r=Uw(e),a,o;for(o=0;oo;)g=t(e,s=r[o++]),g!==void 0&&Wse(a,s,g);return a}});var Vse=Ee,Zse=Vse.Object.getOwnPropertyDescriptors,Hse=Zse,Use=Hse,Yse=Use,Yi=X(Yse),nN={exports:{}},Kse=Q,Xse=Ht,rE=dd.f;Kse({target:"Object",stat:!0,forced:Object.defineProperties!==rE,sham:!Xse},{defineProperties:rE});var Qse=Ee,aN=Qse.Object,qse=nN.exports=function(n,e){return aN.defineProperties(n,e)};aN.defineProperties.sham&&(qse.sham=!0);var Jse=nN.exports,ege=Jse,tge=ege,rge=tge,_I=X(rge);let WC;const ige=new Uint8Array(16);function nge(){if(!WC&&(WC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return WC(ige)}const tr=[];for(let i=0;i<256;++i)tr.push((i+256).toString(16).slice(1));function age(i,n=0){return tr[i[n+0]]+tr[i[n+1]]+tr[i[n+2]]+tr[i[n+3]]+"-"+tr[i[n+4]]+tr[i[n+5]]+"-"+tr[i[n+6]]+tr[i[n+7]]+"-"+tr[i[n+8]]+tr[i[n+9]]+"-"+tr[i[n+10]]+tr[i[n+11]]+tr[i[n+12]]+tr[i[n+13]]+tr[i[n+14]]+tr[i[n+15]]}const oge=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var iE={randomUUID:oge};function _s(i,n,e){if(iE.randomUUID&&!i)return iE.randomUUID();i=i||{};const t=i.random||(i.rng||nge)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,age(t)}var oN;function nE(i,n){var e=at(i);if(Ui){var t=Ui(i);n&&(t=Pt(t).call(t,function(r){return Qi(i,r).enumerable})),e.push.apply(e,t)}return e}function aE(i){for(var n=1;n"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}function Vr(i,n){var e=typeof On<"u"&&ua(i)||i["@@iterator"];if(!e){if(ce(i)||(e=Age(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Age(i,n){var e;if(i){if(typeof i=="string")return oE(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return oE(i,n)}}function oE(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);ethis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Ei(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,t;_e(e=ji(t=this._queue).call(t,0)).call(e,function(r){r.fn.apply(r.context||r.fn,r.args||[])})}}],[{key:"extend",value:function(e,t){var r=new i(t);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var a=[{name:"flush",original:void 0}];if(t&&t.replace)for(var o=0;oo&&(o=I,a=A)}return a}},{key:"min",value:function(e){var t=Hc(this._pairs),r=t.next();if(r.done)return null;for(var a=r.value[1],o=e(r.value[1],r.value[0]);!(r=t.next()).done;){var s=be(r.value,2),g=s[0],A=s[1],I=e(A,g);II?1:As)&&(o=I,s=C)}}catch(l){g.e(l)}finally{g.f()}return o||null}},{key:"min",value:function(r){var a,o=null,s=null,g=Vr(_u(a=this._data).call(a)),A;try{for(g.s();!(A=g.n()).done;){var I=A.value,C=I[r];typeof C=="number"&&(s==null||Cn.x&&i.topn.y}function Ru(i){return typeof i=="string"&&i!==""}function IN(i,n,e,t){var r=t.x,a=t.y;if(typeof t.distanceToBorder=="function"){var o=t.distanceToBorder(i,n),s=Math.sin(n)*o,g=Math.cos(n)*o;g===o?(r+=o,a=t.y):s===o?(r=t.x,a-=o):(r+=g,a-=s)}else t.shape.width>t.shape.height?(r=t.x+t.shape.width*.5,a=t.y-e):(r=t.x+e,a=t.y-t.shape.height*.5);return{x:r,y:a}}var zge=function(){function i(n){j(this,i),this.measureText=n,this.current=0,this.width=0,this.height=0,this.lines=[]}return G(i,[{key:"_add",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var a=t;(t===void 0||t==="")&&(a=" ");var o=this.measureText(a,r),s=Et({},_u(o));s.text=t,s.width=o.width,s.mod=r,(t===void 0||t==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t)}},{key:"newLine",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=a.width),t+=a.height}this.width=e,this.height=t}},{key:"removeEmptyBlocks",value:function(){for(var e=[],t=0;t"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},lE=function(){function i(n){j(this,i),this.text=n,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return G(i,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,t){return!this.mono&&!this[e]&&this.match(t)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.prepareRegExp(e),a=be(r,2),o=a[0],s=a[1],g=o.test(this.text.substr(this.position,s));return g&&t&&(this.position+=s-1),g}},{key:"parseEndTag",value:function(e,t,r){var a=this.mod()===e;return e==="mono"?a=a&&this.mono:a=a&&!this.mono,a&&this.match(t)?(r!==void 0?(this.position===this.text.length-1||this.match(r,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,t){return this.match(e)?(this.add(t),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var t,r;if(e instanceof RegExp)r=e,t=1;else{var a=Lge[e];a!==void 0?r=a:r=new RegExp(e),t=e.length}return[r,t]}}]),i}(),jge=function(){function i(n,e,t,r){var a=this;j(this,i),this.ctx=n,this.parent=e,this.selected=t,this.hover=r;var o=function(g,A){if(g===void 0)return 0;var I=a.parent.getFormattingValues(n,t,r,A),C=0;if(g!==""){var l=a.ctx.measureText(g);C=l.width}return{width:C,values:I}};this.lines=new zge(o)}return G(i,[{key:"process",value:function(e){if(!Ru(e))return this.lines.finalize();var t=this.parent.fontOptions;e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `);var r=String(e).split(` `),a=r.length;if(t.multi)for(var o=0;o0)for(var g=0;g0)for(var d=0;d")||t.parseStartTag("ital","")||t.parseStartTag("mono","")||t.parseEndTag("bold","")||t.parseEndTag("ital","")||t.parseEndTag("mono",""))||r(a);o||t.add(a),t.position++}return t.emitBlock(),t.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var t=this,r=new lE(e),a=!0,o=function(I){return/\\/.test(I)?(r.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var t="",r=0;r1&&arguments[1]!==void 0?arguments[1]:"normal",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var a=e.split("\r");a.length>0;){var o=this.getLongestFit(a);if(o===0){var s=a[0],g=this.getLongestFitWord(s);this.lines.newLine(zt(s).call(s,0,g),t),a[0]=zt(s).call(s,g)}else{var A=o;a[o-1]===" "?o--:a[A]===" "&&A++;var I=zt(a).call(a,0,o).join("");o==a.length&&r?this.lines.append(I,t):this.lines.newLine(I,t),a=zt(a).call(a,A)}}}}]),i}(),Jg=["bold","ital","boldital","mono"],CN=function(){function i(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j(this,i),this.body=n,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=t}return G(i,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),Ru(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(pe(e.font)==="object"){var t=e.font.size;t!==void 0&&(this.baseSize=t)}}}},{key:"initFontOptions",value:function(e){var t=this;if(ye(Jg,function(r){t.fontOptions[r]={}}),i.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}ye(e,function(r,a){r!=null&&pe(r)!=="object"&&(t.fontOptions[a]=r)})}},{key:"constrain",value:function(e){var t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},r=Nn(e,"widthConstraint");if(typeof r=="number")t.maxWdt=Number(r),t.minWdt=Number(r);else if(pe(r)==="object"){var a=Nn(e,["widthConstraint","maximum"]);typeof a=="number"&&(t.maxWdt=Number(a));var o=Nn(e,["widthConstraint","minimum"]);typeof o=="number"&&(t.minWdt=Number(o))}var s=Nn(e,"heightConstraint");if(typeof s=="number")t.minHgt=Number(s);else if(pe(s)==="object"){var g=Nn(e,["heightConstraint","minimum"]);typeof g=="number"&&(t.minHgt=Number(g));var A=Nn(e,["heightConstraint","valign"]);typeof A=="string"&&(A==="top"||A==="bottom")&&(t.valign=A)}return t}},{key:"update",value:function(e,t){this.setOptions(e,!0),this.propagateFonts(t),tt(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=hb("label",t)}},{key:"adjustSizes",value:function(e){var t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);var r=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=r)}},{key:"addFontOptionsToPile",value:function(e,t){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var g=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&g=this.elementOptions.scaling.label.maxVisible&&(g=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,a,o,t,r,s),this._drawBackground(e),this._drawText(e,t,this.size.yLine,s,g))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}},{key:"_drawText",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",o=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,t,r,a),g=be(s,2);t=g[0],r=g[1],e.textAlign="left",t=t-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(r-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(r+=(this.size.height-this.size.labelHeight)/2));for(var A=0;A0&&(e.lineWidth=u.strokeWidth,e.strokeStyle=f,e.lineJoin="round"),e.fillStyle=c,u.strokeWidth>0&&e.strokeText(u.text,t+C,r+u.vadjust),e.fillText(u.text,t+C,r+u.vadjust),C+=u.width}r+=I.height}}}},{key:"_setAlignment",value:function(e,t,r,a){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){t=0,r=0;var o=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",r-=2*o):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",r+=2*o):e.textBaseline="middle"}else e.textBaseline=a;return[t,r]}},{key:"_getColor",value:function(e,t,r){var a=e||"#000000",o=r||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));a=oi(a,s),o=oi(o,s)}return[a,o]}},{key:"getTextSize",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,t,r),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,t=this.size.left,r=this.size.top-.5*e;if(this.isEdgeLabel){var a=-this.size.width*.5;switch(this.fontOptions.align){case"middle":t=a,r=-this.size.height*.5;break;case"top":t=a,r=-(this.size.height+e);break;case"bottom":t=a,r=e;break}}var o={left:t,top:r,width:this.size.width,height:this.size.height};return o}},{key:"calculateLabelSize",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,t,r),this.size.left=a-this.size.width*.5,this.size.top=o-this.size.height*.5,this.size.yLine=o+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,t,r,a){var o=function(I,C,l){return C==="normal"?l==="mod"?"":I[l]:I[C][l]!==void 0?I[C][l]:I[l]},s={color:o(this.fontOptions,a,"color"),size:o(this.fontOptions,a,"size"),face:o(this.fontOptions,a,"face"),mod:o(this.fontOptions,a,"mod"),vadjust:o(this.fontOptions,a,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||r)&&(a==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,t,r));var g="";return s.mod!==void 0&&s.mod!==""&&(g+=s.mod+" "),g+=s.size+"px "+s.face,e.font=g.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,t){return e!==this.selectedState||t!==this.hoverState}},{key:"_processLabelText",value:function(e,t,r,a){var o=new jge(e,this,t,r);return o.process(a)}},{key:"_processLabel",value:function(e,t,r){if(!(this.labelDirty===!1&&!this.differentState(t,r))){var a=this._processLabelText(e,t,r,this.elementOptions.label);this.fontOptions.minWdt>0&&a.width0&&a.height0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}},{key:"performFill",value:function(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),yI(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,t,r,a,o){r!==void 0&&this.resize(r,a,o),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,t,r,a,o){this._updateBoundingBox(e,t,r,a,o)}},{key:"getDimensionsFromLabel",value:function(e,t,r){this.textSize=this.labelModule.getTextSize(e,t,r);var a=this.textSize.width,o=this.textSize.height,s=14;return a===0&&(a=s,o=s),{width:a,height:o}}}]),i}();function Gge(i){var n=Wge();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function Wge(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var Vge=function(i){De(e,i);var n=Gge(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return G(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this.initContextForDraw(r,A),RP(r,this.left,this.top,this.width,this.height,A.borderRadius),this.performFill(r,A),this.updateBoundingBox(a,o,r,s,g),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,g)}},{key:"updateBoundingBox",value:function(r,a,o,s,g){this._updateBoundingBox(r,a,o,s,g);var A=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(A)}},{key:"distanceToBorder",value:function(r,a){r&&this.resize(r);var o=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(a)),Math.abs(this.height/2/Math.sin(a)))+o}}]),e}(wo);function Zge(i){var n=Hge();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function Hge(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var cb=function(i){De(e,i);var n=Zge(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o.labelOffset=0,o.selected=!1,o}return G(e,[{key:"setOptions",value:function(r,a,o){this.options=r,a===void 0&&o===void 0||this.setImages(a,o)}},{key:"setImages",value:function(r,a){a&&this.selected?(this.imageObj=a,this.imageObjAlt=r):(this.imageObj=r,this.imageObjAlt=a)}},{key:"switchImages",value:function(r){var a=r&&!this.selected||!r&&this.selected;if(this.selected=r,this.imageObjAlt!==void 0&&a){var o=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=o}}},{key:"_getImagePadding",value:function(){var r={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var a=this.options.imagePadding;pe(a)=="object"?(r.top=a.top,r.right=a.right,r.bottom=a.bottom,r.left=a.left):(r.top=a,r.right=a,r.bottom=a,r.left=a)}return r}},{key:"_resizeImage",value:function(){var r,a;if(this.options.shapeProperties.useImageSize===!1){var o=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?o=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),r=this.options.size*2*o,a=this.options.size*2*s}else{var g=this._getImagePadding();r=this.imageObj.width+g.left+g.right,a=this.imageObj.height+g.top+g.bottom}this.width=r,this.height=a,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(r,a,o,s){this.initContextForDraw(r,s),km(r,a,o,s.size),this.performFill(r,s)}},{key:"_drawImageAtPosition",value:function(r,a){if(this.imageObj.width!=0){r.globalAlpha=a.opacity!==void 0?a.opacity:1,this.enableShadow(r,a);var o=1;this.options.shapeProperties.interpolation===!0&&(o=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),g=this.left+s.left,A=this.top+s.top,I=this.width-s.left-s.right,C=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(r,o,g,A,I,C),this.disableShadow(r,a)}}},{key:"_drawImageLabel",value:function(r,a,o,s,g){var A=0;if(this.height!==void 0){A=this.height*.5;var I=this.labelModule.getTextSize(r,s,g);I.lineCount>=1&&(A+=I.height/2)}var C=o+A;this.options.label&&(this.labelOffset=A),this.labelModule.draw(r,a,C,s,g,"hanging")}}]),e}(wo);function Uge(i){var n=Yge();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function Yge(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var Kge=function(i){De(e,i);var n=Uge(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return G(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o),g=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=g/2,this.width=g,this.height=g,this.radius=this.width/2}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this._drawRawCircle(r,a,o,A),this.updateBoundingBox(a,o),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,o,s,g)}},{key:"updateBoundingBox",value:function(r,a){this.boundingBox.top=a-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=a+this.options.size}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),e}(cb);function Xge(i){var n=Qge();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function Qge(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var qge=function(i){De(e,i);var n=Xge(e);function e(t,r,a,o,s){var g;return j(this,e),g=n.call(this,t,r,a),g.setImages(o,s),g}return G(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var g=this.options.size*2;this.width=g,this.height=g,this.radius=.5*this.width;return}this.needsRefresh(a,o)&&this._resizeImage()}},{key:"draw",value:function(r,a,o,s,g,A){this.switchImages(s),this.resize();var I=a,C=o;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=a,this.top=o,I+=this.width/2,C+=this.height/2):(this.left=a-this.width/2,this.top=o-this.height/2),this._drawRawCircle(r,I,C,A),r.save(),r.clip(),this._drawImageAtPosition(r,A),r.restore(),this._drawImageLabel(r,I,C,s,g),this.updateBoundingBox(a,o)}},{key:"updateBoundingBox",value:function(r,a){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=a,this.boundingBox.left=r,this.boundingBox.right=r+this.options.size*2,this.boundingBox.bottom=a+this.options.size*2):(this.boundingBox.top=a-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=a+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),e}(cb);function Jge(i){var n=eAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function eAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var fa=function(i){De(e,i);var n=Jge(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(a,o)){var g,A;this.labelModule.getTextSize(r,a,o);var I=2*s.size;this.width=(g=this.customSizeWidth)!==null&&g!==void 0?g:I,this.height=(A=this.customSizeHeight)!==null&&A!==void 0?A:I,this.radius=.5*this.width}}},{key:"_drawShape",value:function(r,a,o,s,g,A,I,C){var l=this;return this.resize(r,A,I,C),this.left=s-this.width/2,this.top=g-this.height/2,this.initContextForDraw(r,C),c4(a)(r,s,g,C.size),this.performFill(r,C),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(r.font=(A?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",r.fillText(this.options.icon.code,s,g)),{drawExternalLabel:function(){if(l.options.label!==void 0){l.labelModule.calculateLabelSize(r,A,I,s,g,"hanging");var d=g+.5*l.height+.5*l.labelModule.size.height;l.labelModule.draw(r,s,d,A,I,"hanging")}l.updateBoundingBox(s,g)}}}},{key:"updateBoundingBox",value:function(r,a){this.boundingBox.top=a-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=a+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(wo);function uE(i,n){var e=at(i);if(Ui){var t=Ui(i);n&&(t=Pt(t).call(t,function(r){return Qi(i,r).enumerable})),e.push.apply(e,t)}return e}function tAe(i){for(var n=1;n"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var nAe=function(i){De(e,i);var n=rAe(e);function e(t,r,a,o){var s;return j(this,e),s=n.call(this,t,r,a,o),s.ctxRenderer=o,s}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g,A),this.left=a-this.width/2,this.top=o-this.height/2,r.save();var I=this.ctxRenderer({ctx:r,id:this.options.id,x:a,y:o,state:{selected:s,hover:g},style:tAe({},A),label:this.options.label});if(I.drawNode!=null&&I.drawNode(),r.restore(),I.drawExternalLabel){var C=I.drawExternalLabel;I.drawExternalLabel=function(){r.save(),C(),r.restore()}}return I.nodeDimensions&&(this.customSizeWidth=I.nodeDimensions.width,this.customSizeHeight=I.nodeDimensions.height),I}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function aAe(i){var n=oAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function oAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var sAe=function(i){De(e,i);var n=aAe(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return G(e,[{key:"resize",value:function(r,a,o){if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o),g=s.width+this.margin.right+this.margin.left;this.width=g,this.height=g,this.radius=this.width/2}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this.initContextForDraw(r,A),xP(r,a-this.width/2,o-this.height/2,this.width,this.height),this.performFill(r,A),this.updateBoundingBox(a,o,r,s,g),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,g)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(wo);function gAe(i){var n=AAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function AAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var IAe=function(i){De(e,i);var n=gAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"diamond",4,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function CAe(i){var n=lAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function lAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var uAe=function(i){De(e,i);var n=CAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"circle",2,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.options.size}}]),e}(fa);function dAe(i){var n=hAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function hAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var dE=function(i){De(e,i);var n=dAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width*.5,this.top=o-this.height*.5,this.initContextForDraw(r,A),bp(r,this.left,this.top,this.width,this.height),this.performFill(r,A),this.updateBoundingBox(a,o,r,s,g),this.labelModule.draw(r,a,o,s,g)}},{key:"distanceToBorder",value:function(r,a){r&&this.resize(r);var o=this.width*.5,s=this.height*.5,g=Math.sin(a)*o,A=Math.cos(a)*s;return o*s/Math.sqrt(g*g+A*A)}}]),e}(wo);function cAe(i){var n=fAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function fAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var vAe=function(i){De(e,i);var n=cAe(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return G(e,[{key:"resize",value:function(r,a,o){this.needsRefresh(a,o)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,a,o,s,g,A){var I=this;return this.resize(r,s,g),this.options.icon.size=this.options.icon.size||50,this.left=a-this.width/2,this.top=o-this.height/2,this._icon(r,a,o,s,g,A),{drawExternalLabel:function(){if(I.options.label!==void 0){var l=5;I.labelModule.draw(r,I.left+I.iconSize.width/2+I.margin.left,o+I.height/2+l,s)}I.updateBoundingBox(a,o)}}}},{key:"updateBoundingBox",value:function(r,a){if(this.boundingBox.top=a-this.options.icon.size*.5,this.boundingBox.left=r-this.options.icon.size*.5,this.boundingBox.right=r+this.options.icon.size*.5,this.boundingBox.bottom=a+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var o=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+o)}}},{key:"_icon",value:function(r,a,o,s,g,A){var I=Number(this.options.icon.size);this.options.icon.code!==void 0?(r.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+I+"px",this.options.icon.face].join(" "),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",this.enableShadow(r,A),r.fillText(this.options.icon.code,a,o),this.disableShadow(r,A)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(wo);function pAe(i){var n=yAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function yAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var mAe=function(i){De(e,i);var n=pAe(e);function e(t,r,a,o,s){var g;return j(this,e),g=n.call(this,t,r,a),g.setImages(o,s),g}return G(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var g=this.options.size*2;this.width=g,this.height=g;return}this.needsRefresh(a,o)&&this._resizeImage()}},{key:"draw",value:function(r,a,o,s,g,A){r.save(),this.switchImages(s),this.resize();var I=a,C=o;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=a,this.top=o,I+=this.width/2,C+=this.height/2):(this.left=a-this.width/2,this.top=o-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var l=this.options.borderWidth,u=this.options.borderWidthSelected||2*this.options.borderWidth,d=(s?u:l)/this.body.view.scale;r.lineWidth=Math.min(this.width,d),r.beginPath();var h=s?this.options.color.highlight.border:g?this.options.color.hover.border:this.options.color.border,c=s?this.options.color.highlight.background:g?this.options.color.hover.background:this.options.color.background;A.opacity!==void 0&&(h=oi(h,A.opacity),c=oi(c,A.opacity)),r.strokeStyle=h,r.fillStyle=c,r.rect(this.left-.5*r.lineWidth,this.top-.5*r.lineWidth,this.width+r.lineWidth,this.height+r.lineWidth),yI(r).call(r),this.performStroke(r,A),r.closePath()}this._drawImageAtPosition(r,A),this._drawImageLabel(r,I,C,s,g),this.updateBoundingBox(a,o),r.restore()}},{key:"updateBoundingBox",value:function(r,a){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=r,this.top=a):(this.left=r-this.width/2,this.top=a-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(cb);function bAe(i){var n=$Ae();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function $Ae(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var wAe=function(i){De(e,i);var n=bAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"square",2,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function EAe(i){var n=OAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function OAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var TAe=function(i){De(e,i);var n=EAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"hexagon",4,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function SAe(i){var n=kAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function kAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var _Ae=function(i){De(e,i);var n=SAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"star",4,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function PAe(i){var n=RAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function RAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var xAe=function(i){De(e,i);var n=PAe(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return G(e,[{key:"resize",value:function(r,a,o){this.needsRefresh(a,o)&&(this.textSize=this.labelModule.getTextSize(r,a,o),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this.enableShadow(r,A),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,g),this.disableShadow(r,A),this.updateBoundingBox(a,o,r,s,g)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(wo);function DAe(i){var n=NAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function NAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var MAe=function(i){De(e,i);var n=DAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"triangle",3,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function FAe(i){var n=BAe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function BAe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var zAe=function(i){De(e,i);var n=FAe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"triangleDown",3,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(fa);function hE(i,n){var e=at(i);if(Ui){var t=Ui(i);n&&(t=Pt(t).call(t,function(r){return Qi(i,r).enumerable})),e.push.apply(e,t)}return e}function cE(i){for(var n=1;ne.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,t,r){var a;if(r!==void 0){var o=e.group;if(t!==void 0&&t.group!==void 0&&o!==t.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof o=="number"||typeof o=="string"&&o!="";if(s){var g=r.get(o);g.opacity!==void 0&&t.opacity===void 0&&(i.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0));var A=Pt(a=Bge(t)).call(a,function(I){return t[I]!=null});A.push("font"),Eu(A,e,g),e.color=Gp(e.color)}}}},{key:"parseOptions",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(Eu(s,e,t,r),i.checkMass(t),e.opacity!==void 0&&(i.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),t.opacity!==void 0&&(i.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!i.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),ni(e,t,"shadow",a),t.color!==void 0&&t.color!==null){var g=Gp(t.color);Xx(e.color,g)}else r===!0&&t.color===null&&(e.color=Un(a.color));t.fixed!==void 0&&t.fixed!==null&&(typeof t.fixed=="boolean"?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(t.fixed.x!==void 0&&typeof t.fixed.x=="boolean"&&(e.fixed.x=t.fixed.x),t.fixed.y!==void 0&&typeof t.fixed.y=="boolean"&&(e.fixed.y=t.fixed.y))),r===!0&&t.font===null&&(e.font=Un(a.font)),i.updateGroupOptions(e,t,o),t.scaling!==void 0&&ni(e.scaling,t.scaling,"label",a.scaling)}},{key:"checkMass",value:function(e,t){if(e.mass!==void 0&&e.mass<=0){var r="";t!==void 0&&(r=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+r+", setting mass to 1.",eD),e.mass=1}}}]),i}();function LAe(i,n){var e=typeof On<"u"&&ua(i)||i["@@iterator"];if(!e){if(ce(i)||(e=jAe(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function jAe(i,n){var e;if(i){if(typeof i=="string")return fE(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return fE(i,n)}}function fE(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var r=0,a=at(this.body.nodes);r1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.data.nodes;if(sN("id",e))this.body.data.nodes=e;else if(ce(e))this.body.data.nodes=new Vs,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new Vs;else throw new TypeError("Array or DataSet expected");if(r&&ye(this.nodesListeners,function(s,g){r.off(g,s)}),this.body.nodes={},this.body.data.nodes){var a=this;ye(this.nodesListeners,function(s,g){a.body.data.nodes.on(g,s)});var o=this.body.data.nodes.getIds();this.add(o,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,a=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:Zr;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ye(this.body.nodes,function(r,a){var o=e.body.data.nodes.get(a);o!==void 0&&(t===!0&&r.setOptions({x:null,y:null}),r.setOptions({fixed:!1}),r.setOptions(o))})}},{key:"getPositions",value:function(e){var t={};if(e!==void 0){if(ce(e)===!0){for(var r=0;r0?(g=s/o,t+=g*g):t+=s;return o===1/0?1/0:o*hIe(t)}});var fIe=Ee,vIe=fIe.Math.hypot,pIe=vIe,yIe=pIe,mIe=yIe,bIe=X(mIe);function uN(i){var n=$Ie();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function $Ie(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var Ot=function(){function i(){j(this,i)}return G(i,null,[{key:"transform",value:function(e,t){ce(e)||(e=[e]);for(var r=t.point.x,a=t.point.y,o=t.angle,s=t.length,g=0;g4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,t.dashes!==!1?this._drawDashedLine(e,t,o):this._drawLine(e,t,o)}},{key:"_drawLine",value:function(e,t,r,a,o){if(this.from!=this.to)this._line(e,t,r,a,o);else{var s=this._getCircleData(e),g=be(s,3),A=g[0],I=g[1],C=g[2];this._circle(e,t,A,I,C)}}},{key:"_drawDashedLine",value:function(e,t,r,a,o){e.lineCap="round";var s=ce(t.dashes)?t.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,r);else{var g=this._getCircleData(e),A=be(g,3),I=A[0],C=A[1],l=A[2];this._circle(e,t,I,C,l)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)DP(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var u=this._getCircleData(e),d=be(u,3),h=d[0],c=d[1],f=d[2];this._circle(e,t,h,c,f)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}},{key:"findBorderPosition",value:function(e,t,r){return this.from!=this.to?this._findBorderPosition(e,t,r):this._findBorderPositionCircle(e,t,r)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var t,r=zt(t=this._getCircleData(e)).call(t,0,2),a=be(r,2),o=a[0],s=a[1];return{from:this._findBorderPositionCircle(this.from,e,{x:o,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:o,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var t=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var r=IN(e,this.options.selfReference.angle,t,this.from);return[r.x,r.y,t]}},{key:"_pointOnCircle",value:function(e,t,r,a){var o=a*2*Math.PI;return{x:e+r*Math.cos(o),y:t-r*Math.sin(o)}}},{key:"_findBorderPositionCircle",value:function(e,t,r){var a=r.x,o=r.y,s=r.low,g=r.high,A=r.direction,I=10,C=this.options.selfReference.size,l=.05,u,d=(s+g)*.5,h=0;this.options.arrowStrikethrough===!0&&(A===-1?h=this.options.endPointOffset.from:A===1&&(h=this.options.endPointOffset.to));var c=0;do{d=(s+g)*.5,u=this._pointOnCircle(a,o,C,d);var f=Math.atan2(e.y-u.y,e.x-u.x),v=e.distanceToBorder(t,f)+h,y=Math.sqrt(Math.pow(u.x-e.x,2)+Math.pow(u.y-e.y,2)),p=v-y;if(Math.abs(p)0?A>0?s=d:g=d:A>0?g=d:s=d,++c}while(s<=g&&c1?C=1:C<0&&(C=0);var l=e+C*g,u=t+C*A,d=l-o,h=u-s;return Math.sqrt(d*d+h*h)}},{key:"getArrowData",value:function(e,t,r,a,o,s){var g,A,I,C,l,u,d,h=s.width;t==="from"?(I=this.from,C=this.to,l=s.fromArrowScale<0,u=Math.abs(s.fromArrowScale),d=s.fromArrowType):t==="to"?(I=this.to,C=this.from,l=s.toArrowScale<0,u=Math.abs(s.toArrowScale),d=s.toArrowType):(I=this.to,C=this.from,l=s.middleArrowScale<0,u=Math.abs(s.middleArrowScale),d=s.middleArrowType);var c=15*u+3*h;if(I!=C){var f=bIe(I.x-C.x,I.y-C.y),v=c/f;if(t!=="middle")if(this.options.smooth.enabled===!0){var y=this._findBorderPosition(I,e,{via:r}),p=this.getPoint(y.t+v*(t==="from"?1:-1),r);g=Math.atan2(y.y-p.y,y.x-p.x),A=y}else g=Math.atan2(I.y-C.y,I.x-C.x),A=this._findBorderPosition(I,e);else{var m=(l?-v:v)/2,w=this.getPoint(.5+m,r),k=this.getPoint(.5-m,r);g=Math.atan2(w.y-k.y,w.x-k.x),A=this.getPoint(.5,r)}}else{var R=this._getCircleData(e),O=be(R,3),_=O[0],N=O[1],K=O[2];if(t==="from"){var H=this.options.selfReference.angle,Ce=this.options.selfReference.angle+Math.PI,$e=this._findBorderPositionCircle(this.from,e,{x:_,y:N,low:H,high:Ce,direction:-1});g=$e.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,A=$e}else if(t==="to"){var de=this.options.selfReference.angle,Ye=this.options.selfReference.angle+Math.PI,Fe=this._findBorderPositionCircle(this.from,e,{x:_,y:N,low:de,high:Ye,direction:1});g=Fe.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,A=Fe}else{var Oe=this.options.selfReference.angle/(2*Math.PI);A=this._pointOnCircle(_,N,K,Oe),g=Oe*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var Ke=A.x-c*.9*Math.cos(g),Te=A.y-c*.9*Math.sin(g),oe={x:Ke,y:Te};return{point:A,core:oe,angle:g,length:c,type:d}}},{key:"drawArrowHead",value:function(e,t,r,a,o){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width;var s=dN.draw(e,o);s&&(this.enableShadow(e,t),yI(e).call(e),this.disableShadow(e,t))}},{key:"enableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,t){if(t.background!==!1){var r={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=r.strokeStyle,e.lineWidth=r.lineWidth,e.dashes=r.dashes,this.setStrokeDashed(e,t.dashes)}}},{key:"setStrokeDashed",value:function(e,t){if(t!==!1)if(e.setLineDash!==void 0){var r=ce(t)?t:[5,5];e.setLineDash(r)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),i}();function $E(i,n){var e=at(i);if(Ui){var t=Ui(i);n&&(t=Pt(t).call(t,function(r){return Qi(i,r).enumerable})),e.push.apply(e,t)}return e}function wE(i){for(var n=1;n"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var fb=function(i){De(e,i);var n=MIe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"_findBorderPositionBezier",value:function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,g=.2,A=!1,I=1,C=0,l=this.to,u,d,h=this.options.endPointOffset?this.options.endPointOffset.to:0;r.id===this.from.id&&(l=this.from,A=!0,h=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(h=0);var c=0;do{d=(C+I)*.5,u=this.getPoint(d,o);var f=Math.atan2(l.y-u.y,l.x-u.x),v=l.distanceToBorder(a,f)+h,y=Math.sqrt(Math.pow(u.x-l.x,2)+Math.pow(u.y-l.y,2)),p=v-y;if(Math.abs(p)0&&(l=this._getDistanceToLine(f,v,h,c,g,A),C=l"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var EE=function(i){De(e,i);var n=BIe(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o.via=o.via,o._boundFunction=function(){o.positionBezierNode()},o._body.emitter.on("_repositionBezierNodes",o._boundFunction),o}return G(e,[{key:"setOptions",value:function(r){Vl(q(e.prototype),"setOptions",this).call(this,r);var a=!1;this.options.physics!==r.physics&&(a=!0),this.options=r,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),a===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var r="edgeId:"+this.id,a=this._body.functions.createNode({id:r,shape:"circle",physics:!0,hidden:!0});this._body.nodes[r]=a,this.via=a,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(r,a,o){this._bezierCurve(r,a,o)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var o=this._getCircleData(),s=be(o,3),g=s[0],A=s[1],I=s[2],C=2*Math.PI*(1-r);return{x:g+I*Math.sin(C),y:A+I-I*(1-Math.cos(C))}}else return{x:Math.pow(1-r,2)*this.fromPoint.x+2*r*(1-r)*a.x+Math.pow(r,2)*this.toPoint.x,y:Math.pow(1-r,2)*this.fromPoint.y+2*r*(1-r)*a.y+Math.pow(r,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,a){return this._findBorderPositionBezier(r,a,this.via)}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){return this._getDistanceToBezierEdge(r,a,o,s,g,A,this.via)}}]),e}(fb);function LIe(i){var n=jIe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function jIe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var OE=function(i){De(e,i);var n=LIe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"_line",value:function(r,a,o){this._bezierCurve(r,a,o)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var r=this.options.smooth.roundness,a=this.options.smooth.type,o=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(a==="discrete"||a==="diagonalCross"){var g,A;o<=s?g=A=r*s:g=A=r*o,this.from.x>this.to.x&&(g=-g),this.from.y>=this.to.y&&(A=-A);var I=this.from.x+g,C=this.from.y+A;return a==="discrete"&&(o<=s?I=othis.to.x&&(R=-R),this.from.y>=this.to.y&&(O=-O);var _=this.from.x+R,N=this.from.y+O;return o<=s?this.from.x<=this.to.x?_=this.to.x<_?this.to.x:_:_=this.to.x>_?this.to.x:_:this.from.y>=this.to.y?N=this.to.y>N?this.to.y:N:N=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(r,a,o.via)}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){var I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(r,a,o,s,g,A,I)}},{key:"getPoint",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),o=r,s=Math.pow(1-o,2)*this.fromPoint.x+2*o*(1-o)*a.x+Math.pow(o,2)*this.toPoint.x,g=Math.pow(1-o,2)*this.fromPoint.y+2*o*(1-o)*a.y+Math.pow(o,2)*this.toPoint.y;return{x:s,y:g}}}]),e}(fb);function GIe(i){var n=WIe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function WIe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var VIe=function(i){De(e,i);var n=GIe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"_getDistanceToBezierEdge2",value:function(r,a,o,s,g,A,I,C){for(var l=1e9,u=r,d=a,h=[0,0,0,0],c=1;c<10;c++){var f=.1*c;h[0]=Math.pow(1-f,3),h[1]=3*f*Math.pow(1-f,2),h[2]=3*Math.pow(f,2)*(1-f),h[3]=Math.pow(f,3);var v=h[0]*r+h[1]*I.x+h[2]*C.x+h[3]*o,y=h[0]*a+h[1]*I.y+h[2]*C.y+h[3]*s;if(c>0){var p=this._getDistanceToLine(u,d,v,y,g,A);l=p"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var TE=function(i){De(e,i);var n=ZIe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"_line",value:function(r,a,o){var s=o[0],g=o[1];this._bezierCurve(r,a,s,g)}},{key:"_getViaCoordinates",value:function(){var r=this.from.x-this.to.x,a=this.from.y-this.to.y,o,s,g,A,I=this.options.smooth.roundness;return(Math.abs(r)>Math.abs(a)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,A=this.to.y,o=this.from.x-I*r,g=this.to.x+I*r):(s=this.from.y-I*a,A=this.to.y+I*a,o=this.from.x,g=this.to.x),[{x:o,y:s},{x:g,y:A}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(r,a){return this._findBorderPositionBezier(r,a)}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){var I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),C=be(I,2),l=C[0],u=C[1];return this._getDistanceToBezierEdge2(r,a,o,s,g,A,l,u)}},{key:"getPoint",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),o=be(a,2),s=o[0],g=o[1],A=r,I=[Math.pow(1-A,3),3*A*Math.pow(1-A,2),3*Math.pow(A,2)*(1-A),Math.pow(A,3)],C=I[0]*this.fromPoint.x+I[1]*s.x+I[2]*g.x+I[3]*this.toPoint.x,l=I[0]*this.fromPoint.y+I[1]*s.y+I[2]*g.y+I[3]*this.toPoint.y;return{x:C,y:l}}}]),e}(VIe);function UIe(i){var n=YIe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function YIe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var SE=function(i){De(e,i);var n=UIe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"_line",value:function(r,a){r.beginPath(),r.moveTo(this.fromPoint.x,this.fromPoint.y),r.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(r,a),r.stroke(),this.disableShadow(r,a)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(r){return{x:(1-r)*this.fromPoint.x+r*this.toPoint.x,y:(1-r)*this.fromPoint.y+r*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,a){var o=this.to,s=this.from;r.id===this.from.id&&(o=this.from,s=this.to);var g=Math.atan2(o.y-s.y,o.x-s.x),A=o.x-s.x,I=o.y-s.y,C=Math.sqrt(A*A+I*I),l=r.distanceToBorder(a,g),u=(C-l)/C;return{x:(1-u)*s.x+u*o.x,y:(1-u)*s.y+u*o.y,t:0}}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){return this._getDistanceToLine(r,a,o,s,g,A)}}]),e}(hN),Ps=function(){function i(n,e,t,r,a){if(j(this,i),e===void 0)throw new Error("No body provided");this.options=Un(r),this.globalOptions=r,this.defaultOptions=a,this.body=e,this.imagelist=t,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new CN(this.body,this.options,!0),this.setOptions(n)}return G(i,[{key:"setOptions",value:function(e){if(e){var t=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;i.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=AN(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=hb("edge",r),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,t=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,r=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,a=this.options.color.inherit,o={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:r,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:a?void 0:this.options.color.color,inheritsColor:a,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?o.width=s(o.width):typeof s=="number"&&(o.width+=s),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.highlight,o.shadow=this.options.shadow.enabled}else if(this.hover){var g=this.options.hoverWidth;typeof g=="function"?o.width=g(o.width):typeof g=="number"&&(o.width+=g),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.hover,o.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(o,this.options.id,this.selected,this.hover),o.color!==void 0&&(o.inheritsColor=!1),o.shadow===!1&&(o.shadowColor!==this.options.shadow.color||o.shadowSize!==this.options.shadow.size||o.shadowX!==this.options.shadow.x||o.shadowY!==this.options.shadow.y)&&(o.shadow=!0));else o.shadow=this.options.shadow.enabled,o.width=Math.max(o.width,.3/this.body.view.scale);return o}},{key:"updateLabelModule",value:function(e){var t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,t=!1,r=!0;return this.edgeType!==void 0&&((this.edgeType instanceof EE&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof TE&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof OE&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof SE&&e.type.enabled===!1)&&(r=!1),r===!0&&(t=this.cleanup())),r===!0?e.enabled===!0?e.type==="dynamic"?(t=!0,this.edgeType=new EE(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new TE(this.options,this.body,this.labelModule):this.edgeType=new OE(this.options,this.body,this.labelModule):this.edgeType=new SE(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,t,r){if(this.options.value!==void 0){var a=this.options.scaling.customScalingFunction(e,t,r,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+a*s}this.options.width=this.options.scaling.min+a*o}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var t=this.getFormattingValues();if(!t.hidden){var r=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,r),this.drawLabel(e,r)}}},{key:"drawArrows",value:function(e){var t=this.getFormattingValues();if(!t.hidden){var r=this.edgeType.getViaNode(),a={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(a.from=this.edgeType.getArrowData(e,"from",r,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.fromPoint=a.from.core),t.fromArrowSrc&&(a.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(a.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(a.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(a.to=this.edgeType.getArrowData(e,"to",r,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.toPoint=a.to.core),t.toArrowSrc&&(a.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(a.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(a.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(a.middle=this.edgeType.getArrowData(e,"middle",r,this.selected,this.hover,t),t.middleArrowSrc&&(a.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(a.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(a.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.to)}}},{key:"drawLabel",value:function(e,t){if(this.options.label!==void 0){var r=this.from,a=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var o;if(r.id!=a.id){this.labelModule.pointToSelf=!1,o=this.edgeType.getPoint(.5,t),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,o.x,o.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var g=IN(e,this.options.selfReference.angle,this.options.selfReference.size,r);o=this._pointOnCircle(g.x,g.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,o.x,o.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var t=[];if(this.labelModule.visible()){var r=this._getRotation();ny(this.labelModule.getSize(),e,r)&&t.push({edgeId:this.id,labelId:0})}var a={left:e.x,top:e.y};return this.isOverlappingWith(a)&&t.push({edgeId:this.id}),t}},{key:"isOverlappingWith",value:function(e){if(this.connected){var t=10,r=this.from.x,a=this.from.y,o=this.to.x,s=this.to.y,g=e.left,A=e.top,I=this.edgeType.getDistanceToEdge(r,a,o,s,g,A);return I0&&s<0)&&(g+=Math.PI),a.angle=g,a}},{key:"_pointOnCircle",value:function(e,t,r,a){return{x:e+r*Math.cos(a),y:t-r*Math.sin(a)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(yg(s,e,t,r),t.endPointOffset!==void 0&&t.endPointOffset.from!==void 0&&(Ma(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=a.endPointOffset.from!==void 0?a.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),t.endPointOffset!==void 0&&t.endPointOffset.to!==void 0&&(Ma(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=a.endPointOffset.to!==void 0?a.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Ru(t.label)?e.label=t.label:Ru(e.label)||(e.label=void 0),ni(e,t,"smooth",a),ni(e,t,"shadow",a),ni(e,t,"background",a),t.dashes!==void 0&&t.dashes!==null?e.dashes=t.dashes:r===!0&&t.dashes===null&&(e.dashes=Zn(a.dashes)),t.scaling!==void 0&&t.scaling!==null?(t.scaling.min!==void 0&&(e.scaling.min=t.scaling.min),t.scaling.max!==void 0&&(e.scaling.max=t.scaling.max),ni(e.scaling,t.scaling,"label",a.scaling)):r===!0&&t.scaling===null&&(e.scaling=Zn(a.scaling)),t.arrows!==void 0&&t.arrows!==null)if(typeof t.arrows=="string"){var g=t.arrows.toLowerCase();e.arrows.to.enabled=Pe(g).call(g,"to")!=-1,e.arrows.middle.enabled=Pe(g).call(g,"middle")!=-1,e.arrows.from.enabled=Pe(g).call(g,"from")!=-1}else if(pe(t.arrows)==="object")ni(e.arrows,t.arrows,"to",a.arrows),ni(e.arrows,t.arrows,"middle",a.arrows),ni(e.arrows,t.arrows,"from",a.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+vg(t.arrows));else r===!0&&t.arrows===null&&(e.arrows=Zn(a.arrows));if(t.color!==void 0&&t.color!==null){var A=Os(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,I=e.color;if(o)tt(I,a.color,!1,r);else for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&delete I[C];if(Os(I))I.color=I,I.highlight=I,I.hover=I,I.inherit=!1,A.opacity===void 0&&(I.opacity=1);else{var l=!1;A.color!==void 0&&(I.color=A.color,l=!0),A.highlight!==void 0&&(I.highlight=A.highlight,l=!0),A.hover!==void 0&&(I.hover=A.hover,l=!0),A.inherit!==void 0&&(I.inherit=A.inherit),A.opacity!==void 0&&(I.opacity=Math.min(1,Math.max(0,A.opacity))),l===!0?I.inherit=!1:I.inherit===void 0&&(I.inherit="from")}}else r===!0&&t.color===null&&(e.color=Un(a.color));r===!0&&t.font===null&&(e.font=Un(a.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}}]),i}(),KIe=function(){function i(n,e,t){var r,a=this;j(this,i),this.body=n,this.images=e,this.groups=t,this.body.functions.createEdge=z(r=this.create).call(r,this),this.edgesListeners={add:function(s,g){a.add(g.items)},update:function(s,g){a.update(g.items)},remove:function(s,g){a.remove(g.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,g,A,I){if(g===s)return .5;var C=1/(g-s);return Math.max(0,(I-s)*C)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},tt(this.options,this.defaultOptions),this.bindEventListeners()}return G(i,[{key:"bindEventListeners",value:function(){var e=this,t,r;this.body.emitter.on("_forceDisableDynamicCurves",function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a==="dynamic"&&(a="continuous");var s=!1;for(var g in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,g)){var A=e.body.edges[g],I=e.body.data.edges.get(g);if(I!=null){var C=I.smooth;C!==void 0&&C.enabled===!0&&C.type==="dynamic"&&(a===void 0?A.setOptions({smooth:!1}):A.setOptions({smooth:{type:a}}),s=!0)}}o===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",z(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",z(r=this.refresh).call(r,this)),this.body.emitter.on("destroy",function(){ye(e.edgesListeners,function(a,o){e.body.data.edges&&e.body.data.edges.off(o,a)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Ps.parseOptions(this.options,e,!0,this.defaultOptions,!0);var t=!1;if(e.smooth!==void 0)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&(t=this.body.edges[r].updateEdgeType()||t);if(e.font!==void 0)for(var a in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,a)&&this.body.edges[a].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||t===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.body.data.edges;if(sN("id",e))this.body.data.edges=e;else if(ce(e))this.body.data.edges=new Vs,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new Vs;else throw new TypeError("Array or DataSet expected");if(a&&ye(this.edgesListeners,function(s,g){a.off(g,s)}),this.body.edges={},this.body.data.edges){ye(this.edgesListeners,function(s,g){t.body.data.edges.on(g,s)});var o=this.body.data.edges.getIds();this.add(o,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),r===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.edges,a=this.body.data.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var r=this.body.edges;ye(e,function(a){var o=r[a];o!==void 0&&o.remove()}),t&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;ye(this.body.edges,function(t,r){var a=e.body.data.edges.get(r);a!==void 0&&t.setOptions(a)})}},{key:"create",value:function(e){return new Ps(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,t=this.body.nodes,r=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var a=r[e];a.from=null,a.to=null,a.connect()}}},{key:"getConnectedNodes",value:function(e){var t=[];if(this.body.edges[e]!==void 0){var r=this.body.edges[e];r.fromId!==void 0&&t.push(r.fromId),r.toId!==void 0&&t.push(r.toId)}return t}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,t=[];ye(this.body.edges,function(r,a){var o=e.body.nodes[r.toId],s=e.body.nodes[r.fromId];o!==void 0&&o.isCluster===!0||s!==void 0&&s.isCluster===!0||(o===void 0||s===void 0)&&t.push(a)}),this.remove(t,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var t=this.body.edges,r=[];_e(e).call(e,function(a,o){var s=t[o];s===void 0&&r.push(o)}),this.add(r,!0)}}}]),i}(),cN=function(){function i(n,e,t){j(this,i),this.body=n,this.physicsBody=e,this.barnesHutTree,this.setOptions(t),this._rng=kd("BARNES HUT SOLVER")}return G(i,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,t=this.body.nodes,r=this.physicsBody.physicsNodeIndices,a=r.length,o=this._formBarnesHutTree(t,r);this.barnesHutTree=o;for(var s=0;s0&&this._getForceContributions(o.root,e)}}},{key:"_getForceContributions",value:function(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}},{key:"_getForceContribution",value:function(e,t){if(e.childrenCount>0){var r=e.centerOfMass.x-t.x,a=e.centerOfMass.y-t.y,o=Math.sqrt(r*r+a*a);o*e.calcSize>this.thetaInversed?this._calculateForces(o,r,a,t,e):e.childrenCount===4?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(o,r,a,t,e)}}},{key:"_calculateForces",value:function(e,t,r,a,o){e===0&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&a.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*a.shape.radius,e-a.shape.radius));var s=this.options.gravitationalConstant*o.mass*a.options.mass/Math.pow(e,3),g=t*s,A=r*s;this.physicsBody.forces[a.id].x+=g,this.physicsBody.forces[a.id].y+=A}},{key:"_formBarnesHutTree",value:function(e,t){for(var r,a=t.length,o=e[t[0]].x,s=e[t[0]].y,g=e[t[0]].x,A=e[t[0]].y,I=1;I0&&(lg&&(g=l),uA&&(A=u))}var d=Math.abs(g-o)-Math.abs(A-s);d>0?(s-=.5*d,A+=.5*d):(o+=.5*d,g-=.5*d);var h=1e-5,c=Math.max(h,Math.abs(g-o)),f=.5*c,v=.5*(o+g),y=.5*(s+A),p={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-f,maxX:v+f,minY:y-f,maxY:y+f},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(p.root);for(var m=0;m0&&this._placeInTree(p.root,r);return p}},{key:"_updateBranchMass",value:function(e,t){var r=e.centerOfMass,a=e.mass+t.options.mass,o=1/a;r.x=r.x*e.mass+t.x*t.options.mass,r.x*=o,r.y=r.y*e.mass+t.y*t.options.mass,r.y*=o,e.mass=a;var s=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?a.maxY>t.y?o="NW":o="SW":a.maxY>t.y?o="NE":o="SE",this._placeInRegion(e,t,o)}},{key:"_placeInRegion",value:function(e,t,r){var a=e.children[r];switch(a.childrenCount){case 0:a.children.data=t,a.childrenCount=1,this._updateBranchMass(a,t);break;case 1:a.children.data.x===t.x&&a.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(a),this._placeInTree(a,t));break;case 4:this._placeInTree(a,t);break}}},{key:"_splitBranch",value:function(e){var t=null;e.childrenCount===1&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),t!=null&&this._placeInTree(e,t)}},{key:"_insertRegion",value:function(e,t){var r,a,o,s,g=.5*e.size;switch(t){case"NW":r=e.range.minX,a=e.range.minX+g,o=e.range.minY,s=e.range.minY+g;break;case"NE":r=e.range.minX+g,a=e.range.maxX,o=e.range.minY,s=e.range.minY+g;break;case"SW":r=e.range.minX,a=e.range.minX+g,o=e.range.minY+g,s=e.range.maxY;break;case"SE":r=e.range.minX+g,a=e.range.maxX,o=e.range.minY+g,s=e.range.maxY;break}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:r,maxX:a,minY:o,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,t){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}},{key:"_drawBranch",value:function(e,t,r){r===void 0&&(r="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=r,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}]),i}(),XIe=function(){function i(n,e,t){j(this,i),this._rng=kd("REPULSION SOLVER"),this.body=n,this.physicsBody=e,this.setOptions(t)}return G(i,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,t,r,a,o,s,g,A,I=this.body.nodes,C=this.physicsBody.physicsNodeIndices,l=this.physicsBody.forces,u=this.options.nodeDistance,d=-2/3/u,h=4/3,c=0;c"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var tCe=function(i){De(e,i);var n=JIe(e);function e(t,r,a){var o;return j(this,e),o=n.call(this,t,r,a),o._rng=kd("FORCE ATLAS 2 BASED REPULSION SOLVER"),o}return G(e,[{key:"_calculateForces",value:function(r,a,o,s,g){r===0&&(r=.1*this._rng(),a=r),this.overlapAvoidanceFactor<1&&s.shape.radius&&(r=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,r-s.shape.radius));var A=s.edges.length+1,I=this.options.gravitationalConstant*g.mass*s.options.mass*A/Math.pow(r,2),C=a*I,l=o*I;this.physicsBody.forces[s.id].x+=C,this.physicsBody.forces[s.id].y+=l}}]),e}(cN);function rCe(i){var n=iCe();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function iCe(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var nCe=function(i){De(e,i);var n=rCe(e);function e(t,r,a){return j(this,e),n.call(this,t,r,a)}return G(e,[{key:"_calculateForces",value:function(r,a,o,s,g){if(r>0){var A=g.edges.length+1,I=this.options.centralGravity*A*g.options.mass;s[g.id].x=a*I,s[g.id].y=o*I}}}]),e}(Zl),aCe=function(){function i(n){j(this,i),this.body=n,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Et(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return G(i,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Eu(["stabilization"],this.options,e),ni(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var t=this.options.wind;t&&((typeof t.x!="number"||Hp(t.x))&&(t.x=0),(typeof t.y!="number"||Hp(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new tCe(this.body,this.physicsBody,e),this.edgesSolver=new qc(this.body,this.physicsBody,e),this.gravitySolver=new nCe(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new XIe(this.body,this.physicsBody,e),this.edgesSolver=new qc(this.body,this.physicsBody,e),this.gravitySolver=new Zl(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new QIe(this.body,this.physicsBody,e),this.edgesSolver=new qIe(this.body,this.physicsBody,e),this.gravitySolver=new Zl(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new cN(this.body,this.physicsBody,e),this.edgesSolver=new qc(this.body,this.physicsBody,e),this.gravitySolver=new Zl(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=z(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=yu();this.physicsTick();var t=yu()-e;(t<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Ei(function(){e.body.emitter.emit("stabilized",{iterations:t}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,t=0,r=0,a=5,o=0;os&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var t=this.body.nodes[e],r=this.physicsBody.forces[e];this.options.wind&&(r.x+=this.options.wind.x,r.y+=this.options.wind.y);var a=this.physicsBody.velocities[e];this.previousStates[e]={x:t.x,y:t.y,vx:a.x,vy:a.y},t.options.fixed.x===!1?(a.x=this.calculateComponentVelocity(a.x,r.x,t.options.mass),t.x+=a.x*this.timestep):(r.x=0,a.x=0),t.options.fixed.y===!1?(a.y=this.calculateComponentVelocity(a.y,r.y,t.options.mass),t.y+=a.y*this.timestep):(r.y=0,a.y=0);var o=Math.sqrt(Math.pow(a.x,2)+Math.pow(a.y,2));return o}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){var r=e[t].options.fixed;this.freezeCache[t]={x:r.x,y:r.y},r.x=!0,r.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.freezeCache[t]!==void 0&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof t!="number"&&(t=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",t)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=t,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Ei(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,t=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,a=-1e9,o=1e9,s=-1e9,g;if(t.length>0)for(var A=0;Ag.shape.boundingBox.left&&(o=g.shape.boundingBox.left),sg.shape.boundingBox.top&&(r=g.shape.boundingBox.top),a1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,a=-1e9,o=1e9,s=-1e9,g;if(t.length>0)for(var A=0;Ag.x&&(o=g.x),sg.y&&(r=g.y),a"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var gCe=function(i){De(e,i);var n=oCe(e);function e(t,r,a,o,s,g){var A;return j(this,e),A=n.call(this,t,r,a,o,s,g),A.isCluster=!0,A.containedNodes={},A.containedEdges={},A}return G(e,[{key:"_openChildCluster",value:function(r){var a=this,o=this.body.nodes[r];if(this.containedNodes[r]===void 0)throw new Error("node with id: "+r+" not in current cluster");if(!o.isCluster)throw new Error("node with id: "+r+" is not a cluster");delete this.containedNodes[r],ye(o.edges,function(s){delete a.containedEdges[s.id]}),ye(o.containedNodes,function(s,g){a.containedNodes[g]=s}),o.containedNodes={},ye(o.containedEdges,function(s,g){a.containedEdges[g]=s}),o.containedEdges={},ye(o.edges,function(s){ye(a.edges,function(g){var A,I,C=Pe(A=g.clusteringEdgeReplacingIds).call(A,s.id);C!==-1&&(ye(s.clusteringEdgeReplacingIds,function(l){g.clusteringEdgeReplacingIds.push(l),a.body.edges[l].edgeReplacedById=g.id}),ji(I=g.clusteringEdgeReplacingIds).call(I,C,1))})}),o.edges=[]}}]),e}(Zr),ACe=function(){function i(n){var e=this;j(this,i),this.body=n,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Et(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return G(i,[{key:"clusterByHubsize",value:function(e,t){e===void 0?e=this._getHubSize():pe(e)==="object"&&(t=this._checkOptions(e),e=this._getHubSize());for(var r=[],a=0;a=e&&r.push(o.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");t=this._checkOptions(t);var a={},o={};ye(this.body.nodes,function(s,g){s.options&&t.joinCondition(s.options)===!0&&(a[g]=s,ye(s.edges,function(A){e.clusteredEdges[A.id]===void 0&&(o[A.id]=A)}))}),this._cluster(a,o,t,r)}},{key:"clusterByEdgeCount",value:function(e,t){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=this._checkOptions(t);for(var o=[],s={},g,A,I,C=function(){var h={},c={},f=r.body.nodeIndices[l],v=r.body.nodes[f];if(s[f]===void 0){I=0,A=[];for(var y=0;y0&&at(c).length>0&&m===!0){var R=function(){for(var H=0;H1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,t)}},{key:"clusterBridges",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,t)}},{key:"clusterByConnection",value:function(e,t){var r,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var o=this.body.nodes[e];t=this._checkOptions(t,o),t.clusterNodeProperties.x===void 0&&(t.clusterNodeProperties.x=o.x),t.clusterNodeProperties.y===void 0&&(t.clusterNodeProperties.y=o.y),t.clusterNodeProperties.fixed===void 0&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=o.options.fixed.x,t.clusterNodeProperties.fixed.y=o.options.fixed.y);var s={},g={},A=o.id,I=dr.cloneOptions(o);s[A]=o;for(var C=0;C-1&&(g[y.id]=y)}this._cluster(s,g,t,a)}},{key:"_createClusterEdges",value:function(e,t,r,a){for(var o,s,g,A,I,C,l=at(e),u=[],d=0;d0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&o.push(s);for(var g=0;ga?g.x:a,o=g.ys?g.y:s;return{x:.5*(r+a),y:.5*(o+s)}}},{key:"openCluster",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var a=this.body.nodes[e];if(a===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(a.isCluster!==!0||a.containedNodes===void 0||a.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var o=this.findNode(e),s=Pe(o).call(o,e)-1;if(s>=0){var g=o[s],A=this.body.nodes[g];A._openChildCluster(e),delete this.body.nodes[e],r===!0&&this.body.emitter.emit("_dataChanged");return}var I=a.containedNodes,C=a.containedEdges;if(t!==void 0&&t.releaseFunction!==void 0&&typeof t.releaseFunction=="function"){var l={},u={x:a.x,y:a.y};for(var d in I)if(Object.prototype.hasOwnProperty.call(I,d)){var h=this.body.nodes[d];l[d]={x:h.x,y:h.y}}var c=t.releaseFunction(u,l);for(var f in I)if(Object.prototype.hasOwnProperty.call(I,f)){var v=this.body.nodes[f];c[f]!==void 0&&(v.x=c[f].x===void 0?a.x:c[f].x,v.y=c[f].y===void 0?a.y:c[f].y)}}else ye(I,function(Fe){Fe.options.fixed.x===!1&&(Fe.x=a.x),Fe.options.fixed.y===!1&&(Fe.y=a.y)});for(var y in I)if(Object.prototype.hasOwnProperty.call(I,y)){var p=this.body.nodes[y];p.vx=a.vx,p.vy=a.vy,p.setOptions({physics:!0}),delete this.clusteredNodes[y]}for(var m=[],w=0;w0&&sa&&(a=s.edges.length),e+=s.edges.length,t+=Math.pow(s.edges.length,2),r+=1}e=e/r,t=t/r;var g=t-Math.pow(e,2),A=Math.sqrt(g),I=Math.floor(e+2*A);return I>a&&(I=a),I}},{key:"_createClusteredEdge",value:function(e,t,r,a,o){var s=dr.cloneOptions(r,"edge");tt(s,a),s.from=e,s.to=t,s.id="clusterEdge:"+_s(),o!==void 0&&tt(s,o);var g=this.body.functions.createEdge(s);return g.clusteringEdgeReplacingIds=[r.id],g.connect(),this.body.edges[g.id]=g,g}},{key:"_clusterEdges",value:function(e,t,r,a){if(t instanceof Ps){var o=t,s={};s[o.id]=o,t=s}if(e instanceof Zr){var g=e,A={};A[g.id]=g,e=A}if(r==null)throw new Error("_clusterEdges: parameter clusterNode required");a===void 0&&(a=r.clusterEdgeProperties),this._createClusterEdges(e,t,r,a);for(var I in t)if(Object.prototype.hasOwnProperty.call(t,I)&&this.body.edges[I]!==void 0){var C=this.body.edges[I];this._backupEdgeOptions(C),C.setOptions({physics:!1})}for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(this.clusteredNodes[l]={clusterId:r.id,node:this.body.nodes[l]},this.body.nodes[l].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var t=this.clusteredNodes[e];if(t!==void 0){var r=t.clusterId;if(r!==void 0)return this.body.nodes[r]}}}},{key:"_filter",value:function(e,t){var r=[];return ye(e,function(a){t(a)&&r.push(a)}),r}},{key:"_updateState",value:function(){var e=this,t,r=[],a={},o=function(d){ye(e.body.nodes,function(h){h.isCluster===!0&&d(h)})};for(t in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)){var s=this.body.nodes[t];s===void 0&&r.push(t)}o(function(u){for(var d=0;d0}(!u.endPointsValid()||!h)&&(a[d]=d)}),o(function(u){ye(a,function(d){delete u.containedEdges[d],ye(u.edges,function(h,c){if(h.id===d){u.edges[c]=null;return}h.clusteringEdgeReplacingIds=e._filter(h.clusteringEdgeReplacingIds,function(f){return!a[f]})}),u.edges=e._filter(u.edges,function(h){return h!==null})})}),ye(a,function(u){delete e.clusteredEdges[u]}),ye(a,function(u){delete e.body.edges[u]});var A=at(this.body.edges);ye(A,function(u){var d=e.body.edges[u],h=e._isClusteredNode(d.fromId)||e._isClusteredNode(d.toId);if(h!==e._isClusteredEdge(d.id))if(h){var c=e._getClusterNodeForNode(d.fromId);c!==void 0&&e._clusterEdges(e.body.nodes[d.fromId],d,c);var f=e._getClusterNodeForNode(d.toId);f!==void 0&&e._clusterEdges(e.body.nodes[d.toId],d,f)}else delete e._clusterEdges[u],e._restoreEdge(d)});for(var I=!1,C=!0,l=function(){var d=[];o(function(c){var f=at(c.containedNodes).length,v=c.options.allowSingleNodeCluster===!0;(v&&f<1||!v&&f<2)&&d.push(c.id)});for(var h=0;h0,I=I||C};C;)l();I&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),i}();function ICe(){var i;window!==void 0&&(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),i===void 0?window.requestAnimationFrame=function(n){n()}:window.requestAnimationFrame=i}var CCe=function(){function i(n,e){j(this,i),ICe(),this.body=n,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Et(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return G(i,[{key:"bindEventListeners",value:function(){var e=this,t;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Ei(function(){var r;e.zooming=!1,z(r=e._requestRedraw).call(r,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",z(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var t=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];yg(t,this.options,e)}}},{key:"_requestNextFrame",value:function(e,t){if(!(typeof window>"u")){var r,a=window;return this.requiresTimeout===!0?r=Ei(e,t):a.requestAnimationFrame&&(r=a.requestAnimationFrame(e)),r}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(z(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var t={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var r=this.canvas.getContext(),a=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(r.clearRect(0,0,a,o),this.canvas.frame.clientWidth===0)return;if(r.save(),r.translate(this.body.view.translation.x,this.body.view.translation.y),r.scale(this.body.view.scale,this.body.view.scale),r.beginPath(),this.body.emitter.emit("beforeDrawing",r),r.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(r),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(r,e),g=s.drawExternalLabels;t.drawExternalLabels=g}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(r),t.drawExternalLabels!=null&&t.drawExternalLabels(),e===!1&&this._drawSelectionBox(r),r.beginPath(),this.body.emitter.emit("afterDrawing",r),r.closePath(),r.restore(),e===!0&&r.clearRect(0,0,a,o)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var t=this.body.nodes,r;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r=t[a],r.resize(e),r.updateBoundingBox(e,r.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.nodes,a=this.body.nodeIndices,o,s=[],g=[],A=20,I=this.canvas.DOMtoCanvas({x:-20,y:-20}),C=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+A,y:this.canvas.frame.canvas.clientHeight+A}),l={top:I.y,left:I.x,bottom:C.y,right:C.x},u=[],d=0;d0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,r=this.cameraState.scale;e!=1&&t!=1?r=this.cameraState.scale*.5*(e+t):e!=1?r=this.cameraState.scale*e:t!=1&&(r=this.cameraState.scale*t),this.body.view.scale=r;var a=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),o={x:a.x-this.cameraState.position.x,y:a.y-this.cameraState.position.y};this.body.view.translation.x+=o.x*this.body.view.scale,this.body.view.translation.y+=o.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Pe(e).call(e,"%")!==-1||Pe(e).call(e,"px")!==-1)return e;if(Pe(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Ts(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Ts.DIRECTION_ALL}),xu(this.hammer,function(t){e.body.eventListeners.onTouch(t)}),this.hammer.on("tap",function(t){e.body.eventListeners.onTap(t)}),this.hammer.on("doubletap",function(t){e.body.eventListeners.onDoubleTap(t)}),this.hammer.on("press",function(t){e.body.eventListeners.onHold(t)}),this.hammer.on("panstart",function(t){e.body.eventListeners.onDragStart(t)}),this.hammer.on("panmove",function(t){e.body.eventListeners.onDrag(t)}),this.hammer.on("panend",function(t){e.body.eventListeners.onDragEnd(t)}),this.hammer.on("pinch",function(t){e.body.eventListeners.onPinch(t)}),this.frame.canvas.addEventListener("wheel",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("mousemove",function(t){e.body.eventListeners.onMouseMove(t)}),this.frame.canvas.addEventListener("contextmenu",function(t){e.body.eventListeners.onContext(t)}),this.hammerFrame=new Ts(this.frame),fN(this.hammerFrame,function(t){e.body.eventListeners.onRelease(t)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);var r=!1,a=this.frame.canvas.width,o=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},r=!0;else{var g=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),A=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==g||this.frame.canvas.height!==A)&&this._getCameraState(s),this.frame.canvas.width!==g&&(this.frame.canvas.width=g,r=!0),this.frame.canvas.height!==A&&(this.frame.canvas.height=A,r=!0)}return r===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(a/this.pixelRatio),oldHeight:Math.round(o/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,r}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var t=1;typeof window<"u"&&(t=window.devicePixelRatio||1);var r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/r}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),i}();function fCe(i,n){var e=Et({nodes:n,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},i??{});if(!ce(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=n),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var vCe=function(){function i(n,e){var t,r=this,a;j(this,i),this.body=n,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",z(t=this.fit).call(t,this)),this.body.emitter.on("animationFinished",function(){r.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",z(a=this.releaseNode).call(a,this))}return G(i,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=fCe(e,this.body.nodeIndices);var r=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight,o,s;if(r===0||a===0)s=1,o=dr.getRange(this.body.nodes,e.nodes);else if(t===!0){var g=0;for(var A in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,A)){var I=this.body.nodes[A];I.predefinedPosition===!0&&(g+=1)}if(g>.5*this.body.nodeIndices.length){this.fit(e,!1);return}o=dr.getRange(this.body.nodes,e.nodes);var C=this.body.nodeIndices.length;s=12.662/(C+7.4147)+.0964822;var l=Math.min(r/600,a/600);s*=l}else{this.body.emitter.emit("_resizeNodes"),o=dr.getRange(this.body.nodes,e.nodes);var u=Math.abs(o.maxX-o.minX)*1.1,d=Math.abs(o.maxY-o.minY)*1.1,h=r/u,c=a/d;s=h<=c?h:c}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var r={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=r,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!Ma(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!Ma(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!Ma(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!Ma(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:t.x-e.position.x,y:t.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+r.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+r.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var a;this.viewFunction=z(a=this._lockedRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var o;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=z(o=this._transitionRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:t.x-e.x,y:t.y-e.y},a=this.body.view.translation,o={x:a.x+r.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:a.y+r.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=o}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var t=jq[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var r;this.viewFunction=z(r=this._lockedRedraw).call(r,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),i}(),pCe=`div.vis-network div.vis-navigation div.vis-button { width: 34px; height: 34px; -moz-border-radius: 17px; border-radius: 17px; position: absolute; display: inline-block; background-position: 2px 2px; background-repeat: no-repeat; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } div.vis-network div.vis-navigation div.vis-button:hover { box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.3); } div.vis-network div.vis-navigation div.vis-button:active { box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95); } div.vis-network div.vis-navigation div.vis-button.vis-up { background-image: url('data:image/png;base64,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'); bottom: 50px; left: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-down { background-image: url('data:image/png;base64,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'); bottom: 10px; left: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-left { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABt5JREFUeNqsl2lUlOcVx//3Pi9DZRsGBgYiS2RYBQKIjAhEJW4pNrXNMbZpWtTGNkttYmJMG5soSZckRk+0p+dYPYY0Gk0ihlhRj63GhVUgBhDD5oIOy8AAMwzD4lCYtx+GqCQKuNyP7/Pc+3u2+7/3JUzEZFBYLh62S7yIZDmVBEIBqOwsQ4DNdtBFASq2A4cuZAwVgCCPF5LGHM0Chz+E1XamzUyAzCMO7IhMI+5MDCK+HpCANd+U2rYgC/Y7BoflYgVA2RAOoNYtyjDTe45+hk96e5QywaJR+NsAwDhocK61VCjLTYWaclNB0OW+en8mhl22g8C/rn7U+uGEwdov+C0i+Q0mIFWzoD7zwVU1czQ/6pjIreR3HPX5VL9jalHXiQgmBoH+XLHAtH5csDaXtxDLLzIBv5jyfOmG2H9U4S7snbpX43KaPpgBIhDx1rPzOlbfPC5GQT/nd1mS1zABa6PfPf5y5F/rcJeWpp7fPkly6f7KXBRCoOSATFfXll19x74HDsvFCghsJAG8HrvlvytCXm7EPVqc5wyzp5NX15muE1omKXXyMnd9yy5r5Q3wPghvJzrLAlimXV38+7D1DbhPFq1M6O4b6rPVWKsCBfHi5EWWv9TkQBYAEPpLvERMC9N8FtRvjt9dPl6wwo5jPvuas7WV5jNqEjz8wA+CBsaan+w9x1hrrXJtuaZX97ooLfqPLCUEGRR+iOwAsF2X98Uc30W3fb02u41frVqeVmo6FUkkwCAwCWxJ2Ls/0TPFNBb8TNdp9WvnVz4OAKdmX2QOzcMsAAjziDGMBd3asCF6SXHyknJTfqQTK+zpvhnVKT5zawCgzFTgN94pJXvP7gxxjTAIkpB+MnSWRMQZYEDnPVt/K4ejbZ/77726Lb6h95tAAiPELaJ1bcTbRfGeM8xv1azWSeyEa0P9igk+Nr1+oNFfkpwzJCJKIQA679ntN08yDXYo3qh+LuUrc0E4EcNL4dP7VNDzpU8FP3vpekoQQ5CEw4bPdEfa9+sAgEZUmkmAAAS5hLQ9p11XGO+pM8V5JLUfMeQARDMlEMKIGFOVCZYb0C7Fz0oeXmIZ6nZzYoV9od/jVS+GbahUOnn9b7T6sEOviUGyA8bMDlUa0W79wBW/bZf+lrY98cDBUI8YCxGDgHCJiVVEDN8R7QWAE8Z/+1mGut2i3eP1r0S+XRztkdBzq6NbF7WpbF3UprKxjvfHxbrfttla/QBArVDbJJIAQCURMRg8ugrKIAKBSNxzHtN3VdmxY0iQYSZmTeegwTlgknYAAB7RZBh2Nm7urbeeC1r19ROT52kWn3shfH2Fu1AO3RxjY/0fdac7/hPPJMDE11GC+HpBJmIEuAS3Oa6w01lybMbMgvgCE6O255zy24DeCr/Bvckn9+u8ZjXYIYvjxoMJy8oeXZrT9GHIqMWTwA2oI6cFMeDIcAiSEOyibXsmZG0hAFzuq1OyY6xBAnMJgdPOmks08zU/bbsB9x18P37PqS/b8+o/a96ZcLm3PmBH46Z5x40HW1eFvl4Uq0w0MwiCBOb7/qTsd6GvVY537DXWas1Iw1AiNJnOgwJi+bXhAbE08OnvaXSIW0TvYw88eaF/uM/WNdju3m5r9TlhPBzVNNDoPGC/5tRma/GJ80xqjPPUjVuvP2narrMOWd1Jlv/E1fN782UiNPZf9C/qOKa+ndOz2j+cz046sn+6KrVOsODirpOxld0lUxmEBK/ktvGgFd2l6taBZn9BAtEz5xYIvAn4/8rFKkgstAyZ6Yf+S67ezlkiSU73XXRV6xqh93TyssR4JF75efBvymLdE03jgT/Wb5tutLWpGbTm7wHZxQQAT+yDuKLyHRIk4cnAZ4pfCF9/HvfR9uh3xBxtz00BANsVDylnac6wAICaHMiBmW5NRLy4trcq0MtZ3RnpHme5H9AvjYeCc1t3pzMJgOSVnyw4eHZUB9Kyu68iMFPpysSppab8UJVC3Rnp/pDlXqF7mnYsdKQbv7cr6fDGW/Zczbt6jgUtV6kIlFxuyg/tH+6zJXmlGe8G+mlzdsyB1j3pTAwZ9q3/Sspbc9tmDwD0H3UffXCFlyuTlFpnPRdYb612c5c8+idPCu6fCLDKUubzsf6fSaWm0wmO9hbvZU8fDR2zoZ97OuppAu0UJEDEmOISZohT6q7Gek5rD3GN6FEp1DaAYB7sdNYPXPao7anS1Fmrg402g7+jYhGIaOXOaQc+uONfmCwZXJIf8xKx2KRgxYgOS+CROuyoyQKCxIhkOr4T6JWgxGnvZ1HWnf/CfHcBXxcnpRHxYwRKkUjSErFKkAQiNjP4kmBRTHbKm5KkKxwL+K39fwDX1XGF8ct++QAAAABJRU5ErkJggg=='); bottom: 10px; left: 15px; } div.vis-network div.vis-navigation div.vis-button.vis-right { background-image: url('data:image/png;base64,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'); bottom: 10px; left: 95px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomIn { background-image: url('data:image/png;base64,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'); bottom: 10px; right: 15px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomOut { background-image: url('data:image/png;base64,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'); bottom: 10px; right: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends { background-image: url('data:image/png;base64,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'); bottom: 50px; right: 15px; } `;po(pCe);function kE(i){var n=i&&i.preventDefault||!1,e=i&&i.container||window,t={},r={keydown:{},keyup:{}},a={},o;for(o=97;o<=122;o++)a[String.fromCharCode(o)]={code:65+(o-97),shift:!1};for(o=65;o<=90;o++)a[String.fromCharCode(o)]={code:o,shift:!0};for(o=0;o<=9;o++)a[""+o]={code:48+o,shift:!1};for(o=1;o<=12;o++)a["F"+o]={code:111+o,shift:!1};for(o=0;o<=9;o++)a["num"+o]={code:96+o,shift:!1};a["num*"]={code:106,shift:!1},a["num+"]={code:107,shift:!1},a["num-"]={code:109,shift:!1},a["num/"]={code:111,shift:!1},a["num."]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a["="]={code:187,shift:!1},a["-"]={code:189,shift:!1},a["]"]={code:221,shift:!1},a["["]={code:219,shift:!1};var s=function(I){A(I,"keydown")},g=function(I){A(I,"keyup")},A=function(I,C){if(r[C][I.keyCode]!==void 0){for(var l=r[C][I.keyCode],u=0;u700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,a=t/e,o=(1-a)*this.canvas.canvasViewCenter.x+r.x*a,s=(1-a)*this.canvas.canvasViewCenter.y+r.y*a;this.body.view.scale=t,this.body.view.translation={x:o,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,a=t/e,o=(1-a)*this.canvas.canvasViewCenter.x+r.x*a,s=(1-a)*this.canvas.canvasViewCenter.y+r.y*a;this.body.view.scale=t,this.body.view.translation={x:o,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=kE({container:window,preventDefault:!0}):this.keycharm=kE({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var t,r,a,o,s,g,A,I,C,l,u,d,h,c,f,v,y,p,m,w,k,R,O,_;z(t=this.keycharm).call(t,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),z(r=this.keycharm).call(r,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),z(a=this.keycharm).call(a,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),z(o=this.keycharm).call(o,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),z(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),z(g=this.keycharm).call(g,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),z(A=this.keycharm).call(A,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),z(I=this.keycharm).call(I,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),z(C=this.keycharm).call(C,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),z(l=this.keycharm).call(l,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),z(u=this.keycharm).call(u,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),z(d=this.keycharm).call(d,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),z(h=this.keycharm).call(h,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),z(c=this.keycharm).call(c,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),z(f=this.keycharm).call(f,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),z(v=this.keycharm).call(v,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),z(y=this.keycharm).call(y,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),z(p=this.keycharm).call(p,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),z(m=this.keycharm).call(m,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),z(w=this.keycharm).call(w,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),z(k=this.keycharm).call(k,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),z(R=this.keycharm).call(R,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),z(O=this.keycharm).call(O,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),z(_=this.keycharm).call(_,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),i}();function mCe(i,n){var e=typeof On<"u"&&ua(i)||i["@@iterator"];if(!e){if(ce(i)||(e=bCe(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function bCe(i,n){var e;if(i){if(typeof i=="string")return _E(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _E(i,n)}}function _E(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var t=this.getPointer(e.center),r=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,r),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}},{key:"onDoubleTap",value:function(e){var t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}},{key:"onHold",value:function(e){var t=this.getPointer(e.center),r=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,r),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}},{key:"checkSelectionChanges",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,t){var r=function(o,s){for(var g=[],A=0;A=o.minX&&C.x<=o.maxX&&C.y>=o.minY&&C.y<=o.maxY});_e(s).call(s,function(I){return t.selectionHandler.selectObject(t.body.nodes[I])});var g=this.getPointer(e.center);this.selectionHandler.commitAndEmit(g,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var A=this.drag.selection;A&&A.length?(_e(A).call(A,function(I){I.node.options.fixed.x=I.xFixed,I.node.options.fixed.y=I.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var t=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var r=this.pinch.scale*e.scale;this.zoom(r,t)}},{key:"zoom",value:function(e,t){if(this.options.zoomView===!0){var r=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var a=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(a=this.canvas.DOMtoCanvas(this.drag.pointer));var o=this.body.view.translation,s=e/r,g=(1-s)*t.x+o.x*s,A=(1-s)*t.y+o.y*s;if(this.body.view.scale=e,this.body.view.translation={x:g,y:A},a!=null){var I=this.canvas.canvasToDOM(a);this.drag.pointer.x=I.x,this.drag.pointer.y=I.y}this.body.emitter.emit("_requestRedraw"),r0&&(this.popupObj=I[l[l.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var d=this.body.edgeIndices,h=this.body.edges,c,f=[],v=0;v0&&(this.popupObj=h[f[f.length-1]],g="edge")}this.popupObj!==void 0?this.popupObj.id!==o&&(this.popup===void 0&&(this.popup=new Kq(this.canvas.frame)),this.popup.popupTargetType=g,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var t=this.selectionHandler._pointerToPositionObject(e),r=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(r=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),r===!0)){var a=this.selectionHandler.getNodeAt(e);r=a===void 0?!1:a.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(r=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));r===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),i}(),wCe=xe,PE=ob,VC=_d.getWeakData,ECe=Pd,OCe=mr,TCe=vo,Jc=St,SCe=ca,vN=ha,RE=ft,pN=Ca,kCe=pN.set,_Ce=pN.getterFor,PCe=vN.find,RCe=vN.findIndex,xCe=wCe([].splice),DCe=0,ZC=function(i){return i.frozen||(i.frozen=new yN)},yN=function(){this.entries=[]},ef=function(i,n){return PCe(i.entries,function(e){return e[0]===n})};yN.prototype={get:function(i){var n=ef(this,i);if(n)return n[1]},has:function(i){return!!ef(this,i)},set:function(i,n){var e=ef(this,i);e?e[1]=n:this.entries.push([i,n])},delete:function(i){var n=RCe(this.entries,function(e){return e[0]===i});return~n&&xCe(this.entries,n,1),!!~n}};var NCe={getConstructor:function(i,n,e,t){var r=i(function(g,A){ECe(g,a),kCe(g,{type:n,id:DCe++,frozen:void 0}),TCe(A)||SCe(A,g[t],{that:g,AS_ENTRIES:e})}),a=r.prototype,o=_Ce(n),s=function(g,A,I){var C=o(g),l=VC(OCe(A),!0);return l===!0?ZC(C).set(A,I):l[C.id]=I,g};return PE(a,{delete:function(g){var A=o(this);if(!Jc(g))return!1;var I=VC(g);return I===!0?ZC(A).delete(g):I&&RE(I,A.id)&&delete I[A.id]},has:function(A){var I=o(this);if(!Jc(A))return!1;var C=VC(A);return C===!0?ZC(I).has(A):C&&RE(C,I.id)}}),PE(a,e?{get:function(A){var I=o(this);if(Jc(A)){var C=VC(A);return C===!0?ZC(I).get(A):C?C[I.id]:void 0}},set:function(A,I){return s(this,A,I)}}:{add:function(A){return s(this,A,!0)}}),r}},MCe=AD,xE=qe,Hl=xe,DE=ob,FCe=_d,BCe=ab,mN=NCe,HC=St,UC=Ca.enforce,zCe=we,LCe=BP,PI=Object,jCe=Array.isArray,YC=PI.isExtensible,bN=PI.isFrozen,GCe=PI.isSealed,$N=PI.freeze,WCe=PI.seal,NE={},ME={},VCe=!xE.ActiveXObject&&"ActiveXObject"in xE,eA,wN=function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},EN=BCe("WeakMap",wN,mN),ns=EN.prototype,Ul=Hl(ns.set),ZCe=function(){return MCe&&zCe(function(){var i=$N([]);return Ul(new EN,i,1),!bN(i)})};if(LCe)if(VCe){eA=mN.getConstructor(wN,"WeakMap",!0),FCe.enable();var FE=Hl(ns.delete),KC=Hl(ns.has),BE=Hl(ns.get);DE(ns,{delete:function(i){if(HC(i)&&!YC(i)){var n=UC(this);return n.frozen||(n.frozen=new eA),FE(this,i)||n.frozen.delete(i)}return FE(this,i)},has:function(n){if(HC(n)&&!YC(n)){var e=UC(this);return e.frozen||(e.frozen=new eA),KC(this,n)||e.frozen.has(n)}return KC(this,n)},get:function(n){if(HC(n)&&!YC(n)){var e=UC(this);return e.frozen||(e.frozen=new eA),KC(this,n)?BE(this,n):e.frozen.get(n)}return BE(this,n)},set:function(n,e){if(HC(n)&&!YC(n)){var t=UC(this);t.frozen||(t.frozen=new eA),KC(this,n)?Ul(this,n,e):t.frozen.set(n,e)}else Ul(this,n,e);return this}})}else ZCe()&&DE(ns,{set:function(n,e){var t;return jCe(n)&&(bN(n)?t=NE:GCe(n)&&(t=ME)),Ul(this,n,e),t===NE&&$N(n),t===ME&&WCe(n),this}});var HCe=Ee,UCe=HCe.WeakMap,YCe=UCe,KCe=YCe,XCe=KCe,mA=X(XCe);function Je(i,n,e,t){if(typeof n=="function"?i!==n||!0:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(i):t?t.value:n.get(i)}function ay(i,n,e,t,r){if(typeof n=="function"?i!==n||!0:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n.set(i,e),e}function oy(i,n){var e=typeof On<"u"&&ua(i)||i["@@iterator"];if(!e){if(ce(i)||(e=QCe(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function QCe(i,n){var e;if(i){if(typeof i=="string")return zE(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return zE(i,n)}}function zE(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e0&&arguments[0]!==void 0?arguments[0]:function(){};j(this,i),_n.set(this,new jE),Pn.set(this,new jE),Yl.set(this,void 0),ay(this,Yl,n)}return G(i,[{key:"sizeNodes",get:function(){return Je(this,_n,"f").size}},{key:"sizeEdges",get:function(){return Je(this,Pn,"f").size}},{key:"getNodes",value:function(){return Je(this,_n,"f").getSelection()}},{key:"getEdges",value:function(){return Je(this,Pn,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Je(this,_n,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Je(this,Pn,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Je(this,_n,"f").delete(e)}},{key:"deleteEdges",value:function(e){Je(this,Pn,"f").delete(e)}},{key:"clear",value:function(){Je(this,_n,"f").clear(),Je(this,Pn,"f").clear()}},{key:"commit",value:function(){for(var e,t,r={nodes:Je(this,_n,"f").commit(),edges:Je(this,Pn,"f").commit()},a=arguments.length,o=new Array(a),s=0;s=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function JCe(i,n){var e;if(i){if(typeof i=="string")return WE(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return WE(i,n)}}function WE(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(t,r);if(o===!0)s.nodes=[],s.edges=[];else{var g=this.getSelection();s.nodes=g.nodes,s.edges=g.edges}a!==void 0&&(s.previousSelection=a),e=="click"&&(s.items=this.getClickedItems(r)),t.controlEdge!==void 0&&(s.controlEdge=t.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Zr){if(t===!0){var r;(r=this._selectionAccumulator).addEdges.apply(r,At(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var t=[],r=this.body.nodes,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0,r=this._pointerToPositionObject(e),a=this._getAllNodesOverlappingWith(r);if(a.length>0)return t===!0?this.body.nodes[a[a.length-1]]:a[a.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,t){for(var r=this.body.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0,r=this.canvas.DOMtoCanvas(e),a=10,o=null,s=this.body.edges,g=0;g0&&(this.generateClickEvent("deselectEdge",t,e,o),r=!0),a.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,o),r=!0),a.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),r=!0),a.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),r=!0),r===!0&&this.generateClickEvent("select",t,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return nr(e=this._selectionAccumulator.getNodes()).call(e,function(t){return t.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return nr(e=this._selectionAccumulator.getEdges()).call(e,function(t){return t.id})}},{key:"setSelection",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||t.unselectAll===void 0)&&this.unselectAll(),e.nodes){var r=GE(e.nodes),a;try{for(r.s();!(a=r.n()).done;){var o=a.value,s=this.body.nodes[o];if(!s)throw new RangeError('Node with id "'+o+'" not found');this.selectObject(s,t.highlightEdges)}}catch(l){r.e(l)}finally{r.f()}}if(e.edges){var g=GE(e.edges),A;try{for(g.s();!(A=g.n()).done;){var I=A.value,C=this.body.edges[I];if(!C)throw new RangeError('Edge with id "'+I+'" not found');this.selectObject(C)}}catch(l){g.e(l)}finally{g.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var t in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,t.id)||this._selectionAccumulator.deleteEdges(t)}},{key:"getClickedItems",value:function(e){for(var t=this.canvas.DOMtoCanvas(e),r=[],a=this.body.nodeIndices,o=this.body.nodes,s=a.length-1;s>=0;s--){var g=o[a[s]],A=g.getItemsOnPoint(t);r.push.apply(r,A)}for(var I=this.body.edgeIndices,C=this.body.edges,l=I.length-1;l>=0;l--){var u=C[I[l]],d=u.getItemsOnPoint(t);r.push.apply(r,d)}return r}}]),i}();function ON(i){var n=tle();return function(){var t=q(i),r;if(n){var a=q(this).constructor;r=P(t,arguments,a)}else r=t.apply(this,arguments);return je(this,r)}}function tle(){if(typeof Reflect>"u"||!P||P.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(P(Boolean,[],function(){})),!0}catch{return!1}}var TN=function(){function i(){j(this,i)}return G(i,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,t,r),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,t){this.fake_use(e,t),this.abstract()}},{key:"shift",value:function(e,t){this.fake_use(e,t),this.abstract()}}]),i}(),rle=function(i){De(e,i);var n=ON(e);function e(t){var r;return j(this,e),r=n.call(this),r.layout=t,r}return G(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(r){return r.x}},{key:"setPosition",value:function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;o!==void 0&&this.layout.hierarchical.addToOrdering(r,o),r.x=a}},{key:"getTreeSize",value:function(r){var a=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:a.min_x,max:a.max_x}}},{key:"sort",value:function(r){Yn(r).call(r,function(a,o){return a.x-o.x})}},{key:"fix",value:function(r,a){r.y=this.layout.options.hierarchical.levelSeparation*a,r.options.fixed.y=!0}},{key:"shift",value:function(r,a){this.layout.body.nodes[r].x+=a}}]),e}(TN),ile=function(i){De(e,i);var n=ON(e);function e(t){var r;return j(this,e),r=n.call(this),r.layout=t,r}return G(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(r){return r.y}},{key:"setPosition",value:function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;o!==void 0&&this.layout.hierarchical.addToOrdering(r,o),r.y=a}},{key:"getTreeSize",value:function(r){var a=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:a.min_y,max:a.max_y}}},{key:"sort",value:function(r){Yn(r).call(r,function(a,o){return a.y-o.y})}},{key:"fix",value:function(r,a){r.x=this.layout.options.hierarchical.levelSeparation*a,r.options.fixed.x=!0}},{key:"shift",value:function(r,a){this.layout.body.nodes[r].y+=a}}]),e}(TN),nle=Q,ale=ha.every,ole=fg,sle=ole("every");nle({target:"Array",proto:!0,forced:!sle},{every:function(n){return ale(this,n,arguments.length>1?arguments[1]:void 0)}});var gle=kt,Ale=gle("Array").every,Ile=It,Cle=Ale,tf=Array.prototype,lle=function(i){var n=i.every;return i===tf||Ile(tf,i)&&n===tf.every?Cle:n},ule=lle,dle=ule,hle=dle,SN=X(hle);function cle(i,n){var e=typeof On<"u"&&ua(i)||i["@@iterator"];if(!e){if(ce(i)||(e=fle(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function fle(i,n){var e;if(i){if(typeof i=="string")return VE(i,n);var t=zt(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return la(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return VE(i,n)}}function VE(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e=n[a])&&(n[a]=n[r]+1)}),n}function ple(i){return kN(function(n){var e,t;return SN(e=Pt(t=n.edges).call(t,function(r){return i.has(r.toId)})).call(e,function(r){return r.to===n})},function(n,e){return e>n},"from",i)}function yle(i){return kN(function(n){var e,t;return SN(e=Pt(t=n.edges).call(t,function(r){return i.has(r.toId)})).call(e,function(r){return r.from===n})},function(n,e){return eo)return{v:{v:vle(t,a)}};++v},m;y=f.pop();)if(m=p(),m!==0&&m)return m.v},l;for(A.s();!(I=A.n()).done;)if(l=C(),l!==0&&l)return l.v}catch(u){A.e(u)}finally{A.f()}return a}var mle=function(){function i(){j(this,i),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return G(i,[{key:"addRelation",value:function(e,t){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),this.parentReference[t]===void 0&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,t){t!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var t=this,r={},a=function o(s){if(r[s]!==void 0)return r[s];var g=t.levels[s];if(t.childrenReference[s]){var A=t.childrenReference[s];if(A.length>0)for(var I=0;I0&&(r.levelSeparation*=-1):r.levelSeparation<0&&(r.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(a===!0)return this.body.emitter.emit("refresh"),tt(t,this.optionsBackup)}return t}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=kd(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var t=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:t.enabled===void 0?!0:t.enabled,solver:"hierarchicalRepulsion"},t.enabled=t.enabled===void 0?!0:t.enabled,t.solver=t.solver||"barnesHut"):pe(e.physics)==="object"?(t.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var r=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:r};else{var a=e.edges.smooth;a.type!==void 0&&a.type!=="dynamic"&&(r=a.type),this.optionsBackup.edges={smooth:{enabled:a.enabled===void 0?!0:a.enabled,type:a.type===void 0?"dynamic":a.type,roundness:a.roundness===void 0?.5:a.roundness,forceDirection:a.forceDirection===void 0?!1:a.forceDirection}},e.edges.smooth={enabled:a.enabled===void 0?!0:a.enabled,type:r,roundness:a.roundness===void 0?.5:a.roundness,forceDirection:a.forceDirection===void 0?!1:a.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",r)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var t=e.length+50,r=0;rg){for(var I=e.length;e.length>g&&s<=o;){s+=1;var C=e.length;s%3===0?this.body.modules.clustering.clusterBridges(A):this.body.modules.clustering.clusterOutliers(A);var l=e.length;if(C==l&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*I)})}s>o&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var u=70,d=0;d0){var e,t,r=!1,a=!1;this.lastNodeOnLevel={},this.hierarchical=new mle;for(t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],e.options.level!==void 0?(r=!0,this.hierarchical.levels[t]=e.options.level):a=!0);if(a===!0&&r===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(a===!0){var o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var g=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(g),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,t=!1,r={},a=function(){for(var y=s(),p=0,m=0;m0)for(var w=0;w1&&arguments[1]!==void 0?arguments[1]:1e9,m=1e9,w=1e9,k=1e9,R=-1e9;for(var O in y)if(Object.prototype.hasOwnProperty.call(y,O)){var _=e.body.nodes[O],N=e.hierarchical.levels[_.id],K=e.direction.getPosition(_),H=e._getSpaceAroundNode(_,y),Ce=be(H,2),$e=Ce[0],de=Ce[1];m=Math.min($e,m),w=Math.min(de,w),N<=p&&(k=Math.min(K,k),R=Math.max(K,R))}return[k,R,m,w]},I=function(y,p){var m=e.hierarchical.getMaxLevel(y.id),w=e.hierarchical.getMaxLevel(p.id);return Math.min(m,w)},C=function(y,p,m){for(var w=e.hierarchical,k=0;k1)for(var _=0;_2&&arguments[2]!==void 0?arguments[2]:!1,w=e.direction.getPosition(y),k=e.direction.getPosition(p),R=Math.abs(k-w),O=e.options.hierarchical.nodeSpacing;if(R>O){var _={},N={};g(y,_),g(p,N);var K=I(y,p),H=A(_,K),Ce=A(N,K),$e=H[1],de=Ce[0],Ye=Ce[2],Fe=Math.abs($e-de);if(Fe>O){var Oe=$e-de+O;Oe<-Ye+O&&(Oe=-Ye+O),Oe<0&&(e._shiftBlock(p.id,Oe),t=!0,m===!0&&e._centerParent(p))}}},u=function(y,p){for(var m=p.id,w=p.edges,k=e.hierarchical.levels[p.id],R=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,O={},_=[],N=0;N0?ke=Math.min(Xe,Bt-e.options.hierarchical.nodeSpacing):Xe<0&&(ke=-Math.min(-Xe,Se-e.options.hierarchical.nodeSpacing)),ke!=0&&(e._shiftBlock(p.id,ke),t=!0)},Fe=function(Te){var oe=e.direction.getPosition(p),he=e._getSpaceAroundNode(p),le=be(he,2),Se=le[0],Bt=le[1],Xe=Te-oe,ke=oe;Xe>0?ke=Math.min(oe+(Bt-e.options.hierarchical.nodeSpacing),Te):Xe<0&&(ke=Math.max(oe-(Se-e.options.hierarchical.nodeSpacing),Te)),ke!==oe&&(e.direction.setPosition(p,ke),t=!0)},Oe=de(y,_);Ye(Oe),Oe=de(y,w),Fe(Oe)},d=function(y){var p=e.hierarchical.getLevels();p=Wa(p).call(p);for(var m=0;m0&&Math.abs(d)0&&(I=this.direction.getPosition(a[s-1])+A),this.direction.setPosition(g,I,t),this._validatePositionAndContinue(g,t,I),o++}}}}},{key:"_placeBranchNodes",value:function(e,t){var r,a=this.hierarchical.childrenReference[e];if(a!==void 0){for(var o=[],s=0;st&&this.positionedNodes[A.id]===void 0){var C=this.options.hierarchical.nodeSpacing,l=void 0;g===0?l=this.direction.getPosition(this.body.nodes[e]):l=this.direction.getPosition(o[g-1])+C,this.direction.setPosition(A,l,I),this._validatePositionAndContinue(A,I,l)}else return}var u=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[e],u,t)}}},{key:"_validatePositionAndContinue",value:function(e,t,r){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[t]!==void 0){var a=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(r-ae.hierarchical.levels[a.id]&&e.hierarchical.addRelation(a.id,o.id)};this._crawlNetwork(t),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},r=arguments.length>1?arguments[1]:void 0,a={},o=function l(u,d){if(a[u.id]===void 0){e.hierarchical.setTreeIndex(u,d),a[u.id]=!0;for(var h,c=e._getActiveEdges(u),f=0;f({key:e,color:t.color,capitalize:Rle.includes(e)})),fileTypeShow:i,toggleFileType:n}}const{isDark:Dle}=V5(),HE=AP(()=>({nodes:{shape:"dot",size:16,font:{color:Dle.value?"#fff":"#000",multi:"html"}},interaction:{hover:!0},physics:{maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:RN})),bA=AP({get:()=>vp.value.graphSettings,set:i=>{vp.value.graphSettings=i}});uu(bA,()=>{mb()},{deep:!0});const vb=La("");Z5(vb,()=>{mb()},{debounce:350});const pb=La(""),Zs=new Vs([]),Hs=new Vs([]),yb=IP([]),xN=new Map,Wi=new Map,Rs=new Map,Nle=i=>i.reduce((n,e)=>(n.some(t=>t.id===e.id)||n.push(e),n),[]),DN=i=>i.reduce((n,e)=>(n.some(t=>t.from===e.from&&t.to===e.to)||n.push(e),n),[]);function Mle(){yb.value=[],xN.clear(),Zs.clear(),Hs.clear(),Wi.clear(),Rs.clear()}function Us(i){const n=i.id.includes("node_modules");return!(!bA.value.node_modules&&n||!bA.value.virtual&&i.virtual&&!n||!bA.value.lib&&!i.id.includes(pb.value)&&!i.virtual)}function NN(i){const n=Rs.get(i);return n?n.some(e=>Us(e.mod)):!0}const Fle=/(?:.*\/){3}([^/]+$)/;function mb(){Zs.clear(),Hs.clear(),jle();const i=[],n=[],e=[],t=Wle();(t?t.slice():yb.value.slice()).forEach(({node:o,edges:s,mod:g})=>{Us(g)&&NN(g.id)&&(i.push(o),n.push({id:g.id.match(Fle)?.[0]??g.id,fullId:g.id,node:o,edges:s,deps:g.deps}),e.push(...s))});const a=vb.value;if(a.trim().length){const o=n.filter(({id:s})=>s.includes(a));if(e.length=0,i.length=0,o.length){const{node:s,edges:g}=Ble(o);i.push(...s),e.push(...g)}}Zs.add(Nle(i)),Hs.add(DN(e))}function Ble(i){const n=new Map,e=new Map;return i.forEach(t=>{t=H5(t),t.node.font||(t.node.font={color:"#F19B4A"}),t.node.label=`${t.node.label}`,n.set(t.fullId,t.node),t.deps.forEach(r=>{const a=Wi.get(r);a&&Us(a.mod)&&(n.set(a.mod.id,a.node),e.set(`${t.fullId}-${a.mod.id}`,sy(a.mod.id,t.fullId)),a.edges.forEach(o=>e.set(`${o.from}-${o.to}`,o)))})}),{node:Array.from(n.values()),edges:Array.from(e.values())}}function sy(i,n){return{from:i,to:n,arrows:{to:{enabled:!0,scaleFactor:.8}}}}function bb(i){return i.replace(/\?.*$/,"").replace(/#.*$/,"").replace(/\/{2,}/g,"/")}function MN(i){return i.includes("vue&type=style")}function gy(i){return i.replace(pb.value,"")}function UE(i){return 15+Math.min(i/2,8)}function YE(i,n){const e=[];return i.forEach(t=>{MN(t)||(t=bb(t),!e.includes(t)&&(e.push(t),n?.(t)))}),e}function zle(i,n){if(!i)return;pb.value=n,Zs.clear(),Hs.clear();const e=[],t=[];i.forEach(r=>{if(MN(r.id))return;if(r.id=bb(r.id),t.some(C=>C.id===r.id)){const C=Wi.get(r.id);C.node.size=UE(C.edges.length+r.deps.length);const l=[],d=YE(r.deps,h=>{l.push(sy(r.id,h))}).filter(h=>!C.mod.deps.includes(h));if(!d.length)return;C.mod.deps.push(...d),e.push(...l);return}const a=r.id,s=a.split("/").at(-1)??"",g=gy(a),A={mod:r,info:{displayName:s,displayPath:g},node:{id:r.id,label:s,group:a.match(/\.(\w+)$/)?.[1]||"unknown",size:UE(r.deps.length),shape:r.id.includes("/node_modules/")?"hexagon":r.virtual?"diamond":"dot"},edges:[]},I=YE(r.deps,C=>{A.edges.push(sy(r.id,C)),Rs.has(C)||Rs.set(C,[]);const l=Rs.get(C),u=gy(a);l.find(h=>h.path===a&&h.displayPath===u&&h.mod.id===r.id)||l.push({path:a,displayPath:u,mod:r})});r.deps=I,yb.value.push(A),xN.set(r.id,A),Wi.set(r.id,A),Us(r)&&NN(r.id)&&(t.push(A.node),e.push(...A.edges))}),Zs.add(t.slice()),Hs.add(DN(e))}const FN=La(),[Lle,Ay]=gP(!1);function jle(){Ay(!1)}function Gle(i){const n=Wi.get(i);if(!n)return;const e=n.mod.deps.reduce((a,o)=>{const s=Wi.get(o);return s&&Us(s.mod)&&a.push({path:o,displayPath:gy(bb(o))}),a},[]),r=(Rs.get(n.mod.id)||[]).reduce((a,o)=>{const s=Wi.get(o.path);return s&&Us(s.mod)&&a.push({path:o.path,displayPath:o.displayPath}),a},[]);FN.value={name:n.info.displayName,displayPath:n.info.displayPath,path:n.mod.id,deps:e,refs:r}}const Ys=La("");uu(Ys,()=>{mb()});function Wle(){const i=Ys.value;return Ys.value=i,!i||!Wi.get(i)?null:BN(i)}function BN(i,n=0){const e=Wi.get(i);if(n+=1,!e||n>20)return[];const t=[e];return e.mod.deps.forEach(r=>{const a=Wi.get(r);a&&t.push(...BN(a.mod.id,n))}),t.reduce((r,a)=>(r.some(o=>o.mod.id===a.mod.id)||r.push(a),r),[])}const Vle={class:"w-300px","h-full":"","of-auto":""},Zle={"text-md":"","h-80px":"","border-b":"","border-base":"",p3:"",flex:"~ col gap1"},Hle={"text-lg":"",flex:"~ gap2 items-center"},Ule={key:0,"i-material-symbols-check-small":"","text-primary-500":""},Yle=["title"],Kle={pb2:"","text-gray-500":""},Xle={"text-primary-500":""},Qle={flex:"~ col gap2 items-start"},qle=["onClick"],Jle={p3:""},KE=1500,eue=od({__name:"GraphDrawer",props:{top:{}},setup(i){const n=FN,e=Lle,t=Ys,r=Q5(),a=C=>{if(r.vitePluginDetected.value&&q5.value){J5(C);return}A(C)},{copy:o,isSupported:s,copied:g}=U5({copiedDuring:KE});function A(C){o(C),ej({message:"Copied to clipboard",type:"success",duration:KE})}const I=[["refs","references"],["deps","dependencies"]];return(C,l)=>(Sr(),Y5(He(X5),{modelValue:He(e),"onUpdate:modelValue":l[3]||(l[3]=u=>CP(e)?e.value=u:null),top:C.top,"close-outside":!1,permanent:!0,"content-blur":!0,position:"absolute","mount-to":".graph-body"},{default:J$(()=>[wt("div",Vle,[wt("div",Zle,[wt("span",Hle,[Ml(xa(He(n)?.name)+" ",1),He(g)?(Sr(),Yr("span",Ule)):He(n)?(Sr(),Yr("span",{key:1,hover:"op-100","i-carbon-copy":"","cursor-pointer":"","text-sm":"","op-50":"",class:os({"text-gray-200":!He(s)}),onClick:l[0]||(l[0]=u=>A(He(n).name))},null,2)):bm("",!0)]),wt("button",{hover:"underline",truncate:"","text-left":"","text-gray-500":"",title:He(n)?.displayPath,onClick:l[1]||(l[1]=u=>a(He(n).path))},xa(He(n)?.displayPath),9,Yle)]),(Sr(),Yr(du,null,hu(I,([u,d])=>wt("div",{key:u,"max-h-60":"","of-auto":"","border-b":"","border-base":"",p3:"","text-sm":""},[wt("div",Kle,[wt("span",Xle,xa(He(n)?.[u].length),1),Ml(" "+xa(d),1)]),wt("div",Qle,[(Sr(!0),Yr(du,null,hu(He(n)?.[u],h=>(Sr(),Yr("button",{key:h.path,dark:"text-gray-200","of-hidden":"",truncate:"","ws-nowrap":"","pr-3":"","text-gray-800":"",hover:"underline",onClick:c=>a(h.path)},xa(h.displayPath),9,qle))),128))])])),64)),wt("div",Jle,[Es(He(K5),{type:"primary",onClick:l[2]||(l[2]=u=>t.value=He(n).path)},{default:J$(()=>l[4]||(l[4]=[Ml(" Filter to this module ")])),_:1})])])]),_:1},8,["modelValue","top"]))}}),tue=od({__name:"GraphFileType",setup(i){const{fileTypeData:n,fileTypeShow:e,toggleFileType:t}=xle();return(r,a)=>(Sr(),Yr("div",{absolute:"","bottom-0":"",grid:"","grid-cols-3":"","w-260px":"","gap-2":"","b-1":"","b-l-0":"","border-base":"","rounded-tr-lg":"",px4:"",py2:"","text-sm":"","transition-transform":"","duration-300":"","glass-effect":"",class:os(["group",{"translate-x-[calc(-100%+30px)] translate-y-[calc(100%-30px)]":!He(e)}])},[wt("div",{class:os(["group",{"rounded-bl-lg opacity-0 group-hover:opacity-100":He(e)}]),absolute:"","right-0":"",h30px:"",w30px:"","cursor-pointer":"","rounded-tr-lg":"","bg-primary-500":"","text-white":"","transition-opacity":"",flex:"~ justify-center items-center",onClick:a[0]||(a[0]=()=>He(t)())},[wt("div",{"transition-transform":"",class:os([He(e)?"i-material-symbols-arrow-downward-alt rotate-45 hover:translate-x--10% hover:translate-y-10%":"i-mdi-file-outline"])},null,2)],2),(Sr(!0),Yr(du,null,hu(He(n),o=>(Sr(),Yr("div",{key:o.key,flex:"","items-center":"","gap-2":""},[wt("div",{h12px:"",w12px:"","rounded-full":"",style:tj({backgroundColor:o.color})},null,4),wt("span",{class:os([o.capitalize?"capitalize":"uppercase"])},xa(o.key),3)]))),128))],2))}}),rue={flex:"~ items-center gap-4 nowrap",class:"[&_>*]:flex-[0_0_auto]",absolute:"","left-0":"","top-0":"","z-10":"","navbar-base":"","w-full":"","overflow-x-auto":"",px4:"","text-sm":"","glass-effect":""},iue=od({__name:"GraphNavbar",setup(i){const n=vb,e=bA,t=[["node_modules"],["virtual","virtual module"],["lib","library module"]],r=Ys;return(a,o)=>(Sr(),Yr("div",rue,[Es(He(rj),{modelValue:He(n),"onUpdate:modelValue":o[0]||(o[0]=s=>CP(n)?n.value=s:null),placeholder:"Search modules..."},null,8,["modelValue"]),(Sr(),Yr(du,null,hu(t,s=>wt("div",{key:s[0],flex:"~ gap-2 items-center"},[Es(He(ij),{modelValue:He(e)[s[0]],"onUpdate:modelValue":g=>He(e)[s[0]]=g},null,8,["modelValue","onUpdate:modelValue"]),wt("span",{class:os({"text-gray-400 dark:text-gray-600":!He(e)[s[0]]})},"Show "+xa(s[1]??s[0]),3)])),64)),o[3]||(o[3]=wt("div",{"flex-auto":""},null,-1)),He(r)?(Sr(),Yr("button",{key:0,"rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:o[1]||(o[1]=s=>r.value="")},o[2]||(o[2]=[Ml(" Clear filter "),wt("div",{"i-carbon-close":"",mb2px:""},null,-1)]))):bm("",!0)]))}});/** * vis-data * http://visjs.org/ * * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data. * * @version 7.1.9 * @date 2023-11-24T17:53:34.179Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */function Nd(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}var af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var zN={exports:{}},XC=function(i){return i&&i.Math===Math&&i},Ct=XC(typeof globalThis=="object"&&globalThis)||XC(typeof window=="object"&&window)||XC(typeof self=="object"&&self)||XC(typeof af=="object"&&af)||function(){return this}()||af||Function("return this")(),Ge=function(i){try{return!!i()}catch{return!0}},nue=Ge,RI=!nue(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")}),aue=RI,LN=Function.prototype,XE=LN.apply,QE=LN.call,$g=typeof Reflect=="object"&&Reflect.apply||(aue?QE.bind(XE):function(){return QE.apply(XE,arguments)}),jN=RI,GN=Function.prototype,Iy=GN.call,oue=jN&&GN.bind.bind(Iy,Iy),gt=jN?oue:function(i){return function(){return Iy.apply(i,arguments)}},WN=gt,sue=WN({}.toString),gue=WN("".slice),va=function(i){return gue(sue(i),8,-1)},Aue=va,Iue=gt,VN=function(i){if(Aue(i)==="Function")return Iue(i)},Cy=typeof document=="object"&&document.all,Cue=typeof Cy>"u"&&Cy!==void 0,ZN={all:Cy,IS_HTMLDDA:Cue},HN=ZN,lue=HN.all,pt=HN.IS_HTMLDDA?function(i){return typeof i=="function"||i===lue}:function(i){return typeof i=="function"},Eo={},uue=Ge,Ut=!uue(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),due=RI,QC=Function.prototype.call,Yt=due?QC.bind(QC):function(){return QC.apply(QC,arguments)},Md={},UN={}.propertyIsEnumerable,YN=Object.getOwnPropertyDescriptor,hue=YN&&!UN.call({1:2},1);Md.f=hue?function(n){var e=YN(this,n);return!!e&&e.enumerable}:UN;var Oo=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}},cue=gt,fue=Ge,vue=va,of=Object,pue=cue("".split),Fd=fue(function(){return!of("z").propertyIsEnumerable(0)})?function(i){return vue(i)==="String"?pue(i,""):of(i)}:of,wg=function(i){return i==null},yue=wg,mue=TypeError,$b=function(i){if(yue(i))throw new mue("Can't call method on "+i);return i},bue=Fd,$ue=$b,qi=function(i){return bue($ue(i))},qE=pt,KN=ZN,wue=KN.all,or=KN.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:qE(i)||i===wue}:function(i){return typeof i=="object"?i!==null:qE(i)},lt={},sf=lt,gf=Ct,Eue=pt,JE=function(i){return Eue(i)?i:void 0},br=function(i,n){return arguments.length<2?JE(sf[i])||JE(gf[i]):sf[i]&&sf[i][n]||gf[i]&&gf[i][n]},Oue=gt,Mt=Oue({}.isPrototypeOf),pa=typeof navigator<"u"&&String(navigator.userAgent)||"",XN=Ct,Af=pa,eO=XN.process,tO=XN.Deno,rO=eO&&eO.versions||tO&&tO.version,iO=rO&&rO.v8,vi,Du;iO&&(vi=iO.split("."),Du=vi[0]>0&&vi[0]<4?1:+(vi[0]+vi[1]));!Du&&Af&&(vi=Af.match(/Edge\/(\d+)/),(!vi||vi[1]>=74)&&(vi=Af.match(/Chrome\/(\d+)/),vi&&(Du=+vi[1])));var Eg=Du,nO=Eg,Tue=Ge,Sue=Ct,kue=Sue.String,Og=!!Object.getOwnPropertySymbols&&!Tue(function(){var i=Symbol("symbol detection");return!kue(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&nO&&nO<41}),_ue=Og,QN=_ue&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Pue=br,Rue=pt,xue=Mt,Due=QN,Nue=Object,xI=Due?function(i){return typeof i=="symbol"}:function(i){var n=Pue("Symbol");return Rue(n)&&xue(n.prototype,Nue(i))},Mue=String,Tg=function(i){try{return Mue(i)}catch{return"Object"}},Fue=pt,Bue=Tg,zue=TypeError,Lr=function(i){if(Fue(i))return i;throw new zue(Bue(i)+" is not a function")},Lue=Lr,jue=wg,wb=function(i,n){var e=i[n];return jue(e)?void 0:Lue(e)},If=Yt,Cf=pt,lf=or,Gue=TypeError,Wue=function(i,n){var e,t;if(n==="string"&&Cf(e=i.toString)&&!lf(t=If(e,i))||Cf(e=i.valueOf)&&!lf(t=If(e,i))||n!=="string"&&Cf(e=i.toString)&&!lf(t=If(e,i)))return t;throw new Gue("Can't convert object to primitive value")},qN={exports:{}},Vue=!0,aO=Ct,Zue=Object.defineProperty,Hue=function(i,n){try{Zue(aO,i,{value:n,configurable:!0,writable:!0})}catch{aO[i]=n}return n},Uue=Ct,Yue=Hue,oO="__core-js_shared__",Kue=Uue[oO]||Yue(oO,{}),Eb=Kue,sO=Eb;(qN.exports=function(i,n){return sO[i]||(sO[i]=n!==void 0?n:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Sg=qN.exports,Xue=$b,Que=Object,jr=function(i){return Que(Xue(i))},que=gt,Jue=jr,ede=que({}.hasOwnProperty),Ft=Object.hasOwn||function(n,e){return ede(Jue(n),e)},tde=gt,rde=0,ide=Math.random(),nde=tde(1 .toString),Bd=function(i){return"Symbol("+(i===void 0?"":i)+")_"+nde(++rde+ide,36)},ade=Ct,ode=Sg,gO=Ft,sde=Bd,gde=Og,Ade=QN,us=ade.Symbol,uf=ode("wks"),Ide=Ade?us.for||us:us&&us.withoutSetter||sde,ut=function(i){return gO(uf,i)||(uf[i]=gde&&gO(us,i)?us[i]:Ide("Symbol."+i)),uf[i]},Cde=Yt,AO=or,IO=xI,lde=wb,ude=Wue,dde=ut,hde=TypeError,cde=dde("toPrimitive"),fde=function(i,n){if(!AO(i)||IO(i))return i;var e=lde(i,cde),t;if(e){if(n===void 0&&(n="default"),t=Cde(e,i,n),!AO(t)||IO(t))return t;throw new hde("Can't convert object to primitive value")}return n===void 0&&(n="number"),ude(i,n)},vde=fde,pde=xI,zd=function(i){var n=vde(i,"string");return pde(n)?n:n+""},yde=Ct,CO=or,ly=yde.document,mde=CO(ly)&&CO(ly.createElement),Ob=function(i){return mde?ly.createElement(i):{}},bde=Ut,$de=Ge,wde=Ob,JN=!bde&&!$de(function(){return Object.defineProperty(wde("div"),"a",{get:function(){return 7}}).a!==7}),Ede=Ut,Ode=Yt,Tde=Md,Sde=Oo,kde=qi,_de=zd,Pde=Ft,Rde=JN,lO=Object.getOwnPropertyDescriptor;Eo.f=Ede?lO:function(n,e){if(n=kde(n),e=_de(e),Rde)try{return lO(n,e)}catch{}if(Pde(n,e))return Sde(!Ode(Tde.f,n,e),n[e])};var xde=Ge,Dde=pt,Nde=/#|\.prototype\./,DI=function(i,n){var e=Fde[Mde(i)];return e===zde?!0:e===Bde?!1:Dde(n)?xde(n):!!n},Mde=DI.normalize=function(i){return String(i).replace(Nde,".").toLowerCase()},Fde=DI.data={},Bde=DI.NATIVE="N",zde=DI.POLYFILL="P",eM=DI,uO=VN,Lde=Lr,jde=RI,Gde=uO(uO.bind),ya=function(i,n){return Lde(i),n===void 0?i:jde?Gde(i,n):function(){return i.apply(n,arguments)}},Gr={},Wde=Ut,Vde=Ge,tM=Wde&&Vde(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Zde=or,Hde=String,Ude=TypeError,Qr=function(i){if(Zde(i))return i;throw new Ude(Hde(i)+" is not an object")},Yde=Ut,Kde=JN,Xde=tM,qC=Qr,dO=zd,Qde=TypeError,df=Object.defineProperty,qde=Object.getOwnPropertyDescriptor,hf="enumerable",cf="configurable",ff="writable";Gr.f=Yde?Xde?function(n,e,t){if(qC(n),e=dO(e),qC(t),typeof n=="function"&&e==="prototype"&&"value"in t&&ff in t&&!t[ff]){var r=qde(n,e);r&&r[ff]&&(n[e]=t.value,t={configurable:cf in t?t[cf]:r[cf],enumerable:hf in t?t[hf]:r[hf],writable:!1})}return df(n,e,t)}:df:function(n,e,t){if(qC(n),e=dO(e),qC(t),Kde)try{return df(n,e,t)}catch{}if("get"in t||"set"in t)throw new Qde("Accessors not supported");return"value"in t&&(n[e]=t.value),n};var Jde=Ut,ehe=Gr,the=Oo,Tn=Jde?function(i,n,e){return ehe.f(i,n,the(1,e))}:function(i,n,e){return i[n]=e,i},JC=Ct,rhe=$g,ihe=VN,nhe=pt,ahe=Eo.f,ohe=eM,Uo=lt,she=ya,Yo=Tn,hO=Ft,ghe=function(i){var n=function(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,r)}return rhe(i,this,arguments)};return n.prototype=i.prototype,n},ae=function(i,n){var e=i.target,t=i.global,r=i.stat,a=i.proto,o=t?JC:r?JC[e]:(JC[e]||{}).prototype,s=t?Uo:Uo[e]||Yo(Uo,e,{})[e],g=s.prototype,A,I,C,l,u,d,h,c,f;for(l in n)A=ohe(t?l:e+(r?".":"#")+l,i.forced),I=!A&&o&&hO(o,l),d=s[l],I&&(i.dontCallGetSet?(f=ahe(o,l),h=f&&f.value):h=o[l]),u=I&&h?h:n[l],!(I&&typeof d==typeof u)&&(i.bind&&I?c=she(u,JC):i.wrap&&I?c=ghe(u):a&&nhe(u)?c=ihe(u):c=u,(i.sham||u&&u.sham||d&&d.sham)&&Yo(c,"sham",!0),Yo(s,l,c),a&&(C=e+"Prototype",hO(Uo,C)||Yo(Uo,C,{}),Yo(Uo[C],l,u),i.real&&g&&(A||!g[l])&&Yo(g,l,u)))},Ahe=ae,Ihe=Ut,cO=Gr.f;Ahe({target:"Object",stat:!0,forced:Object.defineProperty!==cO,sham:!Ihe},{defineProperty:cO});var Che=lt,rM=Che.Object,lhe=zN.exports=function(n,e,t){return rM.defineProperty(n,e,t)};rM.defineProperty.sham&&(lhe.sham=!0);var uhe=zN.exports,dhe=uhe,iM=dhe,hhe=iM,che=hhe,fhe=che,vhe=fhe,nM=vhe,Ld=Ie(nM),phe=va,ma=Array.isArray||function(n){return phe(n)==="Array"},yhe=Math.ceil,mhe=Math.floor,bhe=Math.trunc||function(n){var e=+n;return(e>0?mhe:yhe)(e)},$he=bhe,jd=function(i){var n=+i;return n!==n||n===0?0:$he(n)},whe=jd,Ehe=Math.min,Ohe=function(i){return i>0?Ehe(whe(i),9007199254740991):0},The=Ohe,qr=function(i){return The(i.length)},She=TypeError,khe=9007199254740991,Gd=function(i){if(i>khe)throw She("Maximum allowed index exceeded");return i},_he=zd,Phe=Gr,Rhe=Oo,kg=function(i,n,e){var t=_he(n);t in i?Phe.f(i,t,Rhe(0,e)):i[t]=e},xhe=ut,Dhe=xhe("toStringTag"),aM={};aM[Dhe]="z";var Tb=String(aM)==="[object z]",Nhe=Tb,Mhe=pt,Kl=va,Fhe=ut,Bhe=Fhe("toStringTag"),zhe=Object,Lhe=Kl(function(){return arguments}())==="Arguments",jhe=function(i,n){try{return i[n]}catch{}},Sn=Nhe?Kl:function(i){var n,e,t;return i===void 0?"Undefined":i===null?"Null":typeof(e=jhe(n=zhe(i),Bhe))=="string"?e:Lhe?Kl(n):(t=Kl(n))==="Object"&&Mhe(n.callee)?"Arguments":t},Ghe=gt,Whe=pt,uy=Eb,Vhe=Ghe(Function.toString);Whe(uy.inspectSource)||(uy.inspectSource=function(i){return Vhe(i)});var oM=uy.inspectSource,Zhe=gt,Hhe=Ge,sM=pt,Uhe=Sn,Yhe=br,Khe=oM,gM=function(){},Xhe=[],AM=Yhe("Reflect","construct"),Sb=/^\s*(?:class|function)\b/,Qhe=Zhe(Sb.exec),qhe=!Sb.test(gM),tA=function(n){if(!sM(n))return!1;try{return AM(gM,Xhe,n),!0}catch{return!1}},IM=function(n){if(!sM(n))return!1;switch(Uhe(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qhe||!!Qhe(Sb,Khe(n))}catch{return!0}};IM.sham=!0;var Wd=!AM||Hhe(function(){var i;return tA(tA.call)||!tA(Object)||!tA(function(){i=!0})||i})?IM:tA,fO=ma,Jhe=Wd,ece=or,tce=ut,rce=tce("species"),vO=Array,ice=function(i){var n;return fO(i)&&(n=i.constructor,Jhe(n)&&(n===vO||fO(n.prototype))?n=void 0:ece(n)&&(n=n[rce],n===null&&(n=void 0))),n===void 0?vO:n},nce=ice,Vd=function(i,n){return new(nce(i))(n===0?0:n)},ace=Ge,oce=ut,sce=Eg,gce=oce("species"),NI=function(i){return sce>=51||!ace(function(){var n=[],e=n.constructor={};return e[gce]=function(){return{foo:1}},n[i](Boolean).foo!==1})},Ace=ae,Ice=Ge,Cce=ma,lce=or,uce=jr,dce=qr,pO=Gd,yO=kg,hce=Vd,cce=NI,fce=ut,vce=Eg,CM=fce("isConcatSpreadable"),pce=vce>=51||!Ice(function(){var i=[];return i[CM]=!1,i.concat()[0]!==i}),yce=function(i){if(!lce(i))return!1;var n=i[CM];return n!==void 0?!!n:Cce(i)},mce=!pce||!cce("concat");Ace({target:"Array",proto:!0,forced:mce},{concat:function(n){var e=uce(this),t=hce(e,0),r=0,a,o,s,g,A;for(a=-1,s=arguments.length;ao;)if(s=r[o++],s!==s)return!0}else for(;a>o;o++)if((i||o in r)&&r[o]===e)return i||o||0;return!i&&-1}},Pce={indexOf:_ce(!1)},MI={},Rce=gt,vf=Ft,xce=qi,Dce=Pce.indexOf,Nce=MI,mO=Rce([].push),lM=function(i,n){var e=xce(i),t=0,r=[],a;for(a in e)!vf(Nce,a)&&vf(e,a)&&mO(r,a);for(;n.length>t;)vf(e,a=n[t++])&&(~Dce(r,a)||mO(r,a));return r},kb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mce=lM,Fce=kb,Ud=Object.keys||function(n){return Mce(n,Fce)},Bce=Ut,zce=tM,Lce=Gr,jce=Qr,Gce=qi,Wce=Ud;Zd.f=Bce&&!zce?Object.defineProperties:function(n,e){jce(n);for(var t=Gce(e),r=Wce(e),a=r.length,o=0,s;a>o;)Lce.f(n,s=r[o++],t[s]);return n};var Vce=br,uM=Vce("document","documentElement"),Zce=Sg,Hce=Bd,bO=Zce("keys"),Yd=function(i){return bO[i]||(bO[i]=Hce(i))},Uce=Qr,Yce=Zd,$O=kb,Kce=MI,Xce=uM,Qce=Ob,qce=Yd,wO=">",EO="<",dy="prototype",hy="script",dM=qce("IE_PROTO"),pf=function(){},hM=function(i){return EO+hy+wO+i+EO+"/"+hy+wO},OO=function(i){i.write(hM("")),i.close();var n=i.parentWindow.Object;return i=null,n},Jce=function(){var i=Qce("iframe"),n="java"+hy+":",e;return i.style.display="none",Xce.appendChild(i),i.src=String(n),e=i.contentWindow.document,e.open(),e.write(hM("document.F=Object")),e.close(),e.F},el,Xl=function(){try{el=new ActiveXObject("htmlfile")}catch{}Xl=typeof document<"u"?document.domain&&el?OO(el):Jce():OO(el);for(var i=$O.length;i--;)delete Xl[dy][$O[i]];return Xl()};Kce[dM]=!0;var So=Object.create||function(n,e){var t;return n!==null?(pf[dy]=Uce(n),t=new pf,pf[dy]=null,t[dM]=n):t=Xl(),e===void 0?t:Yce.f(t,e)},FI={},efe=lM,tfe=kb,rfe=tfe.concat("length","prototype");FI.f=Object.getOwnPropertyNames||function(n){return efe(n,rfe)};var _b={},TO=Hd,ife=qr,nfe=kg,afe=Array,ofe=Math.max,cM=function(i,n,e){for(var t=ife(i),r=TO(n,t),a=TO(e===void 0?t:e,t),o=afe(ofe(a-r,0)),s=0;rc;c++)if((s||c in u)&&(y=u[c],p=d(y,c,l),i))if(n)v[c]=p;else if(p)switch(i){case 3:return!0;case 5:return y;case 6:return c;case 2:RO(v,y)}else switch(i){case 4:return!1;case 7:RO(v,y)}return a?-1:t||r?r:v}},Rg={forEach:tl(0),map:tl(1),filter:tl(2),some:tl(3)},Kd=ae,LI=Ct,Rb=Yt,Ufe=gt,Ks=Ut,Xs=Og,Yfe=Ge,Vt=Ft,Kfe=Mt,fy=Qr,Xd=qi,xb=zd,Xfe=To,vy=Oo,VA=So,mM=Ud,Qfe=FI,bM=_b,qfe=BI,$M=Eo,wM=Gr,Jfe=Zd,EM=Md,xO=_g,eve=Pb,Db=Sg,tve=Yd,OM=MI,DO=Bd,rve=ut,ive=zI,nve=yt,ave=pM,ove=ko,TM=Pg,Qd=Rg.forEach,_r=tve("hidden"),qd="Symbol",ZA="prototype",sve=TM.set,NO=TM.getterFor(qd),$i=Object[ZA],Ha=LI.Symbol,CA=Ha&&Ha[ZA],gve=LI.RangeError,Ave=LI.TypeError,bf=LI.QObject,SM=$M.f,Ua=wM.f,kM=bM.f,Ive=EM.f,_M=Ufe([].push),pn=Db("symbols"),jI=Db("op-symbols"),Cve=Db("wks"),py=!bf||!bf[ZA]||!bf[ZA].findChild,PM=function(i,n,e){var t=SM($i,n);t&&delete $i[n],Ua(i,n,e),t&&i!==$i&&Ua($i,n,t)},yy=Ks&&Yfe(function(){return VA(Ua({},"a",{get:function(){return Ua(this,"a",{value:7}).a}})).a!==7})?PM:Ua,$f=function(i,n){var e=pn[i]=VA(CA);return sve(e,{type:qd,tag:i,description:n}),Ks||(e.description=n),e},Jd=function(n,e,t){n===$i&&Jd(jI,e,t),fy(n);var r=xb(e);return fy(t),Vt(pn,r)?(t.enumerable?(Vt(n,_r)&&n[_r][r]&&(n[_r][r]=!1),t=VA(t,{enumerable:vy(0,!1)})):(Vt(n,_r)||Ua(n,_r,vy(1,{})),n[_r][r]=!0),yy(n,r,t)):Ua(n,r,t)},Nb=function(n,e){fy(n);var t=Xd(e),r=mM(t).concat(NM(t));return Qd(r,function(a){(!Ks||Rb(RM,t,a))&&Jd(n,a,t[a])}),n},lve=function(n,e){return e===void 0?VA(n):Nb(VA(n),e)},RM=function(n){var e=xb(n),t=Rb(Ive,this,e);return this===$i&&Vt(pn,e)&&!Vt(jI,e)?!1:t||!Vt(this,e)||!Vt(pn,e)||Vt(this,_r)&&this[_r][e]?t:!0},xM=function(n,e){var t=Xd(n),r=xb(e);if(!(t===$i&&Vt(pn,r)&&!Vt(jI,r))){var a=SM(t,r);return a&&Vt(pn,r)&&!(Vt(t,_r)&&t[_r][r])&&(a.enumerable=!0),a}},DM=function(n){var e=kM(Xd(n)),t=[];return Qd(e,function(r){!Vt(pn,r)&&!Vt(OM,r)&&_M(t,r)}),t},NM=function(i){var n=i===$i,e=kM(n?jI:Xd(i)),t=[];return Qd(e,function(r){Vt(pn,r)&&(!n||Vt($i,r))&&_M(t,pn[r])}),t};Xs||(Ha=function(){if(Kfe(CA,this))throw new Ave("Symbol is not a constructor");var n=!arguments.length||arguments[0]===void 0?void 0:Xfe(arguments[0]),e=DO(n),t=function(r){var a=this===void 0?LI:this;a===$i&&Rb(t,jI,r),Vt(a,_r)&&Vt(a[_r],e)&&(a[_r][e]=!1);var o=vy(1,r);try{yy(a,e,o)}catch(s){if(!(s instanceof gve))throw s;PM(a,e,o)}};return Ks&&py&&yy($i,e,{configurable:!0,set:t}),$f(e,n)},CA=Ha[ZA],xO(CA,"toString",function(){return NO(this).tag}),xO(Ha,"withoutSetter",function(i){return $f(DO(i),i)}),EM.f=RM,wM.f=Jd,Jfe.f=Nb,$M.f=xM,Qfe.f=bM.f=DM,qfe.f=NM,ive.f=function(i){return $f(rve(i),i)},Ks&&eve(CA,"description",{configurable:!0,get:function(){return NO(this).description}}));Kd({global:!0,wrap:!0,forced:!Xs,sham:!Xs},{Symbol:Ha});Qd(mM(Cve),function(i){nve(i)});Kd({target:qd,stat:!0,forced:!Xs},{useSetter:function(){py=!0},useSimple:function(){py=!1}});Kd({target:"Object",stat:!0,forced:!Xs,sham:!Ks},{create:lve,defineProperty:Jd,defineProperties:Nb,getOwnPropertyDescriptor:xM});Kd({target:"Object",stat:!0,forced:!Xs},{getOwnPropertyNames:DM});ave();ove(Ha,qd);OM[_r]=!0;var uve=Og,MM=uve&&!!Symbol.for&&!!Symbol.keyFor,dve=ae,hve=br,cve=Ft,fve=To,FM=Sg,vve=MM,wf=FM("string-to-symbol-registry"),pve=FM("symbol-to-string-registry");dve({target:"Symbol",stat:!0,forced:!vve},{for:function(i){var n=fve(i);if(cve(wf,n))return wf[n];var e=hve("Symbol")(n);return wf[n]=e,pve[e]=n,e}});var yve=ae,mve=Ft,bve=xI,$ve=Tg,wve=Sg,Eve=MM,MO=wve("symbol-to-string-registry");yve({target:"Symbol",stat:!0,forced:!Eve},{keyFor:function(n){if(!bve(n))throw new TypeError($ve(n)+" is not a symbol");if(mve(MO,n))return MO[n]}});var Ove=gt,GI=Ove([].slice),Tve=gt,FO=ma,Sve=pt,BO=va,kve=To,zO=Tve([].push),_ve=function(i){if(Sve(i))return i;if(FO(i)){for(var n=i.length,e=[],t=0;t=n.length)return i.target=void 0,al(void 0,!0);switch(i.kind){case"keys":return al(e,!1);case"values":return al(n[e],!1)}return al([e,n[e]],!1)},"values");JO.Arguments=JO.Array;var gye={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},Aye=gye,Iye=Ct,Cye=Sn,lye=Tn,eT=xg,uye=ut,tT=uye("toStringTag");for(var Sf in Aye){var rT=Iye[Sf],kf=rT&&rT.prototype;kf&&Cye(kf)!==tT&&lye(kf,tT,Sf),eT[Sf]=eT.Array}var dye=lpe,QM=dye,hye=ut,cye=Gr.f,iT=hye("metadata"),nT=Function.prototype;nT[iT]===void 0&&cye(nT,iT,{value:null});var fye=yt;fye("asyncDispose");var vye=yt;vye("dispose");var pye=yt;pye("metadata");var yye=QM,mye=yye,bye=br,$ye=gt,Bb=bye("Symbol"),wye=Bb.keyFor,Eye=$ye(Bb.prototype.valueOf),qM=Bb.isRegisteredSymbol||function(n){try{return wye(Eye(n))!==void 0}catch{return!1}},Oye=ae,Tye=qM;Oye({target:"Symbol",stat:!0},{isRegisteredSymbol:Tye});var Sye=Sg,JM=br,kye=gt,_ye=xI,Pye=ut,Fu=JM("Symbol"),aT=Fu.isWellKnownSymbol,eF=JM("Object","getOwnPropertyNames"),Rye=kye(Fu.prototype.valueOf),oT=Sye("wks");for(var _f=0,sT=eF(Fu),xye=sT.length;_f=a?i?"":void 0:(o=AT(t,r),o<55296||o>56319||r+1===a||(s=AT(t,r+1))<56320||s>57343?i?Xye(t,r):o:i?Qye(t,r,r+2):(o-55296<<10)+(s-56320)+65536)}},Jye={charAt:qye(!0)},eme=Jye.charAt,tme=To,rF=Pg,rme=Mb,IT=Fb,iF="String Iterator",ime=rF.set,nme=rF.getterFor(iF);rme(String,"String",function(i){ime(this,{type:iF,string:tme(i),index:0})},function(){var n=nme(this),e=n.string,t=n.index,r;return t>=e.length?IT(void 0,!0):(r=eme(e,t),n.index+=r.length,IT(r,!1))});var ame=zI,ome=ame.f("iterator"),sme=ome,nF=sme,gme=nF,Ame=gme,Ime=Ame,Cme=Ime,aF=Cme,lme=Ie(aF);function Qs(i){"@babel/helpers - typeof";return Qs=typeof ds=="function"&&typeof lme=="symbol"?function(n){return typeof n}:function(n){return n&&typeof ds=="function"&&n.constructor===ds&&n!==ds.prototype?"symbol":typeof n},Qs(i)}var ume=zI,dme=ume.f("toPrimitive"),hme=dme,cme=hme,fme=cme,vme=fme,pme=vme,yme=pme,mme=yme,bme=Ie(mme);function $me(i,n){if(Qs(i)!=="object"||i===null)return i;var e=i[bme];if(e!==void 0){var t=e.call(i,n);if(Qs(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function oF(i){var n=$me(i,"string");return Qs(n)==="symbol"?n:String(n)}function CT(i,n){for(var e=0;e=0:s>g;g+=A)g in o&&(r=e(r,o[g],g,a));return r}},Ume={left:Hme(!1)},Yme=Ge,rh=function(i,n){var e=[][i];return!!e&&Yme(function(){e.call(null,n||function(){return 1},1)})},Kme=Ct,Xme=va,VI=Xme(Kme.process)==="process",Qme=ae,qme=Ume.left,Jme=rh,dT=Eg,ebe=VI,tbe=!ebe&&dT>79&&dT<83,rbe=tbe||!Jme("reduce");Qme({target:"Array",proto:!0,forced:rbe},{reduce:function(n){var e=arguments.length;return qme(this,n,e,e>1?arguments[1]:void 0)}});var ibe=sr,nbe=ibe("Array","reduce"),abe=Mt,obe=nbe,xf=Array.prototype,sbe=function(i){var n=i.reduce;return i===xf||abe(xf,i)&&n===xf.reduce?obe:n},gbe=sbe,Abe=gbe,Ibe=Abe,Cbe=Ie(Ibe),lbe=ae,ube=Rg.filter,dbe=NI,hbe=dbe("filter");lbe({target:"Array",proto:!0,forced:!hbe},{filter:function(n){return ube(this,n,arguments.length>1?arguments[1]:void 0)}});var cbe=sr,fbe=cbe("Array","filter"),vbe=Mt,pbe=fbe,Df=Array.prototype,ybe=function(i){var n=i.filter;return i===Df||vbe(Df,i)&&n===Df.filter?pbe:n},mbe=ybe,bbe=mbe,$be=bbe,hs=Ie($be),wbe=ae,Ebe=Rg.map,Obe=NI,Tbe=Obe("map");wbe({target:"Array",proto:!0,forced:!Tbe},{map:function(n){return Ebe(this,n,arguments.length>1?arguments[1]:void 0)}});var Sbe=sr,kbe=Sbe("Array","map"),_be=Mt,Pbe=kbe,Nf=Array.prototype,Rbe=function(i){var n=i.map;return i===Nf||_be(Nf,i)&&n===Nf.map?Pbe:n},xbe=Rbe,Dbe=xbe,Nbe=Dbe,pi=Ie(Nbe),Mbe=ma,Fbe=qr,Bbe=Gd,zbe=ya,lF=function(i,n,e,t,r,a,o,s){for(var g=r,A=0,I=o?zbe(o,s):!1,C,l;A0&&Mbe(C)?(l=Fbe(C),g=lF(i,n,C,l,g,a-1)-1):(Bbe(g+1),i[g]=C),g++),A++;return g},Lbe=lF,jbe=ae,Gbe=Lbe,Wbe=Lr,Vbe=jr,Zbe=qr,Hbe=Vd;jbe({target:"Array",proto:!0},{flatMap:function(n){var e=Vbe(this),t=Zbe(e),r;return Wbe(n),r=Hbe(e,0),r.length=Gbe(r,e,e,t,0,1,n,arguments.length>1?arguments[1]:void 0),r}});var Ube=sr;Ube("Array","flatMap");var Ybe=Yt,hT=Qr,Kbe=wb,uF=function(i,n,e){var t,r;hT(i);try{if(t=Kbe(i,"return"),!t){if(n==="throw")throw e;return e}t=Ybe(t,i)}catch(a){r=!0,t=a}if(n==="throw")throw e;if(r)throw t;return hT(t),e},Xbe=Qr,Qbe=uF,qbe=function(i,n,e,t){try{return t?n(Xbe(e)[0],e[1]):n(e)}catch(r){Qbe(i,"throw",r)}},Jbe=ut,e$e=xg,t$e=Jbe("iterator"),r$e=Array.prototype,dF=function(i){return i!==void 0&&(e$e.Array===i||r$e[t$e]===i)},i$e=Sn,cT=wb,n$e=wg,a$e=xg,o$e=ut,s$e=o$e("iterator"),ih=function(i){if(!n$e(i))return cT(i,s$e)||cT(i,"@@iterator")||a$e[i$e(i)]},g$e=Yt,A$e=Lr,I$e=Qr,C$e=Tg,l$e=ih,u$e=TypeError,jb=function(i,n){var e=arguments.length<2?l$e(i):n;if(A$e(e))return I$e(g$e(e,i));throw new u$e(C$e(i)+" is not iterable")},d$e=ya,h$e=Yt,c$e=jr,f$e=qbe,v$e=dF,p$e=Wd,y$e=qr,fT=kg,m$e=jb,b$e=ih,vT=Array,$$e=function(n){var e=c$e(n),t=p$e(this),r=arguments.length,a=r>1?arguments[1]:void 0,o=a!==void 0;o&&(a=d$e(a,r>2?arguments[2]:void 0));var s=b$e(e),g=0,A,I,C,l,u,d;if(s&&!(this===vT&&v$e(s)))for(l=m$e(e,s),u=l.next,I=t?new this:[];!(C=h$e(u,l)).done;g++)d=o?f$e(l,a,[C.value,g],!0):C.value,fT(I,g,d);else for(A=y$e(e),I=t?new this(A):vT(A);A>g;g++)d=o?a(e[g],g):e[g],fT(I,g,d);return I.length=g,I},w$e=ut,hF=w$e("iterator"),cF=!1;try{var E$e=0,pT={next:function(){return{done:!!E$e++}},return:function(){cF=!0}};pT[hF]=function(){return this},Array.from(pT,function(){throw 2})}catch{}var fF=function(i,n){try{if(!n&&!cF)return!1}catch{return!1}var e=!1;try{var t={};t[hF]=function(){return{next:function(){return{done:e=!0}}}},i(t)}catch{}return e},O$e=ae,T$e=$$e,S$e=fF,k$e=!S$e(function(i){Array.from(i)});O$e({target:"Array",stat:!0,forced:k$e},{from:T$e});var _$e=lt,P$e=_$e.Array.from,R$e=P$e,vF=R$e,x$e=vF,Gb=Ie(x$e),D$e=ih,N$e=D$e,M$e=N$e,F$e=M$e,B$e=F$e,z$e=B$e,L$e=z$e,j$e=L$e,pF=j$e,yF=Ie(pF),G$e=pF,Wb=Ie(G$e),W$e=ae,V$e=ma;W$e({target:"Array",stat:!0},{isArray:V$e});var Z$e=lt,H$e=Z$e.Array.isArray,U$e=H$e,mF=U$e,Y$e=mF,K$e=Y$e,X$e=K$e,Q$e=X$e,q$e=Q$e,bF=Ie(q$e);function J$e(i){if(bF(i))return i}var e1e=Ut,t1e=ma,r1e=TypeError,i1e=Object.getOwnPropertyDescriptor,n1e=e1e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(i){return i instanceof TypeError}}(),$F=n1e?function(i,n){if(t1e(i)&&!i1e(i,"length").writable)throw new r1e("Cannot set read only .length");return i.length=n}:function(i,n){return i.length=n},a1e=ae,o1e=jr,s1e=qr,g1e=$F,A1e=Gd,I1e=Ge,C1e=I1e(function(){return[].push.call({length:4294967296},1)!==4294967297}),l1e=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(i){return i instanceof TypeError}},u1e=C1e||!l1e();a1e({target:"Array",proto:!0,forced:u1e},{push:function(n){var e=o1e(this),t=s1e(e),r=arguments.length;A1e(t+r);for(var a=0;ai.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?arguments[1]:void 0)},W0e=ae,bT=G0e;W0e({target:"Array",proto:!0,forced:[].forEach!==bT},{forEach:bT});var V0e=sr,Z0e=V0e("Array","forEach"),H0e=Z0e,U0e=H0e,Y0e=Sn,K0e=Ft,X0e=Mt,Q0e=U0e,Lf=Array.prototype,q0e={DOMTokenList:!0,NodeList:!0},_F=function(i){var n=i.forEach;return i===Lf||X0e(Lf,i)&&n===Lf.forEach||K0e(q0e,Y0e(i))?Q0e:n},J0e=_F,so=Ie(J0e),ewe=ae,twe=gt,rwe=ma,iwe=twe([].reverse),$T=[1,2];ewe({target:"Array",proto:!0,forced:String($T)===String($T.reverse())},{reverse:function(){return rwe(this)&&(this.length=this.length),iwe(this)}});var nwe=sr,awe=nwe("Array","reverse"),owe=Mt,swe=awe,jf=Array.prototype,gwe=function(i){var n=i.reverse;return i===jf||owe(jf,i)&&n===jf.reverse?swe:n},Awe=gwe,PF=Awe,Iwe=PF,Cwe=Ie(Iwe),wT=Tg,lwe=TypeError,RF=function(i,n){if(!delete i[n])throw new lwe("Cannot delete property "+wT(n)+" of "+wT(i))},uwe=ae,dwe=jr,hwe=Hd,cwe=jd,fwe=qr,vwe=$F,pwe=Gd,ywe=Vd,mwe=kg,Gf=RF,bwe=NI,$we=bwe("splice"),wwe=Math.max,Ewe=Math.min;uwe({target:"Array",proto:!0,forced:!$we},{splice:function(n,e){var t=dwe(this),r=fwe(t),a=hwe(n,r),o=arguments.length,s,g,A,I,C,l;for(o===0?s=g=0:o===1?(s=0,g=r-a):(s=o-2,g=Ewe(wwe(cwe(e),0),r-a)),pwe(r+s-g),A=ywe(t,g),I=0;Ir-g+s;I--)Gf(t,I-1)}else if(s>g)for(I=r-g;I>a;I--)C=I+g-1,l=I+s-1,C in t?t[l]=t[C]:Gf(t,l);for(I=0;Ia;)for(var g=Lwe(arguments[a++]),A=o?jwe(Vf(g),o(g)):Vf(g),I=A.length,C=0,l;I>C;)l=A[C++],(!ET||Nwe(s,g,l))&&(t[l]=g[l]);return t}:Xo,Wwe=ae,TT=Gwe;Wwe({target:"Object",stat:!0,forced:Object.assign!==TT},{assign:TT});var Vwe=lt,Zwe=Vwe.Object.assign,Hwe=Zwe,Uwe=Hwe,Ywe=Uwe,Kwe=Ie(Ywe),Xwe=ae,Qwe=Ge,qwe=jr,DF=eh,Jwe=ZM,eEe=Qwe(function(){DF(1)});Xwe({target:"Object",stat:!0,forced:eEe,sham:!Jwe},{getPrototypeOf:function(n){return DF(qwe(n))}});var tEe=lt,rEe=tEe.Object.getPrototypeOf,iEe=rEe,nEe=iEe,aEe=ae,oEe=Ut,sEe=So;aEe({target:"Object",stat:!0,sham:!oEe},{create:sEe});var gEe=lt,AEe=gEe.Object,IEe=function(n,e){return AEe.create(n,e)},CEe=IEe,NF=CEe,lEe=NF,uEe=Ie(lEe),Ey=lt,dEe=$g;Ey.JSON||(Ey.JSON={stringify:JSON.stringify});var hEe=function(n,e,t){return dEe(Ey.JSON.stringify,null,arguments)},cEe=hEe,fEe=cEe,vEe=fEe,pEe=Ie(vEe),yEe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",mEe=TypeError,MF=function(i,n){if(ie,o=$Ee(t)?t:SEe(t),s=a?OEe(arguments,e):[],g=a?function(){bEe(o,this,s)}:o;return n?i(g,r):i(g)}:i},_Ee=ae,zF=Ct,PEe=BF,ST=PEe(zF.setInterval,!0);_Ee({global:!0,bind:!0,forced:zF.setInterval!==ST},{setInterval:ST});var REe=ae,LF=Ct,xEe=BF,kT=xEe(LF.setTimeout,!0);REe({global:!0,bind:!0,forced:LF.setTimeout!==kT},{setTimeout:kT});var DEe=lt,NEe=DEe.setTimeout,MEe=NEe,FEe=Ie(MEe),jF={exports:{}};(function(i){function n(t){if(t)return e(t);this._callbacks=new Map}function e(t){return Object.assign(t,n.prototype),t._callbacks=new Map,t}n.prototype.on=function(t,r){const a=this._callbacks.get(t)??[];return a.push(r),this._callbacks.set(t,a),this},n.prototype.once=function(t,r){const a=(...o)=>{this.off(t,a),r.apply(this,o)};return a.fn=r,this.on(t,a),this},n.prototype.off=function(t,r){if(t===void 0&&r===void 0)return this._callbacks.clear(),this;if(r===void 0)return this._callbacks.delete(t),this;const a=this._callbacks.get(t);if(a){for(const[o,s]of a.entries())if(s===r||s.fn===r){a.splice(o,1);break}a.length===0?this._callbacks.delete(t):this._callbacks.set(t,a)}return this},n.prototype.emit=function(t,...r){const a=this._callbacks.get(t);if(a){const o=[...a];for(const s of o)s.apply(this,r)}return this},n.prototype.listeners=function(t){return this._callbacks.get(t)??[]},n.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let r=0;for(const a of this._callbacks.values())r+=a.length;return r},n.prototype.hasListeners=function(t){return this.listenerCount(t)>0},n.prototype.addEventListener=n.prototype.on,n.prototype.removeListener=n.prototype.off,n.prototype.removeEventListener=n.prototype.off,n.prototype.removeAllListeners=n.prototype.off,i.exports=n})(jF);var BEe=jF.exports,zEe=Ie(BEe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */function Ti(){return Ti=Object.assign||function(i){for(var n=1;n"u"?{style:{}}:document.createElement("div"),jEe="function",cs=Math.round,Ao=Math.abs,Hb=Date.now;function sh(i,n){for(var e,t,r=n[0].toUpperCase()+n.slice(1),a=0;a<_T.length;){if(e=_T[a],t=e?e+r:n,t in i)return t;a++}}var An;typeof window>"u"?An={}:An=window;var GF=sh(LEe.style,"touchAction"),WF=GF!==void 0;function GEe(){if(!WF)return!1;var i={},n=An.CSS&&An.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return i[e]=n?An.CSS.supports("touch-action",e):!0}),i}var VF="compute",ZF="auto",Ty="manipulation",Ya="none",HA="pan-x",UA="pan-y",sl=GEe(),WEe=/mobile|tablet|ip(ad|hone|od)|android/i,HF="ontouchstart"in An,VEe=sh(An,"PointerEvent")!==void 0,ZEe=HF&&WEe.test(navigator.userAgent),ZI="touch",HEe="pen",Ub="mouse",UEe="kinect",YEe=25,fr=1,_o=2,xt=4,Nr=8,Bu=1,HI=2,UI=4,YI=8,qs=16,Vi=HI|UI,Ka=YI|qs,UF=Vi|Ka,YF=["x","y"],zu=["clientX","clientY"];function In(i,n,e){var t;if(i)if(i.forEach)i.forEach(n,e);else if(i.length!==void 0)for(t=0;t-1}function KEe(i){if(Fa(i,Ya))return Ya;var n=Fa(i,HA),e=Fa(i,UA);return n&&e?Ya:n||e?n?HA:UA:Fa(i,Ty)?Ty:ZF}var KF=function(){function i(e,t){this.manager=e,this.set(t)}var n=i.prototype;return n.set=function(t){t===VF&&(t=this.compute()),WF&&this.manager.element.style&&sl[t]&&(this.manager.element.style[GF]=t),this.actions=t.toLowerCase().trim()},n.update=function(){this.set(this.manager.options.touchAction)},n.compute=function(){var t=[];return In(this.manager.recognizers,function(r){gh(r.options.enable,[r])&&(t=t.concat(r.getTouchAction()))}),KEe(t.join(" "))},n.preventDefaults=function(t){var r=t.srcEvent,a=t.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var o=this.actions,s=Fa(o,Ya)&&!sl[Ya],g=Fa(o,UA)&&!sl[UA],A=Fa(o,HA)&&!sl[HA];if(s){var I=t.pointers.length===1,C=t.distance<2,l=t.deltaTime<250;if(I&&C&&l)return}if(!(A&&g)&&(s||g&&a&Vi||A&&a&Ka))return this.preventSrc(r)},n.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},i}();function Yb(i,n){for(;i;){if(i===n)return!0;i=i.parentNode}return!1}function XF(i){var n=i.length;if(n===1)return{x:cs(i[0].clientX),y:cs(i[0].clientY)};for(var e=0,t=0,r=0;r=Ao(n)?i<0?HI:UI:n<0?YI:qs}function XEe(i,n){var e=n.center,t=i.offsetDelta||{},r=i.prevDelta||{},a=i.prevInput||{};(n.eventType===fr||a.eventType===xt)&&(r=i.prevDelta={x:a.deltaX||0,y:a.deltaY||0},t=i.offsetDelta={x:e.x,y:e.y}),n.deltaX=r.x+(e.x-t.x),n.deltaY=r.y+(e.y-t.y)}function qF(i,n,e){return{x:n/i||0,y:e/i||0}}function QEe(i,n){return Lu(n[0],n[1],zu)/Lu(i[0],i[1],zu)}function qEe(i,n){return Sy(n[1],n[0],zu)+Sy(i[1],i[0],zu)}function JEe(i,n){var e=i.lastInterval||n,t=n.timeStamp-e.timeStamp,r,a,o,s;if(n.eventType!==Nr&&(t>YEe||e.velocity===void 0)){var g=n.deltaX-e.deltaX,A=n.deltaY-e.deltaY,I=qF(t,g,A);a=I.x,o=I.y,r=Ao(I.x)>Ao(I.y)?I.x:I.y,s=QF(g,A),i.lastInterval=n}else r=e.velocity,a=e.velocityX,o=e.velocityY,s=e.direction;n.velocity=r,n.velocityX=a,n.velocityY=o,n.direction=s}function eOe(i,n){var e=i.session,t=n.pointers,r=t.length;e.firstInput||(e.firstInput=PT(n)),r>1&&!e.firstMultiple?e.firstMultiple=PT(n):r===1&&(e.firstMultiple=!1);var a=e.firstInput,o=e.firstMultiple,s=o?o.center:a.center,g=n.center=XF(t);n.timeStamp=Hb(),n.deltaTime=n.timeStamp-a.timeStamp,n.angle=Sy(s,g),n.distance=Lu(s,g),XEe(e,n),n.offsetDirection=QF(n.deltaX,n.deltaY);var A=qF(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=A.x,n.overallVelocityY=A.y,n.overallVelocity=Ao(A.x)>Ao(A.y)?A.x:A.y,n.scale=o?QEe(o.pointers,t):1,n.rotation=o?qEe(o.pointers,t):0,n.maxPointers=e.prevInput?n.pointers.length>e.prevInput.maxPointers?n.pointers.length:e.prevInput.maxPointers:n.pointers.length,JEe(e,n);var I=i.element,C=n.srcEvent,l;C.composedPath?l=C.composedPath()[0]:C.path?l=C.path[0]:l=C.target,Yb(l,I)&&(I=l),n.target=I}function tOe(i,n,e){var t=e.pointers.length,r=e.changedPointers.length,a=n&fr&&t-r===0,o=n&(xt|Nr)&&t-r===0;e.isFirst=!!a,e.isFinal=!!o,a&&(i.session={}),e.eventType=n,eOe(i,e),i.emit("hammer.input",e),i.recognize(e),i.session.prevInput=e}function YA(i){return i.trim().split(/\s+/g)}function $A(i,n,e){In(YA(n),function(t){i.addEventListener(t,e,!1)})}function wA(i,n,e){In(YA(n),function(t){i.removeEventListener(t,e,!1)})}function RT(i){var n=i.ownerDocument||i;return n.defaultView||n.parentWindow||window}var Dg=function(){function i(e,t){var r=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(a){gh(e.options.enable,[e])&&r.handler(a)},this.init()}var n=i.prototype;return n.handler=function(){},n.init=function(){this.evEl&&$A(this.element,this.evEl,this.domHandler),this.evTarget&&$A(this.target,this.evTarget,this.domHandler),this.evWin&&$A(RT(this.element),this.evWin,this.domHandler)},n.destroy=function(){this.evEl&&wA(this.element,this.evEl,this.domHandler),this.evTarget&&wA(this.target,this.evTarget,this.domHandler),this.evWin&&wA(RT(this.element),this.evWin,this.domHandler)},i}();function Io(i,n,e){if(i.indexOf&&!e)return i.indexOf(n);for(var t=0;tg[n]}):t=t.sort()),t}var nOe={touchstart:fr,touchmove:_o,touchend:xt,touchcancel:Nr},aOe="touchstart touchmove touchend touchcancel",Xb=function(i){li(n,i);function n(){var t;return n.prototype.evTarget=aOe,t=i.apply(this,arguments)||this,t.targetIds={},t}var e=n.prototype;return e.handler=function(r){var a=nOe[r.type],o=oOe.call(this,r,a);o&&this.callback(this.manager,a,{pointers:o[0],changedPointers:o[1],pointerType:ZI,srcEvent:r})},n}(Dg);function oOe(i,n){var e=KA(i.touches),t=this.targetIds;if(n&(fr|_o)&&e.length===1)return t[e[0].identifier]=!0,[e,e];var r,a,o=KA(i.changedTouches),s=[],g=this.target;if(a=e.filter(function(A){return Yb(A.target,g)}),n===fr)for(r=0;r-1&&r.splice(s,1)};setTimeout(a,IOe)}}function COe(i,n){i&fr?(this.primaryTouch=n.changedPointers[0].identifier,DT.call(this,n)):i&(xt|Nr)&&DT.call(this,n)}function lOe(i){for(var n=i.srcEvent.clientX,e=i.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(r,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var r=this,a=this.state;function o(s){r.manager.emit(s,t)}a=Qn&&o(r.options.event+NT(a))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Bi},n.canEmit=function(){for(var t=0;ta.threshold&&g&a.direction},e.attrTest=function(r){return eg.prototype.attrTest.call(this,r)&&(this.state&Ai||!(this.state&Ai)&&this.directionTest(r))},e.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var a=iB(r.direction);a&&(r.additionalEvent=this.options.event+a),i.prototype.emit.call(this,r)},n}(eg),nB=function(i){li(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Ti({event:"swipe",threshold:10,velocity:.3,direction:Vi|Ka,pointers:1},t))||this}var e=n.prototype;return e.getTouchAction=function(){return qb.prototype.getTouchAction.call(this)},e.attrTest=function(r){var a=this.options.direction,o;return a&(Vi|Ka)?o=r.overallVelocity:a&Vi?o=r.overallVelocityX:a&Ka&&(o=r.overallVelocityY),i.prototype.attrTest.call(this,r)&&a&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&Ao(o)>this.options.velocity&&r.eventType&xt},e.emit=function(r){var a=iB(r.offsetDirection);a&&this.manager.emit(this.options.event+a,r),this.manager.emit(this.options.event,r)},n}(eg),aB=function(i){li(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Ti({event:"pinch",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[Ya]},e.attrTest=function(r){return i.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&Ai)},e.emit=function(r){if(r.scale!==1){var a=r.scale<1?"in":"out";r.additionalEvent=this.options.event+a}i.prototype.emit.call(this,r)},n}(eg),oB=function(i){li(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Ti({event:"rotate",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[Ya]},e.attrTest=function(r){return i.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&Ai)},n}(eg),sB=function(i){li(n,i);function n(t){var r;return t===void 0&&(t={}),r=i.call(this,Ti({event:"press",pointers:1,time:251,threshold:9},t))||this,r._timer=null,r._input=null,r}var e=n.prototype;return e.getTouchAction=function(){return[ZF]},e.process=function(r){var a=this,o=this.options,s=r.pointers.length===o.pointers,g=r.distanceo.time;if(this._input=r,!g||!s||r.eventType&(xt|Nr)&&!A)this.reset();else if(r.eventType&fr)this.reset(),this._timer=setTimeout(function(){a.state=Cn,a.tryEmit()},o.time);else if(r.eventType&xt)return Cn;return Bi},e.reset=function(){clearTimeout(this._timer)},e.emit=function(r){this.state===Cn&&(r&&r.eventType&xt?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=Hb(),this.manager.emit(this.options.event,this._input)))},n}(KI),gB={domEvents:!1,touchAction:VF,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},MT=[[oB,{enable:!1}],[aB,{enable:!1},["rotate"]],[nB,{direction:Vi}],[qb,{direction:Vi},["swipe"]],[ky],[ky,{event:"doubletap",taps:2},["tap"]],[sB]],cOe=1,FT=2;function BT(i,n){var e=i.element;if(e.style){var t;In(i.options.cssProps,function(r,a){t=sh(e.style,a),n?(i.oldCssProps[t]=e.style[t],e.style[t]=r):e.style[t]=i.oldCssProps[t]||""}),n||(i.oldCssProps={})}}function fOe(i,n){var e=document.createEvent("Event");e.initEvent(i,!0,!0),e.gesture=n,n.target.dispatchEvent(e)}var zT=function(){function i(e,t){var r=this;this.options=go({},gB,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=uOe(this),this.touchAction=new KF(this,this.options.touchAction),BT(this,!0),In(this.options.recognizers,function(a){var o=r.add(new a[0](a[1]));a[2]&&o.recognizeWith(a[2]),a[3]&&o.requireFailure(a[3])},this)}var n=i.prototype;return n.set=function(t){return go(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},n.stop=function(t){this.session.stopped=t?FT:cOe},n.recognize=function(t){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(t);var a,o=this.recognizers,s=r.curRecognizer;(!s||s&&s.state&Cn)&&(r.curRecognizer=null,s=null);for(var g=0;g\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,t,a),i.apply(this,arguments)}}var IB=AB(function(i,n,e){for(var t=Object.keys(n),r=0;r=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function TOe(i,n){var e;if(i){if(typeof i=="string")return jT(i,n);var t=oh(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Gb(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return jT(i,n)}}function jT(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?e-1:0),r=1;r2){var t;return ju.apply(void 0,ah(t=[uB(n[0],n[1])]).call(t,Pr(oh(n).call(n,2))))}var r=n[0],a=n[1];if(r instanceof Date&&a instanceof Date)return r.setTime(a.getTime()),r;var o=CB(S0e(a)),s;try{for(o.s();!(s=o.n()).done;){var g=s.value;Object.prototype.propertyIsEnumerable.call(a,g)&&(a[g]===lB?delete r[g]:r[g]!==null&&a[g]!==null&&typeof r[g]=="object"&&typeof a[g]=="object"&&!Ur(r[g])&&!Ur(a[g])?r[g]=ju(r[g],a[g]):r[g]=dB(a[g]))}}catch(A){o.e(A)}finally{o.f()}return r}function dB(i){return Ur(i)?pi(i).call(i,function(n){return dB(n)}):typeof i=="object"&&i!==null?i instanceof Date?new Date(i.getTime()):ju({},i):i}function hB(i){for(var n=0,e=Zb(i);no;)g=t(e,s=r[o++]),g!==void 0&&uTe(a,s,g);return a}});var dTe=lt,hTe=dTe.Object.getOwnPropertyDescriptors,cTe=hTe,fTe=cTe,vTe=fTe,HT=Ie(vTe),EB={exports:{}},pTe=ae,yTe=Ut,UT=Zd.f;pTe({target:"Object",stat:!0,forced:Object.defineProperties!==UT,sham:!yTe},{defineProperties:UT});var mTe=lt,OB=mTe.Object,bTe=EB.exports=function(n,e){return OB.defineProperties(n,e)};OB.defineProperties.sham&&(bTe.sham=!0);var $Te=EB.exports,wTe=$Te,ETe=wTe,OTe=ETe,TTe=Ie(OTe),STe=iM,kTe=Ie(STe);function TB(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var _Te=NF,PTe=_Te,RTe=PTe,xTe=RTe,SB=xTe,DTe=Ie(SB),NTe=ae,MTe=YM;NTe({target:"Object",stat:!0},{setPrototypeOf:MTe});var FTe=lt,BTe=FTe.Object.setPrototypeOf,zTe=BTe,LTe=zTe,jTe=LTe,GTe=jTe,WTe=GTe,VTe=WTe,kB=VTe,_y=Ie(kB),ZTe=IF,HTe=ZTe,UTe=HTe,YTe=UTe,KTe=YTe,_B=Ie(KTe);function Py(i,n){var e;return Py=_y?_B(e=_y).call(e):function(r,a){return r.__proto__=a,r},Py(i,n)}function XTe(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=DTe(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Ld(i,"prototype",{writable:!1}),n&&Py(i,n)}function QTe(i,n){if(n&&(Qs(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TB(i)}var qTe=nEe,JTe=qTe,e2e=JTe,t2e=e2e,PB=t2e,YT=Ie(PB);function Gu(i){var n;return Gu=_y?_B(n=YT).call(n):function(t){return t.__proto__||YT(t)},Gu(i)}var RB={exports:{}},xB={exports:{}};(function(i){var n=zb,e=aF;function t(r){"@babel/helpers - typeof";return i.exports=t=typeof n=="function"&&typeof e=="symbol"?function(a){return typeof a}:function(a){return a&&typeof n=="function"&&a.constructor===n&&a!==n.prototype?"symbol":typeof a},i.exports.__esModule=!0,i.exports.default=i.exports,t(r)}i.exports=t,i.exports.__esModule=!0,i.exports.default=i.exports})(xB);var r2e=xB.exports,i2e=_F,n2e=i2e,a2e=n2e,o2e=a2e,s2e=o2e,KT=Ft,g2e=Vb,A2e=Eo,I2e=Gr,C2e=function(i,n,e){for(var t=g2e(n),r=I2e.f,a=A2e.f,o=0;oC;C++)if(u=f(i[C]),u&&QT(JT,u))return u;return new Jl(!1)}A=x2e(i,I)}for(d=a?i.next:A.next;!(h=S2e(d,A)).done;){try{u=f(h.value)}catch(v){qT(A,"throw",v)}if(typeof u=="object"&&u&&QT(JT,u))return u}return new Jl(!1)},M2e=To,F2e=function(i,n){return i===void 0?arguments.length<2?"":n:M2e(i)},B2e=ae,z2e=Mt,L2e=eh,Wu=YM,j2e=C2e,MB=So,Hf=Tn,Uf=Oo,G2e=d2e,W2e=O2e,V2e=Po,Z2e=F2e,H2e=ut,U2e=H2e("toStringTag"),Vu=Error,Y2e=[].push,tg=function(n,e){var t=z2e(Yf,this),r;Wu?r=Wu(new Vu,t?L2e(this):Yf):(r=t?this:MB(Yf),Hf(r,U2e,"Error")),e!==void 0&&Hf(r,"message",Z2e(e)),W2e(r,tg,r.stack,1),arguments.length>2&&G2e(r,arguments[2]);var a=[];return V2e(n,Y2e,{that:a}),Hf(r,"errors",a),r};Wu?Wu(tg,Vu):j2e(tg,Vu,{name:!0});var Yf=tg.prototype=MB(Vu.prototype,{constructor:Uf(1,tg),message:Uf(1,""),name:Uf(1,"AggregateError")});B2e({global:!0},{AggregateError:tg});var K2e=br,X2e=Pb,Q2e=ut,q2e=Ut,e2=Q2e("species"),FB=function(i){var n=K2e(i);q2e&&n&&!n[e2]&&X2e(n,e2,{configurable:!0,get:function(){return this}})},J2e=Mt,eSe=TypeError,e$=function(i,n){if(J2e(n,i))return i;throw new eSe("Incorrect invocation")},t2=Qr,tSe=cB,rSe=wg,iSe=ut,nSe=iSe("species"),BB=function(i,n){var e=t2(i).constructor,t;return e===void 0||rSe(t=t2(e)[nSe])?n:tSe(t)},aSe=pa,zB=/(?:ipad|iphone|ipod).*applewebkit/i.test(aSe),Xr=Ct,oSe=$g,sSe=ya,r2=pt,gSe=Ft,LB=Ge,i2=uM,ASe=GI,n2=Ob,ISe=MF,CSe=zB,lSe=VI,Ry=Xr.setImmediate,a2=Xr.clearImmediate,uSe=Xr.process,Kf=Xr.Dispatch,dSe=Xr.Function,o2=Xr.MessageChannel,hSe=Xr.String,Xf=0,EA={},s2="onreadystatechange",QA,Sa,Qf,qf;LB(function(){QA=Xr.location});var t$=function(i){if(gSe(EA,i)){var n=EA[i];delete EA[i],n()}},Jf=function(i){return function(){t$(i)}},g2=function(i){t$(i.data)},A2=function(i){Xr.postMessage(hSe(i),QA.protocol+"//"+QA.host)};(!Ry||!a2)&&(Ry=function(n){ISe(arguments.length,1);var e=r2(n)?n:dSe(n),t=ASe(arguments,1);return EA[++Xf]=function(){oSe(e,void 0,t)},Sa(Xf),Xf},a2=function(n){delete EA[n]},lSe?Sa=function(i){uSe.nextTick(Jf(i))}:Kf&&Kf.now?Sa=function(i){Kf.now(Jf(i))}:o2&&!CSe?(Qf=new o2,qf=Qf.port2,Qf.port1.onmessage=g2,Sa=sSe(qf.postMessage,qf)):Xr.addEventListener&&r2(Xr.postMessage)&&!Xr.importScripts&&QA&&QA.protocol!=="file:"&&!LB(A2)?(Sa=A2,Xr.addEventListener("message",g2,!1)):s2 in n2("script")?Sa=function(i){i2.appendChild(n2("script"))[s2]=function(){i2.removeChild(this),t$(i)}}:Sa=function(i){setTimeout(Jf(i),0)});var jB={set:Ry},GB=function(){this.head=null,this.tail=null};GB.prototype={add:function(i){var n={item:i,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var i=this.head;if(i){var n=this.head=i.next;return n===null&&(this.tail=null),i.item}}};var WB=GB,cSe=pa,fSe=/ipad|iphone|ipod/i.test(cSe)&&typeof Pebble<"u",vSe=pa,pSe=/web0s(?!.*chrome)/i.test(vSe),Co=Ct,I2=ya,ySe=Eo.f,ev=jB.set,mSe=WB,bSe=zB,$Se=fSe,wSe=pSe,tv=VI,C2=Co.MutationObserver||Co.WebKitMutationObserver,l2=Co.document,u2=Co.process,Al=Co.Promise,d2=ySe(Co,"queueMicrotask"),xy=d2&&d2.value,Qo,rv,iv,Il,h2;if(!xy){var Cl=new mSe,ll=function(){var i,n;for(tv&&(i=u2.domain)&&i.exit();n=Cl.get();)try{n()}catch(e){throw Cl.head&&Qo(),e}i&&i.enter()};!bSe&&!tv&&!wSe&&C2&&l2?(rv=!0,iv=l2.createTextNode(""),new C2(ll).observe(iv,{characterData:!0}),Qo=function(){iv.data=rv=!rv}):!$Se&&Al&&Al.resolve?(Il=Al.resolve(void 0),Il.constructor=Al,h2=I2(Il.then,Il),Qo=function(){h2(ll)}):tv?Qo=function(){u2.nextTick(ll)}:(ev=I2(ev,Co),Qo=function(){ev(ll)}),xy=function(i){Cl.head||Qo(),Cl.add(i)}}var ESe=xy,OSe=function(i,n){try{arguments.length===1?console.error(i):console.error(i,n)}catch{}},Ng=function(i){try{return{error:!1,value:i()}}catch(n){return{error:!0,value:n}}},TSe=Ct,Mg=TSe.Promise,VB=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",SSe=VB,kSe=VI,_Se=!SSe&&!kSe&&typeof window=="object"&&typeof document=="object",PSe=Ct,OA=Mg,RSe=pt,xSe=eM,DSe=oM,NSe=ut,MSe=_Se,FSe=VB,nv=Eg,c2=OA&&OA.prototype,BSe=NSe("species"),f2=!1,ZB=RSe(PSe.PromiseRejectionEvent),zSe=xSe("Promise",function(){var i=DSe(OA),n=i!==String(OA);if(!n&&nv===66||!(c2.catch&&c2.finally))return!0;if(!nv||nv<51||!/native code/.test(i)){var e=new OA(function(a){a(1)}),t=function(a){a(function(){},function(){})},r=e.constructor={};if(r[BSe]=t,f2=e.then(function(){})instanceof t,!f2)return!0}return!n&&(MSe||FSe)&&!ZB}),XI={CONSTRUCTOR:zSe,REJECTION_EVENT:ZB},Ji={},v2=Lr,LSe=TypeError,jSe=function(i){var n,e;this.promise=new i(function(t,r){if(n!==void 0||e!==void 0)throw new LSe("Bad Promise constructor");n=t,e=r}),this.resolve=v2(n),this.reject=v2(e)};Ji.f=function(i){return new jSe(i)};var GSe=ae,Zu=VI,na=Ct,QI=Yt,WSe=_g,VSe=ko,ZSe=FB,HSe=Lr,Dy=pt,USe=or,YSe=e$,KSe=BB,HB=jB.set,r$=ESe,XSe=OSe,QSe=Ng,qSe=WB,UB=Pg,Ny=Mg,YB=XI,KB=Ji,Ah="Promise",XB=YB.CONSTRUCTOR,JSe=YB.REJECTION_EVENT,av=UB.getterFor(Ah),eke=UB.set,tke=Ny&&Ny.prototype,vs=Ny,ov=tke,QB=na.TypeError,My=na.document,i$=na.process,Fy=KB.f,rke=Fy,ike=!!(My&&My.createEvent&&na.dispatchEvent),qB="unhandledrejection",nke="rejectionhandled",p2=0,JB=1,ake=2,n$=1,ez=2,ul,y2,oke,tz=function(i){var n;return USe(i)&&Dy(n=i.then)?n:!1},rz=function(i,n){var e=n.value,t=n.state===JB,r=t?i.ok:i.fail,a=i.resolve,o=i.reject,s=i.domain,g,A,I;try{r?(t||(n.rejection===ez&&gke(n),n.rejection=n$),r===!0?g=e:(s&&s.enter(),g=r(e),s&&(s.exit(),I=!0)),g===i.promise?o(new QB("Promise-chain cycle")):(A=tz(g))?QI(A,g,a,o):a(g)):o(e)}catch(C){s&&!I&&s.exit(),o(C)}},iz=function(i,n){i.notified||(i.notified=!0,r$(function(){for(var e=i.reactions,t;t=e.get();)rz(t,i);i.notified=!1,n&&!i.rejection&&ske(i)}))},nz=function(i,n,e){var t,r;ike?(t=My.createEvent("Event"),t.promise=n,t.reason=e,t.initEvent(i,!1,!0),na.dispatchEvent(t)):t={promise:n,reason:e},!JSe&&(r=na["on"+i])?r(t):i===qB&&XSe("Unhandled promise rejection",e)},ske=function(i){QI(HB,na,function(){var n=i.facade,e=i.value,t=m2(i),r;if(t&&(r=QSe(function(){Zu?i$.emit("unhandledRejection",e,n):nz(qB,n,e)}),i.rejection=Zu||m2(i)?ez:n$,r.error))throw r.value})},m2=function(i){return i.rejection!==n$&&!i.parent},gke=function(i){QI(HB,na,function(){var n=i.facade;Zu?i$.emit("rejectionHandled",n):nz(nke,n,i.value)})},ps=function(i,n,e){return function(t){i(n,t,e)}},xs=function(i,n,e){i.done||(i.done=!0,e&&(i=e),i.value=n,i.state=ake,iz(i,!0))},By=function(i,n,e){if(!i.done){i.done=!0,e&&(i=e);try{if(i.facade===n)throw new QB("Promise can't be resolved itself");var t=tz(n);t?r$(function(){var r={done:!1};try{QI(t,n,ps(By,r,i),ps(xs,r,i))}catch(a){xs(r,a,i)}}):(i.value=n,i.state=JB,iz(i,!1))}catch(r){xs({done:!1},r,i)}}};XB&&(vs=function(n){YSe(this,ov),HSe(n),QI(ul,this);var e=av(this);try{n(ps(By,e),ps(xs,e))}catch(t){xs(e,t)}},ov=vs.prototype,ul=function(n){eke(this,{type:Ah,done:!1,notified:!1,parent:!1,reactions:new qSe,rejection:!1,state:p2,value:void 0})},ul.prototype=WSe(ov,"then",function(n,e){var t=av(this),r=Fy(KSe(this,vs));return t.parent=!0,r.ok=Dy(n)?n:!0,r.fail=Dy(e)&&e,r.domain=Zu?i$.domain:void 0,t.state===p2?t.reactions.add(r):r$(function(){rz(r,t)}),r.promise}),y2=function(){var i=new ul,n=av(i);this.promise=i,this.resolve=ps(By,n),this.reject=ps(xs,n)},KB.f=Fy=function(i){return i===vs||i===oke?new y2(i):rke(i)});GSe({global:!0,wrap:!0,forced:XB},{Promise:vs});VSe(vs,Ah,!1,!0);ZSe(Ah);var Ake=Mg,Ike=fF,Cke=XI.CONSTRUCTOR,Ih=Cke||!Ike(function(i){Ake.all(i).then(void 0,function(){})}),lke=ae,uke=Yt,dke=Lr,hke=Ji,cke=Ng,fke=Po,vke=Ih;lke({target:"Promise",stat:!0,forced:vke},{all:function(n){var e=this,t=hke.f(e),r=t.resolve,a=t.reject,o=cke(function(){var s=dke(e.resolve),g=[],A=0,I=1;fke(n,function(C){var l=A++,u=!1;I++,uke(s,e,C).then(function(d){u||(u=!0,g[l]=d,--I||r(g))},a)}),--I||r(g)});return o.error&&a(o.value),t.promise}});var pke=ae,yke=XI.CONSTRUCTOR,b2=Mg;b2&&b2.prototype;pke({target:"Promise",proto:!0,forced:yke,real:!0},{catch:function(i){return this.then(void 0,i)}});var mke=ae,bke=Yt,$ke=Lr,wke=Ji,Eke=Ng,Oke=Po,Tke=Ih;mke({target:"Promise",stat:!0,forced:Tke},{race:function(n){var e=this,t=wke.f(e),r=t.reject,a=Eke(function(){var o=$ke(e.resolve);Oke(n,function(s){bke(o,e,s).then(t.resolve,r)})});return a.error&&r(a.value),t.promise}});var Ske=ae,kke=Yt,_ke=Ji,Pke=XI.CONSTRUCTOR;Ske({target:"Promise",stat:!0,forced:Pke},{reject:function(n){var e=_ke.f(this);return kke(e.reject,void 0,n),e.promise}});var Rke=Qr,xke=or,Dke=Ji,az=function(i,n){if(Rke(i),xke(n)&&n.constructor===i)return n;var e=Dke.f(i),t=e.resolve;return t(n),e.promise},Nke=ae,Mke=br,Fke=Vue,Bke=Mg,zke=XI.CONSTRUCTOR,Lke=az,jke=Mke("Promise"),Gke=!zke;Nke({target:"Promise",stat:!0,forced:Fke},{resolve:function(n){return Lke(Gke&&this===jke?Bke:this,n)}});var Wke=ae,Vke=Yt,Zke=Lr,Hke=Ji,Uke=Ng,Yke=Po,Kke=Ih;Wke({target:"Promise",stat:!0,forced:Kke},{allSettled:function(n){var e=this,t=Hke.f(e),r=t.resolve,a=t.reject,o=Uke(function(){var s=Zke(e.resolve),g=[],A=0,I=1;Yke(n,function(C){var l=A++,u=!1;I++,Vke(s,e,C).then(function(d){u||(u=!0,g[l]={status:"fulfilled",value:d},--I||r(g))},function(d){u||(u=!0,g[l]={status:"rejected",reason:d},--I||r(g))})}),--I||r(g)});return o.error&&a(o.value),t.promise}});var Xke=ae,Qke=Yt,qke=Lr,Jke=br,e_e=Ji,t_e=Ng,r_e=Po,i_e=Ih,$2="No one promise resolved";Xke({target:"Promise",stat:!0,forced:i_e},{any:function(n){var e=this,t=Jke("AggregateError"),r=e_e.f(e),a=r.resolve,o=r.reject,s=t_e(function(){var g=qke(e.resolve),A=[],I=0,C=1,l=!1;r_e(n,function(u){var d=I++,h=!1;C++,Qke(g,e,u).then(function(c){h||l||(l=!0,a(c))},function(c){h||l||(h=!0,A[d]=c,--C||o(new t(A,$2)))})}),--C||o(new t(A,$2))});return s.error&&o(s.value),r.promise}});var n_e=ae,zy=Mg,a_e=Ge,o_e=br,s_e=pt,g_e=BB,w2=az,A_e=zy&&zy.prototype,I_e=!!zy&&a_e(function(){A_e.finally.call({then:function(){}},function(){})});n_e({target:"Promise",proto:!0,real:!0,forced:I_e},{finally:function(i){var n=g_e(this,o_e("Promise")),e=s_e(i);return this.then(e?function(t){return w2(n,i()).then(function(){return t})}:i,e?function(t){return w2(n,i()).then(function(){throw t})}:i)}});var C_e=lt,l_e=C_e.Promise,u_e=l_e,d_e=u_e,h_e=ae,c_e=Ji;h_e({target:"Promise",stat:!0},{withResolvers:function(){var n=c_e.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}});var f_e=d_e,v_e=f_e,p_e=ae,y_e=Ji,m_e=Ng;p_e({target:"Promise",stat:!0,forced:!0},{try:function(i){var n=y_e.f(this),e=m_e(i);return(e.error?n.reject:n.resolve)(e.value),n.promise}});var b_e=v_e,$_e=b_e,w_e=$_e,E_e=PF,O_e=E_e,T_e=O_e,S_e=T_e,k_e=S_e;(function(i){var n=r2e.default,e=nM,t=zb,r=SB,a=PB,o=s2e,s=wF,g=kB,A=w_e,I=k_e,C=OF;function l(){i.exports=l=function(){return d},i.exports.__esModule=!0,i.exports.default=i.exports;var u,d={},h=Object.prototype,c=h.hasOwnProperty,f=e||function(E,b,$){E[b]=$.value},v=typeof t=="function"?t:{},y=v.iterator||"@@iterator",p=v.asyncIterator||"@@asyncIterator",m=v.toStringTag||"@@toStringTag";function w(E,b,$){return e(E,b,{value:$,enumerable:!0,configurable:!0,writable:!0}),E[b]}try{w({},"")}catch{w=function($,D,W){return $[D]=W}}function k(E,b,$,D){var W=b&&b.prototype instanceof Ce?b:Ce,M=r(W.prototype),ue=new Xe(D||[]);return f(M,"_invoke",{value:he(E,$,ue)}),M}function R(E,b,$){try{return{type:"normal",arg:E.call(b,$)}}catch(D){return{type:"throw",arg:D}}}d.wrap=k;var O="suspendedStart",_="suspendedYield",N="executing",K="completed",H={};function Ce(){}function $e(){}function de(){}var Ye={};w(Ye,y,function(){return this});var Fe=a,Oe=Fe&&Fe(Fe(ke([])));Oe&&Oe!==h&&c.call(Oe,y)&&(Ye=Oe);var Ke=de.prototype=Ce.prototype=r(Ye);function Te(E){var b;o(b=["next","throw","return"]).call(b,function($){w(E,$,function(D){return this._invoke($,D)})})}function oe(E,b){function $(W,M,ue,Be){var We=R(E[W],E,M);if(We.type!=="throw"){var gr=We.arg,er=gr.value;return er&&n(er)=="object"&&c.call(er,"__await")?b.resolve(er.__await).then(function(Ar){$("next",Ar,ue,Be)},function(Ar){$("throw",Ar,ue,Be)}):b.resolve(er).then(function(Ar){gr.value=Ar,ue(gr)},function(Ar){return $("throw",Ar,ue,Be)})}Be(We.arg)}var D;f(this,"_invoke",{value:function(M,ue){function Be(){return new b(function(We,gr){$(M,ue,We,gr)})}return D=D?D.then(Be,Be):Be()}})}function he(E,b,$){var D=O;return function(W,M){if(D===N)throw new Error("Generator is already running");if(D===K){if(W==="throw")throw M;return{value:u,done:!0}}for($.method=W,$.arg=M;;){var ue=$.delegate;if(ue){var Be=le(ue,$);if(Be){if(Be===H)continue;return Be}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(D===O)throw D=K,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);D=N;var We=R(E,b,$);if(We.type==="normal"){if(D=$.done?K:_,We.arg===H)continue;return{value:We.arg,done:$.done}}We.type==="throw"&&(D=K,$.method="throw",$.arg=We.arg)}}}function le(E,b){var $=b.method,D=E.iterator[$];if(D===u)return b.delegate=null,$==="throw"&&E.iterator.return&&(b.method="return",b.arg=u,le(E,b),b.method==="throw")||$!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+$+"' method")),H;var W=R(D,E.iterator,b.arg);if(W.type==="throw")return b.method="throw",b.arg=W.arg,b.delegate=null,H;var M=W.arg;return M?M.done?(b[E.resultName]=M.value,b.next=E.nextLoc,b.method!=="return"&&(b.method="next",b.arg=u),b.delegate=null,H):M:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,H)}function Se(E){var b,$={tryLoc:E[0]};1 in E&&($.catchLoc=E[1]),2 in E&&($.finallyLoc=E[2],$.afterLoc=E[3]),s(b=this.tryEntries).call(b,$)}function Bt(E){var b=E.completion||{};b.type="normal",delete b.arg,E.completion=b}function Xe(E){this.tryEntries=[{tryLoc:"root"}],o(E).call(E,Se,this),this.reset(!0)}function ke(E){if(E||E===""){var b=E[y];if(b)return b.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var $=-1,D=function W(){for(;++$=0;--W){var M=this.tryEntries[W],ue=M.completion;if(M.tryLoc==="root")return D("end");if(M.tryLoc<=this.prev){var Be=c.call(M,"catchLoc"),We=c.call(M,"finallyLoc");if(Be&&We){if(this.prev=0;--D){var W=this.tryEntries[D];if(W.tryLoc<=this.prev&&c.call(W,"finallyLoc")&&this.prev=0;--$){var D=this.tryEntries[$];if(D.finallyLoc===b)return this.complete(D.completion,D.afterLoc),Bt(D),H}},catch:function(b){for(var $=this.tryEntries.length-1;$>=0;--$){var D=this.tryEntries[$];if(D.tryLoc===b){var W=D.completion;if(W.type==="throw"){var M=W.arg;Bt(D)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(b,$,D){return this.delegate={iterator:ke(b),resultName:$,nextLoc:D},this.method==="next"&&(this.arg=u),H}},d}i.exports=l,i.exports.__esModule=!0,i.exports.default=i.exports})(RB);var __e=RB.exports,eu=__e(),P_e=eu;try{regeneratorRuntime=eu}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=eu:Function("r","regeneratorRuntime = r")(eu)}var Er=Ie(P_e),oz={exports:{}},R_e=Ge,x_e=R_e(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}}),D_e=Ge,N_e=or,M_e=va,E2=x_e,tu=Object.isExtensible,F_e=D_e(function(){tu(1)}),B_e=F_e||E2?function(n){return!N_e(n)||E2&&M_e(n)==="ArrayBuffer"?!1:tu?tu(n):!0}:tu,z_e=Ge,L_e=!z_e(function(){return Object.isExtensible(Object.preventExtensions({}))}),j_e=ae,G_e=gt,W_e=MI,V_e=or,a$=Ft,Z_e=Gr.f,O2=FI,H_e=_b,o$=B_e,U_e=Bd,Y_e=L_e,sz=!1,yn=U_e("meta"),K_e=0,s$=function(i){Z_e(i,yn,{value:{objectID:"O"+K_e++,weakData:{}}})},X_e=function(i,n){if(!V_e(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!a$(i,yn)){if(!o$(i))return"F";if(!n)return"E";s$(i)}return i[yn].objectID},Q_e=function(i,n){if(!a$(i,yn)){if(!o$(i))return!0;if(!n)return!1;s$(i)}return i[yn].weakData},q_e=function(i){return Y_e&&sz&&o$(i)&&!a$(i,yn)&&s$(i),i},J_e=function(){ePe.enable=function(){},sz=!0;var i=O2.f,n=G_e([].splice),e={};e[yn]=1,i(e).length&&(O2.f=function(t){for(var r=i(t),a=0,o=r.length;a1?arguments[1]:void 0),u;u=u?u.next:C.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(I){return!!g(this,I)}}),T2(a,e?{get:function(I){var C=g(this,I);return C&&C.value},set:function(I,C){return s(this,I===0?0:I,C)}}:{add:function(I){return s(this,I=I===0?0:I,I)}}),rA&&yPe(a,"size",{configurable:!0,get:function(){return o(this).size}}),r},setStrong:function(i,n,e){var t=n+" Iterator",r=sv(n),a=sv(t);EPe(i,n,function(o,s){k2(this,{type:t,target:o,state:r(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,g=o.last;g&&g.removed;)g=g.previous;return!o.target||!(o.last=g=g?g.next:o.state.first)?(o.target=void 0,dl(void 0,!0)):dl(s==="keys"?g.key:s==="values"?g.value:[g.key,g.value],!1)},e?"entries":"values",!e,!0),OPe(n)}},TPe=Iz,SPe=lz;TPe("Map",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},SPe);var kPe=lt,_Pe=kPe.Map,PPe=_Pe,RPe=PPe,xPe=RPe,uz=Ie(xPe),DPe=ae,NPe=Rg.some,MPe=rh,FPe=MPe("some");DPe({target:"Array",proto:!0,forced:!FPe},{some:function(n){return NPe(this,n,arguments.length>1?arguments[1]:void 0)}});var BPe=sr,zPe=BPe("Array","some"),LPe=Mt,jPe=zPe,gv=Array.prototype,GPe=function(i){var n=i.some;return i===gv||LPe(gv,i)&&n===gv.some?jPe:n},WPe=GPe,VPe=WPe,ZPe=VPe,HPe=Ie(ZPe),UPe=sr,YPe=UPe("Array","keys"),KPe=YPe,XPe=KPe,QPe=Sn,qPe=Ft,JPe=Mt,eRe=XPe,Av=Array.prototype,tRe={DOMTokenList:!0,NodeList:!0},rRe=function(i){var n=i.keys;return i===Av||JPe(Av,i)&&n===Av.keys||qPe(tRe,QPe(i))?eRe:n},iRe=rRe,qo=Ie(iRe),_2=cM,nRe=Math.floor,Ly=function(i,n){var e=i.length,t=nRe(e/2);return e<8?aRe(i,n):oRe(i,Ly(_2(i,0,t),n),Ly(_2(i,t),n),n)},aRe=function(i,n){for(var e=i.length,t=1,r,a;t0;)i[a]=i[--a];a!==t++&&(i[a]=r)}return i},oRe=function(i,n,e,t){for(var r=n.length,a=e.length,o=0,s=0;o3)){if(yRe)return!0;if(F2)return F2<603;var i="",n,e,t,r;for(n=65;n<76;n++){switch(e=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)Ln.push({k:e+r,v:t})}for(Ln.sort(function(a,o){return o.v-a.v}),r=0;rD2(e)?1:-1}};dRe({target:"Array",proto:!0,forced:ERe},{sort:function(n){n!==void 0&&hRe(n);var e=cRe(this);if(hz)return n===void 0?B2(e):B2(e,n);var t=[],r=x2(e),a,o;for(o=0;othis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=FEe(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,t;so(e=xF(t=this._queue).call(t,0)).call(e,function(r){r.fn.apply(r.context||r.fn,r.args||[])})}}],[{key:"extend",value:function(e,t){var r=new i(t);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var a=[{name:"flush",original:void 0}];if(t&&t.replace)for(var o=0;o=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function kxe(i,n){var e;if(i){if(typeof i=="string")return G2(i,n);var t=oh(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Gb(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G2(i,n)}}function G2(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);es&&(s=C,o=I)}return o}},{key:"min",value:function(t){var r=dv(this._pairs),a=r.next();if(a.done)return null;for(var o=a.value[1],s=t(a.value[1],a.value[0]);!(a=r.next()).done;){var g=$r(a.value,2),A=g[0],I=g[1],C=t(I,A);C=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function _xe(i,n){var e;if(i){if(typeof i=="string")return H2(i,n);var t=oh(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Gb(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return H2(i,n)}}function H2(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e"u"||!ql||ql.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ql(Boolean,[],function(){})),!0}catch{return!1}}function xxe(i,n){return i[n]==null&&(i[n]=Axe()),i}var Hu=function(i){XTe(e,i);var n=Pxe(e);function e(t,r){var a;return Nd(this,e),a=n.call(this),Xn(TB(a),"_queue",null),t&&!Ur(t)&&(r=t,t=[]),a._options=r||{},a._data=new uz,a.length=0,a._idProp=a._options.fieldId||"id",t&&t.length&&a.add(t),a.setOptions(r),a}return th(e,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(r){r&&r.queue!==void 0&&(r.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Ixe.extend(this,{replace:["add","update","remove"]})),r.queue&&typeof r.queue=="object"&&this._queue.setOptions(r.queue)))}},{key:"add",value:function(r,a){var o=this,s=[],g;if(Ur(r)){var A=pi(r).call(r,function(l){return l[o._idProp]});if(HPe(A).call(A,function(l){return o._data.has(l)}))throw new Error("A duplicate id was found in the parameter array.");for(var I=0,C=r.length;II?1:As)&&(o=I,s=C)}}catch(l){g.e(l)}finally{g.f()}return o||null}},{key:"min",value:function(r){var a,o=null,s=null,g=hv(z2(a=this._data).call(a)),A;try{for(g.s();!(A=g.n()).done;){var I=A.value,C=I[r];typeof C=="number"&&(s==null||C"u"&&Wy!==void 0,mz={all:Wy,IS_HTMLDDA:Gxe},bz=mz,Wxe=bz.all,Kt=bz.IS_HTMLDDA?function(i){return typeof i=="function"||i===Wxe}:function(i){return typeof i=="function"},Fg={},Vxe=Ne,Xt=!Vxe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Zxe=qI,fl=Function.prototype.call,Jr=Zxe?fl.bind(fl):function(){return fl.apply(fl,arguments)},Ch={},$z={}.propertyIsEnumerable,wz=Object.getOwnPropertyDescriptor,Hxe=wz&&!$z.call({1:2},1);Ch.f=Hxe?function(n){var e=wz(this,n);return!!e&&e.enumerable}:$z;var eC=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}},Uxe=ze,Yxe=Ne,Kxe=kn,fv=Object,Xxe=Uxe("".split),lh=Yxe(function(){return!fv("z").propertyIsEnumerable(0)})?function(i){return Kxe(i)==="String"?Xxe(i,""):fv(i)}:fv,Bg=function(i){return i==null},Qxe=Bg,qxe=TypeError,tC=function(i){if(Qxe(i))throw new qxe("Can't call method on "+i);return i},Jxe=lh,eDe=tC,en=function(i){return Jxe(eDe(i))},K2=Kt,Ez=mz,tDe=Ez.all,Qt=Ez.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:K2(i)||i===tDe}:function(i){return typeof i=="object"?i!==null:K2(i)},Me={},vv=Me,pv=mt,rDe=Kt,X2=function(i){return rDe(i)?i:void 0},ui=function(i,n){return arguments.length<2?X2(vv[i])||X2(pv[i]):vv[i]&&vv[i][n]||pv[i]&&pv[i][n]},iDe=ze,_t=iDe({}.isPrototypeOf),rC=typeof navigator<"u"&&String(navigator.userAgent)||"",Oz=mt,yv=rC,Q2=Oz.process,q2=Oz.Deno,J2=Q2&&Q2.versions||q2&&q2.version,eS=J2&&J2.v8,yi,Uu;eS&&(yi=eS.split("."),Uu=yi[0]>0&&yi[0]<4?1:+(yi[0]+yi[1]));!Uu&&yv&&(yi=yv.match(/Edge\/(\d+)/),(!yi||yi[1]>=74)&&(yi=yv.match(/Chrome\/(\d+)/),yi&&(Uu=+yi[1])));var iC=Uu,tS=iC,nDe=Ne,aDe=mt,oDe=aDe.String,zg=!!Object.getOwnPropertySymbols&&!nDe(function(){var i=Symbol("symbol detection");return!oDe(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&tS&&tS<41}),sDe=zg,Tz=sDe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",gDe=ui,ADe=Kt,IDe=_t,CDe=Tz,lDe=Object,nC=CDe?function(i){return typeof i=="symbol"}:function(i){var n=gDe("Symbol");return ADe(n)&&IDe(n.prototype,lDe(i))},uDe=String,Lg=function(i){try{return uDe(i)}catch{return"Object"}},dDe=Kt,hDe=Lg,cDe=TypeError,Ro=function(i){if(dDe(i))return i;throw new cDe(hDe(i)+" is not a function")},fDe=Ro,vDe=Bg,I$=function(i,n){var e=i[n];return vDe(e)?void 0:fDe(e)},mv=Jr,bv=Kt,$v=Qt,pDe=TypeError,yDe=function(i,n){var e,t;if(n==="string"&&bv(e=i.toString)&&!$v(t=mv(e,i))||bv(e=i.valueOf)&&!$v(t=mv(e,i))||n!=="string"&&bv(e=i.toString)&&!$v(t=mv(e,i)))return t;throw new pDe("Can't convert object to primitive value")},Sz={exports:{}},rS=mt,mDe=Object.defineProperty,bDe=function(i,n){try{mDe(rS,i,{value:n,configurable:!0,writable:!0})}catch{rS[i]=n}return n},$De=mt,wDe=bDe,iS="__core-js_shared__",EDe=$De[iS]||wDe(iS,{}),C$=EDe,nS=C$;(Sz.exports=function(i,n){return nS[i]||(nS[i]=n!==void 0?n:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jg=Sz.exports,ODe=tC,TDe=Object,Wr=function(i){return TDe(ODe(i))},SDe=ze,kDe=Wr,_De=SDe({}.hasOwnProperty),qt=Object.hasOwn||function(n,e){return _De(kDe(n),e)},PDe=ze,RDe=0,xDe=Math.random(),DDe=PDe(1 .toString),uh=function(i){return"Symbol("+(i===void 0?"":i)+")_"+DDe(++RDe+xDe,36)},NDe=mt,MDe=jg,aS=qt,FDe=uh,BDe=zg,zDe=Tz,ms=NDe.Symbol,wv=MDe("wks"),LDe=zDe?ms.for||ms:ms&&ms.withoutSetter||FDe,bt=function(i){return aS(wv,i)||(wv[i]=BDe&&aS(ms,i)?ms[i]:LDe("Symbol."+i)),wv[i]},jDe=Jr,oS=Qt,sS=nC,GDe=I$,WDe=yDe,VDe=bt,ZDe=TypeError,HDe=VDe("toPrimitive"),UDe=function(i,n){if(!oS(i)||sS(i))return i;var e=GDe(i,HDe),t;if(e){if(n===void 0&&(n="default"),t=jDe(e,i,n),!oS(t)||sS(t))return t;throw new ZDe("Can't convert object to primitive value")}return n===void 0&&(n="number"),WDe(i,n)},YDe=UDe,KDe=nC,dh=function(i){var n=YDe(i,"string");return KDe(n)?n:n+""},XDe=mt,gS=Qt,Vy=XDe.document,QDe=gS(Vy)&&gS(Vy.createElement),kz=function(i){return QDe?Vy.createElement(i):{}},qDe=Xt,JDe=Ne,eNe=kz,_z=!qDe&&!JDe(function(){return Object.defineProperty(eNe("div"),"a",{get:function(){return 7}}).a!==7}),tNe=Xt,rNe=Jr,iNe=Ch,nNe=eC,aNe=en,oNe=dh,sNe=qt,gNe=_z,AS=Object.getOwnPropertyDescriptor;Fg.f=tNe?AS:function(n,e){if(n=aNe(n),e=oNe(e),gNe)try{return AS(n,e)}catch{}if(sNe(n,e))return nNe(!rNe(iNe.f,n,e),n[e])};var ANe=Ne,INe=Kt,CNe=/#|\.prototype\./,aC=function(i,n){var e=uNe[lNe(i)];return e===hNe?!0:e===dNe?!1:INe(n)?ANe(n):!!n},lNe=aC.normalize=function(i){return String(i).replace(CNe,".").toLowerCase()},uNe=aC.data={},dNe=aC.NATIVE="N",hNe=aC.POLYFILL="P",cNe=aC,IS=A$,fNe=Ro,vNe=qI,pNe=IS(IS.bind),oC=function(i,n){return fNe(i),n===void 0?i:vNe?pNe(i,n):function(){return i.apply(n,arguments)}},ei={},yNe=Xt,mNe=Ne,Pz=yNe&&mNe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),bNe=Qt,$Ne=String,wNe=TypeError,ti=function(i){if(bNe(i))return i;throw new wNe($Ne(i)+" is not an object")},ENe=Xt,ONe=_z,TNe=Pz,vl=ti,CS=dh,SNe=TypeError,Ev=Object.defineProperty,kNe=Object.getOwnPropertyDescriptor,Ov="enumerable",Tv="configurable",Sv="writable";ei.f=ENe?TNe?function(n,e,t){if(vl(n),e=CS(e),vl(t),typeof n=="function"&&e==="prototype"&&"value"in t&&Sv in t&&!t[Sv]){var r=kNe(n,e);r&&r[Sv]&&(n[e]=t.value,t={configurable:Tv in t?t[Tv]:r[Tv],enumerable:Ov in t?t[Ov]:r[Ov],writable:!1})}return Ev(n,e,t)}:Ev:function(n,e,t){if(vl(n),e=CS(e),vl(t),ONe)try{return Ev(n,e,t)}catch{}if("get"in t||"set"in t)throw new SNe("Accessors not supported");return"value"in t&&(n[e]=t.value),n};var _Ne=Xt,PNe=ei,RNe=eC,Gg=_Ne?function(i,n,e){return PNe.f(i,n,RNe(1,e))}:function(i,n,e){return i[n]=e,i},pl=mt,xNe=JI,DNe=A$,NNe=Kt,MNe=Fg.f,FNe=cNe,Jo=Me,BNe=oC,es=Gg,lS=qt,zNe=function(i){var n=function(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,r)}return xNe(i,this,arguments)};return n.prototype=i.prototype,n},Ae=function(i,n){var e=i.target,t=i.global,r=i.stat,a=i.proto,o=t?pl:r?pl[e]:(pl[e]||{}).prototype,s=t?Jo:Jo[e]||es(Jo,e,{})[e],g=s.prototype,A,I,C,l,u,d,h,c,f;for(l in n)A=FNe(t?l:e+(r?".":"#")+l,i.forced),I=!A&&o&&lS(o,l),d=s[l],I&&(i.dontCallGetSet?(f=MNe(o,l),h=f&&f.value):h=o[l]),u=I&&h?h:n[l],!(I&&typeof d==typeof u)&&(i.bind&&I?c=BNe(u,pl):i.wrap&&I?c=zNe(u):a&&NNe(u)?c=DNe(u):c=u,(i.sham||u&&u.sham||d&&d.sham)&&es(c,"sham",!0),es(s,l,c),a&&(C=e+"Prototype",lS(Jo,C)||es(Jo,C,{}),es(Jo[C],l,u),i.real&&g&&(A||!g[l])&&es(g,l,u)))},LNe=Math.ceil,jNe=Math.floor,GNe=Math.trunc||function(n){var e=+n;return(e>0?jNe:LNe)(e)},WNe=GNe,hh=function(i){var n=+i;return n!==n||n===0?0:WNe(n)},VNe=hh,ZNe=Math.max,HNe=Math.min,sC=function(i,n){var e=VNe(i);return e<0?ZNe(e+n,0):HNe(e,n)},UNe=hh,YNe=Math.min,KNe=function(i){return i>0?YNe(UNe(i),9007199254740991):0},XNe=KNe,di=function(i){return XNe(i.length)},QNe=en,qNe=sC,JNe=di,uS=function(i){return function(n,e,t){var r=QNe(n),a=JNe(r),o=qNe(t,a),s;if(i&&e!==e){for(;a>o;)if(s=r[o++],s!==s)return!0}else for(;a>o;o++)if((i||o in r)&&r[o]===e)return i||o||0;return!i&&-1}},l$={includes:uS(!0),indexOf:uS(!1)},gC={},eMe=ze,kv=qt,tMe=en,rMe=l$.indexOf,iMe=gC,dS=eMe([].push),Rz=function(i,n){var e=tMe(i),t=0,r=[],a;for(a in e)!kv(iMe,a)&&kv(e,a)&&dS(r,a);for(;n.length>t;)kv(e,a=n[t++])&&(~rMe(r,a)||dS(r,a));return r},u$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nMe=Rz,aMe=u$,ch=Object.keys||function(n){return nMe(n,aMe)},AC={};AC.f=Object.getOwnPropertySymbols;var hS=Xt,oMe=ze,sMe=Jr,gMe=Ne,_v=ch,AMe=AC,IMe=Ch,CMe=Wr,lMe=lh,ts=Object.assign,cS=Object.defineProperty,uMe=oMe([].concat),dMe=!ts||gMe(function(){if(hS&&ts({b:1},ts(cS({},"a",{enumerable:!0,get:function(){cS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var i={},n={},e=Symbol("assign detection"),t="abcdefghijklmnopqrst";return i[e]=7,t.split("").forEach(function(r){n[r]=r}),ts({},i)[e]!==7||_v(ts({},n)).join("")!==t})?function(n,e){for(var t=CMe(n),r=arguments.length,a=1,o=AMe.f,s=IMe.f;r>a;)for(var g=lMe(arguments[a++]),A=o?uMe(_v(g),o(g)):_v(g),I=A.length,C=0,l;I>C;)l=A[C++],(!hS||sMe(s,g,l))&&(t[l]=g[l]);return t}:ts,hMe=Ae,fS=dMe;hMe({target:"Object",stat:!0,forced:Object.assign!==fS},{assign:fS});var cMe=Me,fMe=cMe.Object.assign,vMe=fMe,pMe=vMe,yMe=pMe,Dt=ne(yMe),mMe=ze,fh=mMe([].slice),xz=ze,bMe=Ro,$Me=Qt,wMe=qt,vS=fh,EMe=qI,Dz=Function,OMe=xz([].concat),TMe=xz([].join),Pv={},SMe=function(i,n,e){if(!wMe(Pv,n)){for(var t=[],r=0;r=.1;)d=+a[C++%o],d>I&&(d=I),u=Math.sqrt(d*d/(1+A*A)),u=s<0?-u:u,n+=u,e+=A*u,l===!0?i.lineTo(n,e):i.moveTo(n,e),I-=d,l=!l}function WMe(i,n,e,t){i.beginPath();var r=6,a=Math.PI*2/r;i.moveTo(n+t,e);for(var o=1;o1?e-1:0),r=1;r=a?i?"":void 0:(o=mS(t,r),o<55296||o>56319||r+1===a||(s=mS(t,r+1))<56320||s>57343?i?oFe(t,r):o:i?sFe(t,r,r+2):(o-55296<<10)+(s-56320)+65536)}},AFe={charAt:gFe(!0)},IFe=mt,CFe=Kt,bS=IFe.WeakMap,Wz=CFe(bS)&&/native code/.test(String(bS)),lFe=jg,uFe=uh,$S=lFe("keys"),vh=function(i){return $S[i]||($S[i]=uFe(i))},dFe=Wz,Vz=mt,hFe=Qt,cFe=Gg,xv=qt,Dv=C$,fFe=vh,vFe=gC,wS="Object already initialized",Hy=Vz.TypeError,pFe=Vz.WeakMap,Yu,qA,Ku,yFe=function(i){return Ku(i)?qA(i):Yu(i,{})},mFe=function(i){return function(n){var e;if(!hFe(n)||(e=qA(n)).type!==i)throw new Hy("Incompatible receiver, "+i+" required");return e}};if(dFe||Dv.state){var xi=Dv.state||(Dv.state=new pFe);xi.get=xi.get,xi.has=xi.has,xi.set=xi.set,Yu=function(i,n){if(xi.has(i))throw new Hy(wS);return n.facade=i,xi.set(i,n),n},qA=function(i){return xi.get(i)||{}},Ku=function(i){return xi.has(i)}}else{var rs=fFe("state");vFe[rs]=!0,Yu=function(i,n){if(xv(i,rs))throw new Hy(wS);return n.facade=i,cFe(i,rs,n),n},qA=function(i){return xv(i,rs)?i[rs]:{}},Ku=function(i){return xv(i,rs)}}var Do={set:Yu,get:qA,has:Ku,enforce:yFe,getterFor:mFe},Uy=Xt,bFe=qt,Zz=Function.prototype,$Fe=Uy&&Object.getOwnPropertyDescriptor,Hz=bFe(Zz,"name"),wFe=Hz&&function(){}.name==="something";Hz&&(!Uy||Uy&&$Fe(Zz,"name").configurable);var EFe={PROPER:wFe},ph={},OFe=Xt,TFe=Pz,SFe=ei,kFe=ti,_Fe=en,PFe=ch;ph.f=OFe&&!TFe?Object.defineProperties:function(n,e){kFe(n);for(var t=_Fe(e),r=PFe(e),a=r.length,o=0,s;a>o;)SFe.f(n,s=r[o++],t[s]);return n};var RFe=ui,xFe=RFe("document","documentElement"),DFe=ti,NFe=ph,ES=u$,MFe=gC,FFe=xFe,BFe=kz,zFe=vh,OS=">",TS="<",Yy="prototype",Ky="script",Uz=zFe("IE_PROTO"),Nv=function(){},Yz=function(i){return TS+Ky+OS+i+TS+"/"+Ky+OS},SS=function(i){i.write(Yz("")),i.close();var n=i.parentWindow.Object;return i=null,n},LFe=function(){var i=BFe("iframe"),n="java"+Ky+":",e;return i.style.display="none",FFe.appendChild(i),i.src=String(n),e=i.contentWindow.document,e.open(),e.write(Yz("document.F=Object")),e.close(),e.F},yl,iu=function(){try{yl=new ActiveXObject("htmlfile")}catch{}iu=typeof document<"u"?document.domain&&yl?SS(yl):LFe():SS(yl);for(var i=ES.length;i--;)delete iu[Yy][ES[i]];return iu()};MFe[Uz]=!0;var Wg=Object.create||function(n,e){var t;return n!==null?(Nv[Yy]=DFe(n),t=new Nv,Nv[Yy]=null,t[Uz]=n):t=iu(),e===void 0?t:NFe.f(t,e)},jFe=Ne,Kz=!jFe(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype}),GFe=qt,WFe=Kt,VFe=Wr,ZFe=vh,HFe=Kz,kS=ZFe("IE_PROTO"),Xy=Object,UFe=Xy.prototype,yh=HFe?Xy.getPrototypeOf:function(i){var n=VFe(i);if(GFe(n,kS))return n[kS];var e=n.constructor;return WFe(e)&&n instanceof e?e.prototype:n instanceof Xy?UFe:null},YFe=Gg,IC=function(i,n,e,t){return t&&t.enumerable?i[n]=e:YFe(i,n,e),i},KFe=Ne,XFe=Kt,QFe=Qt,qFe=Wg,_S=yh,JFe=IC,eBe=bt,Qy=eBe("iterator"),Xz=!1,ln,Mv,Fv;[].keys&&(Fv=[].keys(),"next"in Fv?(Mv=_S(_S(Fv)),Mv!==Object.prototype&&(ln=Mv)):Xz=!0);var tBe=!QFe(ln)||KFe(function(){var i={};return ln[Qy].call(i)!==i});tBe?ln={}:ln=qFe(ln);XFe(ln[Qy])||JFe(ln,Qy,function(){return this});var Qz={IteratorPrototype:ln,BUGGY_SAFARI_ITERATORS:Xz},rBe=h$,iBe=xo,nBe=rBe?{}.toString:function(){return"[object "+iBe(this)+"]"},aBe=h$,oBe=ei.f,sBe=Gg,gBe=qt,ABe=nBe,IBe=bt,PS=IBe("toStringTag"),Vg=function(i,n,e,t){if(i){var r=e?i:i.prototype;gBe(r,PS)||oBe(r,PS,{configurable:!0,value:n}),t&&!aBe&&sBe(r,"toString",ABe)}},Zg={},CBe=Qz.IteratorPrototype,lBe=Wg,uBe=eC,dBe=Vg,hBe=Zg,cBe=function(){return this},fBe=function(i,n,e,t){var r=n+" Iterator";return i.prototype=lBe(CBe,{next:uBe(+!t,e)}),dBe(i,r,!1,!0),hBe[r]=cBe,i},vBe=ze,pBe=Ro,yBe=function(i,n,e){try{return vBe(pBe(Object.getOwnPropertyDescriptor(i,n)[e]))}catch{}},mBe=Kt,bBe=String,$Be=TypeError,wBe=function(i){if(typeof i=="object"||mBe(i))return i;throw new $Be("Can't set "+bBe(i)+" as a prototype")},EBe=yBe,OBe=ti,TBe=wBe,SBe=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,n={},e;try{e=EBe(Object.prototype,"__proto__","set"),e(n,[]),i=n instanceof Array}catch{}return function(r,a){return OBe(r),TBe(a),i?e(r,a):r.__proto__=a,r}}():void 0),kBe=Ae,_Be=Jr,PBe=EFe,RBe=fBe,xBe=yh,DBe=Vg,RS=IC,NBe=bt,xS=Zg,MBe=Qz,FBe=PBe.PROPER,ml=MBe.BUGGY_SAFARI_ITERATORS,Bv=NBe("iterator"),DS="keys",bl="values",NS="entries",BBe=function(){return this},f$=function(i,n,e,t,r,a,o){RBe(e,n,t);var s=function(f){if(f===r&&l)return l;if(!ml&&f&&f in I)return I[f];switch(f){case DS:return function(){return new e(this,f)};case bl:return function(){return new e(this,f)};case NS:return function(){return new e(this,f)}}return function(){return new e(this)}},g=n+" Iterator",A=!1,I=i.prototype,C=I[Bv]||I["@@iterator"]||r&&I[r],l=!ml&&C||s(r),u=n==="Array"&&I.entries||C,d,h,c;if(u&&(d=xBe(u.call(new i)),d!==Object.prototype&&d.next&&(DBe(d,g,!0,!0),xS[g]=BBe)),FBe&&r===bl&&C&&C.name!==bl&&(A=!0,l=function(){return _Be(C,this)}),r)if(h={values:s(bl),keys:a?l:s(DS),entries:s(NS)},o)for(c in h)(ml||A||!(c in I))&&RS(I,c,h[c]);else kBe({target:n,proto:!0,forced:ml||A},h);return o&&I[Bv]!==l&&RS(I,Bv,l,{}),xS[n]=l,h},v$=function(i,n){return{value:i,done:n}},zBe=AFe.charAt,LBe=tn,qz=Do,jBe=f$,MS=v$,Jz="String Iterator",GBe=qz.set,WBe=qz.getterFor(Jz);jBe(String,"String",function(i){GBe(this,{type:Jz,string:LBe(i),index:0})},function(){var n=WBe(this),e=n.string,t=n.index,r;return t>=e.length?MS(void 0,!0):(r=zBe(e,t),n.index+=r.length,MS(r,!1))});var VBe=Jr,FS=ti,ZBe=I$,e3=function(i,n,e){var t,r;FS(i);try{if(t=ZBe(i,"return"),!t){if(n==="throw")throw e;return e}t=VBe(t,i)}catch(a){r=!0,t=a}if(n==="throw")throw e;if(r)throw t;return FS(t),e},HBe=ti,UBe=e3,YBe=function(i,n,e,t){try{return t?n(HBe(e)[0],e[1]):n(e)}catch(r){UBe(i,"throw",r)}},KBe=bt,XBe=Zg,QBe=KBe("iterator"),qBe=Array.prototype,t3=function(i){return i!==void 0&&(XBe.Array===i||qBe[QBe]===i)},JBe=ze,eze=Kt,qy=C$,tze=JBe(Function.toString);eze(qy.inspectSource)||(qy.inspectSource=function(i){return tze(i)});var rze=qy.inspectSource,ize=ze,nze=Ne,r3=Kt,aze=xo,oze=ui,sze=rze,i3=function(){},gze=[],n3=oze("Reflect","construct"),p$=/^\s*(?:class|function)\b/,Aze=ize(p$.exec),Ize=!p$.test(i3),iA=function(n){if(!r3(n))return!1;try{return n3(i3,gze,n),!0}catch{return!1}},a3=function(n){if(!r3(n))return!1;switch(aze(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ize||!!Aze(p$,sze(n))}catch{return!0}};a3.sham=!0;var mh=!n3||nze(function(){var i;return iA(iA.call)||!iA(Object)||!iA(function(){i=!0})||i})?a3:iA,Cze=dh,lze=ei,uze=eC,Hg=function(i,n,e){var t=Cze(n);t in i?lze.f(i,t,uze(0,e)):i[t]=e},dze=xo,BS=I$,hze=Bg,cze=Zg,fze=bt,vze=fze("iterator"),bh=function(i){if(!hze(i))return BS(i,vze)||BS(i,"@@iterator")||cze[dze(i)]},pze=Jr,yze=Ro,mze=ti,bze=Lg,$ze=bh,wze=TypeError,o3=function(i,n){var e=arguments.length<2?$ze(i):n;if(yze(e))return mze(pze(e,i));throw new wze(bze(i)+" is not iterable")},Eze=oC,Oze=Jr,Tze=Wr,Sze=YBe,kze=t3,_ze=mh,Pze=di,zS=Hg,Rze=o3,xze=bh,LS=Array,Dze=function(n){var e=Tze(n),t=_ze(this),r=arguments.length,a=r>1?arguments[1]:void 0,o=a!==void 0;o&&(a=Eze(a,r>2?arguments[2]:void 0));var s=xze(e),g=0,A,I,C,l,u,d;if(s&&!(this===LS&&kze(s)))for(l=Rze(e,s),u=l.next,I=t?new this:[];!(C=Oze(u,l)).done;g++)d=o?Sze(l,a,[C.value,g],!0):C.value,zS(I,g,d);else for(A=Pze(e),I=t?new this(A):LS(A);A>g;g++)d=o?a(e[g],g):e[g],zS(I,g,d);return I.length=g,I},Nze=bt,s3=Nze("iterator"),g3=!1;try{var Mze=0,jS={next:function(){return{done:!!Mze++}},return:function(){g3=!0}};jS[s3]=function(){return this},Array.from(jS,function(){throw 2})}catch{}var Fze=function(i,n){try{if(!n&&!g3)return!1}catch{return!1}var e=!1;try{var t={};t[s3]=function(){return{next:function(){return{done:e=!0}}}},i(t)}catch{}return e},Bze=Ae,zze=Dze,Lze=Fze,jze=!Lze(function(i){Array.from(i)});Bze({target:"Array",stat:!0,forced:jze},{from:zze});var Gze=Me,Wze=Gze.Array.from,Vze=Wze,A3=Vze,Zze=A3,No=ne(Zze),Hze=en,GS=Zg,I3=Do;ei.f;var Uze=f$,$l=v$,C3="Array Iterator",Yze=I3.set,Kze=I3.getterFor(C3);Uze(Array,"Array",function(i,n){Yze(this,{type:C3,target:Hze(i),index:0,kind:n})},function(){var i=Kze(this),n=i.target,e=i.kind,t=i.index++;if(!n||t>=n.length)return i.target=void 0,$l(void 0,!0);switch(e){case"keys":return $l(t,!1);case"values":return $l(n[t],!1)}return $l([t,n[t]],!1)},"values");GS.Arguments=GS.Array;var Xze=bh,Qze=Xze,qze={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},Jze=qze,e3e=mt,t3e=xo,r3e=Gg,WS=Zg,i3e=bt,VS=i3e("toStringTag");for(var zv in Jze){var ZS=e3e[zv],Lv=ZS&&ZS.prototype;Lv&&t3e(Lv)!==VS&&r3e(Lv,VS,zv),WS[zv]=WS.Array}var n3e=Qze,a3e=n3e,o3e=a3e,s3e=o3e,g3e=s3e,A3e=g3e,l3=A3e,u3=ne(l3),I3e=l3,Mo=ne(I3e);function U(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}var d3={exports:{}},C3e=Ae,l3e=Xt,HS=ei.f;C3e({target:"Object",stat:!0,forced:Object.defineProperty!==HS,sham:!l3e},{defineProperty:HS});var u3e=Me,h3=u3e.Object,d3e=d3.exports=function(n,e,t){return h3.defineProperty(n,e,t)};h3.defineProperty.sham&&(d3e.sham=!0);var h3e=d3.exports,c3e=h3e,c3=c3e,f3e=c3,v3e=f3e,p3e=v3e,y3e=p3e,m3e=y3e,$h=ne(m3e),b3e=kn,Fo=Array.isArray||function(n){return b3e(n)==="Array"},$3e=TypeError,w3e=9007199254740991,y$=function(i){if(i>w3e)throw $3e("Maximum allowed index exceeded");return i},US=Fo,E3e=mh,O3e=Qt,T3e=bt,S3e=T3e("species"),YS=Array,k3e=function(i){var n;return US(i)&&(n=i.constructor,E3e(n)&&(n===YS||US(n.prototype))?n=void 0:O3e(n)&&(n=n[S3e],n===null&&(n=void 0))),n===void 0?YS:n},_3e=k3e,m$=function(i,n){return new(_3e(i))(n===0?0:n)},P3e=Ne,R3e=bt,x3e=iC,D3e=R3e("species"),CC=function(i){return x3e>=51||!P3e(function(){var n=[],e=n.constructor={};return e[D3e]=function(){return{foo:1}},n[i](Boolean).foo!==1})},N3e=Ae,M3e=Ne,F3e=Fo,B3e=Qt,z3e=Wr,L3e=di,KS=y$,XS=Hg,j3e=m$,G3e=CC,W3e=bt,V3e=iC,f3=W3e("isConcatSpreadable"),Z3e=V3e>=51||!M3e(function(){var i=[];return i[f3]=!1,i.concat()[0]!==i}),H3e=function(i){if(!B3e(i))return!1;var n=i[f3];return n!==void 0?!!n:F3e(i)},U3e=!Z3e||!G3e("concat");N3e({target:"Array",proto:!0,forced:U3e},{concat:function(n){var e=z3e(this),t=j3e(e,0),r=0,a,o,s,g,A;for(a=-1,s=arguments.length;ac;c++)if((s||c in u)&&(y=u[c],p=d(y,c,l),i))if(n)v[c]=p;else if(p)switch(i){case 3:return!0;case 5:return y;case 6:return c;case 2:JS(v,y)}else switch(i){case 4:return!1;case 7:JS(v,y)}return a?-1:t||r?r:v}},ba={forEach:ka(0),map:ka(1),filter:ka(2),some:ka(3),every:ka(4),find:ka(5),findIndex:ka(6)},Eh=Ae,Oh=mt,$$=Jr,yLe=ze,rg=Xt,ig=zg,mLe=Ne,Zt=qt,bLe=_t,Jy=ti,Th=en,w$=dh,$Le=tn,em=eC,JA=Wg,b3=ch,wLe=lC,$3=wh,ELe=AC,w3=Fg,E3=ei,OLe=ph,O3=Ch,ek=IC,TLe=b$,E$=jg,SLe=vh,T3=gC,tk=uh,kLe=bt,_Le=uC,PLe=$t,RLe=m3,xLe=Vg,S3=Do,Sh=ba.forEach,Rr=SLe("hidden"),kh="Symbol",eI="prototype",DLe=S3.set,rk=S3.getterFor(kh),wi=Object[eI],Xa=Oh.Symbol,lA=Xa&&Xa[eI],NLe=Oh.RangeError,MLe=Oh.TypeError,jv=Oh.QObject,k3=w3.f,Qa=E3.f,_3=$3.f,FLe=O3.f,P3=yLe([].push),mn=E$("symbols"),dC=E$("op-symbols"),BLe=E$("wks"),tm=!jv||!jv[eI]||!jv[eI].findChild,R3=function(i,n,e){var t=k3(wi,n);t&&delete wi[n],Qa(i,n,e),t&&i!==wi&&Qa(wi,n,t)},rm=rg&&mLe(function(){return JA(Qa({},"a",{get:function(){return Qa(this,"a",{value:7}).a}})).a!==7})?R3:Qa,Gv=function(i,n){var e=mn[i]=JA(lA);return DLe(e,{type:kh,tag:i,description:n}),rg||(e.description=n),e},_h=function(n,e,t){n===wi&&_h(dC,e,t),Jy(n);var r=w$(e);return Jy(t),Zt(mn,r)?(t.enumerable?(Zt(n,Rr)&&n[Rr][r]&&(n[Rr][r]=!1),t=JA(t,{enumerable:em(0,!1)})):(Zt(n,Rr)||Qa(n,Rr,em(1,{})),n[Rr][r]=!0),rm(n,r,t)):Qa(n,r,t)},O$=function(n,e){Jy(n);var t=Th(e),r=b3(t).concat(M3(t));return Sh(r,function(a){(!rg||$$(x3,t,a))&&_h(n,a,t[a])}),n},zLe=function(n,e){return e===void 0?JA(n):O$(JA(n),e)},x3=function(n){var e=w$(n),t=$$(FLe,this,e);return this===wi&&Zt(mn,e)&&!Zt(dC,e)?!1:t||!Zt(this,e)||!Zt(mn,e)||Zt(this,Rr)&&this[Rr][e]?t:!0},D3=function(n,e){var t=Th(n),r=w$(e);if(!(t===wi&&Zt(mn,r)&&!Zt(dC,r))){var a=k3(t,r);return a&&Zt(mn,r)&&!(Zt(t,Rr)&&t[Rr][r])&&(a.enumerable=!0),a}},N3=function(n){var e=_3(Th(n)),t=[];return Sh(e,function(r){!Zt(mn,r)&&!Zt(T3,r)&&P3(t,r)}),t},M3=function(i){var n=i===wi,e=_3(n?dC:Th(i)),t=[];return Sh(e,function(r){Zt(mn,r)&&(!n||Zt(wi,r))&&P3(t,mn[r])}),t};ig||(Xa=function(){if(bLe(lA,this))throw new MLe("Symbol is not a constructor");var n=!arguments.length||arguments[0]===void 0?void 0:$Le(arguments[0]),e=tk(n),t=function(r){this===wi&&$$(t,dC,r),Zt(this,Rr)&&Zt(this[Rr],e)&&(this[Rr][e]=!1);var a=em(1,r);try{rm(this,e,a)}catch(o){if(!(o instanceof NLe))throw o;R3(this,e,a)}};return rg&&tm&&rm(wi,e,{configurable:!0,set:t}),Gv(e,n)},lA=Xa[eI],ek(lA,"toString",function(){return rk(this).tag}),ek(Xa,"withoutSetter",function(i){return Gv(tk(i),i)}),O3.f=x3,E3.f=_h,OLe.f=O$,w3.f=D3,wLe.f=$3.f=N3,ELe.f=M3,_Le.f=function(i){return Gv(kLe(i),i)},rg&&TLe(lA,"description",{configurable:!0,get:function(){return rk(this).description}}));Eh({global:!0,wrap:!0,forced:!ig,sham:!ig},{Symbol:Xa});Sh(b3(BLe),function(i){PLe(i)});Eh({target:kh,stat:!0,forced:!ig},{useSetter:function(){tm=!0},useSimple:function(){tm=!1}});Eh({target:"Object",stat:!0,forced:!ig,sham:!rg},{create:zLe,defineProperty:_h,defineProperties:O$,getOwnPropertyDescriptor:D3});Eh({target:"Object",stat:!0,forced:!ig},{getOwnPropertyNames:N3});RLe();xLe(Xa,kh);T3[Rr]=!0;var LLe=zg,F3=LLe&&!!Symbol.for&&!!Symbol.keyFor,jLe=Ae,GLe=ui,WLe=qt,VLe=tn,B3=jg,ZLe=F3,Wv=B3("string-to-symbol-registry"),HLe=B3("symbol-to-string-registry");jLe({target:"Symbol",stat:!0,forced:!ZLe},{for:function(i){var n=VLe(i);if(WLe(Wv,n))return Wv[n];var e=GLe("Symbol")(n);return Wv[n]=e,HLe[e]=n,e}});var ULe=Ae,YLe=qt,KLe=nC,XLe=Lg,QLe=jg,qLe=F3,ik=QLe("symbol-to-string-registry");ULe({target:"Symbol",stat:!0,forced:!qLe},{keyFor:function(n){if(!KLe(n))throw new TypeError(XLe(n)+" is not a symbol");if(YLe(ik,n))return ik[n]}});var JLe=ze,nk=Fo,e5e=Kt,ak=kn,t5e=tn,ok=JLe([].push),r5e=function(i){if(e5e(i))return i;if(nk(i)){for(var n=i.length,e=[],t=0;ti.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?arguments[1]:void 0)}});var OWe=Jt,TWe=OWe("Array").map,SWe=_t,kWe=TWe,Kv=Array.prototype,_We=function(i){var n=i.map;return i===Kv||SWe(Kv,i)&&n===Kv.map?kWe:n},PWe=_We,RWe=PWe,xWe=RWe,ng=ne(xWe),DWe=Ae,NWe=Wr,rL=ch,MWe=Ne,FWe=MWe(function(){rL(1)});DWe({target:"Object",stat:!0,forced:FWe},{keys:function(n){return rL(NWe(n))}});var BWe=Me,zWe=BWe.Object.keys,LWe=zWe,jWe=LWe,GWe=jWe,dt=ne(GWe),WWe=Ae,VWe=ze,iL=Date,ZWe=VWe(iL.prototype.getTime);WWe({target:"Date",stat:!0},{now:function(){return ZWe(new iL)}});var HWe=Me,UWe=HWe.Date.now,YWe=UWe,KWe=YWe,XWe=KWe,Qu=ne(XWe),QWe=Ne,Ug=function(i,n){var e=[][i];return!!e&&QWe(function(){e.call(null,n||function(){return 1},1)})},qWe=ba.forEach,JWe=Ug,e4e=JWe("forEach"),t4e=e4e?[].forEach:function(n){return qWe(this,n,arguments.length>1?arguments[1]:void 0)},r4e=Ae,$k=t4e;r4e({target:"Array",proto:!0,forced:[].forEach!==$k},{forEach:$k});var i4e=Jt,n4e=i4e("Array").forEach,a4e=n4e,o4e=a4e,s4e=xo,g4e=qt,A4e=_t,I4e=o4e,Xv=Array.prototype,C4e={DOMTokenList:!0,NodeList:!0},l4e=function(i){var n=i.forEach;return i===Xv||A4e(Xv,i)&&n===Xv.forEach||g4e(C4e,s4e(i))?I4e:n},u4e=l4e,Qe=ne(u4e),d4e=Ae,h4e=ze,c4e=Fo,f4e=h4e([].reverse),wk=[1,2];d4e({target:"Array",proto:!0,forced:String(wk)===String(wk.reverse())},{reverse:function(){return c4e(this)&&(this.length=this.length),f4e(this)}});var v4e=Jt,p4e=v4e("Array").reverse,y4e=_t,m4e=p4e,Qv=Array.prototype,b4e=function(i){var n=i.reverse;return i===Qv||y4e(Qv,i)&&n===Qv.reverse?m4e:n},$4e=b4e,w4e=$4e,E4e=w4e,qa=ne(E4e),Ek=Lg,O4e=TypeError,nL=function(i,n){if(!delete i[n])throw new O4e("Cannot delete property "+Ek(n)+" of "+Ek(i))},T4e=Ae,S4e=Wr,k4e=sC,_4e=hh,P4e=di,R4e=q3,x4e=y$,D4e=m$,N4e=Hg,qv=nL,M4e=CC,F4e=M4e("splice"),B4e=Math.max,z4e=Math.min;T4e({target:"Array",proto:!0,forced:!F4e},{splice:function(n,e){var t=S4e(this),r=P4e(t),a=k4e(n,r),o=arguments.length,s,g,A,I,C,l;for(o===0?s=g=0:o===1?(s=0,g=r-a):(s=o-2,g=z4e(B4e(_4e(e),0),r-a)),x4e(r+s-g),A=D4e(t,g),I=0;Ir-g+s;I--)qv(t,I-1)}else if(s>g)for(I=r-g;I>a;I--)C=I+g-1,l=I+s-1,C in t?t[l]=t[C]:qv(t,l);for(I=0;I1?arguments[1]:void 0)}});var q4e=Jt,J4e=q4e("Array").includes,eVe=Qt,tVe=kn,rVe=bt,iVe=rVe("match"),nVe=function(i){var n;return eVe(i)&&((n=i[iVe])!==void 0?!!n:tVe(i)==="RegExp")},aVe=nVe,oVe=TypeError,sVe=function(i){if(aVe(i))throw new oVe("The method doesn't accept regular expressions");return i},gVe=bt,AVe=gVe("match"),IVe=function(i){var n=/./;try{"/./"[i](n)}catch{try{return n[AVe]=!1,"/./"[i](n)}catch{}}return!1},CVe=Ae,lVe=ze,uVe=sVe,dVe=tC,Ok=tn,hVe=IVe,cVe=lVe("".indexOf);CVe({target:"String",proto:!0,forced:!hVe("includes")},{includes:function(n){return!!~cVe(Ok(dVe(this)),Ok(uVe(n)),arguments.length>1?arguments[1]:void 0)}});var fVe=Jt,vVe=fVe("String").includes,Tk=_t,pVe=J4e,yVe=vVe,ep=Array.prototype,tp=String.prototype,mVe=function(i){var n=i.includes;return i===ep||Tk(ep,i)&&n===ep.includes?pVe:typeof i=="string"||i===tp||Tk(tp,i)&&n===tp.includes?yVe:n},bVe=mVe,$Ve=bVe,wVe=$Ve,Jn=ne(wVe),EVe=Ae,OVe=Ne,TVe=Wr,aL=yh,SVe=Kz,kVe=OVe(function(){aL(1)});EVe({target:"Object",stat:!0,forced:kVe,sham:!SVe},{getPrototypeOf:function(n){return aL(TVe(n))}});var _Ve=Me,PVe=_Ve.Object.getPrototypeOf,RVe=PVe,oL=RVe,xVe=oL,Sk=ne(xVe),DVe=Ae,NVe=ba.filter,MVe=CC,FVe=MVe("filter");DVe({target:"Array",proto:!0,forced:!FVe},{filter:function(n){return NVe(this,n,arguments.length>1?arguments[1]:void 0)}});var BVe=Jt,zVe=BVe("Array").filter,LVe=_t,jVe=zVe,rp=Array.prototype,GVe=function(i){var n=i.filter;return i===rp||LVe(rp,i)&&n===rp.filter?jVe:n},WVe=GVe,VVe=WVe,ZVe=VVe,xr=ne(ZVe),k$=` \v\f\r                 \u2028\u2029\uFEFF`,HVe=ze,UVe=tC,YVe=tn,nm=k$,kk=HVe("".replace),KVe=RegExp("^["+nm+"]+"),XVe=RegExp("(^|[^"+nm+"])["+nm+"]+$"),QVe=function(i){return function(n){var e=YVe(UVe(n));return i&1&&(e=kk(e,KVe,"")),i&2&&(e=kk(e,XVe,"$1")),e}},sL={trim:QVe(3)},gL=mt,qVe=Ne,JVe=ze,eZe=tn,tZe=sL.trim,_k=k$,TA=gL.parseInt,Pk=gL.Symbol,Rk=Pk&&Pk.iterator,AL=/^[+-]?0x/i,rZe=JVe(AL.exec),iZe=TA(_k+"08")!==8||TA(_k+"0x16")!==22||Rk&&!qVe(function(){TA(Object(Rk))}),nZe=iZe?function(n,e){var t=tZe(eZe(n));return TA(t,e>>>0||(rZe(AL,t)?16:10))}:TA,aZe=Ae,xk=nZe;aZe({global:!0,forced:parseInt!==xk},{parseInt:xk});var oZe=Me,sZe=oZe.parseInt,gZe=sZe,AZe=gZe,IZe=AZe,mi=ne(IZe),CZe=Ae,lZe=A$,uZe=l$.indexOf,dZe=Ug,am=lZe([].indexOf),IL=!!am&&1/am([1],1,-0)<0,hZe=IL||!dZe("indexOf");CZe({target:"Array",proto:!0,forced:hZe},{indexOf:function(n){var e=arguments.length>1?arguments[1]:void 0;return IL?am(this,n,e)||0:uZe(this,n,e)}});var cZe=Jt,fZe=cZe("Array").indexOf,vZe=_t,pZe=fZe,ip=Array.prototype,yZe=function(i){var n=i.indexOf;return i===ip||vZe(ip,i)&&n===ip.indexOf?pZe:n},mZe=yZe,bZe=mZe,$Ze=bZe,Re=ne($Ze),wZe=Ae,EZe=Xt,OZe=Wg;wZe({target:"Object",stat:!0,sham:!EZe},{create:OZe});var TZe=Me,SZe=TZe.Object,kZe=function(n,e){return SZe.create(n,e)},_Ze=kZe,CL=_Ze,PZe=CL,Ja=ne(PZe),om=Me,RZe=JI;om.JSON||(om.JSON={stringify:JSON.stringify});var xZe=function(n,e,t){return RZe(om.JSON.stringify,null,arguments)},DZe=xZe,NZe=DZe,MZe=NZe,cC=ne(MZe),FZe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",BZe=TypeError,zZe=function(i,n){if(ie,o=jZe(t)?t:HZe(t),s=a?VZe(arguments,e):[],g=a?function(){LZe(o,this,s)}:o;return n?i(g,r):i(g)}:i},YZe=Ae,dL=mt,KZe=uL,Dk=KZe(dL.setInterval,!0);YZe({global:!0,bind:!0,forced:dL.setInterval!==Dk},{setInterval:Dk});var XZe=Ae,hL=mt,QZe=uL,Nk=QZe(hL.setTimeout,!0);XZe({global:!0,bind:!0,forced:hL.setTimeout!==Nk},{setTimeout:Nk});var qZe=Me,JZe=qZe.setTimeout,eHe=JZe,Zi=ne(eHe),tHe=Wr,Mk=sC,rHe=di,iHe=function(n){for(var e=tHe(this),t=rHe(e),r=arguments.length,a=Mk(r>1?arguments[1]:void 0,t),o=r>2?arguments[2]:void 0,s=o===void 0?t:Mk(o,t);s>a;)e[a++]=n;return e},nHe=Ae,aHe=iHe;nHe({target:"Array",proto:!0},{fill:aHe});var oHe=Jt,sHe=oHe("Array").fill,gHe=_t,AHe=sHe,np=Array.prototype,IHe=function(i){var n=i.fill;return i===np||gHe(np,i)&&n===np.fill?AHe:n},CHe=IHe,lHe=CHe,uHe=lHe,fC=ne(uHe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */function Si(){return Si=Object.assign||function(i){for(var n=1;n"u"?{style:{}}:document.createElement("div"),hHe="function",$s=Math.round,uo=Math.abs,_$=Date.now;function Ph(i,n){for(var e,t,r=n[0].toUpperCase()+n.slice(1),a=0;a"u"?dn={}:dn=window;var cL=Ph(dHe.style,"touchAction"),fL=cL!==void 0;function cHe(){if(!fL)return!1;var i={},n=dn.CSS&&dn.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return i[e]=n?dn.CSS.supports("touch-action",e):!0}),i}var vL="compute",pL="auto",gm="manipulation",eo="none",tI="pan-x",rI="pan-y",Ol=cHe(),fHe=/mobile|tablet|ip(ad|hone|od)|android/i,yL="ontouchstart"in dn,vHe=Ph(dn,"PointerEvent")!==void 0,pHe=yL&&fHe.test(navigator.userAgent),vC="touch",yHe="pen",P$="mouse",mHe="kinect",bHe=25,vr=1,Bo=2,Nt=4,Mr=8,qu=1,pC=2,yC=4,mC=8,ag=16,Hi=pC|yC,to=mC|ag,mL=Hi|to,bL=["x","y"],Ju=["clientX","clientY"];function hn(i,n,e){var t;if(i)if(i.forEach)i.forEach(n,e);else if(i.length!==void 0)for(t=0;t-1}function $He(i){if(Ba(i,eo))return eo;var n=Ba(i,tI),e=Ba(i,rI);return n&&e?eo:n||e?n?tI:rI:Ba(i,gm)?gm:pL}var $L=function(){function i(e,t){this.manager=e,this.set(t)}var n=i.prototype;return n.set=function(t){t===vL&&(t=this.compute()),fL&&this.manager.element.style&&Ol[t]&&(this.manager.element.style[cL]=t),this.actions=t.toLowerCase().trim()},n.update=function(){this.set(this.manager.options.touchAction)},n.compute=function(){var t=[];return hn(this.manager.recognizers,function(r){Rh(r.options.enable,[r])&&(t=t.concat(r.getTouchAction()))}),$He(t.join(" "))},n.preventDefaults=function(t){var r=t.srcEvent,a=t.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var o=this.actions,s=Ba(o,eo)&&!Ol[eo],g=Ba(o,rI)&&!Ol[rI],A=Ba(o,tI)&&!Ol[tI];if(s){var I=t.pointers.length===1,C=t.distance<2,l=t.deltaTime<250;if(I&&C&&l)return}if(!(A&&g)&&(s||g&&a&Hi||A&&a&to))return this.preventSrc(r)},n.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},i}();function R$(i,n){for(;i;){if(i===n)return!0;i=i.parentNode}return!1}function wL(i){var n=i.length;if(n===1)return{x:$s(i[0].clientX),y:$s(i[0].clientY)};for(var e=0,t=0,r=0;r=uo(n)?i<0?pC:yC:n<0?mC:ag}function wHe(i,n){var e=n.center,t=i.offsetDelta||{},r=i.prevDelta||{},a=i.prevInput||{};(n.eventType===vr||a.eventType===Nt)&&(r=i.prevDelta={x:a.deltaX||0,y:a.deltaY||0},t=i.offsetDelta={x:e.x,y:e.y}),n.deltaX=r.x+(e.x-t.x),n.deltaY=r.y+(e.y-t.y)}function OL(i,n,e){return{x:n/i||0,y:e/i||0}}function EHe(i,n){return ed(n[0],n[1],Ju)/ed(i[0],i[1],Ju)}function OHe(i,n){return Am(n[1],n[0],Ju)+Am(i[1],i[0],Ju)}function THe(i,n){var e=i.lastInterval||n,t=n.timeStamp-e.timeStamp,r,a,o,s;if(n.eventType!==Mr&&(t>bHe||e.velocity===void 0)){var g=n.deltaX-e.deltaX,A=n.deltaY-e.deltaY,I=OL(t,g,A);a=I.x,o=I.y,r=uo(I.x)>uo(I.y)?I.x:I.y,s=EL(g,A),i.lastInterval=n}else r=e.velocity,a=e.velocityX,o=e.velocityY,s=e.direction;n.velocity=r,n.velocityX=a,n.velocityY=o,n.direction=s}function SHe(i,n){var e=i.session,t=n.pointers,r=t.length;e.firstInput||(e.firstInput=Bk(n)),r>1&&!e.firstMultiple?e.firstMultiple=Bk(n):r===1&&(e.firstMultiple=!1);var a=e.firstInput,o=e.firstMultiple,s=o?o.center:a.center,g=n.center=wL(t);n.timeStamp=_$(),n.deltaTime=n.timeStamp-a.timeStamp,n.angle=Am(s,g),n.distance=ed(s,g),wHe(e,n),n.offsetDirection=EL(n.deltaX,n.deltaY);var A=OL(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=A.x,n.overallVelocityY=A.y,n.overallVelocity=uo(A.x)>uo(A.y)?A.x:A.y,n.scale=o?EHe(o.pointers,t):1,n.rotation=o?OHe(o.pointers,t):0,n.maxPointers=e.prevInput?n.pointers.length>e.prevInput.maxPointers?n.pointers.length:e.prevInput.maxPointers:n.pointers.length,THe(e,n);var I=i.element,C=n.srcEvent,l;C.composedPath?l=C.composedPath()[0]:C.path?l=C.path[0]:l=C.target,R$(l,I)&&(I=l),n.target=I}function kHe(i,n,e){var t=e.pointers.length,r=e.changedPointers.length,a=n&vr&&t-r===0,o=n&(Nt|Mr)&&t-r===0;e.isFirst=!!a,e.isFinal=!!o,a&&(i.session={}),e.eventType=n,SHe(i,e),i.emit("hammer.input",e),i.recognize(e),i.session.prevInput=e}function iI(i){return i.trim().split(/\s+/g)}function SA(i,n,e){hn(iI(n),function(t){i.addEventListener(t,e,!1)})}function kA(i,n,e){hn(iI(n),function(t){i.removeEventListener(t,e,!1)})}function zk(i){var n=i.ownerDocument||i;return n.defaultView||n.parentWindow||window}var Yg=function(){function i(e,t){var r=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(a){Rh(e.options.enable,[e])&&r.handler(a)},this.init()}var n=i.prototype;return n.handler=function(){},n.init=function(){this.evEl&&SA(this.element,this.evEl,this.domHandler),this.evTarget&&SA(this.target,this.evTarget,this.domHandler),this.evWin&&SA(zk(this.element),this.evWin,this.domHandler)},n.destroy=function(){this.evEl&&kA(this.element,this.evEl,this.domHandler),this.evTarget&&kA(this.target,this.evTarget,this.domHandler),this.evWin&&kA(zk(this.element),this.evWin,this.domHandler)},i}();function ho(i,n,e){if(i.indexOf&&!e)return i.indexOf(n);for(var t=0;tg[n]}):t=t.sort()),t}var RHe={touchstart:vr,touchmove:Bo,touchend:Nt,touchcancel:Mr},xHe="touchstart touchmove touchend touchcancel",D$=function(i){hi(n,i);function n(){var t;return n.prototype.evTarget=xHe,t=i.apply(this,arguments)||this,t.targetIds={},t}var e=n.prototype;return e.handler=function(r){var a=RHe[r.type],o=DHe.call(this,r,a);o&&this.callback(this.manager,a,{pointers:o[0],changedPointers:o[1],pointerType:vC,srcEvent:r})},n}(Yg);function DHe(i,n){var e=nI(i.touches),t=this.targetIds;if(n&(vr|Bo)&&e.length===1)return t[e[0].identifier]=!0,[e,e];var r,a,o=nI(i.changedTouches),s=[],g=this.target;if(a=e.filter(function(A){return R$(A.target,g)}),n===vr)for(r=0;r-1&&r.splice(s,1)};setTimeout(a,BHe)}}function zHe(i,n){i&vr?(this.primaryTouch=n.changedPointers[0].identifier,jk.call(this,n)):i&(Nt|Mr)&&jk.call(this,n)}function LHe(i){for(var n=i.srcEvent.clientX,e=i.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(r,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var r=this,a=this.state;function o(s){r.manager.emit(s,t)}a=ea&&o(r.options.event+Gk(a))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=zi},n.canEmit=function(){for(var t=0;ta.threshold&&g&a.direction},e.attrTest=function(r){return sg.prototype.attrTest.call(this,r)&&(this.state&Ii||!(this.state&Ii)&&this.directionTest(r))},e.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var a=PL(r.direction);a&&(r.additionalEvent=this.options.event+a),i.prototype.emit.call(this,r)},n}(sg),RL=function(i){hi(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Si({event:"swipe",threshold:10,velocity:.3,direction:Hi|to,pointers:1},t))||this}var e=n.prototype;return e.getTouchAction=function(){return M$.prototype.getTouchAction.call(this)},e.attrTest=function(r){var a=this.options.direction,o;return a&(Hi|to)?o=r.overallVelocity:a&Hi?o=r.overallVelocityX:a&to&&(o=r.overallVelocityY),i.prototype.attrTest.call(this,r)&&a&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&uo(o)>this.options.velocity&&r.eventType&Nt},e.emit=function(r){var a=PL(r.offsetDirection);a&&this.manager.emit(this.options.event+a,r),this.manager.emit(this.options.event,r)},n}(sg),xL=function(i){hi(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Si({event:"pinch",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[eo]},e.attrTest=function(r){return i.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&Ii)},e.emit=function(r){if(r.scale!==1){var a=r.scale<1?"in":"out";r.additionalEvent=this.options.event+a}i.prototype.emit.call(this,r)},n}(sg),DL=function(i){hi(n,i);function n(t){return t===void 0&&(t={}),i.call(this,Si({event:"rotate",threshold:0,pointers:2},t))||this}var e=n.prototype;return e.getTouchAction=function(){return[eo]},e.attrTest=function(r){return i.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&Ii)},n}(sg),NL=function(i){hi(n,i);function n(t){var r;return t===void 0&&(t={}),r=i.call(this,Si({event:"press",pointers:1,time:251,threshold:9},t))||this,r._timer=null,r._input=null,r}var e=n.prototype;return e.getTouchAction=function(){return[pL]},e.process=function(r){var a=this,o=this.options,s=r.pointers.length===o.pointers,g=r.distanceo.time;if(this._input=r,!g||!s||r.eventType&(Nt|Mr)&&!A)this.reset();else if(r.eventType&vr)this.reset(),this._timer=setTimeout(function(){a.state=cn,a.tryEmit()},o.time);else if(r.eventType&Nt)return cn;return zi},e.reset=function(){clearTimeout(this._timer)},e.emit=function(r){this.state===cn&&(r&&r.eventType&Nt?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=_$(),this.manager.emit(this.options.event,this._input)))},n}(bC),ML={domEvents:!1,touchAction:vL,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Wk=[[DL,{enable:!1}],[xL,{enable:!1},["rotate"]],[RL,{direction:Hi}],[M$,{direction:Hi},["swipe"]],[Im],[Im,{event:"doubletap",taps:2},["tap"]],[NL]],VHe=1,Vk=2;function Zk(i,n){var e=i.element;if(e.style){var t;hn(i.options.cssProps,function(r,a){t=Ph(e.style,a),n?(i.oldCssProps[t]=e.style[t],e.style[t]=r):e.style[t]=i.oldCssProps[t]||""}),n||(i.oldCssProps={})}}function ZHe(i,n){var e=document.createEvent("Event");e.initEvent(i,!0,!0),e.gesture=n,n.target.dispatchEvent(e)}var Hk=function(){function i(e,t){var r=this;this.options=lo({},ML,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=jHe(this),this.touchAction=new $L(this,this.options.touchAction),Zk(this,!0),hn(this.options.recognizers,function(a){var o=r.add(new a[0](a[1]));a[2]&&o.recognizeWith(a[2]),a[3]&&o.requireFailure(a[3])},this)}var n=i.prototype;return n.set=function(t){return lo(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},n.stop=function(t){this.session.stopped=t?Vk:VHe},n.recognize=function(t){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(t);var a,o=this.recognizers,s=r.curRecognizer;(!s||s&&s.state&cn)&&(r.curRecognizer=null,s=null);for(var g=0;g\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,t,a),i.apply(this,arguments)}}var BL=FL(function(i,n,e){for(var t=Object.keys(n),r=0;r=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function e8e(i,n){var e;if(i){if(typeof i=="string")return Yk(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yk(i,n)}}function Yk(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e>>0,r-=i,r*=i,i=r>>>0,r-=i,i+=r*4294967296}return(i>>>0)*23283064365386963e-26}}function n8e(){var i=function(){};return{on:i,off:i,destroy:i,emit:i,get:function(){return{set:i}}}}var F$=typeof window<"u"?window.Hammer||JHe:function(){return n8e()};function Li(i){var n=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:i,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)});var t=F$(this._dom.overlay);t.on("tap",L(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){t.destroy()});var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Qe(r).call(r,function(a){t.on(a,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(a){a8e(a.target,i)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",n._onClick)})),this._escListener=function(a){("key"in a?a.key==="Escape":a.keyCode===27)&&n.deactivate()}}jz(Li.prototype);Li.current=null;Li.prototype.destroy=function(){var i,n;this.deactivate();var e=LL(qa(i=un(n=this._cleanupQueue).call(n,0)).call(i)),t;try{for(e.s();!(t=e.n()).done;){var r=t.value;r()}}catch(a){e.e(a)}finally{e.f()}};Li.prototype.activate=function(){Li.current&&Li.current.deactivate(),Li.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)};Li.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")};Li.prototype._onTapOverlay=function(i){this.activate(),i.srcEvent.stopPropagation()};function a8e(i,n){for(;i;){if(i===n)return!0;i=i.parentNode}return!1}var o8e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,s8e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,g8e=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,A8e=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Mn(i){if(i)for(;i.hasChildNodes()===!0;){var n=i.firstChild;n&&(Mn(n),i.removeChild(n))}}function Ds(i){return i instanceof String||typeof i=="string"}function Kk(i){return Ue(i)==="object"&&i!==null}function co(i,n,e,t){var r=!1;t===!0&&(r=n[e]===null&&i[e]!==void 0),r?delete i[e]:i[e]=n[e]}function jL(i,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var t in i)if(n[t]!==void 0)if(n[t]===null||Ue(n[t])!=="object")co(i,n,t,e);else{var r=i[t],a=n[t];Kk(r)&&Kk(a)&&jL(r,a,e)}}function Kg(i,n,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ve(e))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;if(Ve(e))throw new TypeError("Arrays are not supported by deepExtend");for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!Jn(i).call(i,r))if(e[r]&&e[r].constructor===Object)n[r]===void 0&&(n[r]={}),n[r].constructor===Object?rt(n[r],e[r]):co(n,e,r,t);else if(Ve(e[r])){n[r]=[];for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)||e===!0)if(Ue(n[r])==="object"&&n[r]!==null&&Sk(n[r])===Object.prototype)i[r]===void 0?i[r]=rt({},n[r],e):Ue(i[r])==="object"&&i[r]!==null&&Sk(i[r])===Object.prototype?rt(i[r],n[r],e):co(i,n,r,t);else if(Ve(n[r])){var a;i[r]=ar(a=n[r]).call(a)}else co(i,n,r,t);return i}function rd(i,n){var e;return S$(e=[]).call(e,Ni(i),[n])}function I8e(i){return ar(i).call(i)}function C8e(i){return i.getBoundingClientRect().left}function l8e(i){return i.getBoundingClientRect().top}function me(i,n){if(Ve(i))for(var e=i.length,t=0;t3&&arguments[3]!==void 0?arguments[3]:{},r=function(d){return d!=null},a=function(d){return d!==null&&Ue(d)==="object"},o=function(d){for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h))return!1;return!0};if(!a(i))throw new Error("Parameter mergeTarget must be an object");if(!a(n))throw new Error("Parameter options must be an object");if(!r(e))throw new Error("Parameter option must have a value");if(!a(t))throw new Error("Parameter globalOptions must be an object");var s=function(d,h,c){a(d[c])||(d[c]={});var f=h[c],v=d[c];for(var y in f)Object.prototype.hasOwnProperty.call(f,y)&&(v[y]=f[y])},g=n[e],A=a(t)&&!o(t),I=A?t[e]:void 0,C=I?I.enabled:void 0;if(g!==void 0){if(typeof g=="boolean"){a(i[e])||(i[e]={}),i[e].enabled=g;return}if(g===null&&!a(i[e]))if(r(I))i[e]=Ja(I);else return;if(a(g)){var l=!0;g.enabled!==void 0?l=g.enabled:C!==void 0&&(l=I.enabled),s(i,n,e),i[e].enabled=l}}}var h8e={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:-1+(4-2*n)*n},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}};function Fn(i,n){var e;Ve(n)||(n=[n]);var t=LL(i),r;try{for(t.s();!(r=t.n()).done;){var a=r.value;if(a){e=a[n[0]];for(var o=1;o0&&arguments[0]!==void 0?arguments[0]:1;U(this,i),this.pixelRatio=n,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Y(i,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return c8e[e]}},{key:"setColor",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var r,a=this._isColorString(e);if(a!==void 0&&(e=a),Ds(e)===!0){if(VL(e)===!0){var o=e.substr(4).substr(0,e.length-5).split(",");r={r:o[0],g:o[1],b:o[2],a:1}}else if(d8e(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");r={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(WL(e)===!0){var g=B$(e);r={r:g.r,g:g.g,b:g.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var A=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:A}}if(r===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+cC(e));this._setColor(r,t)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;t===!0&&(this.previousColor=Dt({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Zi(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;t===!0&&(this.initialColor=Dt({},e)),this.color=e;var r=uA(e.r,e.g,e.b),a=2*Math.PI,o=this.r*r.s,s=this.centerCoordinates.x+o*Math.sin(a*r.h),g=this.centerCoordinates.y+o*Math.cos(a*r.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=g-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=uA(this.color.r,this.color.g,this.color.b);t.v=e/100;var r=au(t.h,t.s,t.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,t=uA(e.r,e.g,e.b),r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,a,o),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-t.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fC(r).call(r),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,r,a;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var g=this;this.opacityRange.onchange=function(){g._setOpacity(this.value)},this.opacityRange.oninput=function(){g._setOpacity(this.value)},this.brightnessRange.onchange=function(){g._setBrightness(this.value)},this.brightnessRange.oninput=function(){g._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=L(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=L(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=L(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=L(a=this._loadLast).call(a,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new F$(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(t){t.isFirst&&e._moveSelector(t)}),this.hammer.on("tap",function(t){e._moveSelector(t)}),this.hammer.on("panstart",function(t){e._moveSelector(t)}),this.hammer.on("panmove",function(t){e._moveSelector(t)}),this.hammer.on("panend",function(t){e._moveSelector(t)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,r);var a,o,s,g;this.centerCoordinates={x:t*.5,y:r*.5},this.r=.49*t;var A=2*Math.PI/360,I=1/360,C=1/this.r,l;for(s=0;s<360;s++)for(g=0;g3&&arguments[3]!==void 0?arguments[3]:1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};U(this,i),this.parent=n,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=a,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Dt(this.options,this.defaultOptions),this.configureOptions=t,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new f8e(r),this.wrapper=void 0}return Y(i,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var t=!0;if(typeof e=="string")this.options.filter=e;else if(Ve(e))this.options.filter=e.join();else if(Ue(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),xr(e)!==void 0&&(this.options.filter=xr(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(t=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,t=e):typeof e=="function"&&(this.options.filter=e,t=!0);xr(this.options)===!1&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=xr(this.options),t=0,r=!1;for(var a in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,a)&&(this.allowCreation=!1,r=!1,typeof e=="function"?(r=e(a,[]),r=r||this._handleObject(this.configureOptions[a],[a],!0)):(e===!0||Re(e).call(e,a)!==-1)&&(r=!0),r!==!1&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(a),this._handleObject(this.configureOptions[a],[a])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:!1,a=document.createElement("div");if(a.className="vis-configuration vis-config-label vis-config-s"+t.length,r===!0){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(um("i","b",e))}else a.innerText=e+":";return a}},{key:"_makeDropdown",value:function(e,t,r){var a=document.createElement("select");a.className="vis-configuration vis-config-select";var o=0;t!==void 0&&Re(e).call(e,t)!==-1&&(o=Re(e).call(e,t));for(var s=0;ss&&s!==1&&(A.max=Math.ceil(t*l),C=A.max,I="range increased"),A.value=t}else A.value=a;var u=document.createElement("input");u.className="vis-configuration vis-config-rangeinput",u.value=A.value;var d=this;A.onchange=function(){u.value=this.value,d._update(Number(this.value),r)},A.oninput=function(){u.value=this.value};var h=this._makeLabel(r[r.length-1],r),c=this._makeItem(r,h,A,u);I!==""&&this.popupHistory[c]!==C&&(this.popupHistory[c]=C,this._setupPopup(I,c))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=!1,o=xr(this.options),s=!1;for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)){a=!0;var A=e[g],I=rd(t,g);if(typeof o=="function"&&(a=o(g,t),a===!1&&!Ve(A)&&typeof A!="string"&&typeof A!="boolean"&&A instanceof Object&&(this.allowCreation=!1,a=this._handleObject(A,I,!0),this.allowCreation=r===!1)),a!==!1){s=!0;var C=this._getValue(I);if(Ve(A))this._handleArray(A,C,I);else if(typeof A=="string")this._makeTextInput(A,C,I);else if(typeof A=="boolean")this._makeCheckbox(A,C,I);else if(A instanceof Object){if(!this.hideOption(t,g,this.moduleOptions))if(A.enabled!==void 0){var l=rd(I,"enabled"),u=this._getValue(l);if(u===!0){var d=this._makeLabel(g,I,!0);this._makeItem(I,d),s=this._handleObject(A,I)||s}else this._makeCheckbox(A,u,I)}else{var h=this._makeLabel(g,I,!0);this._makeItem(I,h),s=this._handleObject(A,I)||s}}else console.error("dont know how to handle",A,g,I)}}return s}},{key:"_handleArray",value:function(e,t,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,t,r),e[1]!==t&&this.changedOptions.push({path:r,value:t})):typeof e[0]=="string"?(this._makeDropdown(e,t,r),e[0]!==t&&this.changedOptions.push({path:r,value:t})):typeof e[0]=="number"&&(this._makeRange(e,t,r),e[0]!==t&&this.changedOptions.push({path:r,value:Number(t)}))}},{key:"_update",value:function(e,t){var r=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var o=0;oo-this.padding&&(A=!0),A?s=this.x-r:s=this.x,I?g=this.y-t:g=this.y}else g=this.y-t,g+t+this.padding>a&&(g=a-t-this.padding),go&&(s=o-r-this.padding),so.distance?A=" in "+i.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+i.printLocation(o.path,o.closestMatch,""):a.distance<=s?A='. Did you mean "'+a.closestMatch+'"?'+i.printLocation(a.path,e):A=". Did you mean one of these: "+i.print(dt(t))+i.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+A,dm),nA=!0}},{key:"findInOptions",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,s="",g=[],A=e.toLowerCase(),I=void 0;for(var C in t){var l=void 0;if(t[C].__type__!==void 0&&a===!0){var u=i.findInOptions(e,t[C],rd(r,C));o>u.distance&&(s=u.closestMatch,g=u.path,o=u.distance,I=u.indexMatch)}else{var d;Re(d=C.toLowerCase()).call(d,A)!==-1&&(I=C),l=i.levenshteinDistance(e,C),o>l&&(s=C,g=I8e(r),o=l)}}return{closestMatch:s,path:g,distance:o,indexMatch:I}}},{key:"printLocation",value:function(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,a=` `+r+`options = { `,o=0;o":!0,"--":!0},jn="",gg=0,ve="",ge="",Tr=lr.NULL;function O8e(){gg=0,ve=jn.charAt(0)}function Gt(){gg++,ve=jn.charAt(gg)}function is(){return jn.charAt(gg+1)}function qk(i){var n=i.charCodeAt(0);return n<47?n===35||n===46:n<59?n>47:n<91?n>64:n<96?n===95:n<123?n>96:!1}function aa(i,n){if(i||(i={}),n)for(var e in n)n.hasOwnProperty(e)&&(i[e]=n[e]);return i}function T8e(i,n,e){for(var t=n.split("."),r=i;t.length;){var a=t.shift();t.length?(r[a]||(r[a]={}),r=r[a]):r[a]=e}}function UL(i,n){for(var e,t,r=null,a=[i],o=i;o.parent;)a.push(o.parent),o=o.parent;if(o.nodes){for(e=0,t=o.nodes.length;e=0;e--){var s,g=a[e];g.nodes||(g.nodes=[]),Re(s=g.nodes).call(s,r)===-1&&g.nodes.push(r)}n.attr&&(r.attr=aa(r.attr,n.attr))}function S8e(i,n){if(i.edges||(i.edges=[]),i.edges.push(n),i.edge){var e=aa({},i.edge);n.attr=aa(e,n.attr)}}function YL(i,n,e,t,r){var a={from:n,to:e,type:t};return i.edge&&(a.attr=aa({},i.edge)),a.attr=aa(a.attr||{},r),r!=null&&r.hasOwnProperty("arrows")&&r.arrows!=null&&(a.arrows={to:{enabled:!0,type:r.arrows.type}},r.arrows=null),a}function nt(){for(Tr=lr.NULL,ge="";ve===" "||ve===" "||ve===` `||ve==="\r";)Gt();do{var i=!1;if(ve==="#"){for(var n=gg-1;jn.charAt(n)===" "||jn.charAt(n)===" ";)n--;if(jn.charAt(n)===` `||jn.charAt(n)===""){for(;ve!=""&&ve!=` `;)Gt();i=!0}}if(ve==="/"&&is()==="/"){for(;ve!=""&&ve!=` `;)Gt();i=!0}if(ve==="/"&&is()==="*"){for(;ve!="";)if(ve==="*"&&is()==="/"){Gt(),Gt();break}else Gt();i=!0}for(;ve===" "||ve===" "||ve===` `||ve==="\r";)Gt()}while(i);if(ve===""){Tr=lr.DELIMITER;return}var e=ve+is();if(Qk[e]){Tr=lr.DELIMITER,ge=e,Gt(),Gt();return}if(Qk[ve]){Tr=lr.DELIMITER,ge=ve,Gt();return}if(qk(ve)||ve==="-"){for(ge+=ve,Gt();qk(ve);)ge+=ve,Gt();ge==="false"?ge=!1:ge==="true"?ge=!0:isNaN(Number(ge))||(ge=Number(ge)),Tr=lr.IDENTIFIER;return}if(ve==='"'){for(Gt();ve!=""&&(ve!='"'||ve==='"'&&is()==='"');)ve==='"'?(ge+=ve,Gt()):ve==="\\"&&is()==="n"?(ge+=` `,Gt()):ge+=ve,Gt();if(ve!='"')throw ur('End of string " expected');Gt(),Tr=lr.IDENTIFIER;return}for(Tr=lr.UNKNOWN;ve!="";)ge+=ve,Gt();throw new SyntaxError('Syntax error in part "'+qL(ge,30)+'"')}function k8e(){var i={};if(O8e(),nt(),ge==="strict"&&(i.strict=!0,nt()),(ge==="graph"||ge==="digraph")&&(i.type=ge,nt()),Tr===lr.IDENTIFIER&&(i.id=ge,nt()),ge!="{")throw ur("Angle bracket { expected");if(nt(),KL(i),ge!="}")throw ur("Angle bracket } expected");if(nt(),ge!=="")throw ur("End of file expected");return nt(),delete i.node,delete i.edge,delete i.graph,i}function KL(i){for(;ge!==""&&ge!="}";)_8e(i),ge===";"&&nt()}function _8e(i){var n=XL(i);if(n){QL(i,n);return}var e=P8e(i);if(!e){if(Tr!=lr.IDENTIFIER)throw ur("Identifier expected");var t=ge;if(nt(),ge==="="){if(nt(),Tr!=lr.IDENTIFIER)throw ur("Identifier expected");i[t]=ge,nt()}else R8e(i,t)}}function XL(i){var n=null;if(ge==="subgraph"&&(n={},n.type="subgraph",nt(),Tr===lr.IDENTIFIER&&(n.id=ge,nt())),ge==="{"){if(nt(),n||(n={}),n.parent=i,n.node=i.node,n.edge=i.edge,n.graph=i.graph,KL(n),ge!="}")throw ur("Angle bracket } expected");nt(),delete n.node,delete n.edge,delete n.graph,delete n.parent,i.subgraphs||(i.subgraphs=[]),i.subgraphs.push(n)}return n}function P8e(i){return ge==="node"?(nt(),i.node=_A(),"node"):ge==="edge"?(nt(),i.edge=_A(),"edge"):ge==="graph"?(nt(),i.graph=_A(),"graph"):null}function R8e(i,n){var e={id:n},t=_A();t&&(e.attr=t),UL(i,e),QL(i,n)}function QL(i,n){for(;ge==="->"||ge==="--";){var e,t=ge;nt();var r=XL(i);if(r)e=r;else{if(Tr!=lr.IDENTIFIER)throw ur("Identifier or subgraph expected");e=ge,UL(i,{id:e}),nt()}var a=_A(),o=YL(i,n,e,t,a);S8e(i,o),n=e}}function _A(){for(var i,n=null,e={dashed:!0,solid:!1,dotted:[1,5]},t={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},r=new Array,a=new Array;ge==="[";){for(nt(),n={};ge!==""&&ge!="]";){if(Tr!=lr.IDENTIFIER)throw ur("Attribute name expected");var o=ge;if(nt(),ge!="=")throw ur("Equal sign = expected");if(nt(),Tr!=lr.IDENTIFIER)throw ur("Attribute value expected");var s=ge;o==="style"&&(s=e[s]);var g;o==="arrowhead"&&(g=t[s],o="arrows",s={to:{enabled:!0,type:g}}),o==="arrowtail"&&(g=t[s],o="arrows",s={from:{enabled:!0,type:g}}),r.push({attr:n,name:o,value:s}),a.push(o),nt(),ge==","&&nt()}if(ge!="]")throw ur("Bracket ] expected");nt()}if(Jn(a).call(a,"dir")){var A={};for(A.arrows={},i=0;i"&&(g.arrows="to"),g};Qe(r=n.edges).call(r,function(o){var s,g;if(o.from instanceof Object?s=o.from.nodes:s={id:o.from},o.to instanceof Object?g=o.to.nodes:g={id:o.to},o.from instanceof Object&&o.from.edges){var A;Qe(A=o.from.edges).call(A,function(C){var l=a(C);e.edges.push(l)})}if(x8e(s,g,function(C,l){var u=YL(e,C.id,l.id,o.type,o.attr),d=a(u);e.edges.push(d)}),o.to instanceof Object&&o.to.edges){var I;Qe(I=o.to.edges).call(I,function(C){var l=a(C);e.edges.push(l)})}})}return n.attr&&(e.options=n.attr),e}function N8e(i,n){var e,t={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};n!=null&&(n.fixed!=null&&(t.nodes.fixed=n.fixed),n.parseColor!=null&&(t.nodes.parseColor=n.parseColor),n.inheritColor!=null&&(t.edges.inheritColor=n.inheritColor));var r=i.edges,a=ng(r).call(r,function(s){var g={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(g.attributes=s.attributes),s.label!=null&&(g.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(g.title=s.attributes.title),s.type==="Directed"&&(g.arrows="to"),s.color&&t.edges.inheritColor===!1&&(g.color=s.color),g}),o=ng(e=i.nodes).call(e,function(s){var g={id:s.id,fixed:t.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(g.attributes=s.attributes),s.label!=null&&(g.label=s.label),s.size!=null&&(g.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(g.title=s.attributes.title),s.title!=null&&(g.title=s.title),s.x!=null&&(g.x=s.x),s.y!=null&&(g.y=s.y),s.color!=null&&(t.nodes.parseColor===!0?g.color=s.color:g.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),g});return{nodes:o,edges:a}}var M8e={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},F8e={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},B8e={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},z8e={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},L8e={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},j8e={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},G8e={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},W8e={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},V8e={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},Z8e={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},H8e={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},U8e=Object.freeze({__proto__:null,cn:W8e,cs:H8e,de:F8e,en:M8e,es:B8e,fr:Z8e,it:z8e,nl:L8e,pt:j8e,ru:G8e,uk:V8e});function Y8e(i,n){try{var e=n.split(/[-_ /]/,2),t=ht(e,2),r=t[0],a=t[1],o=r!=null?r.toLowerCase():null,s=a!=null?a.toUpperCase():null;if(o&&s){var g=o+"-"+s;if(Object.prototype.hasOwnProperty.call(i,g))return g;var A;console.warn(S$(A="Unknown variant ".concat(s," of language ")).call(A,o,"."))}if(o){var I=o;if(Object.prototype.hasOwnProperty.call(i,I))return I;console.warn("Unknown language ".concat(o))}return console.warn("Unknown locale ".concat(n,", falling back to English.")),"en"}catch(C){return console.error(C),console.warn("Unexpected error while normalizing locale ".concat(n,", falling back to English.")),"en"}}var K8e=function(){function i(){U(this,i),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return Y(i,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,t=this.image.height;this.width=e,this.height=t;var r=Math.floor(t/2),a=Math.floor(t/4),o=Math.floor(t/8),s=Math.floor(t/16),g=Math.floor(e/2),A=Math.floor(e/4),I=Math.floor(e/8),C=Math.floor(e/16);this.canvas.width=3*A,this.canvas.height=r,this.coordinates=[[0,0,g,r],[g,0,A,a],[g,a,I,o],[5*I,a,C,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(var r=1;r2){t*=.5;for(var g=0;t>2&&g=this.NUM_ITERATIONS&&(g=this.NUM_ITERATIONS-1);var A=this.coordinates[g];e.drawImage(this.canvas,A[0],A[1],A[2],A[3],r,a,o,s)}else e.drawImage(this.image,r,a,o,s)}}]),i}(),X8e=function(){function i(n){U(this,i),this.images={},this.imageBroken={},this.callback=n}return Y(i,[{key:"_tryloadBrokenUrl",value:function(e,t,r){if(!(e===void 0||r===void 0)){if(t===void 0){console.warn("No broken url image defined");return}r.image.onerror=function(){console.error("Could not load brokenImage:",t)},r.image.src=t}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,t){var r=this,a=this.images[e];if(a)return a;var o=new K8e;return this.images[e]=o,o.image.onload=function(){r._fixImageCoordinates(o.image),o.init(),r._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",e),r._tryloadBrokenUrl(e,t,o)},o.image.src=e,o}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),i}(),JL={exports:{}},Q8e=Ne,q8e=Q8e(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}}),J8e=Ne,e9e=Qt,t9e=kn,e_=q8e,ou=Object.isExtensible,r9e=J8e(function(){ou(1)}),i9e=r9e||e_?function(n){return!e9e(n)||e_&&t9e(n)==="ArrayBuffer"?!1:ou?ou(n):!0}:ou,n9e=Ne,e5=!n9e(function(){return Object.isExtensible(Object.preventExtensions({}))}),a9e=Ae,o9e=ze,s9e=gC,g9e=Qt,L$=qt,A9e=ei.f,t_=lC,I9e=wh,j$=i9e,C9e=uh,l9e=e5,t5=!1,bn=C9e("meta"),u9e=0,G$=function(i){A9e(i,bn,{value:{objectID:"O"+u9e++,weakData:{}}})},d9e=function(i,n){if(!g9e(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!L$(i,bn)){if(!j$(i))return"F";if(!n)return"E";G$(i)}return i[bn].objectID},h9e=function(i,n){if(!L$(i,bn)){if(!j$(i))return!0;if(!n)return!1;G$(i)}return i[bn].weakData},c9e=function(i){return l9e&&t5&&j$(i)&&!L$(i,bn)&&G$(i),i},f9e=function(){v9e.enable=function(){},t5=!0;var i=t_.f,n=o9e([].splice),e={};e[bn]=1,i(e).length&&(t_.f=function(t){for(var r=i(t),a=0,o=r.length;aC;C++)if(u=f(i[C]),u&&r_(n_,u))return u;return new su(!1)}A=E9e(i,I)}for(d=a?i.next:A.next;!(h=y9e(d,A)).done;){try{u=f(h.value)}catch(v){i_(A,"throw",v)}if(typeof u=="object"&&u&&r_(n_,u))return u}return new su(!1)},S9e=_t,k9e=TypeError,V$=function(i,n){if(S9e(n,i))return i;throw new k9e("Incorrect invocation")},_9e=Ae,P9e=mt,R9e=Dh,x9e=Ne,D9e=Gg,N9e=W$,M9e=V$,F9e=Kt,B9e=Qt,z9e=Bg,L9e=Vg,j9e=ei.f,G9e=ba.forEach,W9e=Xt,r5=Do,V9e=r5.set,Z9e=r5.getterFor,Z$=function(i,n,e){var t=i.indexOf("Map")!==-1,r=i.indexOf("Weak")!==-1,a=t?"set":"add",o=P9e[i],s=o&&o.prototype,g={},A;if(!W9e||!F9e(o)||!(r||s.forEach&&!x9e(function(){new o().entries().next()})))A=e.getConstructor(n,i,t,a),R9e.enable();else{A=n(function(l,u){V9e(M9e(l,I),{type:i,collection:new o}),z9e(u)||N9e(u,l[a],{that:l,AS_ENTRIES:t})});var I=A.prototype,C=Z9e(i);G9e(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(l){var u=l==="add"||l==="set";l in s&&!(r&&l==="clear")&&D9e(I,l,function(d,h){var c=C(this).collection;if(!u&&r&&!B9e(d))return l==="get"?void 0:!1;var f=c[l](d===0?0:d,h);return u?this:f})}),r||j9e(I,"size",{configurable:!0,get:function(){return C(this).collection.size}})}return L9e(A,i,!1,!0),g[i]=A,_9e({global:!0,forced:!0},g),r||e.setStrong(A,i,t),A},H9e=IC,H$=function(i,n,e){for(var t in n)e&&e.unsafe&&i[t]?i[t]=n[t]:H9e(i,t,n[t],e);return i},U9e=ui,Y9e=b$,K9e=bt,X9e=Xt,a_=K9e("species"),Q9e=function(i){var n=U9e(i);X9e&&n&&!n[a_]&&Y9e(n,a_,{configurable:!0,get:function(){return this}})},q9e=Wg,J9e=b$,o_=H$,eUe=oC,tUe=V$,rUe=Bg,iUe=W$,nUe=f$,Sl=v$,aUe=Q9e,aA=Xt,s_=Dh.fastKey,i5=Do,g_=i5.set,op=i5.getterFor,n5={getConstructor:function(i,n,e,t){var r=i(function(A,I){tUe(A,a),g_(A,{type:n,index:q9e(null),first:void 0,last:void 0,size:0}),aA||(A.size=0),rUe(I)||iUe(I,A[t],{that:A,AS_ENTRIES:e})}),a=r.prototype,o=op(n),s=function(A,I,C){var l=o(A),u=g(A,I),d,h;return u?u.value=C:(l.last=u={index:h=s_(I,!0),key:I,value:C,previous:d=l.last,next:void 0,removed:!1},l.first||(l.first=u),d&&(d.next=u),aA?l.size++:A.size++,h!=="F"&&(l.index[h]=u)),A},g=function(A,I){var C=o(A),l=s_(I),u;if(l!=="F")return C.index[l];for(u=C.first;u;u=u.next)if(u.key===I)return u};return o_(a,{clear:function(){for(var I=this,C=o(I),l=C.index,u=C.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete l[u.index],u=u.next;C.first=C.last=void 0,aA?C.size=0:I.size=0},delete:function(A){var I=this,C=o(I),l=g(I,A);if(l){var u=l.next,d=l.previous;delete C.index[l.index],l.removed=!0,d&&(d.next=u),u&&(u.previous=d),C.first===l&&(C.first=u),C.last===l&&(C.last=d),aA?C.size--:I.size--}return!!l},forEach:function(I){for(var C=o(this),l=eUe(I,arguments.length>1?arguments[1]:void 0),u;u=u?u.next:C.first;)for(l(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(I){return!!g(this,I)}}),o_(a,e?{get:function(I){var C=g(this,I);return C&&C.value},set:function(I,C){return s(this,I===0?0:I,C)}}:{add:function(I){return s(this,I=I===0?0:I,I)}}),aA&&J9e(a,"size",{configurable:!0,get:function(){return o(this).size}}),r},setStrong:function(i,n,e){var t=n+" Iterator",r=op(n),a=op(t);nUe(i,n,function(o,s){g_(this,{type:t,target:o,state:r(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,g=o.last;g&&g.removed;)g=g.previous;return!o.target||!(o.last=g=g?g.next:o.state.first)?(o.target=void 0,Sl(void 0,!0)):Sl(s==="keys"?g.key:s==="values"?g.value:[g.key,g.value],!1)},e?"entries":"values",!e,!0),aUe(n)}},oUe=Z$,sUe=n5;oUe("Map",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},sUe);var gUe=Me,AUe=gUe.Map,IUe=AUe,CUe=IUe,lUe=CUe,a5=ne(lUe),uUe=function(){function i(){U(this,i),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Dt(this.options,this.defaultOptions)}return Y(i,[{key:"setOptions",value:function(e){var t=["useDefaultGroups"];if(e!==void 0){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Re(t).call(t,r)===-1){var a=e[r];this.add(r,a)}}}},{key:"clear",value:function(){this._groups=new a5,this._groupNames=[]}},{key:"get",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this._groups.get(e);if(r===void 0&&t)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var a=this._groupIndex%this._groupNames.length;++this._groupIndex,r={},r.color=this._groups.get(this._groupNames[a]),this._groups.set(e,r)}else{var o=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,r={},r.color=this._defaultGroups[o],this._groups.set(e,r)}return r}},{key:"add",value:function(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}}]),i}(),dUe=Ae;dUe({target:"Number",stat:!0},{isNaN:function(n){return n!==n}});var hUe=Me,cUe=hUe.Number.isNaN,fUe=cUe,vUe=fUe,pUe=vUe,hm=ne(pUe),yUe=mt,mUe=yUe.isFinite,bUe=Number.isFinite||function(n){return typeof n=="number"&&mUe(n)},$Ue=Ae,wUe=bUe;$Ue({target:"Number",stat:!0},{isFinite:wUe});var EUe=Me,OUe=EUe.Number.isFinite,TUe=OUe,SUe=TUe,kUe=SUe,za=ne(kUe),_Ue=Ae,PUe=ba.some,RUe=Ug,xUe=RUe("some");_Ue({target:"Array",proto:!0,forced:!xUe},{some:function(n){return PUe(this,n,arguments.length>1?arguments[1]:void 0)}});var DUe=Jt,NUe=DUe("Array").some,MUe=_t,FUe=NUe,sp=Array.prototype,BUe=function(i){var n=i.some;return i===sp||MUe(sp,i)&&n===sp.some?FUe:n},zUe=BUe,LUe=zUe,jUe=LUe,GUe=ne(jUe),WUe=Me,VUe=WUe.Object.getOwnPropertySymbols,ZUe=VUe,HUe=ZUe,UUe=HUe,oa=ne(UUe),o5={exports:{}},YUe=Ae,KUe=Ne,XUe=en,s5=Fg.f,g5=Xt,QUe=!g5||KUe(function(){s5(1)});YUe({target:"Object",stat:!0,forced:QUe,sham:!g5},{getOwnPropertyDescriptor:function(n,e){return s5(XUe(n),e)}});var qUe=Me,A5=qUe.Object,JUe=o5.exports=function(n,e){return A5.getOwnPropertyDescriptor(n,e)};A5.getOwnPropertyDescriptor.sham&&(JUe.sham=!0);var eYe=o5.exports,tYe=eYe,I5=tYe,rYe=I5,wa=ne(rYe),iYe=Ae,nYe=Xt,aYe=yWe,oYe=en,sYe=Fg,gYe=Hg;iYe({target:"Object",stat:!0,sham:!nYe},{getOwnPropertyDescriptors:function(n){for(var e=oYe(n),t=sYe.f,r=aYe(e),a={},o=0,s,g;r.length>o;)g=t(e,s=r[o++]),g!==void 0&&gYe(a,s,g);return a}});var AYe=Me,IYe=AYe.Object.getOwnPropertyDescriptors,CYe=IYe,lYe=CYe,uYe=lYe,sa=ne(uYe),C5={exports:{}},dYe=Ae,hYe=Xt,A_=ph.f;dYe({target:"Object",stat:!0,forced:Object.defineProperties!==A_,sham:!hYe},{defineProperties:A_});var cYe=Me,l5=cYe.Object,fYe=C5.exports=function(n,e){return l5.defineProperties(n,e)};l5.defineProperties.sham&&(fYe.sham=!0);var vYe=C5.exports,pYe=vYe,yYe=pYe,mYe=yYe,Nh=ne(mYe),bYe=c3,Mh=ne(bYe);function Fh(i,n,e){return n=K3(n),n in i?$h(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}var u5=mt,$Ye=Ne,wYe=ze,EYe=tn,OYe=sL.trim,TYe=k$,SYe=wYe("".charAt),id=u5.parseFloat,I_=u5.Symbol,C_=I_&&I_.iterator,kYe=1/id(TYe+"-0")!==-1/0||C_&&!$Ye(function(){id(Object(C_))}),_Ye=kYe?function(n){var e=OYe(EYe(n)),t=id(e);return t===0&&SYe(e,0)==="-"?-0:t}:id,PYe=Ae,l_=_Ye;PYe({global:!0,forced:parseFloat!==l_},{parseFloat:l_});var RYe=Me,xYe=RYe.parseFloat,DYe=xYe,NYe=DYe,MYe=NYe,d5=ne(MYe),FYe=Ae,BYe=Ne,zYe=wh.f,LYe=BYe(function(){return!Object.getOwnPropertyNames(1)});FYe({target:"Object",stat:!0,forced:LYe},{getOwnPropertyNames:zYe});var jYe=Me,GYe=jYe.Object,WYe=function(n){return GYe.getOwnPropertyNames(n)},VYe=WYe,ZYe=VYe,HYe=ZYe,UYe=ne(HYe);function U$(i,n){var e=["node","edge","label"],t=!0,r=Fn(n,"chosen");if(typeof r=="boolean")t=r;else if(Ue(r)==="object"){if(Re(e).call(e,i)===-1)throw new Error("choosify: subOption '"+i+"' should be one of '"+e.join("', '")+"'");var a=Fn(n,["chosen",i]);(typeof a=="boolean"||typeof a=="function")&&(t=a)}return t}function cm(i,n,e){if(i.width<=0||i.height<=0)return!1;if(e!==void 0){var t={x:n.x-e.x,y:n.y-e.y};if(e.angle!==0){var r=-e.angle,a={x:Math.cos(r)*t.x-Math.sin(r)*t.y,y:Math.sin(r)*t.x+Math.cos(r)*t.y};n=a}else n=t}var o=i.x+i.width,s=i.y+i.width;return i.leftn.x&&i.topn.y}function nd(i){return typeof i=="string"&&i!==""}function h5(i,n,e,t){var r=t.x,a=t.y;if(typeof t.distanceToBorder=="function"){var o=t.distanceToBorder(i,n),s=Math.sin(n)*o,g=Math.cos(n)*o;g===o?(r+=o,a=t.y):s===o?(r=t.x,a-=o):(r+=g,a-=s)}else t.shape.width>t.shape.height?(r=t.x+t.shape.width*.5,a=t.y-e):(r=t.x+e,a=t.y-t.shape.height*.5);return{x:r,y:a}}var YYe=Jt,KYe=YYe("Array").values,XYe=KYe,QYe=XYe,qYe=xo,JYe=qt,e6e=_t,t6e=QYe,gp=Array.prototype,r6e={DOMTokenList:!0,NodeList:!0},i6e=function(i){var n=i.values;return i===gp||e6e(gp,i)&&n===gp.values||JYe(r6e,qYe(i))?t6e:n},n6e=i6e,c5=ne(n6e),a6e=function(){function i(n){U(this,i),this.measureText=n,this.current=0,this.width=0,this.height=0,this.lines=[]}return Y(i,[{key:"_add",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var a=t;(t===void 0||t==="")&&(a=" ");var o=this.measureText(a,r),s=Dt({},c5(o));s.text=t,s.width=o.width,s.mod=r,(t===void 0||t==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t)}},{key:"newLine",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=a.width),t+=a.height}this.width=e,this.height=t}},{key:"removeEmptyBlocks",value:function(){for(var e=[],t=0;t"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},u_=function(){function i(n){U(this,i),this.text=n,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return Y(i,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,t){return!this.mono&&!this[e]&&this.match(t)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.prepareRegExp(e),a=ht(r,2),o=a[0],s=a[1],g=o.test(this.text.substr(this.position,s));return g&&t&&(this.position+=s-1),g}},{key:"parseEndTag",value:function(e,t,r){var a=this.mod()===e;return e==="mono"?a=a&&this.mono:a=a&&!this.mono,a&&this.match(t)?(r!==void 0?(this.position===this.text.length-1||this.match(r,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,t){return this.match(e)?(this.add(t),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var t,r;if(e instanceof RegExp)r=e,t=1;else{var a=o6e[e];a!==void 0?r=a:r=new RegExp(e),t=e.length}return[r,t]}}]),i}(),s6e=function(){function i(n,e,t,r){var a=this;U(this,i),this.ctx=n,this.parent=e,this.selected=t,this.hover=r;var o=function(g,A){if(g===void 0)return 0;var I=a.parent.getFormattingValues(n,t,r,A),C=0;if(g!==""){var l=a.ctx.measureText(g);C=l.width}return{width:C,values:I}};this.lines=new a6e(o)}return Y(i,[{key:"process",value:function(e){if(!nd(e))return this.lines.finalize();var t=this.parent.fontOptions;e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `);var r=String(e).split(` `),a=r.length;if(t.multi)for(var o=0;o0)for(var g=0;g0)for(var d=0;d")||t.parseStartTag("ital","")||t.parseStartTag("mono","")||t.parseEndTag("bold","")||t.parseEndTag("ital","")||t.parseEndTag("mono",""))||r(a);o||t.add(a),t.position++}return t.emitBlock(),t.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var t=this,r=new u_(e),a=!0,o=function(I){return/\\/.test(I)?(r.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var t="",r=0;r1&&arguments[1]!==void 0?arguments[1]:"normal",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var a=e.split("\r");a.length>0;){var o=this.getLongestFit(a);if(o===0){var s=a[0],g=this.getLongestFitWord(s);this.lines.newLine(ar(s).call(s,0,g),t),a[0]=ar(s).call(s,g)}else{var A=o;a[o-1]===" "?o--:a[A]===" "&&A++;var I=ar(a).call(a,0,o).join("");o==a.length&&r?this.lines.append(I,t):this.lines.newLine(I,t),a=ar(a).call(a,A)}}}}]),i}(),oA=["bold","ital","boldital","mono"],f5=function(){function i(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;U(this,i),this.body=n,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=t}return Y(i,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),nd(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(Ue(e.font)==="object"){var t=e.font.size;t!==void 0&&(this.baseSize=t)}}}},{key:"initFontOptions",value:function(e){var t=this;if(me(oA,function(r){t.fontOptions[r]={}}),i.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}me(e,function(r,a){r!=null&&Ue(r)!=="object"&&(t.fontOptions[a]=r)})}},{key:"constrain",value:function(e){var t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},r=Fn(e,"widthConstraint");if(typeof r=="number")t.maxWdt=Number(r),t.minWdt=Number(r);else if(Ue(r)==="object"){var a=Fn(e,["widthConstraint","maximum"]);typeof a=="number"&&(t.maxWdt=Number(a));var o=Fn(e,["widthConstraint","minimum"]);typeof o=="number"&&(t.minWdt=Number(o))}var s=Fn(e,"heightConstraint");if(typeof s=="number")t.minHgt=Number(s);else if(Ue(s)==="object"){var g=Fn(e,["heightConstraint","minimum"]);typeof g=="number"&&(t.minHgt=Number(g));var A=Fn(e,["heightConstraint","valign"]);typeof A=="string"&&(A==="top"||A==="bottom")&&(t.valign=A)}return t}},{key:"update",value:function(e,t){this.setOptions(e,!0),this.propagateFonts(t),rt(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=U$("label",t)}},{key:"adjustSizes",value:function(e){var t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);var r=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=r)}},{key:"addFontOptionsToPile",value:function(e,t){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var g=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&g=this.elementOptions.scaling.label.maxVisible&&(g=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,a,o,t,r,s),this._drawBackground(e),this._drawText(e,t,this.size.yLine,s,g))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}},{key:"_drawText",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",o=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,t,r,a),g=ht(s,2);t=g[0],r=g[1],e.textAlign="left",t=t-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(r-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(r+=(this.size.height-this.size.labelHeight)/2));for(var A=0;A0&&(e.lineWidth=u.strokeWidth,e.strokeStyle=f,e.lineJoin="round"),e.fillStyle=c,u.strokeWidth>0&&e.strokeText(u.text,t+C,r+u.vadjust),e.fillText(u.text,t+C,r+u.vadjust),C+=u.width}r+=I.height}}}},{key:"_setAlignment",value:function(e,t,r,a){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){t=0,r=0;var o=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",r-=2*o):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",r+=2*o):e.textBaseline="middle"}else e.textBaseline=a;return[t,r]}},{key:"_getColor",value:function(e,t,r){var a=e||"#000000",o=r||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));a=si(a,s),o=si(o,s)}return[a,o]}},{key:"getTextSize",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,t,r),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,t=this.size.left,r=this.size.top-.5*e;if(this.isEdgeLabel){var a=-this.size.width*.5;switch(this.fontOptions.align){case"middle":t=a,r=-this.size.height*.5;break;case"top":t=a,r=-(this.size.height+e);break;case"bottom":t=a,r=e;break}}var o={left:t,top:r,width:this.size.width,height:this.size.height};return o}},{key:"calculateLabelSize",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,t,r),this.size.left=a-this.size.width*.5,this.size.top=o-this.size.height*.5,this.size.yLine=o+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,t,r,a){var o=function(I,C,l){return C==="normal"?l==="mod"?"":I[l]:I[C][l]!==void 0?I[C][l]:I[l]},s={color:o(this.fontOptions,a,"color"),size:o(this.fontOptions,a,"size"),face:o(this.fontOptions,a,"face"),mod:o(this.fontOptions,a,"mod"),vadjust:o(this.fontOptions,a,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||r)&&(a==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,t,r));var g="";return s.mod!==void 0&&s.mod!==""&&(g+=s.mod+" "),g+=s.size+"px "+s.face,e.font=g.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,t){return e!==this.selectedState||t!==this.hoverState}},{key:"_processLabelText",value:function(e,t,r,a){var o=new s6e(e,this,t,r);return o.process(a)}},{key:"_processLabel",value:function(e,t,r){if(!(this.labelDirty===!1&&!this.differentState(t,r))){var a=this._processLabelText(e,t,r,this.elementOptions.label);this.fontOptions.minWdt>0&&a.width0&&a.height0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}},{key:"performFill",value:function(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),fC(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,t,r,a,o){r!==void 0&&this.resize(r,a,o),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,t,r,a,o){this._updateBoundingBox(e,t,r,a,o)}},{key:"getDimensionsFromLabel",value:function(e,t,r){this.textSize=this.labelModule.getTextSize(e,t,r);var a=this.textSize.width,o=this.textSize.height,s=14;return a===0&&(a=s,o=s),{width:a,height:o}}}]),i}();function q6e(i){var n=J6e();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function J6e(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var eKe=function(i){Le(e,i);var n=q6e(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return Y(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this.initContextForDraw(r,A),Fz(r,this.left,this.top,this.width,this.height,A.borderRadius),this.performFill(r,A),this.updateBoundingBox(a,o,r,s,g),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,g)}},{key:"updateBoundingBox",value:function(r,a,o,s,g){this._updateBoundingBox(r,a,o,s,g);var A=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(A)}},{key:"distanceToBorder",value:function(r,a){r&&this.resize(r);var o=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(a)),Math.abs(this.height/2/Math.sin(a)))+o}}]),e}(zo);function tKe(i){var n=rKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function rKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var X$=function(i){Le(e,i);var n=tKe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o.labelOffset=0,o.selected=!1,o}return Y(e,[{key:"setOptions",value:function(r,a,o){this.options=r,a===void 0&&o===void 0||this.setImages(a,o)}},{key:"setImages",value:function(r,a){a&&this.selected?(this.imageObj=a,this.imageObjAlt=r):(this.imageObj=r,this.imageObjAlt=a)}},{key:"switchImages",value:function(r){var a=r&&!this.selected||!r&&this.selected;if(this.selected=r,this.imageObjAlt!==void 0&&a){var o=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=o}}},{key:"_getImagePadding",value:function(){var r={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var a=this.options.imagePadding;Ue(a)=="object"?(r.top=a.top,r.right=a.right,r.bottom=a.bottom,r.left=a.left):(r.top=a,r.right=a,r.bottom=a,r.left=a)}return r}},{key:"_resizeImage",value:function(){var r,a;if(this.options.shapeProperties.useImageSize===!1){var o=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?o=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),r=this.options.size*2*o,a=this.options.size*2*s}else{var g=this._getImagePadding();r=this.imageObj.width+g.left+g.right,a=this.imageObj.height+g.top+g.bottom}this.width=r,this.height=a,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(r,a,o,s){this.initContextForDraw(r,s),d$(r,a,o,s.size),this.performFill(r,s)}},{key:"_drawImageAtPosition",value:function(r,a){if(this.imageObj.width!=0){r.globalAlpha=a.opacity!==void 0?a.opacity:1,this.enableShadow(r,a);var o=1;this.options.shapeProperties.interpolation===!0&&(o=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),g=this.left+s.left,A=this.top+s.top,I=this.width-s.left-s.right,C=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(r,o,g,A,I,C),this.disableShadow(r,a)}}},{key:"_drawImageLabel",value:function(r,a,o,s,g){var A=0;if(this.height!==void 0){A=this.height*.5;var I=this.labelModule.getTextSize(r,s,g);I.lineCount>=1&&(A+=I.height/2)}var C=o+A;this.options.label&&(this.labelOffset=A),this.labelModule.draw(r,a,C,s,g,"hanging")}}]),e}(zo);function iKe(i){var n=nKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function nKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var aKe=function(i){Le(e,i);var n=iKe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return Y(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o),g=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=g/2,this.width=g,this.height=g,this.radius=this.width/2}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this._drawRawCircle(r,a,o,A),this.updateBoundingBox(a,o),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,o,s,g)}},{key:"updateBoundingBox",value:function(r,a){this.boundingBox.top=a-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=a+this.options.size}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),e}(X$);function oKe(i){var n=sKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function sKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var gKe=function(i){Le(e,i);var n=oKe(e);function e(t,r,a,o,s){var g;return U(this,e),g=n.call(this,t,r,a),g.setImages(o,s),g}return Y(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var g=this.options.size*2;this.width=g,this.height=g,this.radius=.5*this.width;return}this.needsRefresh(a,o)&&this._resizeImage()}},{key:"draw",value:function(r,a,o,s,g,A){this.switchImages(s),this.resize();var I=a,C=o;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=a,this.top=o,I+=this.width/2,C+=this.height/2):(this.left=a-this.width/2,this.top=o-this.height/2),this._drawRawCircle(r,I,C,A),r.save(),r.clip(),this._drawImageAtPosition(r,A),r.restore(),this._drawImageLabel(r,I,C,s,g),this.updateBoundingBox(a,o)}},{key:"updateBoundingBox",value:function(r,a){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=a,this.boundingBox.left=r,this.boundingBox.right=r+this.options.size*2,this.boundingBox.bottom=a+this.options.size*2):(this.boundingBox.top=a-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=a+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),e}(X$);function AKe(i){var n=IKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function IKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var Ea=function(i){Le(e,i);var n=AKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(a,o)){var g,A;this.labelModule.getTextSize(r,a,o);var I=2*s.size;this.width=(g=this.customSizeWidth)!==null&&g!==void 0?g:I,this.height=(A=this.customSizeHeight)!==null&&A!==void 0?A:I,this.radius=.5*this.width}}},{key:"_drawShape",value:function(r,a,o,s,g,A,I,C){var l=this;return this.resize(r,A,I,C),this.left=s-this.width/2,this.top=g-this.height/2,this.initContextForDraw(r,C),VMe(a)(r,s,g,C.size),this.performFill(r,C),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(r.font=(A?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",r.fillText(this.options.icon.code,s,g)),{drawExternalLabel:function(){if(l.options.label!==void 0){l.labelModule.calculateLabelSize(r,A,I,s,g,"hanging");var d=g+.5*l.height+.5*l.labelModule.size.height;l.labelModule.draw(r,s,d,A,I,"hanging")}l.updateBoundingBox(s,g)}}}},{key:"updateBoundingBox",value:function(r,a){this.boundingBox.top=a-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=a+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(zo);function v_(i,n){var e=dt(i);if(oa){var t=oa(i);n&&(t=xr(t).call(t,function(r){return wa(i,r).enumerable})),e.push.apply(e,t)}return e}function CKe(i){for(var n=1;n"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var dKe=function(i){Le(e,i);var n=lKe(e);function e(t,r,a,o){var s;return U(this,e),s=n.call(this,t,r,a,o),s.ctxRenderer=o,s}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g,A),this.left=a-this.width/2,this.top=o-this.height/2,r.save();var I=this.ctxRenderer({ctx:r,id:this.options.id,x:a,y:o,state:{selected:s,hover:g},style:CKe({},A),label:this.options.label});if(I.drawNode!=null&&I.drawNode(),r.restore(),I.drawExternalLabel){var C=I.drawExternalLabel;I.drawExternalLabel=function(){r.save(),C(),r.restore()}}return I.nodeDimensions&&(this.customSizeWidth=I.nodeDimensions.width,this.customSizeHeight=I.nodeDimensions.height),I}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function hKe(i){var n=cKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function cKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var fKe=function(i){Le(e,i);var n=hKe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return Y(e,[{key:"resize",value:function(r,a,o){if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o),g=s.width+this.margin.right+this.margin.left;this.width=g,this.height=g,this.radius=this.width/2}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this.initContextForDraw(r,A),Bz(r,a-this.width/2,o-this.height/2,this.width,this.height),this.performFill(r,A),this.updateBoundingBox(a,o,r,s,g),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,g)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(zo);function vKe(i){var n=pKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function pKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var yKe=function(i){Le(e,i);var n=vKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"diamond",4,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function mKe(i){var n=bKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function bKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var $Ke=function(i){Le(e,i);var n=mKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"circle",2,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.options.size}}]),e}(Ea);function wKe(i){var n=EKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function EKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var p_=function(i){Le(e,i);var n=wKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(a,o)){var s=this.getDimensionsFromLabel(r,a,o);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width*.5,this.top=o-this.height*.5,this.initContextForDraw(r,A),Zy(r,this.left,this.top,this.width,this.height),this.performFill(r,A),this.updateBoundingBox(a,o,r,s,g),this.labelModule.draw(r,a,o,s,g)}},{key:"distanceToBorder",value:function(r,a){r&&this.resize(r);var o=this.width*.5,s=this.height*.5,g=Math.sin(a)*o,A=Math.cos(a)*s;return o*s/Math.sqrt(g*g+A*A)}}]),e}(zo);function OKe(i){var n=TKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function TKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var SKe=function(i){Le(e,i);var n=OKe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return Y(e,[{key:"resize",value:function(r,a,o){this.needsRefresh(a,o)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,a,o,s,g,A){var I=this;return this.resize(r,s,g),this.options.icon.size=this.options.icon.size||50,this.left=a-this.width/2,this.top=o-this.height/2,this._icon(r,a,o,s,g,A),{drawExternalLabel:function(){if(I.options.label!==void 0){var l=5;I.labelModule.draw(r,I.left+I.iconSize.width/2+I.margin.left,o+I.height/2+l,s)}I.updateBoundingBox(a,o)}}}},{key:"updateBoundingBox",value:function(r,a){if(this.boundingBox.top=a-this.options.icon.size*.5,this.boundingBox.left=r-this.options.icon.size*.5,this.boundingBox.right=r+this.options.icon.size*.5,this.boundingBox.bottom=a+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var o=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+o)}}},{key:"_icon",value:function(r,a,o,s,g,A){var I=Number(this.options.icon.size);this.options.icon.code!==void 0?(r.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+I+"px",this.options.icon.face].join(" "),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",this.enableShadow(r,A),r.fillText(this.options.icon.code,a,o),this.disableShadow(r,A)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(zo);function kKe(i){var n=_Ke();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function _Ke(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var PKe=function(i){Le(e,i);var n=kKe(e);function e(t,r,a,o,s){var g;return U(this,e),g=n.call(this,t,r,a),g.setImages(o,s),g}return Y(e,[{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var g=this.options.size*2;this.width=g,this.height=g;return}this.needsRefresh(a,o)&&this._resizeImage()}},{key:"draw",value:function(r,a,o,s,g,A){r.save(),this.switchImages(s),this.resize();var I=a,C=o;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=a,this.top=o,I+=this.width/2,C+=this.height/2):(this.left=a-this.width/2,this.top=o-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var l=this.options.borderWidth,u=this.options.borderWidthSelected||2*this.options.borderWidth,d=(s?u:l)/this.body.view.scale;r.lineWidth=Math.min(this.width,d),r.beginPath();var h=s?this.options.color.highlight.border:g?this.options.color.hover.border:this.options.color.border,c=s?this.options.color.highlight.background:g?this.options.color.hover.background:this.options.color.background;A.opacity!==void 0&&(h=si(h,A.opacity),c=si(c,A.opacity)),r.strokeStyle=h,r.fillStyle=c,r.rect(this.left-.5*r.lineWidth,this.top-.5*r.lineWidth,this.width+r.lineWidth,this.height+r.lineWidth),fC(r).call(r),this.performStroke(r,A),r.closePath()}this._drawImageAtPosition(r,A),this._drawImageLabel(r,I,C,s,g),this.updateBoundingBox(a,o),r.restore()}},{key:"updateBoundingBox",value:function(r,a){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=r,this.top=a):(this.left=r-this.width/2,this.top=a-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(X$);function RKe(i){var n=xKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function xKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var DKe=function(i){Le(e,i);var n=RKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"square",2,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function NKe(i){var n=MKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function MKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var FKe=function(i){Le(e,i);var n=NKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"hexagon",4,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function BKe(i){var n=zKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function zKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var LKe=function(i){Le(e,i);var n=BKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"star",4,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function jKe(i){var n=GKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function GKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var WKe=function(i){Le(e,i);var n=jKe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o._setMargins(a),o}return Y(e,[{key:"resize",value:function(r,a,o){this.needsRefresh(a,o)&&(this.textSize=this.labelModule.getTextSize(r,a,o),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,a,o,s,g,A){this.resize(r,s,g),this.left=a-this.width/2,this.top=o-this.height/2,this.enableShadow(r,A),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,g),this.disableShadow(r,A),this.updateBoundingBox(a,o,r,s,g)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(zo);function VKe(i){var n=ZKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function ZKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var HKe=function(i){Le(e,i);var n=VKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"triangle",3,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function UKe(i){var n=YKe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function YKe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var KKe=function(i){Le(e,i);var n=UKe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"draw",value:function(r,a,o,s,g,A){return this._drawShape(r,"triangleDown",3,a,o,s,g,A)}},{key:"distanceToBorder",value:function(r,a){return this._distanceToBorder(r,a)}}]),e}(Ea);function y_(i,n){var e=dt(i);if(oa){var t=oa(i);n&&(t=xr(t).call(t,function(r){return wa(i,r).enumerable})),e.push.apply(e,t)}return e}function m_(i){for(var n=1;ne.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,t,r){var a;if(r!==void 0){var o=e.group;if(t!==void 0&&t.group!==void 0&&o!==t.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof o=="number"||typeof o=="string"&&o!="";if(s){var g=r.get(o);g.opacity!==void 0&&t.opacity===void 0&&(i.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0));var A=xr(a=UYe(t)).call(a,function(I){return t[I]!=null});A.push("font"),td(A,e,g),e.color=Cm(e.color)}}}},{key:"parseOptions",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(td(s,e,t,r),i.checkMass(t),e.opacity!==void 0&&(i.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),t.opacity!==void 0&&(i.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!i.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),ai(e,t,"shadow",a),t.color!==void 0&&t.color!==null){var g=Cm(t.color);jL(e.color,g)}else r===!0&&t.color===null&&(e.color=ta(a.color));t.fixed!==void 0&&t.fixed!==null&&(typeof t.fixed=="boolean"?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(t.fixed.x!==void 0&&typeof t.fixed.x=="boolean"&&(e.fixed.x=t.fixed.x),t.fixed.y!==void 0&&typeof t.fixed.y=="boolean"&&(e.fixed.y=t.fixed.y))),r===!0&&t.font===null&&(e.font=ta(a.font)),i.updateGroupOptions(e,t,o),t.scaling!==void 0&&ai(e.scaling,t.scaling,"label",a.scaling)}},{key:"checkMass",value:function(e,t){if(e.mass!==void 0&&e.mass<=0){var r="";t!==void 0&&(r=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+r+", setting mass to 1.",ZL),e.mass=1}}}]),i}();function XKe(i,n){var e=typeof $a<"u"&&Mo(i)||i["@@iterator"];if(!e){if(Ve(i)||(e=QKe(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function QKe(i,n){var e;if(i){if(typeof i=="string")return b_(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b_(i,n)}}function b_(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var r=0,a=dt(this.body.nodes);r1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.data.nodes;if(cz("id",e))this.body.data.nodes=e;else if(Ve(e))this.body.data.nodes=new Hu,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new Hu;else throw new TypeError("Array or DataSet expected");if(r&&me(this.nodesListeners,function(s,g){r.off(g,s)}),this.body.nodes={},this.body.data.nodes){var a=this;me(this.nodesListeners,function(s,g){a.body.data.nodes.on(g,s)});var o=this.body.data.nodes.getIds();this.add(o,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,a=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:Hr;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;me(this.body.nodes,function(r,a){var o=e.body.data.nodes.get(a);o!==void 0&&(t===!0&&r.setOptions({x:null,y:null}),r.setOptions({fixed:!1}),r.setOptions(o))})}},{key:"getPositions",value:function(e){var t={};if(e!==void 0){if(Ve(e)===!0){for(var r=0;r0?(g=s/o,t+=g*g):t+=s;return o===1/0?1/0:o*EXe(t)}});var TXe=Me,SXe=TXe.Math.hypot,kXe=SXe,_Xe=kXe,PXe=_Xe,RXe=ne(PXe);function b5(i){var n=xXe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function xXe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var Tt=function(){function i(){U(this,i)}return Y(i,null,[{key:"transform",value:function(e,t){Ve(e)||(e=[e]);for(var r=t.point.x,a=t.point.y,o=t.angle,s=t.length,g=0;g4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,t.dashes!==!1?this._drawDashedLine(e,t,o):this._drawLine(e,t,o)}},{key:"_drawLine",value:function(e,t,r,a,o){if(this.from!=this.to)this._line(e,t,r,a,o);else{var s=this._getCircleData(e),g=ht(s,3),A=g[0],I=g[1],C=g[2];this._circle(e,t,A,I,C)}}},{key:"_drawDashedLine",value:function(e,t,r,a,o){e.lineCap="round";var s=Ve(t.dashes)?t.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,r);else{var g=this._getCircleData(e),A=ht(g,3),I=A[0],C=A[1],l=A[2];this._circle(e,t,I,C,l)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)zz(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var u=this._getCircleData(e),d=ht(u,3),h=d[0],c=d[1],f=d[2];this._circle(e,t,h,c,f)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}},{key:"findBorderPosition",value:function(e,t,r){return this.from!=this.to?this._findBorderPosition(e,t,r):this._findBorderPositionCircle(e,t,r)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var t,r=ar(t=this._getCircleData(e)).call(t,0,2),a=ht(r,2),o=a[0],s=a[1];return{from:this._findBorderPositionCircle(this.from,e,{x:o,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:o,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var t=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var r=h5(e,this.options.selfReference.angle,t,this.from);return[r.x,r.y,t]}},{key:"_pointOnCircle",value:function(e,t,r,a){var o=a*2*Math.PI;return{x:e+r*Math.cos(o),y:t-r*Math.sin(o)}}},{key:"_findBorderPositionCircle",value:function(e,t,r){var a=r.x,o=r.y,s=r.low,g=r.high,A=r.direction,I=10,C=this.options.selfReference.size,l=.05,u,d=(s+g)*.5,h=0;this.options.arrowStrikethrough===!0&&(A===-1?h=this.options.endPointOffset.from:A===1&&(h=this.options.endPointOffset.to));var c=0;do{d=(s+g)*.5,u=this._pointOnCircle(a,o,C,d);var f=Math.atan2(e.y-u.y,e.x-u.x),v=e.distanceToBorder(t,f)+h,y=Math.sqrt(Math.pow(u.x-e.x,2)+Math.pow(u.y-e.y,2)),p=v-y;if(Math.abs(p)0?A>0?s=d:g=d:A>0?g=d:s=d,++c}while(s<=g&&c1?C=1:C<0&&(C=0);var l=e+C*g,u=t+C*A,d=l-o,h=u-s;return Math.sqrt(d*d+h*h)}},{key:"getArrowData",value:function(e,t,r,a,o,s){var g,A,I,C,l,u,d,h=s.width;t==="from"?(I=this.from,C=this.to,l=s.fromArrowScale<0,u=Math.abs(s.fromArrowScale),d=s.fromArrowType):t==="to"?(I=this.to,C=this.from,l=s.toArrowScale<0,u=Math.abs(s.toArrowScale),d=s.toArrowType):(I=this.to,C=this.from,l=s.middleArrowScale<0,u=Math.abs(s.middleArrowScale),d=s.middleArrowType);var c=15*u+3*h;if(I!=C){var f=RXe(I.x-C.x,I.y-C.y),v=c/f;if(t!=="middle")if(this.options.smooth.enabled===!0){var y=this._findBorderPosition(I,e,{via:r}),p=this.getPoint(y.t+v*(t==="from"?1:-1),r);g=Math.atan2(y.y-p.y,y.x-p.x),A=y}else g=Math.atan2(I.y-C.y,I.x-C.x),A=this._findBorderPosition(I,e);else{var m=(l?-v:v)/2,w=this.getPoint(.5+m,r),k=this.getPoint(.5-m,r);g=Math.atan2(w.y-k.y,w.x-k.x),A=this.getPoint(.5,r)}}else{var R=this._getCircleData(e),O=ht(R,3),_=O[0],N=O[1],K=O[2];if(t==="from"){var H=this.options.selfReference.angle,Ce=this.options.selfReference.angle+Math.PI,$e=this._findBorderPositionCircle(this.from,e,{x:_,y:N,low:H,high:Ce,direction:-1});g=$e.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,A=$e}else if(t==="to"){var de=this.options.selfReference.angle,Ye=this.options.selfReference.angle+Math.PI,Fe=this._findBorderPositionCircle(this.from,e,{x:_,y:N,low:de,high:Ye,direction:1});g=Fe.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,A=Fe}else{var Oe=this.options.selfReference.angle/(2*Math.PI);A=this._pointOnCircle(_,N,K,Oe),g=Oe*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var Ke=A.x-c*.9*Math.cos(g),Te=A.y-c*.9*Math.sin(g),oe={x:Ke,y:Te};return{point:A,core:oe,angle:g,length:c,type:d}}},{key:"drawArrowHead",value:function(e,t,r,a,o){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width;var s=$5.draw(e,o);s&&(this.enableShadow(e,t),fC(e).call(e),this.disableShadow(e,t))}},{key:"enableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,t){if(t.background!==!1){var r={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=r.strokeStyle,e.lineWidth=r.lineWidth,e.dashes=r.dashes,this.setStrokeDashed(e,t.dashes)}}},{key:"setStrokeDashed",value:function(e,t){if(t!==!1)if(e.setLineDash!==void 0){var r=Ve(t)?t:[5,5];e.setLineDash(r)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),i}();function S_(i,n){var e=dt(i);if(oa){var t=oa(i);n&&(t=xr(t).call(t,function(r){return wa(i,r).enumerable})),e.push.apply(e,t)}return e}function k_(i){for(var n=1;n"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var Q$=function(i){Le(e,i);var n=HXe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"_findBorderPositionBezier",value:function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,g=.2,A=!1,I=1,C=0,l=this.to,u,d,h=this.options.endPointOffset?this.options.endPointOffset.to:0;r.id===this.from.id&&(l=this.from,A=!0,h=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(h=0);var c=0;do{d=(C+I)*.5,u=this.getPoint(d,o);var f=Math.atan2(l.y-u.y,l.x-u.x),v=l.distanceToBorder(a,f)+h,y=Math.sqrt(Math.pow(u.x-l.x,2)+Math.pow(u.y-l.y,2)),p=v-y;if(Math.abs(p)0&&(l=this._getDistanceToLine(f,v,h,c,g,A),C=l"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var __=function(i){Le(e,i);var n=YXe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o.via=o.via,o._boundFunction=function(){o.positionBezierNode()},o._body.emitter.on("_repositionBezierNodes",o._boundFunction),o}return Y(e,[{key:"setOptions",value:function(r){gu(J(e.prototype),"setOptions",this).call(this,r);var a=!1;this.options.physics!==r.physics&&(a=!0),this.options=r,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),a===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var r="edgeId:"+this.id,a=this._body.functions.createNode({id:r,shape:"circle",physics:!0,hidden:!0});this._body.nodes[r]=a,this.via=a,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(r,a,o){this._bezierCurve(r,a,o)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var o=this._getCircleData(),s=ht(o,3),g=s[0],A=s[1],I=s[2],C=2*Math.PI*(1-r);return{x:g+I*Math.sin(C),y:A+I-I*(1-Math.cos(C))}}else return{x:Math.pow(1-r,2)*this.fromPoint.x+2*r*(1-r)*a.x+Math.pow(r,2)*this.toPoint.x,y:Math.pow(1-r,2)*this.fromPoint.y+2*r*(1-r)*a.y+Math.pow(r,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,a){return this._findBorderPositionBezier(r,a,this.via)}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){return this._getDistanceToBezierEdge(r,a,o,s,g,A,this.via)}}]),e}(Q$);function XXe(i){var n=QXe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function QXe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var P_=function(i){Le(e,i);var n=XXe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"_line",value:function(r,a,o){this._bezierCurve(r,a,o)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var r=this.options.smooth.roundness,a=this.options.smooth.type,o=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(a==="discrete"||a==="diagonalCross"){var g,A;o<=s?g=A=r*s:g=A=r*o,this.from.x>this.to.x&&(g=-g),this.from.y>=this.to.y&&(A=-A);var I=this.from.x+g,C=this.from.y+A;return a==="discrete"&&(o<=s?I=othis.to.x&&(R=-R),this.from.y>=this.to.y&&(O=-O);var _=this.from.x+R,N=this.from.y+O;return o<=s?this.from.x<=this.to.x?_=this.to.x<_?this.to.x:_:_=this.to.x>_?this.to.x:_:this.from.y>=this.to.y?N=this.to.y>N?this.to.y:N:N=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(r,a,o.via)}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){var I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(r,a,o,s,g,A,I)}},{key:"getPoint",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),o=r,s=Math.pow(1-o,2)*this.fromPoint.x+2*o*(1-o)*a.x+Math.pow(o,2)*this.toPoint.x,g=Math.pow(1-o,2)*this.fromPoint.y+2*o*(1-o)*a.y+Math.pow(o,2)*this.toPoint.y;return{x:s,y:g}}}]),e}(Q$);function qXe(i){var n=JXe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function JXe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var eQe=function(i){Le(e,i);var n=qXe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"_getDistanceToBezierEdge2",value:function(r,a,o,s,g,A,I,C){for(var l=1e9,u=r,d=a,h=[0,0,0,0],c=1;c<10;c++){var f=.1*c;h[0]=Math.pow(1-f,3),h[1]=3*f*Math.pow(1-f,2),h[2]=3*Math.pow(f,2)*(1-f),h[3]=Math.pow(f,3);var v=h[0]*r+h[1]*I.x+h[2]*C.x+h[3]*o,y=h[0]*a+h[1]*I.y+h[2]*C.y+h[3]*s;if(c>0){var p=this._getDistanceToLine(u,d,v,y,g,A);l=p"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var R_=function(i){Le(e,i);var n=tQe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"_line",value:function(r,a,o){var s=o[0],g=o[1];this._bezierCurve(r,a,s,g)}},{key:"_getViaCoordinates",value:function(){var r=this.from.x-this.to.x,a=this.from.y-this.to.y,o,s,g,A,I=this.options.smooth.roundness;return(Math.abs(r)>Math.abs(a)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,A=this.to.y,o=this.from.x-I*r,g=this.to.x+I*r):(s=this.from.y-I*a,A=this.to.y+I*a,o=this.from.x,g=this.to.x),[{x:o,y:s},{x:g,y:A}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(r,a){return this._findBorderPositionBezier(r,a)}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){var I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),C=ht(I,2),l=C[0],u=C[1];return this._getDistanceToBezierEdge2(r,a,o,s,g,A,l,u)}},{key:"getPoint",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),o=ht(a,2),s=o[0],g=o[1],A=r,I=[Math.pow(1-A,3),3*A*Math.pow(1-A,2),3*Math.pow(A,2)*(1-A),Math.pow(A,3)],C=I[0]*this.fromPoint.x+I[1]*s.x+I[2]*g.x+I[3]*this.toPoint.x,l=I[0]*this.fromPoint.y+I[1]*s.y+I[2]*g.y+I[3]*this.toPoint.y;return{x:C,y:l}}}]),e}(eQe);function iQe(i){var n=nQe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function nQe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var x_=function(i){Le(e,i);var n=iQe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"_line",value:function(r,a){r.beginPath(),r.moveTo(this.fromPoint.x,this.fromPoint.y),r.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(r,a),r.stroke(),this.disableShadow(r,a)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(r){return{x:(1-r)*this.fromPoint.x+r*this.toPoint.x,y:(1-r)*this.fromPoint.y+r*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,a){var o=this.to,s=this.from;r.id===this.from.id&&(o=this.from,s=this.to);var g=Math.atan2(o.y-s.y,o.x-s.x),A=o.x-s.x,I=o.y-s.y,C=Math.sqrt(A*A+I*I),l=r.distanceToBorder(a,g),u=(C-l)/C;return{x:(1-u)*s.x+u*o.x,y:(1-u)*s.y+u*o.y,t:0}}},{key:"_getDistanceToEdge",value:function(r,a,o,s,g,A){return this._getDistanceToLine(r,a,o,s,g,A)}}]),e}(w5),Ms=function(){function i(n,e,t,r,a){if(U(this,i),e===void 0)throw new Error("No body provided");this.options=ta(r),this.globalOptions=r,this.defaultOptions=a,this.body=e,this.imagelist=t,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new f5(this.body,this.options,!0),this.setOptions(n)}return Y(i,[{key:"setOptions",value:function(e){if(e){var t=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;i.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=d5(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=U$("edge",r),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,t=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,r=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,a=this.options.color.inherit,o={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:r,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:a?void 0:this.options.color.color,inheritsColor:a,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?o.width=s(o.width):typeof s=="number"&&(o.width+=s),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.highlight,o.shadow=this.options.shadow.enabled}else if(this.hover){var g=this.options.hoverWidth;typeof g=="function"?o.width=g(o.width):typeof g=="number"&&(o.width+=g),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.hover,o.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(o,this.options.id,this.selected,this.hover),o.color!==void 0&&(o.inheritsColor=!1),o.shadow===!1&&(o.shadowColor!==this.options.shadow.color||o.shadowSize!==this.options.shadow.size||o.shadowX!==this.options.shadow.x||o.shadowY!==this.options.shadow.y)&&(o.shadow=!0));else o.shadow=this.options.shadow.enabled,o.width=Math.max(o.width,.3/this.body.view.scale);return o}},{key:"updateLabelModule",value:function(e){var t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,t=!1,r=!0;return this.edgeType!==void 0&&((this.edgeType instanceof __&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof R_&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof P_&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof x_&&e.type.enabled===!1)&&(r=!1),r===!0&&(t=this.cleanup())),r===!0?e.enabled===!0?e.type==="dynamic"?(t=!0,this.edgeType=new __(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new R_(this.options,this.body,this.labelModule):this.edgeType=new P_(this.options,this.body,this.labelModule):this.edgeType=new x_(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,t,r){if(this.options.value!==void 0){var a=this.options.scaling.customScalingFunction(e,t,r,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+a*s}this.options.width=this.options.scaling.min+a*o}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var t=this.getFormattingValues();if(!t.hidden){var r=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,r),this.drawLabel(e,r)}}},{key:"drawArrows",value:function(e){var t=this.getFormattingValues();if(!t.hidden){var r=this.edgeType.getViaNode(),a={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(a.from=this.edgeType.getArrowData(e,"from",r,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.fromPoint=a.from.core),t.fromArrowSrc&&(a.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(a.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(a.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(a.to=this.edgeType.getArrowData(e,"to",r,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.toPoint=a.to.core),t.toArrowSrc&&(a.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(a.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(a.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(a.middle=this.edgeType.getArrowData(e,"middle",r,this.selected,this.hover,t),t.middleArrowSrc&&(a.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(a.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(a.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,a.to)}}},{key:"drawLabel",value:function(e,t){if(this.options.label!==void 0){var r=this.from,a=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var o;if(r.id!=a.id){this.labelModule.pointToSelf=!1,o=this.edgeType.getPoint(.5,t),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,o.x,o.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var g=h5(e,this.options.selfReference.angle,this.options.selfReference.size,r);o=this._pointOnCircle(g.x,g.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,o.x,o.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var t=[];if(this.labelModule.visible()){var r=this._getRotation();cm(this.labelModule.getSize(),e,r)&&t.push({edgeId:this.id,labelId:0})}var a={left:e.x,top:e.y};return this.isOverlappingWith(a)&&t.push({edgeId:this.id}),t}},{key:"isOverlappingWith",value:function(e){if(this.connected){var t=10,r=this.from.x,a=this.from.y,o=this.to.x,s=this.to.y,g=e.left,A=e.top,I=this.edgeType.getDistanceToEdge(r,a,o,s,g,A);return I0&&s<0)&&(g+=Math.PI),a.angle=g,a}},{key:"_pointOnCircle",value:function(e,t,r,a){return{x:e+r*Math.cos(a),y:t-r*Math.sin(a)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(Kg(s,e,t,r),t.endPointOffset!==void 0&&t.endPointOffset.from!==void 0&&(za(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=a.endPointOffset.from!==void 0?a.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),t.endPointOffset!==void 0&&t.endPointOffset.to!==void 0&&(za(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=a.endPointOffset.to!==void 0?a.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),nd(t.label)?e.label=t.label:nd(e.label)||(e.label=void 0),ai(e,t,"smooth",a),ai(e,t,"shadow",a),ai(e,t,"background",a),t.dashes!==void 0&&t.dashes!==null?e.dashes=t.dashes:r===!0&&t.dashes===null&&(e.dashes=Ja(a.dashes)),t.scaling!==void 0&&t.scaling!==null?(t.scaling.min!==void 0&&(e.scaling.min=t.scaling.min),t.scaling.max!==void 0&&(e.scaling.max=t.scaling.max),ai(e.scaling,t.scaling,"label",a.scaling)):r===!0&&t.scaling===null&&(e.scaling=Ja(a.scaling)),t.arrows!==void 0&&t.arrows!==null)if(typeof t.arrows=="string"){var g=t.arrows.toLowerCase();e.arrows.to.enabled=Re(g).call(g,"to")!=-1,e.arrows.middle.enabled=Re(g).call(g,"middle")!=-1,e.arrows.from.enabled=Re(g).call(g,"from")!=-1}else if(Ue(t.arrows)==="object")ai(e.arrows,t.arrows,"to",a.arrows),ai(e.arrows,t.arrows,"middle",a.arrows),ai(e.arrows,t.arrows,"from",a.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+cC(t.arrows));else r===!0&&t.arrows===null&&(e.arrows=Ja(a.arrows));if(t.color!==void 0&&t.color!==null){var A=Ds(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,I=e.color;if(o)rt(I,a.color,!1,r);else for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&delete I[C];if(Ds(I))I.color=I,I.highlight=I,I.hover=I,I.inherit=!1,A.opacity===void 0&&(I.opacity=1);else{var l=!1;A.color!==void 0&&(I.color=A.color,l=!0),A.highlight!==void 0&&(I.highlight=A.highlight,l=!0),A.hover!==void 0&&(I.hover=A.hover,l=!0),A.inherit!==void 0&&(I.inherit=A.inherit),A.opacity!==void 0&&(I.opacity=Math.min(1,Math.max(0,A.opacity))),l===!0?I.inherit=!1:I.inherit===void 0&&(I.inherit="from")}}else r===!0&&t.color===null&&(e.color=ta(a.color));r===!0&&t.font===null&&(e.font=ta(a.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}}]),i}(),aQe=function(){function i(n,e,t){var r,a=this;U(this,i),this.body=n,this.images=e,this.groups=t,this.body.functions.createEdge=L(r=this.create).call(r,this),this.edgesListeners={add:function(s,g){a.add(g.items)},update:function(s,g){a.update(g.items)},remove:function(s,g){a.remove(g.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,g,A,I){if(g===s)return .5;var C=1/(g-s);return Math.max(0,(I-s)*C)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},rt(this.options,this.defaultOptions),this.bindEventListeners()}return Y(i,[{key:"bindEventListeners",value:function(){var e=this,t,r;this.body.emitter.on("_forceDisableDynamicCurves",function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a==="dynamic"&&(a="continuous");var s=!1;for(var g in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,g)){var A=e.body.edges[g],I=e.body.data.edges.get(g);if(I!=null){var C=I.smooth;C!==void 0&&C.enabled===!0&&C.type==="dynamic"&&(a===void 0?A.setOptions({smooth:!1}):A.setOptions({smooth:{type:a}}),s=!0)}}o===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",L(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",L(r=this.refresh).call(r,this)),this.body.emitter.on("destroy",function(){me(e.edgesListeners,function(a,o){e.body.data.edges&&e.body.data.edges.off(o,a)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Ms.parseOptions(this.options,e,!0,this.defaultOptions,!0);var t=!1;if(e.smooth!==void 0)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&(t=this.body.edges[r].updateEdgeType()||t);if(e.font!==void 0)for(var a in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,a)&&this.body.edges[a].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||t===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.body.data.edges;if(cz("id",e))this.body.data.edges=e;else if(Ve(e))this.body.data.edges=new Hu,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new Hu;else throw new TypeError("Array or DataSet expected");if(a&&me(this.edgesListeners,function(s,g){a.off(g,s)}),this.body.edges={},this.body.data.edges){me(this.edgesListeners,function(s,g){t.body.data.edges.on(g,s)});var o=this.body.data.edges.getIds();this.add(o,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),r===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.edges,a=this.body.data.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var r=this.body.edges;me(e,function(a){var o=r[a];o!==void 0&&o.remove()}),t&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;me(this.body.edges,function(t,r){var a=e.body.data.edges.get(r);a!==void 0&&t.setOptions(a)})}},{key:"create",value:function(e){return new Ms(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,t=this.body.nodes,r=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var a=r[e];a.from=null,a.to=null,a.connect()}}},{key:"getConnectedNodes",value:function(e){var t=[];if(this.body.edges[e]!==void 0){var r=this.body.edges[e];r.fromId!==void 0&&t.push(r.fromId),r.toId!==void 0&&t.push(r.toId)}return t}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,t=[];me(this.body.edges,function(r,a){var o=e.body.nodes[r.toId],s=e.body.nodes[r.fromId];o!==void 0&&o.isCluster===!0||s!==void 0&&s.isCluster===!0||(o===void 0||s===void 0)&&t.push(a)}),this.remove(t,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var t=this.body.edges,r=[];Qe(e).call(e,function(a,o){var s=t[o];s===void 0&&r.push(o)}),this.add(r,!0)}}}]),i}(),E5=function(){function i(n,e,t){U(this,i),this.body=n,this.physicsBody=e,this.barnesHutTree,this.setOptions(t),this._rng=xh("BARNES HUT SOLVER")}return Y(i,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,t=this.body.nodes,r=this.physicsBody.physicsNodeIndices,a=r.length,o=this._formBarnesHutTree(t,r);this.barnesHutTree=o;for(var s=0;s0&&this._getForceContributions(o.root,e)}}},{key:"_getForceContributions",value:function(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}},{key:"_getForceContribution",value:function(e,t){if(e.childrenCount>0){var r=e.centerOfMass.x-t.x,a=e.centerOfMass.y-t.y,o=Math.sqrt(r*r+a*a);o*e.calcSize>this.thetaInversed?this._calculateForces(o,r,a,t,e):e.childrenCount===4?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(o,r,a,t,e)}}},{key:"_calculateForces",value:function(e,t,r,a,o){e===0&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&a.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*a.shape.radius,e-a.shape.radius));var s=this.options.gravitationalConstant*o.mass*a.options.mass/Math.pow(e,3),g=t*s,A=r*s;this.physicsBody.forces[a.id].x+=g,this.physicsBody.forces[a.id].y+=A}},{key:"_formBarnesHutTree",value:function(e,t){for(var r,a=t.length,o=e[t[0]].x,s=e[t[0]].y,g=e[t[0]].x,A=e[t[0]].y,I=1;I0&&(lg&&(g=l),uA&&(A=u))}var d=Math.abs(g-o)-Math.abs(A-s);d>0?(s-=.5*d,A+=.5*d):(o+=.5*d,g-=.5*d);var h=1e-5,c=Math.max(h,Math.abs(g-o)),f=.5*c,v=.5*(o+g),y=.5*(s+A),p={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-f,maxX:v+f,minY:y-f,maxY:y+f},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(p.root);for(var m=0;m0&&this._placeInTree(p.root,r);return p}},{key:"_updateBranchMass",value:function(e,t){var r=e.centerOfMass,a=e.mass+t.options.mass,o=1/a;r.x=r.x*e.mass+t.x*t.options.mass,r.x*=o,r.y=r.y*e.mass+t.y*t.options.mass,r.y*=o,e.mass=a;var s=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?a.maxY>t.y?o="NW":o="SW":a.maxY>t.y?o="NE":o="SE",this._placeInRegion(e,t,o)}},{key:"_placeInRegion",value:function(e,t,r){var a=e.children[r];switch(a.childrenCount){case 0:a.children.data=t,a.childrenCount=1,this._updateBranchMass(a,t);break;case 1:a.children.data.x===t.x&&a.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(a),this._placeInTree(a,t));break;case 4:this._placeInTree(a,t);break}}},{key:"_splitBranch",value:function(e){var t=null;e.childrenCount===1&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),t!=null&&this._placeInTree(e,t)}},{key:"_insertRegion",value:function(e,t){var r,a,o,s,g=.5*e.size;switch(t){case"NW":r=e.range.minX,a=e.range.minX+g,o=e.range.minY,s=e.range.minY+g;break;case"NE":r=e.range.minX+g,a=e.range.maxX,o=e.range.minY,s=e.range.minY+g;break;case"SW":r=e.range.minX,a=e.range.minX+g,o=e.range.minY+g,s=e.range.maxY;break;case"SE":r=e.range.minX+g,a=e.range.maxX,o=e.range.minY+g,s=e.range.maxY;break}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:r,maxX:a,minY:o,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,t){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}},{key:"_drawBranch",value:function(e,t,r){r===void 0&&(r="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=r,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}]),i}(),oQe=function(){function i(n,e,t){U(this,i),this._rng=xh("REPULSION SOLVER"),this.body=n,this.physicsBody=e,this.setOptions(t)}return Y(i,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,t,r,a,o,s,g,A,I=this.body.nodes,C=this.physicsBody.physicsNodeIndices,l=this.physicsBody.forces,u=this.options.nodeDistance,d=-2/3/u,h=4/3,c=0;c"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var CQe=function(i){Le(e,i);var n=AQe(e);function e(t,r,a){var o;return U(this,e),o=n.call(this,t,r,a),o._rng=xh("FORCE ATLAS 2 BASED REPULSION SOLVER"),o}return Y(e,[{key:"_calculateForces",value:function(r,a,o,s,g){r===0&&(r=.1*this._rng(),a=r),this.overlapAvoidanceFactor<1&&s.shape.radius&&(r=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,r-s.shape.radius));var A=s.edges.length+1,I=this.options.gravitationalConstant*g.mass*s.options.mass*A/Math.pow(r,2),C=a*I,l=o*I;this.physicsBody.forces[s.id].x+=C,this.physicsBody.forces[s.id].y+=l}}]),e}(E5);function lQe(i){var n=uQe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function uQe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var dQe=function(i){Le(e,i);var n=lQe(e);function e(t,r,a){return U(this,e),n.call(this,t,r,a)}return Y(e,[{key:"_calculateForces",value:function(r,a,o,s,g){if(r>0){var A=g.edges.length+1,I=this.options.centralGravity*A*g.options.mass;s[g.id].x=a*I,s[g.id].y=o*I}}}]),e}(Au),hQe=function(){function i(n){U(this,i),this.body=n,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Dt(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return Y(i,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,td(["stabilization"],this.options,e),ai(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var t=this.options.wind;t&&((typeof t.x!="number"||hm(t.x))&&(t.x=0),(typeof t.y!="number"||hm(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new CQe(this.body,this.physicsBody,e),this.edgesSolver=new Ip(this.body,this.physicsBody,e),this.gravitySolver=new dQe(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new oQe(this.body,this.physicsBody,e),this.edgesSolver=new Ip(this.body,this.physicsBody,e),this.gravitySolver=new Au(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new sQe(this.body,this.physicsBody,e),this.edgesSolver=new gQe(this.body,this.physicsBody,e),this.gravitySolver=new Au(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new E5(this.body,this.physicsBody,e),this.edgesSolver=new Ip(this.body,this.physicsBody,e),this.gravitySolver=new Au(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=L(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=Qu();this.physicsTick();var t=Qu()-e;(t<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Zi(function(){e.body.emitter.emit("stabilized",{iterations:t}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,t=0,r=0,a=5,o=0;os&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var t=this.body.nodes[e],r=this.physicsBody.forces[e];this.options.wind&&(r.x+=this.options.wind.x,r.y+=this.options.wind.y);var a=this.physicsBody.velocities[e];this.previousStates[e]={x:t.x,y:t.y,vx:a.x,vy:a.y},t.options.fixed.x===!1?(a.x=this.calculateComponentVelocity(a.x,r.x,t.options.mass),t.x+=a.x*this.timestep):(r.x=0,a.x=0),t.options.fixed.y===!1?(a.y=this.calculateComponentVelocity(a.y,r.y,t.options.mass),t.y+=a.y*this.timestep):(r.y=0,a.y=0);var o=Math.sqrt(Math.pow(a.x,2)+Math.pow(a.y,2));return o}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){var r=e[t].options.fixed;this.freezeCache[t]={x:r.x,y:r.y},r.x=!0,r.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.freezeCache[t]!==void 0&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof t!="number"&&(t=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",t)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=t,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Zi(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,t=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,a=-1e9,o=1e9,s=-1e9,g;if(t.length>0)for(var A=0;Ag.shape.boundingBox.left&&(o=g.shape.boundingBox.left),sg.shape.boundingBox.top&&(r=g.shape.boundingBox.top),a1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,a=-1e9,o=1e9,s=-1e9,g;if(t.length>0)for(var A=0;Ag.x&&(o=g.x),sg.y&&(r=g.y),a"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var bQe=function(i){Le(e,i);var n=yQe(e);function e(t,r,a,o,s,g){var A;return U(this,e),A=n.call(this,t,r,a,o,s,g),A.isCluster=!0,A.containedNodes={},A.containedEdges={},A}return Y(e,[{key:"_openChildCluster",value:function(r){var a=this,o=this.body.nodes[r];if(this.containedNodes[r]===void 0)throw new Error("node with id: "+r+" not in current cluster");if(!o.isCluster)throw new Error("node with id: "+r+" is not a cluster");delete this.containedNodes[r],me(o.edges,function(s){delete a.containedEdges[s.id]}),me(o.containedNodes,function(s,g){a.containedNodes[g]=s}),o.containedNodes={},me(o.containedEdges,function(s,g){a.containedEdges[g]=s}),o.containedEdges={},me(o.edges,function(s){me(a.edges,function(g){var A,I,C=Re(A=g.clusteringEdgeReplacingIds).call(A,s.id);C!==-1&&(me(s.clusteringEdgeReplacingIds,function(l){g.clusteringEdgeReplacingIds.push(l),a.body.edges[l].edgeReplacedById=g.id}),un(I=g.clusteringEdgeReplacingIds).call(I,C,1))})}),o.edges=[]}}]),e}(Hr),$Qe=function(){function i(n){var e=this;U(this,i),this.body=n,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Dt(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return Y(i,[{key:"clusterByHubsize",value:function(e,t){e===void 0?e=this._getHubSize():Ue(e)==="object"&&(t=this._checkOptions(e),e=this._getHubSize());for(var r=[],a=0;a=e&&r.push(o.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");t=this._checkOptions(t);var a={},o={};me(this.body.nodes,function(s,g){s.options&&t.joinCondition(s.options)===!0&&(a[g]=s,me(s.edges,function(A){e.clusteredEdges[A.id]===void 0&&(o[A.id]=A)}))}),this._cluster(a,o,t,r)}},{key:"clusterByEdgeCount",value:function(e,t){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=this._checkOptions(t);for(var o=[],s={},g,A,I,C=function(){var h={},c={},f=r.body.nodeIndices[l],v=r.body.nodes[f];if(s[f]===void 0){I=0,A=[];for(var y=0;y0&&dt(c).length>0&&m===!0){var R=function(){for(var H=0;H1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,t)}},{key:"clusterBridges",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,t)}},{key:"clusterByConnection",value:function(e,t){var r,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var o=this.body.nodes[e];t=this._checkOptions(t,o),t.clusterNodeProperties.x===void 0&&(t.clusterNodeProperties.x=o.x),t.clusterNodeProperties.y===void 0&&(t.clusterNodeProperties.y=o.y),t.clusterNodeProperties.fixed===void 0&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=o.options.fixed.x,t.clusterNodeProperties.fixed.y=o.options.fixed.y);var s={},g={},A=o.id,I=hr.cloneOptions(o);s[A]=o;for(var C=0;C-1&&(g[y.id]=y)}this._cluster(s,g,t,a)}},{key:"_createClusterEdges",value:function(e,t,r,a){for(var o,s,g,A,I,C,l=dt(e),u=[],d=0;d0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&o.push(s);for(var g=0;ga?g.x:a,o=g.ys?g.y:s;return{x:.5*(r+a),y:.5*(o+s)}}},{key:"openCluster",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var a=this.body.nodes[e];if(a===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(a.isCluster!==!0||a.containedNodes===void 0||a.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var o=this.findNode(e),s=Re(o).call(o,e)-1;if(s>=0){var g=o[s],A=this.body.nodes[g];A._openChildCluster(e),delete this.body.nodes[e],r===!0&&this.body.emitter.emit("_dataChanged");return}var I=a.containedNodes,C=a.containedEdges;if(t!==void 0&&t.releaseFunction!==void 0&&typeof t.releaseFunction=="function"){var l={},u={x:a.x,y:a.y};for(var d in I)if(Object.prototype.hasOwnProperty.call(I,d)){var h=this.body.nodes[d];l[d]={x:h.x,y:h.y}}var c=t.releaseFunction(u,l);for(var f in I)if(Object.prototype.hasOwnProperty.call(I,f)){var v=this.body.nodes[f];c[f]!==void 0&&(v.x=c[f].x===void 0?a.x:c[f].x,v.y=c[f].y===void 0?a.y:c[f].y)}}else me(I,function(Fe){Fe.options.fixed.x===!1&&(Fe.x=a.x),Fe.options.fixed.y===!1&&(Fe.y=a.y)});for(var y in I)if(Object.prototype.hasOwnProperty.call(I,y)){var p=this.body.nodes[y];p.vx=a.vx,p.vy=a.vy,p.setOptions({physics:!0}),delete this.clusteredNodes[y]}for(var m=[],w=0;w0&&sa&&(a=s.edges.length),e+=s.edges.length,t+=Math.pow(s.edges.length,2),r+=1}e=e/r,t=t/r;var g=t-Math.pow(e,2),A=Math.sqrt(g),I=Math.floor(e+2*A);return I>a&&(I=a),I}},{key:"_createClusteredEdge",value:function(e,t,r,a,o){var s=hr.cloneOptions(r,"edge");rt(s,a),s.from=e,s.to=t,s.id="clusterEdge:"+PA(),o!==void 0&&rt(s,o);var g=this.body.functions.createEdge(s);return g.clusteringEdgeReplacingIds=[r.id],g.connect(),this.body.edges[g.id]=g,g}},{key:"_clusterEdges",value:function(e,t,r,a){if(t instanceof Ms){var o=t,s={};s[o.id]=o,t=s}if(e instanceof Hr){var g=e,A={};A[g.id]=g,e=A}if(r==null)throw new Error("_clusterEdges: parameter clusterNode required");a===void 0&&(a=r.clusterEdgeProperties),this._createClusterEdges(e,t,r,a);for(var I in t)if(Object.prototype.hasOwnProperty.call(t,I)&&this.body.edges[I]!==void 0){var C=this.body.edges[I];this._backupEdgeOptions(C),C.setOptions({physics:!1})}for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(this.clusteredNodes[l]={clusterId:r.id,node:this.body.nodes[l]},this.body.nodes[l].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var t=this.clusteredNodes[e];if(t!==void 0){var r=t.clusterId;if(r!==void 0)return this.body.nodes[r]}}}},{key:"_filter",value:function(e,t){var r=[];return me(e,function(a){t(a)&&r.push(a)}),r}},{key:"_updateState",value:function(){var e=this,t,r=[],a={},o=function(d){me(e.body.nodes,function(h){h.isCluster===!0&&d(h)})};for(t in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)){var s=this.body.nodes[t];s===void 0&&r.push(t)}o(function(u){for(var d=0;d0}(!u.endPointsValid()||!h)&&(a[d]=d)}),o(function(u){me(a,function(d){delete u.containedEdges[d],me(u.edges,function(h,c){if(h.id===d){u.edges[c]=null;return}h.clusteringEdgeReplacingIds=e._filter(h.clusteringEdgeReplacingIds,function(f){return!a[f]})}),u.edges=e._filter(u.edges,function(h){return h!==null})})}),me(a,function(u){delete e.clusteredEdges[u]}),me(a,function(u){delete e.body.edges[u]});var A=dt(this.body.edges);me(A,function(u){var d=e.body.edges[u],h=e._isClusteredNode(d.fromId)||e._isClusteredNode(d.toId);if(h!==e._isClusteredEdge(d.id))if(h){var c=e._getClusterNodeForNode(d.fromId);c!==void 0&&e._clusterEdges(e.body.nodes[d.fromId],d,c);var f=e._getClusterNodeForNode(d.toId);f!==void 0&&e._clusterEdges(e.body.nodes[d.toId],d,f)}else delete e._clusterEdges[u],e._restoreEdge(d)});for(var I=!1,C=!0,l=function(){var d=[];o(function(c){var f=dt(c.containedNodes).length,v=c.options.allowSingleNodeCluster===!0;(v&&f<1||!v&&f<2)&&d.push(c.id)});for(var h=0;h0,I=I||C};C;)l();I&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),i}();function wQe(){var i;window!==void 0&&(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),i===void 0?window.requestAnimationFrame=function(n){n()}:window.requestAnimationFrame=i}var EQe=function(){function i(n,e){U(this,i),wQe(),this.body=n,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Dt(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return Y(i,[{key:"bindEventListeners",value:function(){var e=this,t;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Zi(function(){var r;e.zooming=!1,L(r=e._requestRedraw).call(r,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",L(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var t=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];Kg(t,this.options,e)}}},{key:"_requestNextFrame",value:function(e,t){if(!(typeof window>"u")){var r,a=window;return this.requiresTimeout===!0?r=Zi(e,t):a.requestAnimationFrame&&(r=a.requestAnimationFrame(e)),r}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(L(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var t={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var r=this.canvas.getContext(),a=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(r.clearRect(0,0,a,o),this.canvas.frame.clientWidth===0)return;if(r.save(),r.translate(this.body.view.translation.x,this.body.view.translation.y),r.scale(this.body.view.scale,this.body.view.scale),r.beginPath(),this.body.emitter.emit("beforeDrawing",r),r.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(r),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(r,e),g=s.drawExternalLabels;t.drawExternalLabels=g}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(r),t.drawExternalLabels!=null&&t.drawExternalLabels(),e===!1&&this._drawSelectionBox(r),r.beginPath(),this.body.emitter.emit("afterDrawing",r),r.closePath(),r.restore(),e===!0&&r.clearRect(0,0,a,o)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var t=this.body.nodes,r;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r=t[a],r.resize(e),r.updateBoundingBox(e,r.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.nodes,a=this.body.nodeIndices,o,s=[],g=[],A=20,I=this.canvas.DOMtoCanvas({x:-20,y:-20}),C=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+A,y:this.canvas.frame.canvas.clientHeight+A}),l={top:I.y,left:I.x,bottom:C.y,right:C.x},u=[],d=0;d0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,r=this.cameraState.scale;e!=1&&t!=1?r=this.cameraState.scale*.5*(e+t):e!=1?r=this.cameraState.scale*e:t!=1&&(r=this.cameraState.scale*t),this.body.view.scale=r;var a=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),o={x:a.x-this.cameraState.position.x,y:a.y-this.cameraState.position.y};this.body.view.translation.x+=o.x*this.body.view.scale,this.body.view.translation.y+=o.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Re(e).call(e,"%")!==-1||Re(e).call(e,"px")!==-1)return e;if(Re(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Ns(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Ns.DIRECTION_ALL}),ad(this.hammer,function(t){e.body.eventListeners.onTouch(t)}),this.hammer.on("tap",function(t){e.body.eventListeners.onTap(t)}),this.hammer.on("doubletap",function(t){e.body.eventListeners.onDoubleTap(t)}),this.hammer.on("press",function(t){e.body.eventListeners.onHold(t)}),this.hammer.on("panstart",function(t){e.body.eventListeners.onDragStart(t)}),this.hammer.on("panmove",function(t){e.body.eventListeners.onDrag(t)}),this.hammer.on("panend",function(t){e.body.eventListeners.onDragEnd(t)}),this.hammer.on("pinch",function(t){e.body.eventListeners.onPinch(t)}),this.frame.canvas.addEventListener("wheel",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("mousemove",function(t){e.body.eventListeners.onMouseMove(t)}),this.frame.canvas.addEventListener("contextmenu",function(t){e.body.eventListeners.onContext(t)}),this.hammerFrame=new Ns(this.frame),O5(this.hammerFrame,function(t){e.body.eventListeners.onRelease(t)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);var r=!1,a=this.frame.canvas.width,o=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},r=!0;else{var g=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),A=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==g||this.frame.canvas.height!==A)&&this._getCameraState(s),this.frame.canvas.width!==g&&(this.frame.canvas.width=g,r=!0),this.frame.canvas.height!==A&&(this.frame.canvas.height=A,r=!0)}return r===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(a/this.pixelRatio),oldHeight:Math.round(o/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,r}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var t=1;typeof window<"u"&&(t=window.devicePixelRatio||1);var r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/r}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),i}();function PQe(i,n){var e=Dt({nodes:n,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},i??{});if(!Ve(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=n),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var RQe=function(){function i(n,e){var t,r=this,a;U(this,i),this.body=n,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",L(t=this.fit).call(t,this)),this.body.emitter.on("animationFinished",function(){r.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",L(a=this.releaseNode).call(a,this))}return Y(i,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=PQe(e,this.body.nodeIndices);var r=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight,o,s;if(r===0||a===0)s=1,o=hr.getRange(this.body.nodes,e.nodes);else if(t===!0){var g=0;for(var A in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,A)){var I=this.body.nodes[A];I.predefinedPosition===!0&&(g+=1)}if(g>.5*this.body.nodeIndices.length){this.fit(e,!1);return}o=hr.getRange(this.body.nodes,e.nodes);var C=this.body.nodeIndices.length;s=12.662/(C+7.4147)+.0964822;var l=Math.min(r/600,a/600);s*=l}else{this.body.emitter.emit("_resizeNodes"),o=hr.getRange(this.body.nodes,e.nodes);var u=Math.abs(o.maxX-o.minX)*1.1,d=Math.abs(o.maxY-o.minY)*1.1,h=r/u,c=a/d;s=h<=c?h:c}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var r={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=r,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!za(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!za(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!za(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!za(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:t.x-e.position.x,y:t.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+r.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+r.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var a;this.viewFunction=L(a=this._lockedRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var o;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=L(o=this._transitionRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:t.x-e.x,y:t.y-e.y},a=this.body.view.translation,o={x:a.x+r.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:a.y+r.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=o}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var t=h8e[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var r;this.viewFunction=L(r=this._lockedRedraw).call(r,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),i}();function N_(i){var n=i&&i.preventDefault||!1,e=i&&i.container||window,t={},r={keydown:{},keyup:{}},a={},o;for(o=97;o<=122;o++)a[String.fromCharCode(o)]={code:65+(o-97),shift:!1};for(o=65;o<=90;o++)a[String.fromCharCode(o)]={code:o,shift:!0};for(o=0;o<=9;o++)a[""+o]={code:48+o,shift:!1};for(o=1;o<=12;o++)a["F"+o]={code:111+o,shift:!1};for(o=0;o<=9;o++)a["num"+o]={code:96+o,shift:!1};a["num*"]={code:106,shift:!1},a["num+"]={code:107,shift:!1},a["num-"]={code:109,shift:!1},a["num/"]={code:111,shift:!1},a["num."]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a["="]={code:187,shift:!1},a["-"]={code:189,shift:!1},a["]"]={code:221,shift:!1},a["["]={code:219,shift:!1};var s=function(I){A(I,"keydown")},g=function(I){A(I,"keyup")},A=function(I,C){if(r[C][I.keyCode]!==void 0){for(var l=r[C][I.keyCode],u=0;u700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,a=t/e,o=(1-a)*this.canvas.canvasViewCenter.x+r.x*a,s=(1-a)*this.canvas.canvasViewCenter.y+r.y*a;this.body.view.scale=t,this.body.view.translation={x:o,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,a=t/e,o=(1-a)*this.canvas.canvasViewCenter.x+r.x*a,s=(1-a)*this.canvas.canvasViewCenter.y+r.y*a;this.body.view.scale=t,this.body.view.translation={x:o,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=N_({container:window,preventDefault:!0}):this.keycharm=N_({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var t,r,a,o,s,g,A,I,C,l,u,d,h,c,f,v,y,p,m,w,k,R,O,_;L(t=this.keycharm).call(t,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),L(r=this.keycharm).call(r,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),L(a=this.keycharm).call(a,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),L(o=this.keycharm).call(o,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),L(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),L(g=this.keycharm).call(g,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),L(A=this.keycharm).call(A,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),L(I=this.keycharm).call(I,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),L(C=this.keycharm).call(C,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),L(l=this.keycharm).call(l,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),L(u=this.keycharm).call(u,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),L(d=this.keycharm).call(d,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),L(h=this.keycharm).call(h,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),L(c=this.keycharm).call(c,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),L(f=this.keycharm).call(f,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),L(v=this.keycharm).call(v,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),L(y=this.keycharm).call(y,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),L(p=this.keycharm).call(p,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),L(m=this.keycharm).call(m,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),L(w=this.keycharm).call(w,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),L(k=this.keycharm).call(k,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),L(R=this.keycharm).call(R,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),L(O=this.keycharm).call(O,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),L(_=this.keycharm).call(_,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),i}();function DQe(i,n){var e=typeof $a<"u"&&Mo(i)||i["@@iterator"];if(!e){if(Ve(i)||(e=NQe(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function NQe(i,n){var e;if(i){if(typeof i=="string")return M_(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M_(i,n)}}function M_(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var t=this.getPointer(e.center),r=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,r),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}},{key:"onDoubleTap",value:function(e){var t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}},{key:"onHold",value:function(e){var t=this.getPointer(e.center),r=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,r),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}},{key:"checkSelectionChanges",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,t){var r=function(o,s){for(var g=[],A=0;A=o.minX&&C.x<=o.maxX&&C.y>=o.minY&&C.y<=o.maxY});Qe(s).call(s,function(I){return t.selectionHandler.selectObject(t.body.nodes[I])});var g=this.getPointer(e.center);this.selectionHandler.commitAndEmit(g,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var A=this.drag.selection;A&&A.length?(Qe(A).call(A,function(I){I.node.options.fixed.x=I.xFixed,I.node.options.fixed.y=I.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var t=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var r=this.pinch.scale*e.scale;this.zoom(r,t)}},{key:"zoom",value:function(e,t){if(this.options.zoomView===!0){var r=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var a=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(a=this.canvas.DOMtoCanvas(this.drag.pointer));var o=this.body.view.translation,s=e/r,g=(1-s)*t.x+o.x*s,A=(1-s)*t.y+o.y*s;if(this.body.view.scale=e,this.body.view.translation={x:g,y:A},a!=null){var I=this.canvas.canvasToDOM(a);this.drag.pointer.x=I.x,this.drag.pointer.y=I.y}this.body.emitter.emit("_requestRedraw"),r0&&(this.popupObj=I[l[l.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var d=this.body.edgeIndices,h=this.body.edges,c,f=[],v=0;v0&&(this.popupObj=h[f[f.length-1]],g="edge")}this.popupObj!==void 0?this.popupObj.id!==o&&(this.popup===void 0&&(this.popup=new $8e(this.canvas.frame)),this.popup.popupTargetType=g,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var t=this.selectionHandler._pointerToPositionObject(e),r=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(r=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),r===!0)){var a=this.selectionHandler.getNodeAt(e);r=a===void 0?!1:a.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(r=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));r===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),i}(),FQe=Z$,BQe=n5;FQe("Set",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},BQe);var zQe=Me,LQe=zQe.Set,jQe=LQe,GQe=jQe,WQe=GQe,Da=ne(WQe),VQe=ze,F_=H$,_l=Dh.getWeakData,ZQe=V$,HQe=ti,UQe=Bg,Cp=Qt,YQe=W$,T5=ba,B_=qt,S5=Do,KQe=S5.set,XQe=S5.getterFor,QQe=T5.find,qQe=T5.findIndex,JQe=VQe([].splice),e7e=0,Pl=function(i){return i.frozen||(i.frozen=new k5)},k5=function(){this.entries=[]},lp=function(i,n){return QQe(i.entries,function(e){return e[0]===n})};k5.prototype={get:function(i){var n=lp(this,i);if(n)return n[1]},has:function(i){return!!lp(this,i)},set:function(i,n){var e=lp(this,i);e?e[1]=n:this.entries.push([i,n])},delete:function(i){var n=qQe(this.entries,function(e){return e[0]===i});return~n&&JQe(this.entries,n,1),!!~n}};var t7e={getConstructor:function(i,n,e,t){var r=i(function(g,A){ZQe(g,a),KQe(g,{type:n,id:e7e++,frozen:void 0}),UQe(A)||YQe(A,g[t],{that:g,AS_ENTRIES:e})}),a=r.prototype,o=XQe(n),s=function(g,A,I){var C=o(g),l=_l(HQe(A),!0);return l===!0?Pl(C).set(A,I):l[C.id]=I,g};return F_(a,{delete:function(g){var A=o(this);if(!Cp(g))return!1;var I=_l(g);return I===!0?Pl(A).delete(g):I&&B_(I,A.id)&&delete I[A.id]},has:function(A){var I=o(this);if(!Cp(A))return!1;var C=_l(A);return C===!0?Pl(I).has(A):C&&B_(C,I.id)}}),F_(a,e?{get:function(A){var I=o(this);if(Cp(A)){var C=_l(A);return C===!0?Pl(I).get(A):C?C[I.id]:void 0}},set:function(A,I){return s(this,A,I)}}:{add:function(A){return s(this,A,!0)}}),r}},r7e=e5,z_=mt,Iu=ze,L_=H$,i7e=Dh,n7e=Z$,_5=t7e,Rl=Qt,xl=Do.enforce,a7e=Ne,o7e=Wz,$C=Object,s7e=Array.isArray,Dl=$C.isExtensible,P5=$C.isFrozen,g7e=$C.isSealed,R5=$C.freeze,A7e=$C.seal,j_={},G_={},I7e=!z_.ActiveXObject&&"ActiveXObject"in z_,sA,x5=function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},D5=n7e("WeakMap",x5,_5),as=D5.prototype,Cu=Iu(as.set),C7e=function(){return r7e&&a7e(function(){var i=R5([]);return Cu(new D5,i,1),!P5(i)})};if(o7e)if(I7e){sA=_5.getConstructor(x5,"WeakMap",!0),i7e.enable();var W_=Iu(as.delete),Nl=Iu(as.has),V_=Iu(as.get);L_(as,{delete:function(i){if(Rl(i)&&!Dl(i)){var n=xl(this);return n.frozen||(n.frozen=new sA),W_(this,i)||n.frozen.delete(i)}return W_(this,i)},has:function(n){if(Rl(n)&&!Dl(n)){var e=xl(this);return e.frozen||(e.frozen=new sA),Nl(this,n)||e.frozen.has(n)}return Nl(this,n)},get:function(n){if(Rl(n)&&!Dl(n)){var e=xl(this);return e.frozen||(e.frozen=new sA),Nl(this,n)?V_(this,n):e.frozen.get(n)}return V_(this,n)},set:function(n,e){if(Rl(n)&&!Dl(n)){var t=xl(this);t.frozen||(t.frozen=new sA),Nl(this,n)?Cu(this,n,e):t.frozen.set(n,e)}else Cu(this,n,e);return this}})}else C7e()&&L_(as,{set:function(n,e){var t;return s7e(n)&&(P5(n)?t=j_:g7e(n)&&(t=G_)),Cu(this,n,e),t===j_&&R5(n),t===G_&&A7e(n),this}});var l7e=Me,u7e=l7e.WeakMap,d7e=u7e,h7e=d7e,c7e=h7e,RA=ne(c7e);function et(i,n,e,t){if(typeof n=="function"?i!==n||!0:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(i):t?t.value:n.get(i)}function pm(i,n,e,t,r){if(typeof n=="function"?i!==n||!0:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n.set(i,e),e}function ym(i,n){var e=typeof $a<"u"&&Mo(i)||i["@@iterator"];if(!e){if(Ve(i)||(e=f7e(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function f7e(i,n){var e;if(i){if(typeof i=="string")return Z_(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Z_(i,n)}}function Z_(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e0&&arguments[0]!==void 0?arguments[0]:function(){};U(this,i),Rn.set(this,new U_),xn.set(this,new U_),lu.set(this,void 0),pm(this,lu,n)}return Y(i,[{key:"sizeNodes",get:function(){return et(this,Rn,"f").size}},{key:"sizeEdges",get:function(){return et(this,xn,"f").size}},{key:"getNodes",value:function(){return et(this,Rn,"f").getSelection()}},{key:"getEdges",value:function(){return et(this,xn,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=et(this,Rn,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=et(this,xn,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){et(this,Rn,"f").delete(e)}},{key:"deleteEdges",value:function(e){et(this,xn,"f").delete(e)}},{key:"clear",value:function(){et(this,Rn,"f").clear(),et(this,xn,"f").clear()}},{key:"commit",value:function(){for(var e,t,r={nodes:et(this,Rn,"f").commit(),edges:et(this,xn,"f").commit()},a=arguments.length,o=new Array(a),s=0;s=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function p7e(i,n){var e;if(i){if(typeof i=="string")return K_(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K_(i,n)}}function K_(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(t,r);if(o===!0)s.nodes=[],s.edges=[];else{var g=this.getSelection();s.nodes=g.nodes,s.edges=g.edges}a!==void 0&&(s.previousSelection=a),e=="click"&&(s.items=this.getClickedItems(r)),t.controlEdge!==void 0&&(s.controlEdge=t.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Hr){if(t===!0){var r;(r=this._selectionAccumulator).addEdges.apply(r,Ni(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var t=[],r=this.body.nodes,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0,r=this._pointerToPositionObject(e),a=this._getAllNodesOverlappingWith(r);if(a.length>0)return t===!0?this.body.nodes[a[a.length-1]]:a[a.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,t){for(var r=this.body.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0,r=this.canvas.DOMtoCanvas(e),a=10,o=null,s=this.body.edges,g=0;g0&&(this.generateClickEvent("deselectEdge",t,e,o),r=!0),a.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,o),r=!0),a.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),r=!0),a.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),r=!0),r===!0&&this.generateClickEvent("select",t,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return ng(e=this._selectionAccumulator.getNodes()).call(e,function(t){return t.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return ng(e=this._selectionAccumulator.getEdges()).call(e,function(t){return t.id})}},{key:"setSelection",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||t.unselectAll===void 0)&&this.unselectAll(),e.nodes){var r=Y_(e.nodes),a;try{for(r.s();!(a=r.n()).done;){var o=a.value,s=this.body.nodes[o];if(!s)throw new RangeError('Node with id "'+o+'" not found');this.selectObject(s,t.highlightEdges)}}catch(l){r.e(l)}finally{r.f()}}if(e.edges){var g=Y_(e.edges),A;try{for(g.s();!(A=g.n()).done;){var I=A.value,C=this.body.edges[I];if(!C)throw new RangeError('Edge with id "'+I+'" not found');this.selectObject(C)}}catch(l){g.e(l)}finally{g.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var t in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,t.id)||this._selectionAccumulator.deleteEdges(t)}},{key:"getClickedItems",value:function(e){for(var t=this.canvas.DOMtoCanvas(e),r=[],a=this.body.nodeIndices,o=this.body.nodes,s=a.length-1;s>=0;s--){var g=o[a[s]],A=g.getItemsOnPoint(t);r.push.apply(r,A)}for(var I=this.body.edgeIndices,C=this.body.edges,l=I.length-1;l>=0;l--){var u=C[I[l]],d=u.getItemsOnPoint(t);r.push.apply(r,d)}return r}}]),i}(),X_=v3,m7e=Math.floor,mm=function(i,n){var e=i.length,t=m7e(e/2);return e<8?b7e(i,n):$7e(i,mm(X_(i,0,t),n),mm(X_(i,t),n),n)},b7e=function(i,n){for(var e=i.length,t=1,r,a;t0;)i[a]=i[--a];a!==t++&&(i[a]=r)}return i},$7e=function(i,n,e,t){for(var r=n.length,a=e.length,o=0,s=0;o3)){if(F7e)return!0;if(iP)return iP<603;var i="",n,e,t,r;for(n=65;n<76;n++){switch(e=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)Gn.push({k:e+r,v:t})}for(Gn.sort(function(a,o){return o.v-a.v}),r=0;reP(e)?1:-1}};P7e({target:"Array",proto:!0,forced:G7e},{sort:function(n){n!==void 0&&R7e(n);var e=x7e(this);if(M5)return n===void 0?nP(e):nP(e,n);var t=[],r=J_(e),a,o;for(o=0;o=0:s>g;g+=A)g in o&&(r=e(r,o[g],g,a));return r}},nqe={left:iqe(!1)},aqe=mt,oqe=kn,sqe=oqe(aqe.process)==="process",gqe=Ae,Aqe=nqe.left,Iqe=Ug,aP=iC,Cqe=sqe,lqe=!Cqe&&aP>79&&aP<83,uqe=lqe||!Iqe("reduce");gqe({target:"Array",proto:!0,forced:uqe},{reduce:function(n){var e=arguments.length;return Aqe(this,n,e,e>1?arguments[1]:void 0)}});var dqe=Jt,hqe=dqe("Array").reduce,cqe=_t,fqe=hqe,dp=Array.prototype,vqe=function(i){var n=i.reduce;return i===dp||cqe(dp,i)&&n===dp.reduce?fqe:n},pqe=vqe,yqe=pqe,mqe=yqe,F5=ne(mqe);function B5(i){var n=bqe();return function(){var t=J(i),r;if(n){var a=J(this).constructor;r=x(t,arguments,a)}else r=t.apply(this,arguments);return Ze(this,r)}}function bqe(){if(typeof Reflect>"u"||!x||x.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(x(Boolean,[],function(){})),!0}catch{return!1}}var z5=function(){function i(){U(this,i)}return Y(i,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,t,r),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,t){this.fake_use(e,t),this.abstract()}},{key:"shift",value:function(e,t){this.fake_use(e,t),this.abstract()}}]),i}(),$qe=function(i){Le(e,i);var n=B5(e);function e(t){var r;return U(this,e),r=n.call(this),r.layout=t,r}return Y(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(r){return r.x}},{key:"setPosition",value:function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;o!==void 0&&this.layout.hierarchical.addToOrdering(r,o),r.x=a}},{key:"getTreeSize",value:function(r){var a=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:a.min_x,max:a.max_x}}},{key:"sort",value:function(r){xA(r).call(r,function(a,o){return a.x-o.x})}},{key:"fix",value:function(r,a){r.y=this.layout.options.hierarchical.levelSeparation*a,r.options.fixed.y=!0}},{key:"shift",value:function(r,a){this.layout.body.nodes[r].x+=a}}]),e}(z5),wqe=function(i){Le(e,i);var n=B5(e);function e(t){var r;return U(this,e),r=n.call(this),r.layout=t,r}return Y(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(r){return r.y}},{key:"setPosition",value:function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;o!==void 0&&this.layout.hierarchical.addToOrdering(r,o),r.y=a}},{key:"getTreeSize",value:function(r){var a=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:a.min_y,max:a.max_y}}},{key:"sort",value:function(r){xA(r).call(r,function(a,o){return a.y-o.y})}},{key:"fix",value:function(r,a){r.x=this.layout.options.hierarchical.levelSeparation*a,r.options.fixed.x=!0}},{key:"shift",value:function(r,a){this.layout.body.nodes[r].y+=a}}]),e}(z5),Eqe=Ae,Oqe=ba.every,Tqe=Ug,Sqe=Tqe("every");Eqe({target:"Array",proto:!0,forced:!Sqe},{every:function(n){return Oqe(this,n,arguments.length>1?arguments[1]:void 0)}});var kqe=Jt,_qe=kqe("Array").every,Pqe=_t,Rqe=_qe,hp=Array.prototype,xqe=function(i){var n=i.every;return i===hp||Pqe(hp,i)&&n===hp.every?Rqe:n},Dqe=xqe,Nqe=Dqe,Mqe=Nqe,L5=ne(Mqe);function Fqe(i,n){var e=typeof $a<"u"&&Mo(i)||i["@@iterator"];if(!e){if(Ve(i)||(e=Bqe(i))||n){e&&(i=e);var t=0,r=function(){};return{s:r,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Bqe(i,n){var e;if(i){if(typeof i=="string")return oP(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return oP(i,n)}}function oP(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e=n[a])&&(n[a]=n[r]+1)}),n}function Lqe(i){return j5(function(n){var e,t;return L5(e=xr(t=n.edges).call(t,function(r){return i.has(r.toId)})).call(e,function(r){return r.to===n})},function(n,e){return e>n},"from",i)}function jqe(i){return j5(function(n){var e,t;return L5(e=xr(t=n.edges).call(t,function(r){return i.has(r.toId)})).call(e,function(r){return r.from===n})},function(n,e){return eo)return{v:{v:zqe(t,a)}};++v},m;y=f.pop();)if(m=p(),m!==0&&m)return m.v},l;for(A.s();!(I=A.n()).done;)if(l=C(),l!==0&&l)return l.v}catch(u){A.e(u)}finally{A.f()}return a}var Gqe=function(){function i(){U(this,i),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return Y(i,[{key:"addRelation",value:function(e,t){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),this.parentReference[t]===void 0&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,t){t!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var t=this,r={},a=function o(s){if(r[s]!==void 0)return r[s];var g=t.levels[s];if(t.childrenReference[s]){var A=t.childrenReference[s];if(A.length>0)for(var I=0;I0&&(r.levelSeparation*=-1):r.levelSeparation<0&&(r.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(a===!0)return this.body.emitter.emit("refresh"),rt(t,this.optionsBackup)}return t}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=xh(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var t=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:t.enabled===void 0?!0:t.enabled,solver:"hierarchicalRepulsion"},t.enabled=t.enabled===void 0?!0:t.enabled,t.solver=t.solver||"barnesHut"):Ue(e.physics)==="object"?(t.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var r=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:r};else{var a=e.edges.smooth;a.type!==void 0&&a.type!=="dynamic"&&(r=a.type),this.optionsBackup.edges={smooth:{enabled:a.enabled===void 0?!0:a.enabled,type:a.type===void 0?"dynamic":a.type,roundness:a.roundness===void 0?.5:a.roundness,forceDirection:a.forceDirection===void 0?!1:a.forceDirection}},e.edges.smooth={enabled:a.enabled===void 0?!0:a.enabled,type:r,roundness:a.roundness===void 0?.5:a.roundness,forceDirection:a.forceDirection===void 0?!1:a.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",r)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var t=e.length+50,r=0;rg){for(var I=e.length;e.length>g&&s<=o;){s+=1;var C=e.length;s%3===0?this.body.modules.clustering.clusterBridges(A):this.body.modules.clustering.clusterOutliers(A);var l=e.length;if(C==l&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*I)})}s>o&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var u=70,d=0;d0){var e,t,r=!1,a=!1;this.lastNodeOnLevel={},this.hierarchical=new Gqe;for(t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],e.options.level!==void 0?(r=!0,this.hierarchical.levels[t]=e.options.level):a=!0);if(a===!0&&r===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(a===!0){var o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var g=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(g),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,t=!1,r={},a=function(){for(var y=s(),p=0,m=0;m0)for(var w=0;w1&&arguments[1]!==void 0?arguments[1]:1e9,m=1e9,w=1e9,k=1e9,R=-1e9;for(var O in y)if(Object.prototype.hasOwnProperty.call(y,O)){var _=e.body.nodes[O],N=e.hierarchical.levels[_.id],K=e.direction.getPosition(_),H=e._getSpaceAroundNode(_,y),Ce=ht(H,2),$e=Ce[0],de=Ce[1];m=Math.min($e,m),w=Math.min(de,w),N<=p&&(k=Math.min(K,k),R=Math.max(K,R))}return[k,R,m,w]},I=function(y,p){var m=e.hierarchical.getMaxLevel(y.id),w=e.hierarchical.getMaxLevel(p.id);return Math.min(m,w)},C=function(y,p,m){for(var w=e.hierarchical,k=0;k1)for(var _=0;_2&&arguments[2]!==void 0?arguments[2]:!1,w=e.direction.getPosition(y),k=e.direction.getPosition(p),R=Math.abs(k-w),O=e.options.hierarchical.nodeSpacing;if(R>O){var _={},N={};g(y,_),g(p,N);var K=I(y,p),H=A(_,K),Ce=A(N,K),$e=H[1],de=Ce[0],Ye=Ce[2],Fe=Math.abs($e-de);if(Fe>O){var Oe=$e-de+O;Oe<-Ye+O&&(Oe=-Ye+O),Oe<0&&(e._shiftBlock(p.id,Oe),t=!0,m===!0&&e._centerParent(p))}}},u=function(y,p){for(var m=p.id,w=p.edges,k=e.hierarchical.levels[p.id],R=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,O={},_=[],N=0;N0?ke=Math.min(Xe,Bt-e.options.hierarchical.nodeSpacing):Xe<0&&(ke=-Math.min(-Xe,Se-e.options.hierarchical.nodeSpacing)),ke!=0&&(e._shiftBlock(p.id,ke),t=!0)},Fe=function(Te){var oe=e.direction.getPosition(p),he=e._getSpaceAroundNode(p),le=ht(he,2),Se=le[0],Bt=le[1],Xe=Te-oe,ke=oe;Xe>0?ke=Math.min(oe+(Bt-e.options.hierarchical.nodeSpacing),Te):Xe<0&&(ke=Math.max(oe-(Se-e.options.hierarchical.nodeSpacing),Te)),ke!==oe&&(e.direction.setPosition(p,ke),t=!0)},Oe=de(y,_);Ye(Oe),Oe=de(y,w),Fe(Oe)},d=function(y){var p=e.hierarchical.getLevels();p=qa(p).call(p);for(var m=0;m0&&Math.abs(d)0&&(I=this.direction.getPosition(a[s-1])+A),this.direction.setPosition(g,I,t),this._validatePositionAndContinue(g,t,I),o++}}}}},{key:"_placeBranchNodes",value:function(e,t){var r,a=this.hierarchical.childrenReference[e];if(a!==void 0){for(var o=[],s=0;st&&this.positionedNodes[A.id]===void 0){var C=this.options.hierarchical.nodeSpacing,l=void 0;g===0?l=this.direction.getPosition(this.body.nodes[e]):l=this.direction.getPosition(o[g-1])+C,this.direction.setPosition(A,l,I),this._validatePositionAndContinue(A,I,l)}else return}var u=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[e],u,t)}}},{key:"_validatePositionAndContinue",value:function(e,t,r){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[t]!==void 0){var a=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(r-ae.hierarchical.levels[a.id]&&e.hierarchical.addRelation(a.id,o.id)};this._crawlNetwork(t),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},r=arguments.length>1?arguments[1]:void 0,a={},o=function l(u,d){if(a[u.id]===void 0){e.hierarchical.setTreeIndex(u,d),a[u.id]=!0;for(var h,c=e._getActiveEdges(u),f=0;f=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(A){throw A},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){e=e.call(i)},n:function(){var A=e.next();return a=A.done,A},e:function(A){o=!0,s=A},f:function(){try{!a&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function Zqe(i,n){var e;if(i){if(typeof i=="string")return sP(i,n);var t=ar(e=Object.prototype.toString.call(i)).call(e,8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return No(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sP(i,n)}}function sP(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e0&&this.options.deleteNode!==!1?(g===!0&&this._createSeperator(4),this._createDeleteButton(s)):r===0&&this.options.deleteEdge!==!1&&(g===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,L(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",L(t=this.showManipulatorToolbar).call(t,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var t,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,L(t=this.toggleEditMode).call(t,this))}this._temporaryBindEvent("click",L(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var t=this.selectionHandler.getSelectedNodes()[0];if(t!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(t.isCluster!==!0){var r=rt({},t.options,!1);if(r.x=t.x,r.y=t.y,this.options.editNode.length===2)this.options.editNode(r,function(a){a!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(a),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,t,r,a,o;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,g=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(g),this._createSeperator(),this._createDescription(g.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,L(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",L(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",L(t=this._finishConnect).call(t,this)),this._temporaryBindUI("onDrag",L(r=this._dragControlNode).call(r,this)),this._temporaryBindUI("onRelease",L(a=this._finishConnect).call(a,this)),this._temporaryBindUI("onDragStart",L(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Ue(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var t,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,L(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var a,o,s,g,A=this.body.edges[this.edgeBeingEditedId],I=this._getNewTargetNode(A.from.x,A.from.y),C=this._getNewTargetNode(A.to.x,A.to.y);this.temporaryIds.nodes.push(I.id),this.temporaryIds.nodes.push(C.id),this.body.nodes[I.id]=I,this.body.nodeIndices.push(I.id),this.body.nodes[C.id]=C,this.body.nodeIndices.push(C.id),this._temporaryBindUI("onTouch",L(a=this._controlNodeTouch).call(a,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",L(o=this._controlNodeDragStart).call(o,this)),this._temporaryBindUI("onDrag",L(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",L(g=this._controlNodeDragEnd).call(g,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(l){var u=A.edgeType.findBorderPositions(l);I.selected===!1&&(I.x=u.from.x,I.y=u.from.y),C.selected===!1&&(C.x=u.to.x,C.y=u.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var t=this.selectionHandler.getSelectedNodeIds(),r=this.selectionHandler.getSelectedEdgeIds(),a=void 0;if(t.length>0){for(var o=0;o0&&typeof this.options.deleteEdge=="function"&&(a=this.options.deleteEdge);if(typeof a=="function"){var s={nodes:t,edges:r};if(a.length===2)a(s,function(g){g!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(g.edges),e.body.data.nodes.getDataSet().remove(g.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(r),this.body.data.nodes.getDataSet().remove(t),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,t;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(t=this.options.locales[this.options.locale])===null||t===void 0?void 0:t.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,t){var r=rt({},this.options.controlNodeStyle);r.id="targetNode"+PA(),r.hidden=!1,r.physics=!1,r.x=e,r.y=t;var a=this.body.functions.createNode(r);return a.shape.boundingBox={left:e,right:e,top:t,bottom:t},a}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},Mn(this.editModeDiv);var t=this.options.locales[this.options.locale],r=this._createButton("editMode","vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(r),this._bindElementEvents(r,L(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Mn(this.editModeDiv),Mn(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,t=Vqe(un(e=this._domEventListenerCleanupQueue).call(e,0)),r;try{for(t.s();!(r=t.n()).done;){var a=r.value;a()}}catch(o){t.e(o)}finally{t.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Mn(this.manipulationDiv),Mn(this.editModeDiv),Mn(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var t,r=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,L(t=this.addNodeMode).call(t,this))}},{key:"_createAddEdgeButton",value:function(e){var t,r=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,L(t=this.addEdgeMode).call(t,this))}},{key:"_createEditNodeButton",value:function(e){var t,r=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,L(t=this.editNode).call(t,this))}},{key:"_createEditEdgeButton",value:function(e){var t,r=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,L(t=this.editEdgeMode).call(t,this))}},{key:"_createDeleteButton",value:function(e){var t,r;this.options.rtl?r="vis-delete-rtl":r="vis-delete";var a=this._createButton("delete",r,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(a),this._bindElementEvents(a,L(t=this.deleteSelected).call(t,this))}},{key:"_createBackButton",value:function(e){var t,r=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,L(t=this.showManipulatorToolbar).call(t,this))}},{key:"_createButton",value:function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=a,this.manipulationDOM[e+"Label"].innerText=r,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}},{key:"_temporaryBindUI",value:function(e,t){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+cC(dt(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;g--)if(o[g]!==this.selectedControlNode.id){s=this.body.nodes[o[g]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var A=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===A.id?this._performEditEdge(s.id,a.to.id):this._performEditEdge(a.from.id,s.id)}else a.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Dt({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var t=this.lastTouch,r=this.selectionHandler.getNodeAt(t);if(r!==void 0)if(r.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var a=this._getNewTargetNode(r.x,r.y);this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id);var o=this.body.functions.createEdge({id:"connectionEdge"+PA(),from:r.id,to:a.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(a.id),this.temporaryIds.edges.push(o.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var t=this.body.functions.getPointer(e.center),r=this.selectionHandler._pointerToPositionObject(t),a=void 0;this.temporaryIds.edges[0]!==void 0&&(a=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(r),s=void 0,g=o.length-1;g>=0;g--){var A;if(Re(A=this.temporaryIds.nodes).call(A,o[g])===-1){s=this.body.nodes[o[g]];break}}if(e.controlEdge={from:a,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,t),this.temporaryIds.nodes[0]!==void 0){var I=this.body.nodes[this.temporaryIds.nodes[0]];I.x=this.canvas._XconvertDOMtoCanvas(t.x),I.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var t=this.body.functions.getPointer(e.center),r=this.selectionHandler._pointerToPositionObject(t),a=void 0;this.temporaryIds.edges[0]!==void 0&&(a=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(r),s=void 0,g=o.length-1;g>=0;g--){var A;if(Re(A=this.temporaryIds.nodes).call(A,o[g])===-1){s=this.body.nodes[o[g]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[a]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(a,s.id)),e.controlEdge={from:a,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,t),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var t=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,t,void 0,!0)}},{key:"_performAddNode",value:function(e){var t=this,r={id:PA(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(r,function(a){a!=null&&t.inMode==="addNode"&&t.body.data.nodes.getDataSet().add(a),t.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(r),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,t){var r=this,a={from:e,to:t};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(a,function(o){o!=null&&r.inMode==="addEdge"&&(r.body.data.edges.getDataSet().add(o),r.selectionHandler.unselectAll(),r.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(a),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,t){var r=this,a={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if(Ue(o)==="object"&&(o=o.editWithoutDrag),typeof o=="function")if(o.length===2)o(a,function(s){s==null||r.inMode!=="editEdge"?(r.body.edges[a.id].updateEdgeType(),r.body.emitter.emit("_redraw"),r.showManipulatorToolbar()):(r.body.data.edges.getDataSet().update(s),r.selectionHandler.unselectAll(),r.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(a),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),i}(),Z="string",B="boolean",S="number",dA="array",ie="object",G5="dom",Uqe="any",cp=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],fp={borderWidth:{number:S},borderWidthSelected:{number:S,undefined:"undefined"},brokenImage:{string:Z,undefined:"undefined"},chosen:{label:{boolean:B,function:"function"},node:{boolean:B,function:"function"},__type__:{object:ie,boolean:B}},color:{border:{string:Z},background:{string:Z},highlight:{border:{string:Z},background:{string:Z},__type__:{object:ie,string:Z}},hover:{border:{string:Z},background:{string:Z},__type__:{object:ie,string:Z}},__type__:{object:ie,string:Z}},opacity:{number:S,undefined:"undefined"},fixed:{x:{boolean:B},y:{boolean:B},__type__:{object:ie,boolean:B}},font:{align:{string:Z},color:{string:Z},size:{number:S},face:{string:Z},background:{string:Z},strokeWidth:{number:S},strokeColor:{string:Z},vadjust:{number:S},multi:{boolean:B,string:Z},bold:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},boldital:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},ital:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},mono:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},__type__:{object:ie,string:Z}},group:{string:Z,number:S,undefined:"undefined"},heightConstraint:{minimum:{number:S},valign:{string:Z},__type__:{object:ie,boolean:B,number:S}},hidden:{boolean:B},icon:{face:{string:Z},code:{string:Z},size:{number:S},color:{string:Z},weight:{string:Z,number:S},__type__:{object:ie}},id:{string:Z,number:S},image:{selected:{string:Z,undefined:"undefined"},unselected:{string:Z,undefined:"undefined"},__type__:{object:ie,string:Z}},imagePadding:{top:{number:S},right:{number:S},bottom:{number:S},left:{number:S},__type__:{object:ie,number:S}},label:{string:Z,undefined:"undefined"},labelHighlightBold:{boolean:B},level:{number:S,undefined:"undefined"},margin:{top:{number:S},right:{number:S},bottom:{number:S},left:{number:S},__type__:{object:ie,number:S}},mass:{number:S},physics:{boolean:B},scaling:{min:{number:S},max:{number:S},label:{enabled:{boolean:B},min:{number:S},max:{number:S},maxVisible:{number:S},drawThreshold:{number:S},__type__:{object:ie,boolean:B}},customScalingFunction:{function:"function"},__type__:{object:ie}},shadow:{enabled:{boolean:B},color:{string:Z},size:{number:S},x:{number:S},y:{number:S},__type__:{object:ie,boolean:B}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:B,array:dA},borderRadius:{number:S},interpolation:{boolean:B},useImageSize:{boolean:B},useBorderWithImage:{boolean:B},coordinateOrigin:{string:["center","top-left"]},__type__:{object:ie}},size:{number:S},title:{string:Z,dom:G5,undefined:"undefined"},value:{number:S,undefined:"undefined"},widthConstraint:{minimum:{number:S},maximum:{number:S},__type__:{object:ie,boolean:B,number:S}},x:{number:S},y:{number:S},__type__:{object:ie}},Yqe={configure:{enabled:{boolean:B},filter:{boolean:B,string:Z,array:dA,function:"function"},container:{dom:G5},showButton:{boolean:B},__type__:{object:ie,boolean:B,string:Z,array:dA,function:"function"}},edges:{arrows:{to:{enabled:{boolean:B},scaleFactor:{number:S},type:{string:cp},imageHeight:{number:S},imageWidth:{number:S},src:{string:Z},__type__:{object:ie,boolean:B}},middle:{enabled:{boolean:B},scaleFactor:{number:S},type:{string:cp},imageWidth:{number:S},imageHeight:{number:S},src:{string:Z},__type__:{object:ie,boolean:B}},from:{enabled:{boolean:B},scaleFactor:{number:S},type:{string:cp},imageWidth:{number:S},imageHeight:{number:S},src:{string:Z},__type__:{object:ie,boolean:B}},__type__:{string:["from","to","middle"],object:ie}},endPointOffset:{from:{number:S},to:{number:S},__type__:{object:ie,number:S}},arrowStrikethrough:{boolean:B},background:{enabled:{boolean:B},color:{string:Z},size:{number:S},dashes:{boolean:B,array:dA},__type__:{object:ie,boolean:B}},chosen:{label:{boolean:B,function:"function"},edge:{boolean:B,function:"function"},__type__:{object:ie,boolean:B}},color:{color:{string:Z},highlight:{string:Z},hover:{string:Z},inherit:{string:["from","to","both"],boolean:B},opacity:{number:S},__type__:{object:ie,string:Z}},dashes:{boolean:B,array:dA},font:{color:{string:Z},size:{number:S},face:{string:Z},background:{string:Z},strokeWidth:{number:S},strokeColor:{string:Z},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:S},multi:{boolean:B,string:Z},bold:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},boldital:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},ital:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},mono:{color:{string:Z},size:{number:S},face:{string:Z},mod:{string:Z},vadjust:{number:S},__type__:{object:ie,string:Z}},__type__:{object:ie,string:Z}},hidden:{boolean:B},hoverWidth:{function:"function",number:S},label:{string:Z,undefined:"undefined"},labelHighlightBold:{boolean:B},length:{number:S,undefined:"undefined"},physics:{boolean:B},scaling:{min:{number:S},max:{number:S},label:{enabled:{boolean:B},min:{number:S},max:{number:S},maxVisible:{number:S},drawThreshold:{number:S},__type__:{object:ie,boolean:B}},customScalingFunction:{function:"function"},__type__:{object:ie}},selectionWidth:{function:"function",number:S},selfReferenceSize:{number:S},selfReference:{size:{number:S},angle:{number:S},renderBehindTheNode:{boolean:B},__type__:{object:ie}},shadow:{enabled:{boolean:B},color:{string:Z},size:{number:S},x:{number:S},y:{number:S},__type__:{object:ie,boolean:B}},smooth:{enabled:{boolean:B},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:S},forceDirection:{string:["horizontal","vertical","none"],boolean:B},__type__:{object:ie,boolean:B}},title:{string:Z,undefined:"undefined"},width:{number:S},widthConstraint:{maximum:{number:S},__type__:{object:ie,boolean:B,number:S}},value:{number:S,undefined:"undefined"},__type__:{object:ie}},groups:{useDefaultGroups:{boolean:B},__any__:fp,__type__:{object:ie}},interaction:{dragNodes:{boolean:B},dragView:{boolean:B},hideEdgesOnDrag:{boolean:B},hideEdgesOnZoom:{boolean:B},hideNodesOnDrag:{boolean:B},hover:{boolean:B},keyboard:{enabled:{boolean:B},speed:{x:{number:S},y:{number:S},zoom:{number:S},__type__:{object:ie}},bindToWindow:{boolean:B},autoFocus:{boolean:B},__type__:{object:ie,boolean:B}},multiselect:{boolean:B},navigationButtons:{boolean:B},selectable:{boolean:B},selectConnectedEdges:{boolean:B},hoverConnectedEdges:{boolean:B},tooltipDelay:{number:S},zoomView:{boolean:B},zoomSpeed:{number:S},__type__:{object:ie}},layout:{randomSeed:{undefined:"undefined",number:S,string:Z},improvedLayout:{boolean:B},clusterThreshold:{number:S},hierarchical:{enabled:{boolean:B},levelSeparation:{number:S},nodeSpacing:{number:S},treeSpacing:{number:S},blockShifting:{boolean:B},edgeMinimization:{boolean:B},parentCentralization:{boolean:B},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:ie,boolean:B}},__type__:{object:ie}},manipulation:{enabled:{boolean:B},initiallyActive:{boolean:B},addNode:{boolean:B,function:"function"},addEdge:{boolean:B,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:ie,boolean:B,function:"function"}},deleteNode:{boolean:B,function:"function"},deleteEdge:{boolean:B,function:"function"},controlNodeStyle:fp,__type__:{object:ie,boolean:B}},nodes:fp,physics:{enabled:{boolean:B},barnesHut:{theta:{number:S},gravitationalConstant:{number:S},centralGravity:{number:S},springLength:{number:S},springConstant:{number:S},damping:{number:S},avoidOverlap:{number:S},__type__:{object:ie}},forceAtlas2Based:{theta:{number:S},gravitationalConstant:{number:S},centralGravity:{number:S},springLength:{number:S},springConstant:{number:S},damping:{number:S},avoidOverlap:{number:S},__type__:{object:ie}},repulsion:{centralGravity:{number:S},springLength:{number:S},springConstant:{number:S},nodeDistance:{number:S},damping:{number:S},__type__:{object:ie}},hierarchicalRepulsion:{centralGravity:{number:S},springLength:{number:S},springConstant:{number:S},nodeDistance:{number:S},damping:{number:S},avoidOverlap:{number:S},__type__:{object:ie}},maxVelocity:{number:S},minVelocity:{number:S},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:B},iterations:{number:S},updateInterval:{number:S},onlyDynamicEdges:{boolean:B},fit:{boolean:B},__type__:{object:ie,boolean:B}},timestep:{number:S},adaptiveTimestep:{boolean:B},wind:{x:{number:S},y:{number:S},__type__:{object:ie}},__type__:{object:ie,boolean:B}},autoResize:{boolean:B},clickToUse:{boolean:B},locale:{string:Z},locales:{__any__:{any:Uqe},__type__:{object:ie}},height:{string:Z},width:{string:Z},__type__:{object:ie}},W5={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},Kqe=function(n,e,t){var r;return!!(Jn(n).call(n,"physics")&&Jn(r=W5.physics.solver).call(r,e)&&t.physics.solver!==e&&e!=="wind")},Xqe=function(){function i(){U(this,i)}return Y(i,[{key:"getDistances",value:function(e,t,r){for(var a={},o=e.edges,s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,a=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(a),this._createK_matrix(a),this._createE_matrix();for(var o=.01,s=1,g=0,A=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),I=5,C=1e9,l=0,u=0,d=0,h=0,c=0;C>o&&gs&&cA);wC.value.getGraphModules().then(A=>{zle(A,g)})}function e(){n()}nj(()=>{n(),wC.functions.on("graphModuleUpdated",e)});const t=La(),r=IP(),a=La(!1);function o(){const g=t.value,A=r.value=new ee(g,{nodes:Zs,edges:Hs},HE.value);uu(HE,I=>{A.setOptions(I)},{immediate:!0}),A.on("selectNode",I=>{Gle(I.nodes[0]),Ay(!0)}),A.on("startStabilizing",()=>{vp.value.reduceMotion&&(a.value=!0)}),A.on("stabilized",()=>{a.value=!1}),A.on("deselectNode",()=>{Ay(!1)}),uu(()=>Ys.value,I=>{I&&A.moveTo({position:{x:0,y:0}})})}aj(()=>{o()}),oj(()=>{Mle(),r.value?.destroy(),wC.functions.off("graphModuleUpdated",e)});const s=La();return(g,A)=>{const I=iue,C=tue,l=eue;return Sr(),Yr("div",qqe,[Es(I,{ref_key:"navbarRef",ref:s},null,512),wt("div",Jqe,[wt("div",{ref_key:"container",ref:t,class:"absolute inset-0"},null,512),He(a)?(Sr(),Yr("div",eJe,A[0]||(A[0]=[wt("div",{class:"flex items-center space-x-2"},[wt("span",null,"Stabilizing...")],-1)]))):bm("",!0),Es(C),Es(l,{top:He(s)},null,8,["top"])])])}}});export{rJe as default};