UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

51 lines 414 kB
/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 8.2.0 * @date 2020-08-13T21:43:47.994Z * * @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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vis-data/peer/umd/vis-data.js")):"function"==typeof define&&define.amd?define(["exports","vis-data/peer/umd/vis-data.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{},t.vis)}(this,(function(t,e){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}function n(t){return t&&t.default||t}var r=function(t){return t&&t.Math==Math&&t},s=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof i&&i)||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},h=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c={f:l&&!d.call({1:2},1)?function(t){var e=l(this,t);return!!e&&e.enumerable}:d},u=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,p=function(t){return f.call(t).slice(8,-1)},v="".split,g=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?v.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return g(y(t))},b=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!b(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!b(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!b(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!b(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,_=function(t,e){return k.call(t,e)},x=s.document,O=b(x)&&b(x.createElement),E=function(t){return O?x.createElement(t):{}},C=!h&&!a((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),S=Object.getOwnPropertyDescriptor,T={f:h?S:function(t,e){if(t=m(t),e=w(e,!0),C)try{return S(t,e)}catch(t){}if(_(t,e))return u(!c.f.call(t,e),t[e])}},D=/#|\.prototype\./,M=function(t,e){var i=I[P(t)];return i==z||i!=B&&("function"==typeof e?a(e):!!e)},P=M.normalize=function(t){return String(t).replace(D,".").toLowerCase()},I=M.data={},B=M.NATIVE="N",z=M.POLYFILL="P",F=M,N={},A=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},j=function(t,e,i){if(A(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,o){return t.call(e,i,o)};case 3:return function(i,o,n){return t.call(e,i,o,n)}}return function(){return t.apply(e,arguments)}},R=function(t){if(!b(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,H={f:h?L:function(t,e,i){if(R(t),e=w(e,!0),R(i),C)try{return L(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},W=h?function(t,e,i){return H.f(t,e,u(1,i))}:function(t,e,i){return t[e]=i,t},V=T.f,q=function(t){var e=function(e,i,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},U=function(t,e){var i,o,n,r,a,h,d,l,c=t.target,u=t.global,f=t.stat,p=t.proto,v=u?s:f?s[c]:(s[c]||{}).prototype,g=u?N:N[c]||(N[c]={}),y=g.prototype;for(n in e)i=!F(u?n:c+(f?".":"#")+n,t.forced)&&v&&_(v,n),a=g[n],i&&(h=t.noTargetGet?(l=V(v,n))&&l.value:v[n]),r=i&&h?h:e[n],i&&typeof a==typeof r||(d=t.bind&&i?j(r,s):t.wrap&&i?q(r):p&&"function"==typeof r?j(Function.call,r):r,(t.sham||r&&r.sham||a&&a.sham)&&W(d,"sham",!0),g[n]=d,p&&(_(N,o=c+"Prototype")||W(N,o,{}),N[o][n]=r,t.real&&y&&!y[n]&&W(y,n,r)))},Y=[].slice,X={},G=function(t,e,i){if(!(e in X)){for(var o=[],n=0;n<e;n++)o[n]="a["+n+"]";X[e]=Function("C,a","return new C("+o.join(",")+")")}return X[e](t,i)},K=Function.bind||function(t){var e=A(this),i=Y.call(arguments,1),o=function(){var n=i.concat(Y.call(arguments));return this instanceof o?G(e,n.length,n):e.apply(t,n)};return b(e.prototype)&&(o.prototype=e.prototype),o};U({target:"Function",proto:!0},{bind:K});var $=function(t){return N[t+"Prototype"]},Z=$("Function").bind,Q=Function.prototype,J=function(t){var e=t.bind;return t===Q||t instanceof Function&&e===Q.bind?Z:e},tt=Math.ceil,et=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?et:tt)(t)},ot=Math.min,nt=function(t){return t>0?ot(it(t),9007199254740991):0},rt=Math.max,st=Math.min,at=function(t,e){var i=it(t);return i<0?rt(i+e,0):st(i,e)},ht=function(t){return function(e,i,o){var n,r=m(e),s=nt(r.length),a=at(o,s);if(t&&i!=i){for(;s>a;)if((n=r[a++])!=n)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},dt={includes:ht(!0),indexOf:ht(!1)},lt={},ct=dt.indexOf,ut=function(t,e){var i,o=m(t),n=0,r=[];for(i in o)!_(lt,i)&&_(o,i)&&r.push(i);for(;e.length>n;)_(o,i=e[n++])&&(~ct(r,i)||r.push(i));return r},ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pt=Object.keys||function(t){return ut(t,ft)},vt={f:Object.getOwnPropertySymbols},gt=function(t){return Object(y(t))},yt=Object.assign,mt=Object.defineProperty,bt=!yt||a((function(){if(h&&1!==yt({b:1},yt(mt({},"a",{enumerable:!0,get:function(){mt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=yt({},t)[i]||"abcdefghijklmnopqrst"!=pt(yt({},e)).join("")}))?function(t,e){for(var i=gt(t),o=arguments.length,n=1,r=vt.f,s=c.f;o>n;)for(var a,d=g(arguments[n++]),l=r?pt(d).concat(r(d)):pt(d),u=l.length,f=0;u>f;)a=l[f++],h&&!s.call(d,a)||(i[a]=d[a]);return i}:yt;U({target:"Object",stat:!0,forced:Object.assign!==bt},{assign:bt});var wt=N.Object.assign;function kt(t,e,i,o){t.beginPath(),t.arc(e,i,o,0,2*Math.PI,!1),t.closePath()}function _t(t,e,i,o,n,r){var s=Math.PI/180;o-2*r<0&&(r=o/2),n-2*r<0&&(r=n/2),t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+o-r,i),t.arc(e+o-r,i+r,r,270*s,360*s,!1),t.lineTo(e+o,i+n-r),t.arc(e+o-r,i+n-r,r,0,90*s,!1),t.lineTo(e+r,i+n),t.arc(e+r,i+n-r,r,90*s,180*s,!1),t.lineTo(e,i+r),t.arc(e+r,i+r,r,180*s,270*s,!1),t.closePath()}function xt(t,e,i,o,n){var r=o/2*.5522848,s=n/2*.5522848,a=e+o,h=i+n,d=e+o/2,l=i+n/2;t.beginPath(),t.moveTo(e,l),t.bezierCurveTo(e,l-s,d-r,i,d,i),t.bezierCurveTo(d+r,i,a,l-s,a,l),t.bezierCurveTo(a,l+s,d+r,h,d,h),t.bezierCurveTo(d-r,h,e,l+s,e,l),t.closePath()}function Ot(t,e,i,o,n){var r=n*(1/3),s=o/2*.5522848,a=r/2*.5522848,h=e+o,d=i+r,l=e+o/2,c=i+r/2,u=i+(n-r/2),f=i+n;t.beginPath(),t.moveTo(h,c),t.bezierCurveTo(h,c+a,l+s,d,l,d),t.bezierCurveTo(l-s,d,e,c+a,e,c),t.bezierCurveTo(e,c-a,l-s,i,l,i),t.bezierCurveTo(l+s,i,h,c-a,h,c),t.lineTo(h,u),t.bezierCurveTo(h,u+a,l+s,f,l,f),t.bezierCurveTo(l-s,f,e,u+a,e,u),t.lineTo(e,c)}function Et(t,e,i,o,n,r){t.beginPath(),t.moveTo(e,i);for(var s=r.length,a=o-e,h=n-i,d=h/a,l=Math.sqrt(a*a+h*h),c=0,u=!0,f=0,p=+r[0];l>=.1;)(p=+r[c++%s])>l&&(p=l),f=Math.sqrt(p*p/(1+d*d)),e+=f=a<0?-f:f,i+=d*f,!0===u?t.lineTo(e,i):t.moveTo(e,i),l-=p,u=!u}var Ct={circle:kt,dashedLine:Et,database:Ot,diamond:function(t,e,i,o){t.beginPath(),t.lineTo(e,i+o),t.lineTo(e+o,i),t.lineTo(e,i-o),t.lineTo(e-o,i),t.closePath()},ellipse:xt,ellipse_vis:xt,hexagon:function(t,e,i,o){t.beginPath();var n=2*Math.PI/6;t.moveTo(e+o,i);for(var r=1;r<6;r++)t.lineTo(e+o*Math.cos(n*r),i+o*Math.sin(n*r));t.closePath()},roundRect:_t,square:function(t,e,i,o){t.beginPath(),t.rect(e-o,i-o,2*o,2*o),t.closePath()},star:function(t,e,i,o){t.beginPath(),i+=.1*(o*=.82);for(var n=0;n<10;n++){var r=n%2==0?1.3*o:.5*o;t.lineTo(e+r*Math.sin(2*n*Math.PI/10),i-r*Math.cos(2*n*Math.PI/10))}t.closePath()},triangle:function(t,e,i,o){t.beginPath(),i+=.275*(o*=1.15);var n=2*o,r=n/2,s=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-r*r);t.moveTo(e,i-(a-s)),t.lineTo(e+r,i+s),t.lineTo(e-r,i+s),t.lineTo(e,i-(a-s)),t.closePath()},triangleDown:function(t,e,i,o){t.beginPath(),i-=.275*(o*=1.15);var n=2*o,r=n/2,s=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-r*r);t.moveTo(e,i+(a-s)),t.lineTo(e+r,i-s),t.lineTo(e-r,i-s),t.lineTo(e,i+(a-s)),t.closePath()}};var St=o((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((i=o[n])===e||i.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(i){o=0;for(var n=(i=i.slice(0)).length;o<n;++o)i[o].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}));U({target:"Object",stat:!0,forced:!h,sham:!h},{defineProperty:H.f});var Tt=o((function(t){var e=N.Object,i=t.exports=function(t,i,o){return e.defineProperty(t,i,o)};e.defineProperty.sham&&(i.sham=!0)})),Dt=Tt,Mt=h?Object.defineProperties:function(t,e){R(t);for(var i,o=pt(e),n=o.length,r=0;n>r;)H.f(t,i=o[r++],e[i]);return t};U({target:"Object",stat:!0,forced:!h,sham:!h},{defineProperties:Mt});var Pt=o((function(t){var e=N.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),It=function(t){return"function"==typeof t?t:void 0},Bt=function(t,e){return arguments.length<2?It(N[t])||It(s[t]):N[t]&&N[t][e]||s[t]&&s[t][e]},zt=ft.concat("length","prototype"),Ft={f:Object.getOwnPropertyNames||function(t){return ut(t,zt)}},Nt=Bt("Reflect","ownKeys")||function(t){var e=Ft.f(R(t)),i=vt.f;return i?e.concat(i(t)):e},At=function(t,e,i){var o=w(e);o in t?H.f(t,o,u(0,i)):t[o]=i};U({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,i,o=m(t),n=T.f,r=Nt(o),s={},a=0;r.length>a;)void 0!==(i=n(o,e=r[a++]))&&At(s,e,i);return s}});var jt=N.Object.getOwnPropertyDescriptors,Rt=T.f,Lt=a((function(){Rt(1)}));U({target:"Object",stat:!0,forced:!h||Lt,sham:!h},{getOwnPropertyDescriptor:function(t,e){return Rt(m(t),e)}});var Ht,Wt=o((function(t){var e=N.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Vt=Wt,qt=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())})),Ut=qt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yt=Array.isArray||function(t){return"Array"==p(t)},Xt=Bt("document","documentElement"),Gt=s["__core-js_shared__"]||function(t,e){try{W(s,t,e)}catch(i){s[t]=e}return e}("__core-js_shared__",{}),Kt=o((function(t){(t.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),$t=0,Zt=Math.random(),Qt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++$t+Zt).toString(36)},Jt=Kt("keys"),te=function(t){return Jt[t]||(Jt[t]=Qt(t))},ee=te("IE_PROTO"),ie=function(){},oe=function(t){return"<script>"+t+"<\/script>"},ne=function(){try{Ht=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ne=Ht?function(t){t.write(oe("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Ht):((e=E("iframe")).style.display="none",Xt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(oe("document.F=Object")),t.close(),t.F);for(var i=ft.length;i--;)delete ne.prototype[ft[i]];return ne()};lt[ee]=!0;var re=Object.create||function(t,e){var i;return null!==t?(ie.prototype=R(t),i=new ie,ie.prototype=null,i[ee]=t):i=ne(),void 0===e?i:Mt(i,e)},se=Ft.f,ae={}.toString,he="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],de={f:function(t){return he&&"[object Window]"==ae.call(t)?function(t){try{return se(t)}catch(t){return he.slice()}}(t):se(m(t))}},le=function(t,e,i,o){o&&o.enumerable?t[e]=i:W(t,e,i)},ce=Kt("wks"),ue=s.Symbol,fe=Ut?ue:ue&&ue.withoutSetter||Qt,pe=function(t){return _(ce,t)||(qt&&_(ue,t)?ce[t]=ue[t]:ce[t]=fe("Symbol."+t)),ce[t]},ve={f:pe},ge=H.f,ye=function(t){var e=N.Symbol||(N.Symbol={});_(e,t)||ge(e,t,{value:ve.f(t)})},me={};me[pe("toStringTag")]="z";var be="[object z]"===String(me),we=pe("toStringTag"),ke="Arguments"==p(function(){return arguments}()),_e=be?p:function(t){var e,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),we))?i:ke?p(e):"Object"==(o=p(e))&&"function"==typeof e.callee?"Arguments":o},xe=be?{}.toString:function(){return"[object "+_e(this)+"]"},Oe=H.f,Ee=pe("toStringTag"),Ce=function(t,e,i,o){if(t){var n=i?t:t.prototype;_(n,Ee)||Oe(n,Ee,{configurable:!0,value:e}),o&&!be&&W(n,"toString",xe)}},Se=Function.toString;"function"!=typeof Gt.inspectSource&&(Gt.inspectSource=function(t){return Se.call(t)});var Te,De,Me,Pe=Gt.inspectSource,Ie=s.WeakMap,Be="function"==typeof Ie&&/native code/.test(Pe(Ie)),ze=s.WeakMap;if(Be){var Fe=new ze,Ne=Fe.get,Ae=Fe.has,je=Fe.set;Te=function(t,e){return je.call(Fe,t,e),e},De=function(t){return Ne.call(Fe,t)||{}},Me=function(t){return Ae.call(Fe,t)}}else{var Re=te("state");lt[Re]=!0,Te=function(t,e){return W(t,Re,e),e},De=function(t){return _(t,Re)?t[Re]:{}},Me=function(t){return _(t,Re)}}var Le={set:Te,get:De,has:Me,enforce:function(t){return Me(t)?De(t):Te(t,{})},getterFor:function(t){return function(e){var i;if(!b(e)||(i=De(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},He=pe("species"),We=function(t,e){var i;return Yt(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Yt(i.prototype)?b(i)&&null===(i=i[He])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},Ve=[].push,qe=function(t){var e=1==t,i=2==t,o=3==t,n=4==t,r=6==t,s=5==t||r;return function(a,h,d,l){for(var c,u,f=gt(a),p=g(f),v=j(h,d,3),y=nt(p.length),m=0,b=l||We,w=e?b(a,y):i?b(a,0):void 0;y>m;m++)if((s||m in p)&&(u=v(c=p[m],m,f),t))if(e)w[m]=u;else if(u)switch(t){case 3:return!0;case 5:return c;case 6:return m;case 2:Ve.call(w,c)}else if(n)return!1;return r?-1:o||n?n:w}},Ue={forEach:qe(0),map:qe(1),filter:qe(2),some:qe(3),every:qe(4),find:qe(5),findIndex:qe(6)},Ye=Ue.forEach,Xe=te("hidden"),Ge=pe("toPrimitive"),Ke=Le.set,$e=Le.getterFor("Symbol"),Ze=Object.prototype,Qe=s.Symbol,Je=Bt("JSON","stringify"),ti=T.f,ei=H.f,ii=de.f,oi=c.f,ni=Kt("symbols"),ri=Kt("op-symbols"),si=Kt("string-to-symbol-registry"),ai=Kt("symbol-to-string-registry"),hi=Kt("wks"),di=s.QObject,li=!di||!di.prototype||!di.prototype.findChild,ci=h&&a((function(){return 7!=re(ei({},"a",{get:function(){return ei(this,"a",{value:7}).a}})).a}))?function(t,e,i){var o=ti(Ze,e);o&&delete Ze[e],ei(t,e,i),o&&t!==Ze&&ei(Ze,e,o)}:ei,ui=function(t,e){var i=ni[t]=re(Qe.prototype);return Ke(i,{type:"Symbol",tag:t,description:e}),h||(i.description=e),i},fi=Ut?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Qe},pi=function(t,e,i){t===Ze&&pi(ri,e,i),R(t);var o=w(e,!0);return R(i),_(ni,o)?(i.enumerable?(_(t,Xe)&&t[Xe][o]&&(t[Xe][o]=!1),i=re(i,{enumerable:u(0,!1)})):(_(t,Xe)||ei(t,Xe,u(1,{})),t[Xe][o]=!0),ci(t,o,i)):ei(t,o,i)},vi=function(t,e){R(t);var i=m(e),o=pt(i).concat(bi(i));return Ye(o,(function(e){h&&!gi.call(i,e)||pi(t,e,i[e])})),t},gi=function(t){var e=w(t,!0),i=oi.call(this,e);return!(this===Ze&&_(ni,e)&&!_(ri,e))&&(!(i||!_(this,e)||!_(ni,e)||_(this,Xe)&&this[Xe][e])||i)},yi=function(t,e){var i=m(t),o=w(e,!0);if(i!==Ze||!_(ni,o)||_(ri,o)){var n=ti(i,o);return!n||!_(ni,o)||_(i,Xe)&&i[Xe][o]||(n.enumerable=!0),n}},mi=function(t){var e=ii(m(t)),i=[];return Ye(e,(function(t){_(ni,t)||_(lt,t)||i.push(t)})),i},bi=function(t){var e=t===Ze,i=ii(e?ri:m(t)),o=[];return Ye(i,(function(t){!_(ni,t)||e&&!_(Ze,t)||o.push(ni[t])})),o};if(qt||(le((Qe=function(){if(this instanceof Qe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Qt(t),i=function(t){this===Ze&&i.call(ri,t),_(this,Xe)&&_(this[Xe],e)&&(this[Xe][e]=!1),ci(this,e,u(1,t))};return h&&li&&ci(Ze,e,{configurable:!0,set:i}),ui(e,t)}).prototype,"toString",(function(){return $e(this).tag})),le(Qe,"withoutSetter",(function(t){return ui(Qt(t),t)})),c.f=gi,H.f=pi,T.f=yi,Ft.f=de.f=mi,vt.f=bi,ve.f=function(t){return ui(pe(t),t)},h&&ei(Qe.prototype,"description",{configurable:!0,get:function(){return $e(this).description}})),U({global:!0,wrap:!0,forced:!qt,sham:!qt},{Symbol:Qe}),Ye(pt(hi),(function(t){ye(t)})),U({target:"Symbol",stat:!0,forced:!qt},{for:function(t){var e=String(t);if(_(si,e))return si[e];var i=Qe(e);return si[e]=i,ai[i]=e,i},keyFor:function(t){if(!fi(t))throw TypeError(t+" is not a symbol");if(_(ai,t))return ai[t]},useSetter:function(){li=!0},useSimple:function(){li=!1}}),U({target:"Object",stat:!0,forced:!qt,sham:!h},{create:function(t,e){return void 0===e?re(t):vi(re(t),e)},defineProperty:pi,defineProperties:vi,getOwnPropertyDescriptor:yi}),U({target:"Object",stat:!0,forced:!qt},{getOwnPropertyNames:mi,getOwnPropertySymbols:bi}),U({target:"Object",stat:!0,forced:a((function(){vt.f(1)}))},{getOwnPropertySymbols:function(t){return vt.f(gt(t))}}),Je){var wi=!qt||a((function(){var t=Qe();return"[null]"!=Je([t])||"{}"!=Je({a:t})||"{}"!=Je(Object(t))}));U({target:"JSON",stat:!0,forced:wi},{stringify:function(t,e,i){for(var o,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(o=e,(b(e)||void 0!==t)&&!fi(t))return Yt(e)||(e=function(t,e){if("function"==typeof o&&(e=o.call(this,t,e)),!fi(e))return e}),n[1]=e,Je.apply(null,n)}})}Qe.prototype[Ge]||W(Qe.prototype,Ge,Qe.prototype.valueOf),Ce(Qe,"Symbol"),lt[Xe]=!0;var ki,_i,xi,Oi=N.Object.getOwnPropertySymbols,Ei={},Ci=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Si=te("IE_PROTO"),Ti=Object.prototype,Di=Ci?Object.getPrototypeOf:function(t){return t=gt(t),_(t,Si)?t[Si]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ti:null},Mi=(pe("iterator"),!1);[].keys&&("next"in(xi=[].keys())?(_i=Di(Di(xi)))!==Object.prototype&&(ki=_i):Mi=!0),null==ki&&(ki={});var Pi={IteratorPrototype:ki,BUGGY_SAFARI_ITERATORS:Mi},Ii=Pi.IteratorPrototype,Bi=function(){return this},zi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,o){return R(i),function(t){if(!b(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(o),e?t.call(i,o):i.__proto__=o,i}}():void 0),Fi=Pi.IteratorPrototype,Ni=Pi.BUGGY_SAFARI_ITERATORS,Ai=pe("iterator"),ji=function(){return this},Ri=function(t,e,i,o,n,r,s){!function(t,e,i){var o=e+" Iterator";t.prototype=re(Ii,{next:u(1,i)}),Ce(t,o,!1,!0),Ei[o]=Bi}(i,e,o);var a,h,d,l=function(t){if(t===n&&g)return g;if(!Ni&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",f=!1,p=t.prototype,v=p[Ai]||p["@@iterator"]||n&&p[n],g=!Ni&&v||l(n),y="Array"==e&&p.entries||v;if(y&&(a=Di(y.call(new t)),Fi!==Object.prototype&&a.next&&(Ce(a,c,!0,!0),Ei[c]=ji)),"values"==n&&v&&"values"!==v.name&&(f=!0,g=function(){return v.call(this)}),s&&p[Ai]!==g&&W(p,Ai,g),Ei[e]=g,n)if(h={values:l("values"),keys:r?g:l("keys"),entries:l("entries")},s)for(d in h)(Ni||f||!(d in p))&&le(p,d,h[d]);else U({target:e,proto:!0,forced:Ni||f},h);return h},Li=Le.set,Hi=Le.getterFor("Array Iterator");Ri(Array,"Array",(function(t,e){Li(this,{type:"Array Iterator",target:m(t),index:0,kind:e})}),(function(){var t=Hi(this),e=t.target,i=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:o,done:!1}:"values"==i?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values");Ei.Arguments=Ei.Array;var Wi=pe("toStringTag");for(var Vi 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 qi=s[Vi],Ui=qi&&qi.prototype;Ui&&_e(Ui)!==Wi&&W(Ui,Wi,Vi),Ei[Vi]=Ei.Array}var Yi=function(t){return function(e,i){var o,n,r=String(y(e)),s=it(i),a=r.length;return s<0||s>=a?t?"":void 0:(o=r.charCodeAt(s))<55296||o>56319||s+1===a||(n=r.charCodeAt(s+1))<56320||n>57343?t?r.charAt(s):o:t?r.slice(s,s+2):n-56320+(o-55296<<10)+65536}},Xi={codeAt:Yi(!1),charAt:Yi(!0)}.charAt,Gi=Le.set,Ki=Le.getterFor("String Iterator");Ri(String,"String",(function(t){Gi(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ki(this),i=e.string,o=e.index;return o>=i.length?{value:void 0,done:!0}:(t=Xi(i,o),e.index+=t.length,{value:t,done:!1})}));var $i=pe("iterator"),Zi=function(t){if(null!=t)return t[$i]||t["@@iterator"]||Ei[_e(t)]},Qi=function(t){var e=Zi(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return R(e.call(t))},Ji=Zi,to=function(t,e,i,o){try{return o?e(R(i)[0],i[1]):e(i)}catch(e){var n=t.return;throw void 0!==n&&R(n.call(t)),e}},eo=pe("iterator"),io=Array.prototype,oo=function(t){return void 0!==t&&(Ei.Array===t||io[eo]===t)},no=pe("iterator"),ro=!1;try{var so=0,ao={next:function(){return{done:!!so++}},return:function(){ro=!0}};ao[no]=function(){return this},Array.from(ao,(function(){throw 2}))}catch(t){}var ho=!function(t,e){if(!e&&!ro)return!1;var i=!1;try{var o={};o[no]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}((function(t){Array.from(t)}));U({target:"Array",stat:!0,forced:ho},{from:function(t){var e,i,o,n,r,s,a=gt(t),h="function"==typeof this?this:Array,d=arguments.length,l=d>1?arguments[1]:void 0,c=void 0!==l,u=Zi(a),f=0;if(c&&(l=j(l,d>2?arguments[2]:void 0,2)),null==u||h==Array&&oo(u))for(i=new h(e=nt(a.length));e>f;f++)s=c?l(a[f],f):a[f],At(i,f,s);else for(r=(n=u.call(a)).next,i=new h;!(o=r.call(n)).done;f++)s=c?to(n,l,[o.value,f],!0):o.value,At(i,f,s);return i.length=f,i}});var lo=N.Array.from,co=lo;U({target:"Object",stat:!0,sham:!h},{create:re});var uo=N.Object,fo=function(t,e){return uo.create(t,e)},po=fo,vo=Tt;var go,yo=function(t,e,i){return e in t?vo(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},mo="\t\n\v\f\r                 \u2028\u2029\ufeff",bo="["+mo+"]",wo=RegExp("^"+bo+bo+"*"),ko=RegExp(bo+bo+"*$"),_o=function(t){return function(e){var i=String(y(e));return 1&t&&(i=i.replace(wo,"")),2&t&&(i=i.replace(ko,"")),i}},xo={start:_o(1),end:_o(2),trim:_o(3)},Oo=xo.trim;U({target:"String",proto:!0,forced:(go="trim",a((function(){return!!mo[go]()||"​…᠎"!="​…᠎"[go]()||mo[go].name!==go})))},{trim:function(){return Oo(this)}});$("String").trim;var Eo=function(t,e){var i=[][t];return!!i&&a((function(){i.call(null,e||function(){throw 1},1)}))},Co=Object.defineProperty,So={},To=function(t){throw t},Do=function(t,e){if(_(So,t))return So[t];e||(e={});var i=[][t],o=!!_(e,"ACCESSORS")&&e.ACCESSORS,n=_(e,0)?e[0]:To,r=_(e,1)?e[1]:void 0;return So[t]=!!i&&!a((function(){if(o&&!h)return!0;var t={length:-1};o?Co(t,1,{enumerable:!0,get:To}):t[1]=1,i.call(t,n,r)}))},Mo=Ue.forEach,Po=Eo("forEach"),Io=Do("forEach"),Bo=Po&&Io?[].forEach:function(t){return Mo(this,t,arguments.length>1?arguments[1]:void 0)};U({target:"Array",proto:!0,forced:[].forEach!=Bo},{forEach:Bo});var zo=$("Array").forEach,Fo=Array.prototype,No={DOMTokenList:!0,NodeList:!0},Ao=function(t){var e=t.forEach;return t===Fo||t instanceof Array&&e===Fo.forEach||No.hasOwnProperty(_e(t))?zo:e},jo=xo.trim,Ro=s.parseInt,Lo=/^[+-]?0[Xx]/,Ho=8!==Ro(mo+"08")||22!==Ro(mo+"0x16")?function(t,e){var i=jo(String(t));return Ro(i,e>>>0||(Lo.test(i)?16:10))}:Ro;U({global:!0,forced:parseInt!=Ho},{parseInt:Ho});var Wo=N.parseInt,Vo=c.f,qo=function(t){return function(e){for(var i,o=m(e),n=pt(o),r=n.length,s=0,a=[];r>s;)i=n[s++],h&&!Vo.call(o,i)||a.push(t?[i,o[i]]:o[i]);return a}},Uo={entries:qo(!0),values:qo(!1)}.values;U({target:"Object",stat:!0},{values:function(t){return Uo(t)}});N.Object.values;var Yo,Xo,Go=Bt("navigator","userAgent")||"",Ko=s.process,$o=Ko&&Ko.versions,Zo=$o&&$o.v8;Zo?Xo=(Yo=Zo.split("."))[0]+Yo[1]:Go&&(!(Yo=Go.match(/Edge\/(\d+)/))||Yo[1]>=74)&&(Yo=Go.match(/Chrome\/(\d+)/))&&(Xo=Yo[1]);var Qo=Xo&&+Xo,Jo=pe("species"),tn=function(t){return Qo>=51||!a((function(){var e=[];return(e.constructor={})[Jo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},en=Ue.filter,on=tn("filter"),nn=Do("filter");U({target:"Array",proto:!0,forced:!on||!nn},{filter:function(t){return en(this,t,arguments.length>1?arguments[1]:void 0)}});var rn=$("Array").filter,sn=Array.prototype,an=function(t){var e=t.filter;return t===sn||t instanceof Array&&e===sn.filter?rn:e},hn=a((function(){Di(1)}));U({target:"Object",stat:!0,forced:hn,sham:!Ci},{getPrototypeOf:function(t){return Di(gt(t))}});var dn=N.Object.getPrototypeOf,ln=dn,cn=dt.indexOf,un=[].indexOf,fn=!!un&&1/[1].indexOf(1,-0)<0,pn=Eo("indexOf"),vn=Do("indexOf",{ACCESSORS:!0,1:0});U({target:"Array",proto:!0,forced:fn||!pn||!vn},{indexOf:function(t){return fn?un.apply(this,arguments)||0:cn(this,t,arguments.length>1?arguments[1]:void 0)}});var gn=$("Array").indexOf,yn=Array.prototype,mn=function(t){var e=t.indexOf;return t===yn||t instanceof Array&&e===yn.indexOf?gn:e};U({target:"Array",stat:!0},{isArray:Yt});var bn=N.Array.isArray,wn=bn;var kn=function(t){if(wn(t))return t},_n=pe("iterator"),xn=function(t){var e=Object(t);return void 0!==e[_n]||"@@iterator"in e||Ei.hasOwnProperty(_e(e))},On=pe("isConcatSpreadable"),En=Qo>=51||!a((function(){var t=[];return t[On]=!1,t.concat()[0]!==t})),Cn=tn("concat"),Sn=function(t){if(!b(t))return!1;var e=t[On];return void 0!==e?!!e:Yt(t)};U({target:"Array",proto:!0,forced:!En||!Cn},{concat:function(t){var e,i,o,n,r,s=gt(this),a=We(s,0),h=0;for(e=-1,o=arguments.length;e<o;e++)if(Sn(r=-1===e?s:arguments[e])){if(h+(n=nt(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<n;i++,h++)i in r&&At(a,h,r[i])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");At(a,h++,r)}return a.length=h,a}});var Tn=Object.freeze({__proto__:null});ye("asyncIterator");var Dn=Object.freeze({__proto__:null});ye("hasInstance"),ye("isConcatSpreadable"),ye("iterator"),ye("match"),ye("matchAll"),ye("replace"),ye("search"),ye("species"),ye("split"),ye("toPrimitive"),ye("toStringTag"),ye("unscopables"),Ce(Math,"Math",!0),Ce(s.JSON,"JSON",!0),n(Tn),n(Dn);var Mn=N.Symbol;ye("asyncDispose"),ye("dispose"),ye("observable"),ye("patternMatch"),ye("replaceAll");var Pn=Mn;var In=function(t,e){if(void 0!==Pn&&xn(Object(t))){var i=[],o=!0,n=!1,r=void 0;try{for(var s,a=Qi(t);!(o=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);o=!0);}catch(t){n=!0,r=t}finally{try{o||null==a.return||a.return()}finally{if(n)throw r}}return i}},Bn=lo,zn=tn("slice"),Fn=Do("slice",{ACCESSORS:!0,0:0,1:2}),Nn=pe("species"),An=[].slice,jn=Math.max;U({target:"Array",proto:!0,forced:!zn||!Fn},{slice:function(t,e){var i,o,n,r=m(this),s=nt(r.length),a=at(t,s),h=at(void 0===e?s:e,s);if(Yt(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!Yt(i.prototype)?b(i)&&null===(i=i[Nn])&&(i=void 0):i=void 0,i===Array||void 0===i))return An.call(r,a,h);for(o=new(void 0===i?Array:i)(jn(h-a,0)),n=0;a<h;a++,n++)a in r&&At(o,n,r[a]);return o.length=n,o}});var Rn=$("Array").slice,Ln=Array.prototype,Hn=function(t){var e=t.slice;return t===Ln||t instanceof Array&&e===Ln.slice?Rn:e},Wn=Hn;var Vn=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=t[i];return o};var qn=function(t,e){var i;if(t){if("string"==typeof t)return Vn(t,e);var o=Wn(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Bn(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Vn(t,e):void 0}};var Un=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 Yn=function(t,e){return kn(t)||In(t,e)||qn(t,e)||Un()};U({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Xn=N.Date.now,Gn=a((function(){pt(1)}));U({target:"Object",stat:!0,forced:Gn},{keys:function(t){return pt(gt(t))}});var Kn=N.Object.keys,$n=Ue.map,Zn=tn("map"),Qn=Do("map");U({target:"Array",proto:!0,forced:!Zn||!Qn},{map:function(t){return $n(this,t,arguments.length>1?arguments[1]:void 0)}});var Jn=$("Array").map,tr=Array.prototype,er=function(t){var e=t.map;return t===tr||t instanceof Array&&e===tr.map?Jn:e},ir=bn,or=ve.f("iterator"),nr=o((function(t){function e(i){return t.exports=e="function"==typeof Pn&&"symbol"==typeof or?function(t){return typeof t}:function(t){return t&&"function"==typeof Pn&&t.constructor===Pn&&t!==Pn.prototype?"symbol":typeof t},e(i)}t.exports=e}));U({target:"Reflect",stat:!0},{ownKeys:Nt});N.Reflect.ownKeys;var rr=Hn;var sr=function(t){if(wn(t))return Vn(t)};var ar=function(t){if(void 0!==Pn&&xn(Object(t)))return Bn(t)};var hr=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 dr=function(t){return sr(t)||ar(t)||qn(t)||hr()},lr=$("Array").concat,cr=Array.prototype,ur=function(t){var e=t.concat;return t===cr||t instanceof Array&&e===cr.concat?lr:e},fr=Mn;function pr(t,e){var i;if(void 0===fr||null==Ji(t)){if(ir(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return vr(t,e);var o=rr(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return co(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return vr(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}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 r,s=!0,a=!1;return{s:function(){i=Qi(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function vr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=t[i];return o} /** * 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. */fr("DELETE");function gr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return yr(e.length?e:[Xn()])}function yr(t){var e=function(){for(var t=mr(),e=t(" "),i=t(" "),o=t(" "),n=0;n<arguments.length;n++)(e-=t(n<0||arguments.length<=n?void 0:arguments[n]))<0&&(e+=1),(i-=t(n<0||arguments.length<=n?void 0:arguments[n]))<0&&(i+=1),(o-=t(n<0||arguments.length<=n?void 0:arguments[n]))<0&&(o+=1);return[e,i,o]}(t),i=Yn(e,3),o=i[0],n=i[1],r=i[2],s=1,a=function(){var t=2091639*o+2.3283064365386963e-10*s;return o=n,n=r,r=t-(s=0|t)};return a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.algorithm="Alea",a.seed=t,a.version="0.9",a}function mr(){var t=4022871197;return function(e){for(var i=e.toString(),o=0;o<i.length;o++){var n=.02519603282416938*(t+=i.charCodeAt(o));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)}}var br=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,wr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,kr=/^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,_r=/^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 xr(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(xr(e),t.removeChild(e))}}function Or(t){return t instanceof String||"string"==typeof t}function Er(t){return"object"===nr(t)&&null!==t}function Cr(t,e,i,o){var n=!1;!0===o&&(n=null===e[i]&&void 0!==t[i]),n?delete t[i]:t[i]=e[i]}function Sr(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in t)if(void 0!==e[o])if(null===e[o]||"object"!==nr(e[o]))Cr(t,e,o,i);else{var n=t[o],r=e[o];Er(n)&&Er(r)&&Sr(n,r,i)}}function Tr(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ir(i))throw new TypeError("Arrays are not supported by deepExtend");for(var n=0;n<t.length;n++){var r=t[n];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?Mr(e[r],i[r],!1,o):Cr(e,i,r,o);else{if(ir(i[r]))throw new TypeError("Arrays are not supported by deepExtend");Cr(e,i,r,o)}}return e}function Dr(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ir(i))throw new TypeError("Arrays are not supported by deepExtend");for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&-1===mn(t).call(t,n))if(i[n]&&i[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n].constructor===Object?Mr(e[n],i[n]):Cr(e,i,n,o);else if(ir(i[n])){e[n]=[];for(var r=0;r<i[n].length;r++)e[n].push(i[n][r])}else Cr(e,i,n,o);return e}function Mr(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)||!0===i)if("object"===nr(e[n])&&null!==e[n]&&ln(e[n])===Object.prototype)void 0===t[n]?t[n]=Mr({},e[n],i):"object"===nr(t[n])&&null!==t[n]&&ln(t[n])===Object.prototype?Mr(t[n],e[n],i):Cr(t,e,n,o);else if(ir(e[n])){var r;t[n]=rr(r=e[n]).call(r)}else Cr(t,e,n,o);return t}function Pr(t,e){var i;return ur(i=[]).call(i,dr(t),[e])}function Ir(t){return rr(t).call(t)}function Br(t){return t.getBoundingClientRect().top}function zr(t,e){if(ir(t))for(var i=t.length,o=0;o<i;o++)e(t[o],o,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)}function Fr(t){var e;switch(t.length){case 3:case 4:return(e=wr.exec(t))?{r:Wo(e[1]+e[1],16),g:Wo(e[2]+e[2],16),b:Wo(e[3]+e[3],16)}:null;case 6:case 7:return(e=br.exec(t))?{r:Wo(e[1],16),g:Wo(e[2],16),b:Wo(e[3],16)}:null;default:return null}}function Nr(t,e){if(-1!==mn(t).call(t,"rgba"))return t;if(-1!==mn(t).call(t,"rgb")){var i=t.substr(mn(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var o=Fr(t);return null==o?t:"rgba("+o.r+","+o.g+","+o.b+","+e+")"}function Ar(t,e,i){var o;return"#"+rr(o=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(o,1)}function jr(t,e){if(Or(t)){var i=t;if(Vr(i)){var o,n=er(o=i.substr(4).substr(0,i.length-5).split(",")).call(o,(function(t){return Wo(t)}));i=Ar(n[0],n[1],n[2])}if(!0===Wr(i)){var r=function(t){var e=Fr(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Rr(e.r,e.g,e.b)}(i),s={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},a={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},h=Hr(a.h,a.s,a.v),d=Hr(s.h,s.s,s.v);return{background:i,border:h,highlight:{background:d,border:h},hover:{background:d,border:h}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Or(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Or(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Or(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Or(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Rr(t,e,i){t/=255,e/=255,i/=255;var o=Math.min(t,Math.min(e,i)),n=Math.max(t,Math.max(e,i));return o===n?{h:0,s:0,v:o}:{h:60*((t===o?3:i===o?1:5)-(t===o?e-i:i===o?t-e:i-t)/(n-o))/360,s:(n-o)/n,v:n}}function Lr(t,e,i){var o,n,r,s=Math.floor(6*t),a=6*t-s,h=i*(1-e),d=i*(1-a*e),l=i*(1-(1-a)*e);switch(s%6){case 0:o=i,n=l,r=h;break;case 1:o=d,n=i,r=h;break;case 2:o=h,n=i,r=l;break;case 3:o=h,n=d,r=i;break;case 4:o=l,n=h,r=i;break;case 5:o=i,n=h,r=d}return{r:Math.floor(255*o),g:Math.floor(255*n),b:Math.floor(255*r)}}function Hr(t,e,i){var o=Lr(t,e,i);return Ar(o.r,o.g,o.b)}function Wr(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Vr(t){return kr.test(t)}function qr(t){return _r.test(t)}function Ur(t){if(null===t||"object"!==nr(t))return null;if(t instanceof Element)return t;var e=po(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==nr(t[i])&&(e[i]=Ur(t[i]));return e}function Yr(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=function(t){return null!=t},r=function(t){return null!==t&&"object"===nr(t)},s=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!n(i))throw new Error("Parameter option must have a value");if(!r(o))throw new Error("Parameter globalOptions must be an object");var a=function(t,e,i){r(t[i])||(t[i]={});var o=e[i],n=t[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},h=e[i],d=r(o)&&!s(o),l=d?o[i]:void 0,c=l?l.enabled:void 0;if(void 0!==h){if("boolean"==typeof h)return r(t[i])||(t[i]={}),void(t[i].enabled=h);if(null===h&&!r(t[i])){if(!n(l))return;t[i]=po(l)}if(r(h)){var u=!0;void 0!==h.enabled?u=h.enabled:void 0!==c&&(u=l.enabled),a(t,e,i),t[i].enabled=u}}}var Xr={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Gr(t,e){var i;ir(e)||(e=[e]);var o,n=pr(t);try{for(n.s();!(o=n.n()).done;){var r=o.value;if(r){i=r[e[0]];for(var s=1;s<e.length;s++)i&&(i=i[e[s]]);if(void 0!==i)break}}}catch(t){n.e(t)}finally{n.f()}return i}var Kr=tn("splice"),$r=Do("splice",{ACCESSORS:!0,0:0,1:2}),Zr=Math.max,Qr=Math.min;U({target:"Array",proto:!0,forced:!Kr||!$r},{splice:function(t,e){var i,o,n,r,s,a,h=gt(this),d=nt(h.length),l=at(t,d),c=arguments.length;if(0===c?i=o=0:1===c?(i=0,o=d-l):(i=c-2,o=Qr(Zr(it(e),0),d-l)),d+i-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(n=We(h,o),r=0;r<o;r++)(s=l+r)in h&&At(n,r,h[s]);if(n.length=o,i<o){for(r=l;r<d-o;r++)a=r+i,(s=r+o)in h?h[a]=h[s]:delete h[a];for(r=d;r>d-o+i;r--)delete h[r-1]}else if(i>o)for(r=d-o;r>l;r--)a=r+i-1,(s=r+o-1)in h?h[a]=h[s]:delete h[a];for(r=0;r<i;r++)h[r+l]=arguments[r+2];return h.length=d-o+i,n}});var Jr=$("Array").splice,ts=Array.prototype,es=function(t){var e=t.splice;return t===ts||t instanceof Array&&e===ts.splice?Jr:e},is=dt.includes,os=Do("indexOf",{ACCESSORS:!0,1:0});U({target:"Array",proto:!0,forced:!os},{includes:function(t){return is(this,t,arguments.length>1?arguments[1]:void 0)}});var ns=$("Array").includes,rs=pe("match"),ss=function(t){if(function(t){var e;return b(t)&&(void 0!==(e=t[rs])?!!e:"RegExp"==p(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},as=pe("match");U({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[as]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(y(this)).indexOf(ss(t),arguments.length>1?arguments[1]:void 0)}});var hs=$("String").includes,ds=Array.prototype,ls=String.prototype,cs=function(t){var e=t.includes;return t===ds||t instanceof Array&&e===ds.includes?ns:"string"==typeof t||t===ls||t instanceof String&&e===ls.includes?hs:e};function us(t){return ws=t,function(){var t={};ks=0,void(_s=ws.charAt(0)),zs(),"strict"===xs&&(t.strict=!0,zs());"graph"!==xs&&"digraph"!==xs||(t.type=xs,zs());Os===ys&&(t.id=xs,zs());if("{"!=xs)throw Ls("Angle bracket { expected");if(zs(),Fs(t),"}"!=xs)throw Ls("Angle bracket } expected");if(zs(),""!==xs)throw Ls("End of file expected");return zs(),delete t.node,delete t.edge,delete t.graph,t}()}var fs={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},ps=po(fs);ps.color="color.color",ps.style="dashes";var vs=0,gs=1,ys=2,ms=3,bs={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},ws="",ks=0,_s="",xs="",Os=vs;function Es(){ks++,_s=ws.charAt(ks)}function Cs(){return ws.charAt(ks+1)}var Ss=/[a-zA-Z_0-9.:#]/;function Ts(t){return Ss.test(t)}function Ds(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Ms(t,e,i){for(var o=e.split("."),n=t;o.length;){var r=o.shift();o.length?(n[r]||(n[r]={}),n=n[r]):n[r]=i}}function Ps(t,e){for(var i,o,n=null,r=[t],s=t;s.parent;)r.push(s.parent),s=s.parent;if(s.nodes)for(i=0,o=s.nodes.length;i<o;i++)if(e.id===s.nodes[i].id){n=s.nodes[i];break}for(n||(n={id:e.id},t.node&&(n.attr=Ds(n.attr,t.node))),i=r.length-1;i>=0;i--){var a,h=r[i];h.nodes||(h.nodes=[]),-1===mn(a=h.nodes).call(a,n)&&h.nodes.push(n)}e.attr&&(n.attr=Ds(n.attr,e.attr))}function Is(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=Ds({},t.edge);e.attr=Ds(i,e.attr)}}function Bs(t,e,i,o,n){var r={from:e,to:i,type:o};return t.edge&&(r.attr=Ds({},t.edge)),r.attr=Ds(r.attr||{},n),null!=n&&n.hasOwnProperty("arrows")&&null!=n.arrows&&(r.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),r}function zs(){for(Os=vs,xs="";" "===_s||"\t"===_s||"\n"===_s||"\r"===_s;)Es();do{var t=!1;if("#"===_s){for(var e=ks-1;" "===ws.charAt(e)||"\t"===ws.charAt(e);)e--;if("\n"===ws.charAt(e)||""===ws.charAt(e)){for(;""!=_s&&"\n"!=_s;)Es();t=!0}}if("/"===_s&&"/"===Cs()){for(;""!=_s&&"\n"!=_s;)Es();t=!0}if("/"===_s&&"*"===Cs()){for(;""!=_s;){if("*"===_s&&"/"===Cs()){Es(),Es();break}Es()}t=!0}for(;" "===_s||"\t"===_s||"\n"===_s||"\r"===_s;)Es()}while(t);if(""!==_s){var i=_s+Cs();if(bs[i])return Os=gs,xs=i,Es(),void Es();if(bs[_s])return Os=gs,xs=_s,void Es();if(Ts(_s)||"-"===_s){for(xs+=_s,Es();Ts(_s);)xs+=_s,Es();return"false"===xs?xs=!1:"true"===xs?xs=!0:isNaN(Number(xs))||(xs=Number(xs)),void(Os=ys)}if('"'===_s){for(Es();""!=_s&&('"'!=_s||'"'===_s&&'"'===Cs());)'"'===_s?(xs+=_s,Es()):"\\"===_s&&"n"===Cs()?(xs+="\n",Es()):xs+=_s,Es();if('"'!=_s)throw Ls('End of string " expected');return Es(),void(Os=ys)}for(Os=ms;""!=_s;)xs+=_s,Es();throw new SyntaxError('Syntax error in part "'+Hs(xs,30)+'"')}Os=gs}function Fs(t){for(;""!==xs&&"}"!=xs;)Ns(t),";"===xs&&zs()}function Ns(t){var e=As(t);if(e)js(t,e);else if(!function(t){if("node"===xs)return zs(),t.node=Rs(),"node";if("edge"===xs)return zs(),t.edge=Rs(),"edge";if("graph"===xs)return zs(),t.graph=Rs(),"graph";return null}(t)){if(Os!=ys)throw Ls("Identifier expected");var i=xs;if(zs(),"="===xs){if(zs(),Os!=ys)throw Ls("Identifier expected");t[i]=xs,zs()}else!function(t,e){var i={id:e},o=Rs();o&&(i.attr=o);Ps(t,i),js(t,e)}(t,i)}}function As(t){var e=null;if("subgraph"===xs&&((e={}).type="subgraph",zs(),Os===ys&&(e.id=xs,zs())),"{"===xs){if(zs(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,Fs(e),"}"!=xs)throw Ls("Angle bracket } expected");zs(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function js(t,e){for(;"->"===xs||"--"===xs;){var i,o=xs;zs();var n=As(t);if(n)i=n;else{if(Os!=ys)throw Ls("Identifier or subgraph expected");Ps(t,{id:i=xs}),zs()}Is(t,Bs(t,e,i,o,Rs())),e=i}}function Rs(){for(var t,e,i=null,o={dashed:!0,solid:!1,dotted:[1,5]},n={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,s=new Array;"["===xs;){for(zs(),i={};""!==xs&&"]"!=xs;){if(Os!=ys)throw Ls("Attribute name expected");var a=xs;if(zs(),"="!=xs)throw Ls("Equal sign = expected");if(zs(),Os!=ys)throw Ls("Attribute value expected");var h=xs;"style"===a&&(h=o[h]),"arrowhead"===a&&(a="arrows",h={to:{enabled:!0,type:n[h]}}),"arrowtail"===a&&(a="arrows",h={from:{enabled:!0,type:n[h]}}),r.push({attr:i,name:a,value:h}),s.push(a),zs(),","==xs&&zs()}if("]"!=xs)throw Ls("Bracket ] expected");zs()}if(cs(s).call(s,"dir")){var d={arrows:{}};for(t=0;t<r.length;t++)if("arrows"===r[t].name)if(null!=r[t].value.to)d.arrows.to=t;else{if(null==r[t].value.from)throw Ls("Invalid value of arrows");d.arrows.from=t}else"dir"===r[t].name&&(d.dir=t);var l,c,u=r[d.dir].value;if(!cs(s).call(s,"arrows"))if("both"===u)r.push({attr:r[d.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),d.arrows.to=r.length-1,r.push({attr:r[d.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),d.arrows.from=r.length-1;else if("forward"===u)r.push({attr:r[d.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),d.arrows.to=r.length-1;else if("back"===u)r.push({attr:r[d.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),d.arrows.from=r.length-1;else{if("none"!==u)throw Ls('Invalid dir type "'+u+'"');r.push({attr:r[d.dir].attr,name:"arrows",value:""}),d.arrows.to=r.length-1}if("both"===u)d.arrows.to&&d.arrows.from?(c=r[d.arrows.to].value.to.type,l=r[d.arrows.from].value.from.type,r[d.arrows.to]={attr:r[d.arrows.to].attr,name:r[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}},es(r).call(r,d.arrows.from,1)):d.arrows.to?(c=r[d.arrows.to].value.to.type,l="arrow",r[d.arrows.to]={attr:r[d.arrows.to].attr,name:r[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.from&&(c="arrow",l=r[d.arrows.from].value.from.type,r[d.arrows.from]={attr:r[d.arrows.from].attr,name:r[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}});else if("back"===u)d.arrows.to&&d.arrows.from?(c="",l=r[d.arrows.from].value.from.type,r[d.arrows.from]={attr:r[d.arrows.from].attr,name:r[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.to?(c="",l="arrow",d.arrows.from=d.arrows.to,r[d.arrows.from]={attr:r[d.arrows.from].attr,name:r[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.from&&(c="",l=r[d.arrows.from].value.from.type,r[d.arrows.to]={attr:r[d.arrows.from].attr,name:r[d.arrows.from].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}),r[d.arrows.from]={attr:r[d.arrows.from].attr,name:r[d.arrows.from].name,value:{from:{enabled:!0,type:r[d.arrows.from].value.from.type}}};else if("none"===u){var f;r[f=d.arrows.to?d.arrows.to:d.arrows.from]={attr:r[f].attr,name:r[f].name,value:""}}else{if("forward"!==u)throw Ls('Invalid dir type "'+u+'"');d.arrows.to&&d.arrows.from||d.arrows.to?(c=r[d.arrows.to].value.to.type,l="",r[d.arrows.to]={attr:r[d.arrows.to].attr,name:r[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}):d.arrows.from&&(c="arrow",l="",d.arrows.to=d.arrows.from,r[d.arrows.to]={attr:r[d.arrows.to].attr,name:r[d.arrows.to].name,value:{to:{enabled:!0,type:c},from:{enabled:!0,type:l}}}),r[d.arrows.to]={attr:r[d.arrows.to].attr,name:r[d.arrows.to].name,value:{to:{enabled:!0,type:r[d.arrows.t