vis-network
Version:
A dynamic, browser-based visualization library.
51 lines • 671 kB
JavaScript
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 8.5.4
* @date 2020-11-23T19:50:32.883Z
*
* @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 g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(g,A,t){return g(t={path:A,exports:{},require:function(g,A){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==A&&t.path)}},t.exports),t.exports}var t=function(g){return g&&g.Math==Math&&g},e=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof g&&g)||function(){return this}()||Function("return this")(),C=function(g){try{return!!g()}catch(g){return!0}},I=!C((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,n={f:o&&!i.call({1:2},1)?function(g){var A=o(this,g);return!!A&&A.enumerable}:i},r=function(g,A){return{enumerable:!(1&g),configurable:!(2&g),writable:!(4&g),value:A}},s={}.toString,a=function(g){return s.call(g).slice(8,-1)},d="".split,h=C((function(){return!Object("z").propertyIsEnumerable(0)}))?function(g){return"String"==a(g)?d.call(g,""):Object(g)}:Object,l=function(g){if(null==g)throw TypeError("Can't call method on "+g);return g},c=function(g){return h(l(g))},u=function(g){return"object"==typeof g?null!==g:"function"==typeof g},p=function(g,A){if(!u(g))return g;var t,e;if(A&&"function"==typeof(t=g.toString)&&!u(e=t.call(g)))return e;if("function"==typeof(t=g.valueOf)&&!u(e=t.call(g)))return e;if(!A&&"function"==typeof(t=g.toString)&&!u(e=t.call(g)))return e;throw TypeError("Can't convert object to primitive value")},f={}.hasOwnProperty,v=function(g,A){return f.call(g,A)},y=e.document,m=u(y)&&u(y.createElement),b=function(g){return m?y.createElement(g):{}},w=!I&&!C((function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a})),k=Object.getOwnPropertyDescriptor,x={f:I?k:function(g,A){if(g=c(g),A=p(A,!0),w)try{return k(g,A)}catch(g){}if(v(g,A))return r(!n.f.call(g,A),g[A])}},E=/#|\.prototype\./,O=function(g,A){var t=D[T(g)];return t==R||t!=N&&("function"==typeof A?C(A):!!A)},T=O.normalize=function(g){return String(g).replace(E,".").toLowerCase()},D=O.data={},N=O.NATIVE="N",R=O.POLYFILL="P",P=O,M={},z=function(g){if("function"!=typeof g)throw TypeError(String(g)+" is not a function");return g},S=function(g,A,t){if(z(g),void 0===A)return g;switch(t){case 0:return function(){return g.call(A)};case 1:return function(t){return g.call(A,t)};case 2:return function(t,e){return g.call(A,t,e)};case 3:return function(t,e,C){return g.call(A,t,e,C)}}return function(){return g.apply(A,arguments)}},Z=function(g){if(!u(g))throw TypeError(String(g)+" is not an object");return g},B=Object.defineProperty,F={f:I?B:function(g,A,t){if(Z(g),A=p(A,!0),Z(t),w)try{return B(g,A,t)}catch(g){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(g[A]=t.value),g}},G=I?function(g,A,t){return F.f(g,A,r(1,t))}:function(g,A,t){return g[A]=t,g},L=x.f,j=function(g){var A=function(A,t,e){if(this instanceof g){switch(arguments.length){case 0:return new g;case 1:return new g(A);case 2:return new g(A,t)}return new g(A,t,e)}return g.apply(this,arguments)};return A.prototype=g.prototype,A},V=function(g,A){var t,C,I,i,o,n,r,s,a=g.target,d=g.global,h=g.stat,l=g.proto,c=d?e:h?e[a]:(e[a]||{}).prototype,u=d?M:M[a]||(M[a]={}),p=u.prototype;for(I in A)t=!P(d?I:a+(h?".":"#")+I,g.forced)&&c&&v(c,I),o=u[I],t&&(n=g.noTargetGet?(s=L(c,I))&&s.value:c[I]),i=t&&n?n:A[I],t&&typeof o==typeof i||(r=g.bind&&t?S(i,e):g.wrap&&t?j(i):l&&"function"==typeof i?S(Function.call,i):i,(g.sham||i&&i.sham||o&&o.sham)&&G(r,"sham",!0),u[I]=r,l&&(v(M,C=a+"Prototype")||G(M,C,{}),M[C][I]=i,g.real&&p&&!p[I]&&G(p,I,i)))},Y=[].slice,W={},H=function(g,A,t){if(!(A in W)){for(var e=[],C=0;C<A;C++)e[C]="a["+C+"]";W[A]=Function("C,a","return new C("+e.join(",")+")")}return W[A](g,t)},Q=Function.bind||function(g){var A=z(this),t=Y.call(arguments,1),e=function(){var C=t.concat(Y.call(arguments));return this instanceof e?H(A,C.length,C):A.apply(g,C)};return u(A.prototype)&&(e.prototype=A.prototype),e};V({target:"Function",proto:!0},{bind:Q});var U=function(g){return M[g+"Prototype"]},K=U("Function").bind,_=Function.prototype,X=function(g){var A=g.bind;return g===_||g instanceof Function&&A===_.bind?K:A},J=Math.ceil,q=Math.floor,$=function(g){return isNaN(g=+g)?0:(g>0?q:J)(g)},gg=Math.min,Ag=function(g){return g>0?gg($(g),9007199254740991):0},tg=Math.max,eg=Math.min,Cg=function(g,A){var t=$(g);return t<0?tg(t+A,0):eg(t,A)},Ig=function(g){return function(A,t,e){var C,I=c(A),i=Ag(I.length),o=Cg(e,i);if(g&&t!=t){for(;i>o;)if((C=I[o++])!=C)return!0}else for(;i>o;o++)if((g||o in I)&&I[o]===t)return g||o||0;return!g&&-1}},ig={includes:Ig(!0),indexOf:Ig(!1)},og={},ng=ig.indexOf,rg=function(g,A){var t,e=c(g),C=0,I=[];for(t in e)!v(og,t)&&v(e,t)&&I.push(t);for(;A.length>C;)v(e,t=A[C++])&&(~ng(I,t)||I.push(t));return I},sg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ag=Object.keys||function(g){return rg(g,sg)},dg={f:Object.getOwnPropertySymbols},hg=function(g){return Object(l(g))},lg=Object.assign,cg=Object.defineProperty,ug=!lg||C((function(){if(I&&1!==lg({b:1},lg(cg({},"a",{enumerable:!0,get:function(){cg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},A={},t=Symbol(),e="abcdefghijklmnopqrst";return g[t]=7,e.split("").forEach((function(g){A[g]=g})),7!=lg({},g)[t]||ag(lg({},A)).join("")!=e}))?function(g,A){for(var t=hg(g),e=arguments.length,C=1,i=dg.f,o=n.f;e>C;)for(var r,s=h(arguments[C++]),a=i?ag(s).concat(i(s)):ag(s),d=a.length,l=0;d>l;)r=a[l++],I&&!o.call(s,r)||(t[r]=s[r]);return t}:lg;V({target:"Object",stat:!0,forced:Object.assign!==ug},{assign:ug});var pg=M.Object.assign;function fg(g,A,t,e){g.beginPath(),g.arc(A,t,e,0,2*Math.PI,!1),g.closePath()}function vg(g,A,t,e,C,I){var i=Math.PI/180;e-2*I<0&&(I=e/2),C-2*I<0&&(I=C/2),g.beginPath(),g.moveTo(A+I,t),g.lineTo(A+e-I,t),g.arc(A+e-I,t+I,I,270*i,360*i,!1),g.lineTo(A+e,t+C-I),g.arc(A+e-I,t+C-I,I,0,90*i,!1),g.lineTo(A+I,t+C),g.arc(A+I,t+C-I,I,90*i,180*i,!1),g.lineTo(A,t+I),g.arc(A+I,t+I,I,180*i,270*i,!1),g.closePath()}function yg(g,A,t,e,C){var I=.5522848,i=e/2*I,o=C/2*I,n=A+e,r=t+C,s=A+e/2,a=t+C/2;g.beginPath(),g.moveTo(A,a),g.bezierCurveTo(A,a-o,s-i,t,s,t),g.bezierCurveTo(s+i,t,n,a-o,n,a),g.bezierCurveTo(n,a+o,s+i,r,s,r),g.bezierCurveTo(s-i,r,A,a+o,A,a),g.closePath()}function mg(g,A,t,e,C){var I=C*(1/3),i=.5522848,o=e/2*i,n=I/2*i,r=A+e,s=t+I,a=A+e/2,d=t+I/2,h=t+(C-I/2),l=t+C;g.beginPath(),g.moveTo(r,d),g.bezierCurveTo(r,d+n,a+o,s,a,s),g.bezierCurveTo(a-o,s,A,d+n,A,d),g.bezierCurveTo(A,d-n,a-o,t,a,t),g.bezierCurveTo(a+o,t,r,d-n,r,d),g.lineTo(r,h),g.bezierCurveTo(r,h+n,a+o,l,a,l),g.bezierCurveTo(a-o,l,A,h+n,A,h),g.lineTo(A,d)}function bg(g,A,t,e,C,I){g.beginPath(),g.moveTo(A,t);for(var i=I.length,o=e-A,n=C-t,r=n/o,s=Math.sqrt(o*o+n*n),a=0,d=!0,h=0,l=+I[0];s>=.1;)(l=+I[a++%i])>s&&(l=s),h=Math.sqrt(l*l/(1+r*r)),A+=h=o<0?-h:h,t+=r*h,!0===d?g.lineTo(A,t):g.moveTo(A,t),s-=l,d=!d}var wg={circle:fg,dashedLine:bg,database:mg,diamond:function(g,A,t,e){g.beginPath(),g.lineTo(A,t+e),g.lineTo(A+e,t),g.lineTo(A,t-e),g.lineTo(A-e,t),g.closePath()},ellipse:yg,ellipse_vis:yg,hexagon:function(g,A,t,e){g.beginPath();var C=2*Math.PI/6;g.moveTo(A+e,t);for(var I=1;I<6;I++)g.lineTo(A+e*Math.cos(C*I),t+e*Math.sin(C*I));g.closePath()},roundRect:vg,square:function(g,A,t,e){g.beginPath(),g.rect(A-e,t-e,2*e,2*e),g.closePath()},star:function(g,A,t,e){g.beginPath(),t+=.1*(e*=.82);for(var C=0;C<10;C++){var I=C%2==0?1.3*e:.5*e;g.lineTo(A+I*Math.sin(2*C*Math.PI/10),t-I*Math.cos(2*C*Math.PI/10))}g.closePath()},triangle:function(g,A,t,e){g.beginPath(),t+=.275*(e*=1.15);var C=2*e,I=C/2,i=Math.sqrt(3)/6*C,o=Math.sqrt(C*C-I*I);g.moveTo(A,t-(o-i)),g.lineTo(A+I,t+i),g.lineTo(A-I,t+i),g.lineTo(A,t-(o-i)),g.closePath()},triangleDown:function(g,A,t,e){g.beginPath(),t-=.275*(e*=1.15);var C=2*e,I=C/2,i=Math.sqrt(3)/6*C,o=Math.sqrt(C*C-I*I);g.moveTo(A,t+(o-i)),g.lineTo(A+I,t-i),g.lineTo(A-I,t-i),g.lineTo(A,t+(o-i)),g.closePath()}};var kg=A((function(g){function A(g){if(g)return function(g){for(var t in A.prototype)g[t]=A.prototype[t];return g}(g)}g.exports=A,A.prototype.on=A.prototype.addEventListener=function(g,A){return this._callbacks=this._callbacks||{},(this._callbacks["$"+g]=this._callbacks["$"+g]||[]).push(A),this},A.prototype.once=function(g,A){function t(){this.off(g,t),A.apply(this,arguments)}return t.fn=A,this.on(g,t),this},A.prototype.off=A.prototype.removeListener=A.prototype.removeAllListeners=A.prototype.removeEventListener=function(g,A){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var t,e=this._callbacks["$"+g];if(!e)return this;if(1==arguments.length)return delete this._callbacks["$"+g],this;for(var C=0;C<e.length;C++)if((t=e[C])===A||t.fn===A){e.splice(C,1);break}return 0===e.length&&delete this._callbacks["$"+g],this},A.prototype.emit=function(g){this._callbacks=this._callbacks||{};for(var A=new Array(arguments.length-1),t=this._callbacks["$"+g],e=1;e<arguments.length;e++)A[e-1]=arguments[e];if(t){e=0;for(var C=(t=t.slice(0)).length;e<C;++e)t[e].apply(this,A)}return this},A.prototype.listeners=function(g){return this._callbacks=this._callbacks||{},this._callbacks["$"+g]||[]},A.prototype.hasListeners=function(g){return!!this.listeners(g).length}}));V({target:"Object",stat:!0,forced:!I,sham:!I},{defineProperty:F.f});var xg=A((function(g){var A=M.Object,t=g.exports=function(g,t,e){return A.defineProperty(g,t,e)};A.defineProperty.sham&&(t.sham=!0)})),Eg=xg,Og=I?Object.defineProperties:function(g,A){Z(g);for(var t,e=ag(A),C=e.length,I=0;C>I;)F.f(g,t=e[I++],A[t]);return g};V({target:"Object",stat:!0,forced:!I,sham:!I},{defineProperties:Og});var Tg=A((function(g){var A=M.Object,t=g.exports=function(g,t){return A.defineProperties(g,t)};A.defineProperties.sham&&(t.sham=!0)})),Dg=function(g){return"function"==typeof g?g:void 0},Ng=function(g,A){return arguments.length<2?Dg(M[g])||Dg(e[g]):M[g]&&M[g][A]||e[g]&&e[g][A]},Rg=sg.concat("length","prototype"),Pg={f:Object.getOwnPropertyNames||function(g){return rg(g,Rg)}},Mg=Ng("Reflect","ownKeys")||function(g){var A=Pg.f(Z(g)),t=dg.f;return t?A.concat(t(g)):A},zg=function(g,A,t){var e=p(A);e in g?F.f(g,e,r(0,t)):g[e]=t};V({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(g){for(var A,t,e=c(g),C=x.f,I=Mg(e),i={},o=0;I.length>o;)void 0!==(t=C(e,A=I[o++]))&&zg(i,A,t);return i}});var Sg=M.Object.getOwnPropertyDescriptors,Zg=x.f,Bg=C((function(){Zg(1)}));V({target:"Object",stat:!0,forced:!I||Bg,sham:!I},{getOwnPropertyDescriptor:function(g,A){return Zg(c(g),A)}});var Fg,Gg=A((function(g){var A=M.Object,t=g.exports=function(g,t){return A.getOwnPropertyDescriptor(g,t)};A.getOwnPropertyDescriptor.sham&&(t.sham=!0)})),Lg=Gg,jg=!!Object.getOwnPropertySymbols&&!C((function(){return!String(Symbol())})),Vg=jg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yg=Array.isArray||function(g){return"Array"==a(g)},Wg=Ng("document","documentElement"),Hg=e["__core-js_shared__"]||function(g,A){try{G(e,g,A)}catch(t){e[g]=A}return A}("__core-js_shared__",{}),Qg=A((function(g){(g.exports=function(g,A){return Hg[g]||(Hg[g]=void 0!==A?A:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ug=0,Kg=Math.random(),_g=function(g){return"Symbol("+String(void 0===g?"":g)+")_"+(++Ug+Kg).toString(36)},Xg=Qg("keys"),Jg=function(g){return Xg[g]||(Xg[g]=_g(g))},qg=Jg("IE_PROTO"),$g=function(){},gA=function(g){return"<script>"+g+"<\/script>"},AA=function(){try{Fg=document.domain&&new ActiveXObject("htmlfile")}catch(g){}var g,A;AA=Fg?function(g){g.write(gA("")),g.close();var A=g.parentWindow.Object;return g=null,A}(Fg):((A=b("iframe")).style.display="none",Wg.appendChild(A),A.src=String("javascript:"),(g=A.contentWindow.document).open(),g.write(gA("document.F=Object")),g.close(),g.F);for(var t=sg.length;t--;)delete AA.prototype[sg[t]];return AA()};og[qg]=!0;var tA=Object.create||function(g,A){var t;return null!==g?($g.prototype=Z(g),t=new $g,$g.prototype=null,t[qg]=g):t=AA(),void 0===A?t:Og(t,A)},eA=Pg.f,CA={}.toString,IA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iA={f:function(g){return IA&&"[object Window]"==CA.call(g)?function(g){try{return eA(g)}catch(g){return IA.slice()}}(g):eA(c(g))}},oA=function(g,A,t,e){e&&e.enumerable?g[A]=t:G(g,A,t)},nA=Qg("wks"),rA=e.Symbol,sA=Vg?rA:rA&&rA.withoutSetter||_g,aA=function(g){return v(nA,g)||(jg&&v(rA,g)?nA[g]=rA[g]:nA[g]=sA("Symbol."+g)),nA[g]},dA={f:aA},hA=F.f,lA=function(g){var A=M.Symbol||(M.Symbol={});v(A,g)||hA(A,g,{value:dA.f(g)})},cA={};cA[aA("toStringTag")]="z";var uA="[object z]"===String(cA),pA=aA("toStringTag"),fA="Arguments"==a(function(){return arguments}()),vA=uA?a:function(g){var A,t,e;return void 0===g?"Undefined":null===g?"Null":"string"==typeof(t=function(g,A){try{return g[A]}catch(g){}}(A=Object(g),pA))?t:fA?a(A):"Object"==(e=a(A))&&"function"==typeof A.callee?"Arguments":e},yA=uA?{}.toString:function(){return"[object "+vA(this)+"]"},mA=F.f,bA=aA("toStringTag"),wA=function(g,A,t,e){if(g){var C=t?g:g.prototype;v(C,bA)||mA(C,bA,{configurable:!0,value:A}),e&&!uA&&G(C,"toString",yA)}},kA=Function.toString;"function"!=typeof Hg.inspectSource&&(Hg.inspectSource=function(g){return kA.call(g)});var xA,EA,OA,TA=Hg.inspectSource,DA=e.WeakMap,NA="function"==typeof DA&&/native code/.test(TA(DA)),RA=e.WeakMap;if(NA){var PA=Hg.state||(Hg.state=new RA),MA=PA.get,zA=PA.has,SA=PA.set;xA=function(g,A){return A.facade=g,SA.call(PA,g,A),A},EA=function(g){return MA.call(PA,g)||{}},OA=function(g){return zA.call(PA,g)}}else{var ZA=Jg("state");og[ZA]=!0,xA=function(g,A){return A.facade=g,G(g,ZA,A),A},EA=function(g){return v(g,ZA)?g[ZA]:{}},OA=function(g){return v(g,ZA)}}var BA={set:xA,get:EA,has:OA,enforce:function(g){return OA(g)?EA(g):xA(g,{})},getterFor:function(g){return function(A){var t;if(!u(A)||(t=EA(A)).type!==g)throw TypeError("Incompatible receiver, "+g+" required");return t}}},FA=aA("species"),GA=function(g,A){var t;return Yg(g)&&("function"!=typeof(t=g.constructor)||t!==Array&&!Yg(t.prototype)?u(t)&&null===(t=t[FA])&&(t=void 0):t=void 0),new(void 0===t?Array:t)(0===A?0:A)},LA=[].push,jA=function(g){var A=1==g,t=2==g,e=3==g,C=4==g,I=6==g,i=5==g||I;return function(o,n,r,s){for(var a,d,l=hg(o),c=h(l),u=S(n,r,3),p=Ag(c.length),f=0,v=s||GA,y=A?v(o,p):t?v(o,0):void 0;p>f;f++)if((i||f in c)&&(d=u(a=c[f],f,l),g))if(A)y[f]=d;else if(d)switch(g){case 3:return!0;case 5:return a;case 6:return f;case 2:LA.call(y,a)}else if(C)return!1;return I?-1:e||C?C:y}},VA={forEach:jA(0),map:jA(1),filter:jA(2),some:jA(3),every:jA(4),find:jA(5),findIndex:jA(6)},YA=VA.forEach,WA=Jg("hidden"),HA=aA("toPrimitive"),QA=BA.set,UA=BA.getterFor("Symbol"),KA=Object.prototype,_A=e.Symbol,XA=Ng("JSON","stringify"),JA=x.f,qA=F.f,$A=iA.f,gt=n.f,At=Qg("symbols"),tt=Qg("op-symbols"),et=Qg("string-to-symbol-registry"),Ct=Qg("symbol-to-string-registry"),It=Qg("wks"),it=e.QObject,ot=!it||!it.prototype||!it.prototype.findChild,nt=I&&C((function(){return 7!=tA(qA({},"a",{get:function(){return qA(this,"a",{value:7}).a}})).a}))?function(g,A,t){var e=JA(KA,A);e&&delete KA[A],qA(g,A,t),e&&g!==KA&&qA(KA,A,e)}:qA,rt=function(g,A){var t=At[g]=tA(_A.prototype);return QA(t,{type:"Symbol",tag:g,description:A}),I||(t.description=A),t},st=Vg?function(g){return"symbol"==typeof g}:function(g){return Object(g)instanceof _A},at=function(g,A,t){g===KA&&at(tt,A,t),Z(g);var e=p(A,!0);return Z(t),v(At,e)?(t.enumerable?(v(g,WA)&&g[WA][e]&&(g[WA][e]=!1),t=tA(t,{enumerable:r(0,!1)})):(v(g,WA)||qA(g,WA,r(1,{})),g[WA][e]=!0),nt(g,e,t)):qA(g,e,t)},dt=function(g,A){Z(g);var t=c(A),e=ag(t).concat(ut(t));return YA(e,(function(A){I&&!ht.call(t,A)||at(g,A,t[A])})),g},ht=function(g){var A=p(g,!0),t=gt.call(this,A);return!(this===KA&&v(At,A)&&!v(tt,A))&&(!(t||!v(this,A)||!v(At,A)||v(this,WA)&&this[WA][A])||t)},lt=function(g,A){var t=c(g),e=p(A,!0);if(t!==KA||!v(At,e)||v(tt,e)){var C=JA(t,e);return!C||!v(At,e)||v(t,WA)&&t[WA][e]||(C.enumerable=!0),C}},ct=function(g){var A=$A(c(g)),t=[];return YA(A,(function(g){v(At,g)||v(og,g)||t.push(g)})),t},ut=function(g){var A=g===KA,t=$A(A?tt:c(g)),e=[];return YA(t,(function(g){!v(At,g)||A&&!v(KA,g)||e.push(At[g])})),e};if(jg||(oA((_A=function(){if(this instanceof _A)throw TypeError("Symbol is not a constructor");var g=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,A=_g(g),t=function(g){this===KA&&t.call(tt,g),v(this,WA)&&v(this[WA],A)&&(this[WA][A]=!1),nt(this,A,r(1,g))};return I&&ot&&nt(KA,A,{configurable:!0,set:t}),rt(A,g)}).prototype,"toString",(function(){return UA(this).tag})),oA(_A,"withoutSetter",(function(g){return rt(_g(g),g)})),n.f=ht,F.f=at,x.f=lt,Pg.f=iA.f=ct,dg.f=ut,dA.f=function(g){return rt(aA(g),g)},I&&qA(_A.prototype,"description",{configurable:!0,get:function(){return UA(this).description}})),V({global:!0,wrap:!0,forced:!jg,sham:!jg},{Symbol:_A}),YA(ag(It),(function(g){lA(g)})),V({target:"Symbol",stat:!0,forced:!jg},{for:function(g){var A=String(g);if(v(et,A))return et[A];var t=_A(A);return et[A]=t,Ct[t]=A,t},keyFor:function(g){if(!st(g))throw TypeError(g+" is not a symbol");if(v(Ct,g))return Ct[g]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),V({target:"Object",stat:!0,forced:!jg,sham:!I},{create:function(g,A){return void 0===A?tA(g):dt(tA(g),A)},defineProperty:at,defineProperties:dt,getOwnPropertyDescriptor:lt}),V({target:"Object",stat:!0,forced:!jg},{getOwnPropertyNames:ct,getOwnPropertySymbols:ut}),V({target:"Object",stat:!0,forced:C((function(){dg.f(1)}))},{getOwnPropertySymbols:function(g){return dg.f(hg(g))}}),XA){var pt=!jg||C((function(){var g=_A();return"[null]"!=XA([g])||"{}"!=XA({a:g})||"{}"!=XA(Object(g))}));V({target:"JSON",stat:!0,forced:pt},{stringify:function(g,A,t){for(var e,C=[g],I=1;arguments.length>I;)C.push(arguments[I++]);if(e=A,(u(A)||void 0!==g)&&!st(g))return Yg(A)||(A=function(g,A){if("function"==typeof e&&(A=e.call(this,g,A)),!st(A))return A}),C[1]=A,XA.apply(null,C)}})}_A.prototype[HA]||G(_A.prototype,HA,_A.prototype.valueOf),wA(_A,"Symbol"),og[WA]=!0;var ft,vt,yt,mt=M.Object.getOwnPropertySymbols,bt={},wt=!C((function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype})),kt=Jg("IE_PROTO"),xt=Object.prototype,Et=wt?Object.getPrototypeOf:function(g){return g=hg(g),v(g,kt)?g[kt]:"function"==typeof g.constructor&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?xt:null},Ot=(aA("iterator"),!1);[].keys&&("next"in(yt=[].keys())?(vt=Et(Et(yt)))!==Object.prototype&&(ft=vt):Ot=!0),null==ft&&(ft={});var Tt={IteratorPrototype:ft,BUGGY_SAFARI_ITERATORS:Ot},Dt=Tt.IteratorPrototype,Nt=function(){return this},Rt=Object.setPrototypeOf||("__proto__"in{}?function(){var g,A=!1,t={};try{(g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),A=t instanceof Array}catch(g){}return function(t,e){return Z(t),function(g){if(!u(g)&&null!==g)throw TypeError("Can't set "+String(g)+" as a prototype")}(e),A?g.call(t,e):t.__proto__=e,t}}():void 0),Pt=Tt.IteratorPrototype,Mt=Tt.BUGGY_SAFARI_ITERATORS,zt=aA("iterator"),St=function(){return this},Zt=function(g,A,t,e,C,I,i){!function(g,A,t){var e=A+" Iterator";g.prototype=tA(Dt,{next:r(1,t)}),wA(g,e,!1,!0),bt[e]=Nt}(t,A,e);var o,n,s,a=function(g){if(g===C&&u)return u;if(!Mt&&g in l)return l[g];switch(g){case"keys":case"values":case"entries":return function(){return new t(this,g)}}return function(){return new t(this)}},d=A+" Iterator",h=!1,l=g.prototype,c=l[zt]||l["@@iterator"]||C&&l[C],u=!Mt&&c||a(C),p="Array"==A&&l.entries||c;if(p&&(o=Et(p.call(new g)),Pt!==Object.prototype&&o.next&&(wA(o,d,!0,!0),bt[d]=St)),"values"==C&&c&&"values"!==c.name&&(h=!0,u=function(){return c.call(this)}),i&&l[zt]!==u&&G(l,zt,u),bt[A]=u,C)if(n={values:a("values"),keys:I?u:a("keys"),entries:a("entries")},i)for(s in n)(Mt||h||!(s in l))&&oA(l,s,n[s]);else V({target:A,proto:!0,forced:Mt||h},n);return n},Bt=BA.set,Ft=BA.getterFor("Array Iterator");Zt(Array,"Array",(function(g,A){Bt(this,{type:"Array Iterator",target:c(g),index:0,kind:A})}),(function(){var g=Ft(this),A=g.target,t=g.kind,e=g.index++;return!A||e>=A.length?(g.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:e,done:!1}:"values"==t?{value:A[e],done:!1}:{value:[e,A[e]],done:!1}}),"values");bt.Arguments=bt.Array;var Gt=aA("toStringTag");for(var Lt in{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}){var jt=e[Lt],Vt=jt&&jt.prototype;Vt&&vA(Vt)!==Gt&&G(Vt,Gt,Lt),bt[Lt]=bt.Array}var Yt=function(g){return function(A,t){var e,C,I=String(l(A)),i=$(t),o=I.length;return i<0||i>=o?g?"":void 0:(e=I.charCodeAt(i))<55296||e>56319||i+1===o||(C=I.charCodeAt(i+1))<56320||C>57343?g?I.charAt(i):e:g?I.slice(i,i+2):C-56320+(e-55296<<10)+65536}},Wt={codeAt:Yt(!1),charAt:Yt(!0)}.charAt,Ht=BA.set,Qt=BA.getterFor("String Iterator");Zt(String,"String",(function(g){Ht(this,{type:"String Iterator",string:String(g),index:0})}),(function(){var g,A=Qt(this),t=A.string,e=A.index;return e>=t.length?{value:void 0,done:!0}:(g=Wt(t,e),A.index+=g.length,{value:g,done:!1})}));var Ut=aA("iterator"),Kt=function(g){if(null!=g)return g[Ut]||g["@@iterator"]||bt[vA(g)]},_t=function(g){var A=Kt(g);if("function"!=typeof A)throw TypeError(String(g)+" is not iterable");return Z(A.call(g))},Xt=Kt,Jt=function(g){var A=g.return;if(void 0!==A)return Z(A.call(g)).value},qt=function(g,A,t,e){try{return e?A(Z(t)[0],t[1]):A(t)}catch(A){throw Jt(g),A}},$t=aA("iterator"),ge=Array.prototype,Ae=function(g){return void 0!==g&&(bt.Array===g||ge[$t]===g)},te=aA("iterator"),ee=!1;try{var Ce=0,Ie={next:function(){return{done:!!Ce++}},return:function(){ee=!0}};Ie[te]=function(){return this},Array.from(Ie,(function(){throw 2}))}catch(g){}var ie=!function(g,A){if(!A&&!ee)return!1;var t=!1;try{var e={};e[te]=function(){return{next:function(){return{done:t=!0}}}},g(e)}catch(g){}return t}((function(g){Array.from(g)}));V({target:"Array",stat:!0,forced:ie},{from:function(g){var A,t,e,C,I,i,o=hg(g),n="function"==typeof this?this:Array,r=arguments.length,s=r>1?arguments[1]:void 0,a=void 0!==s,d=Kt(o),h=0;if(a&&(s=S(s,r>2?arguments[2]:void 0,2)),null==d||n==Array&&Ae(d))for(t=new n(A=Ag(o.length));A>h;h++)i=a?s(o[h],h):o[h],zg(t,h,i);else for(I=(C=d.call(o)).next,t=new n;!(e=I.call(C)).done;h++)i=a?qt(C,s,[e.value,h],!0):e.value,zg(t,h,i);return t.length=h,t}});var oe=M.Array.from,ne=oe;V({target:"Object",stat:!0,sham:!I},{create:tA});var re=M.Object,se=function(g,A){return re.create(g,A)},ae=se,de=xg;var he,le=function(g,A,t){return A in g?de(g,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):g[A]=t,g},ce="\t\n\v\f\r \u2028\u2029\ufeff",ue="["+ce+"]",pe=RegExp("^"+ue+ue+"*"),fe=RegExp(ue+ue+"*$"),ve=function(g){return function(A){var t=String(l(A));return 1&g&&(t=t.replace(pe,"")),2&g&&(t=t.replace(fe,"")),t}},ye={start:ve(1),end:ve(2),trim:ve(3)},me=ye.trim;V({target:"String",proto:!0,forced:(he="trim",C((function(){return!!ce[he]()||"
"!="
"[he]()||ce[he].name!==he})))},{trim:function(){return me(this)}});U("String").trim;var be=function(g,A){var t=[][g];return!!t&&C((function(){t.call(null,A||function(){throw 1},1)}))},we=Object.defineProperty,ke={},xe=function(g){throw g},Ee=function(g,A){if(v(ke,g))return ke[g];A||(A={});var t=[][g],e=!!v(A,"ACCESSORS")&&A.ACCESSORS,i=v(A,0)?A[0]:xe,o=v(A,1)?A[1]:void 0;return ke[g]=!!t&&!C((function(){if(e&&!I)return!0;var g={length:-1};e?we(g,1,{enumerable:!0,get:xe}):g[1]=1,t.call(g,i,o)}))},Oe=VA.forEach,Te=be("forEach"),De=Ee("forEach"),Ne=Te&&De?[].forEach:function(g){return Oe(this,g,arguments.length>1?arguments[1]:void 0)};V({target:"Array",proto:!0,forced:[].forEach!=Ne},{forEach:Ne});var Re=U("Array").forEach,Pe=Array.prototype,Me={DOMTokenList:!0,NodeList:!0},ze=function(g){var A=g.forEach;return g===Pe||g instanceof Array&&A===Pe.forEach||Me.hasOwnProperty(vA(g))?Re:A},Se=ye.trim,Ze=e.parseInt,Be=/^[+-]?0[Xx]/,Fe=8!==Ze(ce+"08")||22!==Ze(ce+"0x16")?function(g,A){var t=Se(String(g));return Ze(t,A>>>0||(Be.test(t)?16:10))}:Ze;V({global:!0,forced:parseInt!=Fe},{parseInt:Fe});var Ge=M.parseInt,Le=n.f,je=function(g){return function(A){for(var t,e=c(A),C=ag(e),i=C.length,o=0,n=[];i>o;)t=C[o++],I&&!Le.call(e,t)||n.push(g?[t,e[t]]:e[t]);return n}},Ve={entries:je(!0),values:je(!1)}.values;V({target:"Object",stat:!0},{values:function(g){return Ve(g)}});M.Object.values;var Ye,We,He=Ng("navigator","userAgent")||"",Qe=e.process,Ue=Qe&&Qe.versions,Ke=Ue&&Ue.v8;Ke?We=(Ye=Ke.split("."))[0]+Ye[1]:He&&(!(Ye=He.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=He.match(/Chrome\/(\d+)/))&&(We=Ye[1]);var _e=We&&+We,Xe=aA("species"),Je=function(g){return _e>=51||!C((function(){var A=[];return(A.constructor={})[Xe]=function(){return{foo:1}},1!==A[g](Boolean).foo}))},qe=VA.filter,$e=Je("filter"),gC=Ee("filter");V({target:"Array",proto:!0,forced:!$e||!gC},{filter:function(g){return qe(this,g,arguments.length>1?arguments[1]:void 0)}});var AC=U("Array").filter,tC=Array.prototype,eC=function(g){var A=g.filter;return g===tC||g instanceof Array&&A===tC.filter?AC:A},CC=C((function(){Et(1)}));V({target:"Object",stat:!0,forced:CC,sham:!wt},{getPrototypeOf:function(g){return Et(hg(g))}});var IC=M.Object.getPrototypeOf,iC=IC,oC=ig.indexOf,nC=[].indexOf,rC=!!nC&&1/[1].indexOf(1,-0)<0,sC=be("indexOf"),aC=Ee("indexOf",{ACCESSORS:!0,1:0});V({target:"Array",proto:!0,forced:rC||!sC||!aC},{indexOf:function(g){return rC?nC.apply(this,arguments)||0:oC(this,g,arguments.length>1?arguments[1]:void 0)}});var dC=U("Array").indexOf,hC=Array.prototype,lC=function(g){var A=g.indexOf;return g===hC||g instanceof Array&&A===hC.indexOf?dC:A};V({target:"Array",stat:!0},{isArray:Yg});var cC=M.Array.isArray,uC=cC;var pC=function(g){if(uC(g))return g},fC=aA("iterator"),vC=function(g){var A=Object(g);return void 0!==A[fC]||"@@iterator"in A||bt.hasOwnProperty(vA(A))},yC=aA("isConcatSpreadable"),mC=_e>=51||!C((function(){var g=[];return g[yC]=!1,g.concat()[0]!==g})),bC=Je("concat"),wC=function(g){if(!u(g))return!1;var A=g[yC];return void 0!==A?!!A:Yg(g)};V({target:"Array",proto:!0,forced:!mC||!bC},{concat:function(g){var A,t,e,C,I,i=hg(this),o=GA(i,0),n=0;for(A=-1,e=arguments.length;A<e;A++)if(wC(I=-1===A?i:arguments[A])){if(n+(C=Ag(I.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(t=0;t<C;t++,n++)t in I&&zg(o,n,I[t])}else{if(n>=9007199254740991)throw TypeError("Maximum allowed index exceeded");zg(o,n++,I)}return o.length=n,o}}),lA("asyncIterator"),lA("hasInstance"),lA("isConcatSpreadable"),lA("iterator"),lA("match"),lA("matchAll"),lA("replace"),lA("search"),lA("species"),lA("split"),lA("toPrimitive"),lA("toStringTag"),lA("unscopables"),wA(e.JSON,"JSON",!0);var kC=M.Symbol;lA("asyncDispose"),lA("dispose"),lA("observable"),lA("patternMatch"),lA("replaceAll");var xC=kC;var EC=function(g,A){if(void 0!==xC&&vC(Object(g))){var t=[],e=!0,C=!1,I=void 0;try{for(var i,o=_t(g);!(e=(i=o.next()).done)&&(t.push(i.value),!A||t.length!==A);e=!0);}catch(g){C=!0,I=g}finally{try{e||null==o.return||o.return()}finally{if(C)throw I}}return t}},OC=oe,TC=Je("slice"),DC=Ee("slice",{ACCESSORS:!0,0:0,1:2}),NC=aA("species"),RC=[].slice,PC=Math.max;V({target:"Array",proto:!0,forced:!TC||!DC},{slice:function(g,A){var t,e,C,I=c(this),i=Ag(I.length),o=Cg(g,i),n=Cg(void 0===A?i:A,i);if(Yg(I)&&("function"!=typeof(t=I.constructor)||t!==Array&&!Yg(t.prototype)?u(t)&&null===(t=t[NC])&&(t=void 0):t=void 0,t===Array||void 0===t))return RC.call(I,o,n);for(e=new(void 0===t?Array:t)(PC(n-o,0)),C=0;o<n;o++,C++)o in I&&zg(e,C,I[o]);return e.length=C,e}});var MC=U("Array").slice,zC=Array.prototype,SC=function(g){var A=g.slice;return g===zC||g instanceof Array&&A===zC.slice?MC:A},ZC=SC;var BC=function(g,A){(null==A||A>g.length)&&(A=g.length);for(var t=0,e=new Array(A);t<A;t++)e[t]=g[t];return e};var FC=function(g,A){var t;if(g){if("string"==typeof g)return BC(g,A);var e=ZC(t=Object.prototype.toString.call(g)).call(t,8,-1);return"Object"===e&&g.constructor&&(e=g.constructor.name),"Map"===e||"Set"===e?OC(g):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?BC(g,A):void 0}};var GC=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var LC=function(g,A){return pC(g)||EC(g,A)||FC(g,A)||GC()};V({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var jC=M.Date.now,VC=C((function(){ag(1)}));V({target:"Object",stat:!0,forced:VC},{keys:function(g){return ag(hg(g))}});var YC=M.Object.keys,WC=VA.map,HC=Je("map"),QC=Ee("map");V({target:"Array",proto:!0,forced:!HC||!QC},{map:function(g){return WC(this,g,arguments.length>1?arguments[1]:void 0)}});var UC=U("Array").map,KC=Array.prototype,_C=function(g){var A=g.map;return g===KC||g instanceof Array&&A===KC.map?UC:A},XC=cC,JC=dA.f("iterator"),qC=JC,$C=A((function(g){function A(t){return g.exports=A="function"==typeof xC&&"symbol"==typeof qC?function(g){return typeof g}:function(g){return g&&"function"==typeof xC&&g.constructor===xC&&g!==xC.prototype?"symbol":typeof g},A(t)}g.exports=A}));V({target:"Reflect",stat:!0},{ownKeys:Mg});var gI=M.Reflect.ownKeys,AI=SC;var tI=function(g){if(uC(g))return BC(g)};var eI=function(g){if(void 0!==xC&&vC(Object(g)))return OC(g)};var CI=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var II=function(g){return tI(g)||eI(g)||FC(g)||CI()},iI=U("Array").concat,oI=Array.prototype,nI=function(g){var A=g.concat;return g===oI||g instanceof Array&&A===oI.concat?iI:A},rI=kC;function sI(g,A){var t;if(void 0===rI||null==Xt(g)){if(XC(g)||(t=function(g,A){var t;if(!g)return;if("string"==typeof g)return aI(g,A);var e=AI(t=Object.prototype.toString.call(g)).call(t,8,-1);"Object"===e&&g.constructor&&(e=g.constructor.name);if("Map"===e||"Set"===e)return ne(g);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return aI(g,A)}(g))||A&&g&&"number"==typeof g.length){t&&(g=t);var e=0,C=function(){};return{s:C,n:function(){return e>=g.length?{done:!0}:{done:!1,value:g[e++]}},e:function(g){throw g},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var I,i=!0,o=!1;return{s:function(){t=_t(g)},n:function(){var g=t.next();return i=g.done,g},e:function(g){o=!0,I=g},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw I}}}}function aI(g,A){(null==A||A>g.length)&&(A=g.length);for(var t=0,e=new Array(A);t<A;t++)e[t]=g[t];return e}
/**
* vis-util
* https://github.com/visjs/vis-util
*
* utilitie collection for visjs
*
* @version 4.3.4
* @date 2020-08-01T15:11:53.524Z
*
* @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 dI=rI("DELETE");function hI(){var g=lI.apply(void 0,arguments);return uI(g),g}function lI(){for(var g=arguments.length,A=new Array(g),t=0;t<g;t++)A[t]=arguments[t];if(A.length<2)return A[0];var e;if(A.length>2)return lI.apply(void 0,nI(e=[hI(A[0],A[1])]).call(e,II(AI(A).call(A,2))));var C,I=A[0],i=A[1],o=sI(gI(i));try{for(o.s();!(C=o.n()).done;){var n=C.value;Object.prototype.propertyIsEnumerable.call(i,n)&&(i[n]===dI?delete I[n]:null===I[n]||null===i[n]||"object"!==$C(I[n])||"object"!==$C(i[n])||XC(I[n])||XC(i[n])?I[n]=cI(i[n]):I[n]=lI(I[n],i[n]))}}catch(g){o.e(g)}finally{o.f()}return I}function cI(g){return XC(g)?_C(g).call(g,(function(g){return cI(g)})):"object"===$C(g)&&null!==g?lI({},g):g}function uI(g){for(var A=0,t=YC(g);A<t.length;A++){var e=t[A];g[e]===dI?delete g[e]:"object"===$C(g[e])&&null!==g[e]&&uI(g[e])}}function pI(){for(var g=arguments.length,A=new Array(g),t=0;t<g;t++)A[t]=arguments[t];return fI(A.length?A:[jC()])}function fI(g){var A=function(){for(var g=vI(),A=g(" "),t=g(" "),e=g(" "),C=0;C<arguments.length;C++)(A-=g(C<0||arguments.length<=C?void 0:arguments[C]))<0&&(A+=1),(t-=g(C<0||arguments.length<=C?void 0:arguments[C]))<0&&(t+=1),(e-=g(C<0||arguments.length<=C?void 0:arguments[C]))<0&&(e+=1);return[A,t,e]}(g),t=LC(A,3),e=t[0],C=t[1],I=t[2],i=1,o=function(){var g=2091639*e+2.3283064365386963e-10*i;return e=C,C=I,I=g-(i=0|g)};return o.uint32=function(){return 4294967296*o()},o.fract53=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.algorithm="Alea",o.seed=g,o.version="0.9",o}function vI(){var g=4022871197;return function(A){for(var t=A.toString(),e=0;e<t.length;e++){var C=.02519603282416938*(g+=t.charCodeAt(e));C-=g=C>>>0,g=(C*=g)>>>0,g+=4294967296*(C-=g)}return 2.3283064365386963e-10*(g>>>0)}}var yI=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,mI=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,bI=/^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,wI=/^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 kI(g){if(g)for(;!0===g.hasChildNodes();){var A=g.firstChild;A&&(kI(A),g.removeChild(A))}}function xI(g){return g instanceof String||"string"==typeof g}function EI(g){return"object"===$C(g)&&null!==g}function OI(g,A,t,e){var C=!1;!0===e&&(C=null===A[t]&&void 0!==g[t]),C?delete g[t]:g[t]=A[t]}function TI(g,A){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var e in g)if(void 0!==A[e])if(null===A[e]||"object"!==$C(A[e]))OI(g,A,e,t);else{var C=g[e],I=A[e];EI(C)&&EI(I)&&TI(C,I,t)}}function DI(g,A,t){var e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(XC(t))throw new TypeError("Arrays are not supported by deepExtend");for(var C=0;C<g.length;C++){var I=g[C];if(Object.prototype.hasOwnProperty.call(t,I))if(t[I]&&t[I].constructor===Object)void 0===A[I]&&(A[I]={}),A[I].constructor===Object?RI(A[I],t[I],!1,e):OI(A,t,I,e);else{if(XC(t[I]))throw new TypeError("Arrays are not supported by deepExtend");OI(A,t,I,e)}}return A}function NI(g,A,t){var e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(XC(t))throw new TypeError("Arrays are not supported by deepExtend");for(var C in t)if(Object.prototype.hasOwnProperty.call(t,C)&&-1===lC(g).call(g,C))if(t[C]&&t[C].constructor===Object)void 0===A[C]&&(A[C]={}),A[C].constructor===Object?RI(A[C],t[C]):OI(A,t,C,e);else if(XC(t[C])){A[C]=[];for(var I=0;I<t[C].length;I++)A[C].push(t[C][I])}else OI(A,t,C,e);return A}function RI(g,A){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var C in A)if(Object.prototype.hasOwnProperty.call(A,C)||!0===t)if("object"===$C(A[C])&&null!==A[C]&&iC(A[C])===Object.prototype)void 0===g[C]?g[C]=RI({},A[C],t):"object"===$C(g[C])&&null!==g[C]&&iC(g[C])===Object.prototype?RI(g[C],A[C],t):OI(g,A,C,e);else if(XC(A[C])){var I;g[C]=AI(I=A[C]).call(I)}else OI(g,A,C,e);return g}function PI(g,A){var t;return nI(t=[]).call(t,II(g),[A])}function MI(g){return AI(g).call(g)}function zI(g){return g.getBoundingClientRect().top}function SI(g,A){if(XC(g))for(var t=g.length,e=0;e<t;e++)A(g[e],e,g);else for(var C in g)Object.prototype.hasOwnProperty.call(g,C)&&A(g[C],C,g)}function ZI(g){var A;switch(g.length){case 3:case 4:return(A=mI.exec(g))?{r:Ge(A[1]+A[1],16),g:Ge(A[2]+A[2],16),b:Ge(A[3]+A[3],16)}:null;case 6:case 7:return(A=yI.exec(g))?{r:Ge(A[1],16),g:Ge(A[2],16),b:Ge(A[3],16)}:null;default:return null}}function BI(g,A){if(-1!==lC(g).call(g,"rgba"))return g;if(-1!==lC(g).call(g,"rgb")){var t=g.substr(lC(g).call(g,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+A+")"}var e=ZI(g);return null==e?g:"rgba("+e.r+","+e.g+","+e.b+","+A+")"}function FI(g,A,t){var e;return"#"+AI(e=((1<<24)+(g<<16)+(A<<8)+t).toString(16)).call(e,1)}function GI(g,A){if(xI(g)){var t=g;if(WI(t)){var e,C=_C(e=t.substr(4).substr(0,t.length-5).split(",")).call(e,(function(g){return Ge(g)}));t=FI(C[0],C[1],C[2])}if(!0===YI(t)){var I=function(g){var A=ZI(g);if(!A)throw new TypeError("'".concat(g,"' is not a valid color."));return LI(A.r,A.g,A.b)}(t),i={h:I.h,s:.8*I.s,v:Math.min(1,1.02*I.v)},o={h:I.h,s:Math.min(1,1.25*I.s),v:.8*I.v},n=VI(o.h,o.s,o.v),r=VI(i.h,i.s,i.v);return{background:t,border:n,highlight:{background:r,border:n},hover:{background:r,border:n}}}return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}return A?{background:g.background||A.background,border:g.border||A.border,highlight:xI(g.highlight)?{border:g.highlight,background:g.highlight}:{background:g.highlight&&g.highlight.background||A.highlight.background,border:g.highlight&&g.highlight.border||A.highlight.border},hover:xI(g.hover)?{border:g.hover,background:g.hover}:{border:g.hover&&g.hover.border||A.hover.border,background:g.hover&&g.hover.background||A.hover.background}}:{background:g.background||void 0,border:g.border||void 0,highlight:xI(g.highlight)?{border:g.highlight,background:g.highlight}:{background:g.highlight&&g.highlight.background||void 0,border:g.highlight&&g.highlight.border||void 0},hover:xI(g.hover)?{border:g.hover,background:g.hover}:{border:g.hover&&g.hover.border||void 0,background:g.hover&&g.hover.background||void 0}}}function LI(g,A,t){g/=255,A/=255,t/=255;var e=Math.min(g,Math.min(A,t)),C=Math.max(g,Math.max(A,t));return e===C?{h:0,s:0,v:e}:{h:60*((g===e?3:t===e?1:5)-(g===e?A-t:t===e?g-A:t-g)/(C-e))/360,s:(C-e)/C,v:C}}function jI(g,A,t){var e,C,I,i=Math.floor(6*g),o=6*g-i,n=t*(1-A),r=t*(1-o*A),s=t*(1-(1-o)*A);switch(i%6){case 0:e=t,C=s,I=n;break;case 1:e=r,C=t,I=n;break;case 2:e=n,C=t,I=s;break;case 3:e=n,C=r,I=t;break;case 4:e=s,C=n,I=t;break;case 5:e=t,C=n,I=r}return{r:Math.floor(255*e),g:Math.floor(255*C),b:Math.floor(255*I)}}function VI(g,A,t){var e=jI(g,A,t);return FI(e.r,e.g,e.b)}function YI(g){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(g)}function WI(g){return bI.test(g)}function HI(g){return wI.test(g)}function QI(g){if(null===g||"object"!==$C(g))return null;if(g instanceof Element)return g;var A=ae(g);for(var t in g)Object.prototype.hasOwnProperty.call(g,t)&&"object"==$C(g[t])&&(A[t]=QI(g[t]));return A}function UI(g,A,t){var e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},C=function(g){return null!=g},I=function(g){return null!==g&&"object"===$C(g)},i=function(g){for(var A in g)if(Object.prototype.hasOwnProperty.call(g,A))return!1;return!0};if(!I(g))throw new Error("Parameter mergeTarget must be an object");if(!I(A))throw new Error("Parameter options must be an object");if(!C(t))throw new Error("Parameter option must have a value");if(!I(e))throw new Error("Parameter globalOptions must be an object");var o=function(g,A,t){I(g[t])||(g[t]={});var e=A[t],C=g[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(C[i]=e[i])},n=A[t],r=I(e)&&!i(e),s=r?e[t]:void 0,a=s?s.enabled:void 0;if(void 0!==n){if("boolean"==typeof n)return I(g[t])||(g[t]={}),void(g[t].enabled=n);if(null===n&&!I(g[t])){if(!C(s))return;g[t]=ae(s)}if(I(n)){var d=!0;void 0!==n.enabled?d=n.enabled:void 0!==a&&(d=s.enabled),o(g,A,t),g[t].enabled=d}}}var KI={linear:function(g){return g},easeInQuad:function(g){return g*g},easeOutQuad:function(g){return g*(2-g)},easeInOutQuad:function(g){return g<.5?2*g*g:(4-2*g)*g-1},easeInCubic:function(g){return g*g*g},easeOutCubic:function(g){return--g*g*g+1},easeInOutCubic:function(g){return g<.5?4*g*g*g:(g-1)*(2*g-2)*(2*g-2)+1},easeInQuart:function(g){return g*g*g*g},easeOutQuart:function(g){return 1- --g*g*g*g},easeInOutQuart:function(g){return g<.5?8*g*g*g*g:1-8*--g*g*g*g},easeInQuint:function(g){return g*g*g*g*g},easeOutQuint:function(g){return 1+--g*g*g*g*g},easeInOutQuint:function(g){return g<.5?16*g*g*g*g*g:1+16*--g*g*g*g*g}};function _I(g,A){var t;XC(A)||(A=[A]);var e,C=sI(g);try{for(C.s();!(e=C.n()).done;){var I=e.value;if(I){t=I[A[0]];for(var i=1;i<A.length;i++)t&&(t=t[A[i]]);if(void 0!==t)break}}}catch(g){C.e(g)}finally{C.f()}return t}var XI=Je("splice"),JI=Ee("splice",{ACCESSORS:!0,0:0,1:2}),qI=Math.max,$I=Math.min;V({target:"Array",proto:!0,forced:!XI||!JI},{splice:function(g,A){var t,e,C,I,i,o,n=hg(this),r=Ag(n.length),s=Cg(g,r),a=arguments.length;if(0===a?t=e=0:1===a?(t=0,e=r-s):(t=a-2,e=$I(qI($(A),0),r-s)),r+t-e>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(C=GA(n,e),I=0;I<e;I++)(i=s+I)in n&&zg(C,I,n[i]);if(C.length=e,t<e){for(I=s;I<r-e;I++)o=I+t,(i=I+e)in n?n[o]=n[i]:delete n[o];for(I=r;I>r-e+t;I--)delete n[I-1]}else if(t>e)for(I=r-e;I>s;I--)o=I+t-1,(i=I+e-1)in n?n[o]=n[i]:delete n[o];for(I=0;I<t;I++)n[I+s]=arguments[I+2];return n.length=r-e+t,C}});var gi=U("Array").splice,Ai=Array.prototype,ti=function(g){var A=g.splice;return g===Ai||g instanceof Array&&A===Ai.splice?gi:A},ei=ig.includes,Ci=Ee("indexOf",{ACCESSORS:!0,1:0});V({target:"Array",proto:!0,forced:!Ci},{includes:function(g){return ei(this,g,arguments.length>1?arguments[1]:void 0)}});var Ii=U("Array").includes,ii=aA("match"),oi=function(g){if(function(g){var A;return u(g)&&(void 0!==(A=g[ii])?!!A:"RegExp"==a(g))}(g))throw TypeError("The method doesn't accept regular expressions");return g},ni=aA("match");V({target:"String",proto:!0,forced:!function(g){var A=/./;try{"/./"[g](A)}catch(t){try{return A[ni]=!1,"/./"[g](A)}catch(g){}}return!1}("includes")},{includes:function(g){return!!~String(l(this)).indexOf(oi(g),arguments.length>1?arguments[1]:void 0)}});var ri=U("String").includes,si=Array.prototype,ai=String.prototype,di=function(g){var A=g.includes;return g===si||g instanceof Array&&A===si.includes?Ii:"string"==typeof g||g===ai||g instanceof String&&A===ai.includes?ri:A};function hi(g){return mi=g,function(){var g={};bi=0,void(wi=mi.charAt(0)),Si(),"strict"===ki&&(g.strict=!0,Si());"graph"!==ki&&"digraph"!==ki||(g.type=ki,Si());xi===fi&&(g.id=ki,Si());if("{"!=ki)throw ji("Angle bracket { expected");if(Si(),Zi(g),"}"!=ki)throw ji("Angle bracket } expected");if(Si(),""!==ki)throw ji("End of file expected");return Si(),delete g.node,delete g.edge,delete g.graph,g}()}var li={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},ci=ae(li);ci.color="color.color",ci.style="dashes";var ui=0,pi=1,fi=2,vi=3,yi={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},mi="",bi=0,wi="",ki="",xi=ui;function Ei(){bi++,wi=mi.charAt(bi)}function Oi(){return mi.charAt(bi+1)}var Ti=/[a-zA-Z_0-9.:#]/;function Di(g){return Ti.test(g)}function Ni(g,A){if(g||(g={}),A)for(var t in A)A.hasOwnProperty(t)&&(g[t]=A[t]);return g}function Ri(g,A,t){for(var e=A.split("."),C=g;e.length;){var I=e.shift();e.length?(C[I]||(C[I]={}),C=C[I]):C[I]=t}}function Pi(g,A){for(var t,e,C=null,I=[g],i=g;i.parent;)I.push(i.parent),i=i.parent;if(i.nodes)for(t=0,e=i.nodes.length;t<e;t++)if(A.id===i.nodes[t].id){C=i.nodes[t];break}for(C||(C={id:A.id},g.node&&(C.attr=Ni(C.attr,g.node))),t=I.length-1;t>=0;t--){var o,n=I[t];n.nodes||(n.nodes=[]),-1===lC(o=n.nodes).call(o,C)&&n.nodes.push(C)}A.attr&&(C.attr=Ni(C.attr,A.attr))}function Mi(g,A){if(g.edges||(g.edges=[]),g.edges.push(A),g.edge){var t=Ni({},g.edge);A.attr=Ni(t,A.attr)}}function zi(g,A,t,e,C){var I={from:A,to:t,type:e};return g.edge&&(I.attr=Ni({},g.edge)),I.attr=Ni(I.attr||{},C),null!=C&&C.hasOwnProperty("arrows")&&null!=C.arrows&&(I.arrows={to:{enabled:!0,type:C.arrows.type}},C.arrows=null),I}function Si(){for(xi=ui,ki="";" "===wi||"\t"===wi||"\n"===wi||"\r"===wi;)Ei();do{var g=!1;if("#"===wi){for(var A=bi-1;" "===mi.charAt(A)||"\t"===mi.charAt(A);)A--;if("\n"===mi.charAt(A)||""===mi.charAt(A)){for(;""!=wi&&"\n"!=wi;)Ei();g=!0}}if("/"===wi&&"/"===Oi()){for(;""!=wi&&"\n"!=wi;)Ei();g=!0}if("/"===wi&&"*"===Oi()){for(;""!=wi;){if("*"===wi&&"/"===Oi()){Ei(),Ei();break}Ei()}g=!0}for(;" "===wi||"\t"===wi||"\n"===wi||"\r"===wi;)Ei()}while(g);if(""!==wi){var t=wi+Oi();if(yi[t])return xi=pi,ki=t,Ei(),void Ei();if(yi[wi])return xi=pi,ki=wi,void Ei();if(Di(wi)||"-"===wi){for(ki+=wi,Ei();Di(wi);)ki+=wi,Ei();return"false"===ki?ki=!1:"true"===ki?ki=!0:isNaN(Number(ki))||(ki=Number(ki)),void(xi=fi)}if('"'===wi){for(Ei();""!=wi&&('"'!=wi||'"'===wi&&'"'===Oi());)'"'===wi?(ki+=wi,Ei()):"\\"===wi&&"n"===Oi()?(ki+="\n",Ei()):ki+=wi,Ei();if('"'!=wi)throw ji('End of string " expected');return Ei(),void(xi=fi)}for(xi=vi;""!=wi;)ki+=wi,Ei();throw new SyntaxError('Syntax error in part "'+Vi(ki,30)+'"')}xi=pi}function Zi(g){for(;""!==ki&&"}"!=ki;)Bi(g),";"===ki&&Si()}function Bi(g){var A=Fi(g);if(A)Gi(g,A);else if(!function(g){if("node"===ki)return Si(),g.node=Li(),"node";if("edge"===ki)return Si(),g.edge=Li(),"edge";if("graph"===ki)return Si(),g.graph=Li(),"graph";return null}(g)){if(xi!=fi)throw ji("Identifier expected");var t=ki;if(Si(),"="===ki){if(Si(),xi!=fi)throw ji("Identifier expected");g[t]=ki,Si()}else!function(g,A){var t={id:A},e=Li();e&&(t.attr=e);Pi(g,t),Gi(g,A)}(g,t)}}function Fi(g){var A=null;if("subgraph"===ki&&((A={}).type="subgraph",Si(),xi===fi&&(A.id=ki,Si())),"{"===ki){if(Si(),A||(A={}),A.parent=g,A.node=g.node,A.edge=g.edge,A.graph=g.graph,Zi(A),"}"!=ki)throw ji("Angle bracket } expected");Si(),delete A.node,delete A.edge,delete A.graph,delete A.parent,g.subgraphs||(g.subgraphs=[]),g.subgraphs.push(A)}return A}function Gi(g,A){for(;"->"===ki||"--"===ki;){var t,e=ki;Si();var C=Fi(g);if(C)t=C;else{if(xi!=fi)throw ji("Identifier or subgraph expected");Pi(g,{id:t=ki}),Si()}Mi(g,zi(g,A,t,e,Li())),A=t}}function Li(){for(var g,A,t=null,e={dashed:!0,solid:!1,dotted:[1,5]},C={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},I=new Array,i=new Array;"["===ki;){for(Si(),t={};""!==ki&&"]"!=ki;){if(xi!=fi)throw ji("Attribute name expected");var o=ki;if(Si(),"="!=ki)throw ji("Equal sign = expected");if(Si(),xi!=fi)throw ji("Attribute value expected");var n=ki;"style"===o&&(n=e[n]),"arrowhead"===o&&(o="arrows",n={to:{enabled:!0,type:C[n]}}),"arrowtail"===o&&(o="arrows",n={from:{enabled:!0,type:C[n]}}),I.push({attr:t,name:o,value:n}),i.push(o),Si(),","==ki&&Si()}if("]"!=ki)throw ji("Bracket ] expected");Si()}if(di(i).call(i,"dir")){var r={arrows:{}};for(g=0;g<I.length;g++)if("arrows"===I[g].name)if(null!=I[g].value.to)r.arrows.to=g;else{if(null==I[g].value.from)throw ji("Invalid value of arrows");r.arrows.from=g}else"dir"===I[g].name&&(r.dir=g);var s,a,d=I[r.dir].value;if(!di(i).call(i,"arrows"))if("both"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=I.length-1,I.push({attr:I[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=I.length-1;else if("forward"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=I.length-1;else if("back"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=I.length-1;else{if("none"!==d)throw ji('Invalid dir type "'+d+'"');I.push({attr:I[r.dir].attr,name:"arrows",value:""}),r.arrows.to=I.length-1}if("both"===d)r.arrows.to&&r.arrows.from?(a=I[r.arrows.to].value.to.type,s=I[r.arrows.from].value.from.type,I[r.arrows.to]={attr:I[r.arrows.to].attr,name:I[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}},ti(I).call(I,r.arrows.from,1)):r.arrows.to?(a=I[r.arrows.to].value.to.type,s="arrow",I[r.arrows.to]={attr:I[r.arrows.to].attr,name:I[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s=I[r.arrows.from].value.from.type,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}});else if("back"===d)r.arrows.to&&r.arrows.from?(a="",s=I[r.arrows.from].value.from.type,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.to?(a="",s="arrow",r.arrows.from=r.arrows.to,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="",s=I[r.arrows.from].value.from.type,I[r.arrows.to]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{from:{enabled:!0,type:I[r.arrows.from].value.from.type}}};else if("none"===d){var h;I[h=r.arrows.to?r.arrows.to:r.arrows.from]={attr:I[h].attr,name:I[h].name,value:""}}else{if("forward"!==d)throw ji('Invalid dir type "'+d+'"');r.arrows.to&&r.arrows.from||r.arrows.to?(a=I[r.arrows.to].val