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