vis-network
Version:
A dynamic, browser-based visualization library.
51 lines • 449 kB
JavaScript
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 8.1.0
* @date 2020-08-09T06:20:27.234Z
*
* @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):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},n=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||Function("return this")(),r=function(t){try{return!!t()}catch(t){return!0}},s=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,l={f:h&&!a.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:a},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,u=function(t){return c.call(t).slice(8,-1)},f="".split,p=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return p(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!y(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!y(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!y(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!y(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},k=n.document,_=y(k)&&y(k.createElement),x=function(t){return _?k.createElement(t):{}},O=!s&&!r((function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,C={f:s?E:function(t,e){if(t=g(t),e=m(e,!0),O)try{return E(t,e)}catch(t){}if(w(t,e))return d(!l.f.call(t,e),t[e])}},S=/#|\.prototype\./,T=function(t,e){var i=M[D(t)];return i==I||i!=P&&("function"==typeof e?r(e):!!e)},D=T.normalize=function(t){return String(t).replace(S,".").toLowerCase()},M=T.data={},P=T.NATIVE="N",I=T.POLYFILL="P",B=T,z={},F=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},N=function(t,e,i){if(F(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)}},A=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},j=Object.defineProperty,R={f:s?j:function(t,e,i){if(A(t),e=m(e,!0),A(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}},L=s?function(t,e,i){return R.f(t,e,d(1,i))}:function(t,e,i){return t[e]=i,t},H=C.f,W=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,r,s,a,h,l,d,c=t.target,u=t.global,f=t.stat,p=t.proto,v=u?n:f?n[c]:(n[c]||{}).prototype,g=u?z:z[c]||(z[c]={}),y=g.prototype;for(r in e)i=!B(u?r:c+(f?".":"#")+r,t.forced)&&v&&w(v,r),a=g[r],i&&(h=t.noTargetGet?(d=H(v,r))&&d.value:v[r]),s=i&&h?h:e[r],i&&typeof a==typeof s||(l=t.bind&&i?N(s,n):t.wrap&&i?W(s):p&&"function"==typeof s?N(Function.call,s):s,(t.sham||s&&s.sham||a&&a.sham)&&L(l,"sham",!0),g[r]=l,p&&(w(z,o=c+"Prototype")||L(z,o,{}),z[o][r]=s,t.real&&y&&!y[r]&&L(y,r,s)))},V=[].slice,U={},Y=function(t,e,i){if(!(e in U)){for(var o=[],n=0;n<e;n++)o[n]="a["+n+"]";U[e]=Function("C,a","return new C("+o.join(",")+")")}return U[e](t,i)},X=Function.bind||function(t){var e=F(this),i=V.call(arguments,1),o=function(){var n=i.concat(V.call(arguments));return this instanceof o?Y(e,n.length,n):e.apply(t,n)};return y(e.prototype)&&(o.prototype=e.prototype),o};q({target:"Function",proto:!0},{bind:X});var G=function(t){return z[t+"Prototype"]},K=G("Function").bind,$=Function.prototype,Q=function(t){var e=t.bind;return t===$||t instanceof Function&&e===$.bind?K:e},Z=Math.ceil,J=Math.floor,tt=function(t){return isNaN(t=+t)?0:(t>0?J:Z)(t)},et=Math.min,it=function(t){return t>0?et(tt(t),9007199254740991):0},ot=Math.max,nt=Math.min,rt=function(t,e){var i=tt(t);return i<0?ot(i+e,0):nt(i,e)},st=function(t){return function(e,i,o){var n,r=g(e),s=it(r.length),a=rt(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}},at={includes:st(!0),indexOf:st(!1)},ht={},lt=at.indexOf,dt=function(t,e){var i,o=g(t),n=0,r=[];for(i in o)!w(ht,i)&&w(o,i)&&r.push(i);for(;e.length>n;)w(o,i=e[n++])&&(~lt(r,i)||r.push(i));return r},ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ut=Object.keys||function(t){return dt(t,ct)},ft={f:Object.getOwnPropertySymbols},pt=function(t){return Object(v(t))},vt=Object.assign,gt=Object.defineProperty,yt=!vt||r((function(){if(s&&1!==vt({b:1},vt(gt({},"a",{enumerable:!0,get:function(){gt(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!=vt({},t)[i]||"abcdefghijklmnopqrst"!=ut(vt({},e)).join("")}))?function(t,e){for(var i=pt(t),o=arguments.length,n=1,r=ft.f,a=l.f;o>n;)for(var h,d=p(arguments[n++]),c=r?ut(d).concat(r(d)):ut(d),u=c.length,f=0;u>f;)h=c[f++],s&&!a.call(d,h)||(i[h]=d[h]);return i}:vt;q({target:"Object",stat:!0,forced:Object.assign!==yt},{assign:yt});var mt=z.Object.assign;function bt(t,e,i,o){t.beginPath(),t.arc(e,i,o,0,2*Math.PI,!1),t.closePath()}function wt(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 kt(t,e,i,o,n){var r=o/2*.5522848,s=n/2*.5522848,a=e+o,h=i+n,l=e+o/2,d=i+n/2;t.beginPath(),t.moveTo(e,d),t.bezierCurveTo(e,d-s,l-r,i,l,i),t.bezierCurveTo(l+r,i,a,d-s,a,d),t.bezierCurveTo(a,d+s,l+r,h,l,h),t.bezierCurveTo(l-r,h,e,d+s,e,d),t.closePath()}function _t(t,e,i,o,n){var r=n*(1/3),s=o/2*.5522848,a=r/2*.5522848,h=e+o,l=i+r,d=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,d+s,l,d,l),t.bezierCurveTo(d-s,l,e,c+a,e,c),t.bezierCurveTo(e,c-a,d-s,i,d,i),t.bezierCurveTo(d+s,i,h,c-a,h,c),t.lineTo(h,u),t.bezierCurveTo(h,u+a,d+s,f,d,f),t.bezierCurveTo(d-s,f,e,u+a,e,u),t.lineTo(e,c)}function xt(t,e,i,o,n,r){t.beginPath(),t.moveTo(e,i);for(var s=r.length,a=o-e,h=n-i,l=h/a,d=Math.sqrt(a*a+h*h),c=0,u=!0,f=0,p=+r[0];d>=.1;)(p=+r[c++%s])>d&&(p=d),f=Math.sqrt(p*p/(1+l*l)),e+=f=a<0?-f:f,i+=l*f,!0===u?t.lineTo(e,i):t.moveTo(e,i),d-=p,u=!u}var Ot={circle:bt,dashedLine:xt,database:_t,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:kt,ellipse_vis:kt,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:wt,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 Et=i((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:!s,sham:!s},{defineProperty:R.f});var Ct=i((function(t){var e=z.Object,i=t.exports=function(t,i,o){return e.defineProperty(t,i,o)};e.defineProperty.sham&&(i.sham=!0)})),St=Ct,Tt=s?Object.defineProperties:function(t,e){A(t);for(var i,o=ut(e),n=o.length,r=0;n>r;)R.f(t,i=o[r++],e[i]);return t};q({target:"Object",stat:!0,forced:!s,sham:!s},{defineProperties:Tt});var Dt=i((function(t){var e=z.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Mt=function(t){return"function"==typeof t?t:void 0},Pt=function(t,e){return arguments.length<2?Mt(z[t])||Mt(n[t]):z[t]&&z[t][e]||n[t]&&n[t][e]},It=ct.concat("length","prototype"),Bt={f:Object.getOwnPropertyNames||function(t){return dt(t,It)}},zt=Pt("Reflect","ownKeys")||function(t){var e=Bt.f(A(t)),i=ft.f;return i?e.concat(i(t)):e},Ft=function(t,e,i){var o=m(e);o in t?R.f(t,o,d(0,i)):t[o]=i};q({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(t){for(var e,i,o=g(t),n=C.f,r=zt(o),s={},a=0;r.length>a;)void 0!==(i=n(o,e=r[a++]))&&Ft(s,e,i);return s}});var Nt=z.Object.getOwnPropertyDescriptors,At=C.f,jt=r((function(){At(1)}));q({target:"Object",stat:!0,forced:!s||jt,sham:!s},{getOwnPropertyDescriptor:function(t,e){return At(g(t),e)}});var Rt,Lt=i((function(t){var e=z.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Ht=Lt,Wt=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())})),qt=Wt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vt=Array.isArray||function(t){return"Array"==u(t)},Ut=Pt("document","documentElement"),Yt=n["__core-js_shared__"]||function(t,e){try{L(n,t,e)}catch(i){n[t]=e}return e}("__core-js_shared__",{}),Xt=i((function(t){(t.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Gt=0,Kt=Math.random(),$t=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Gt+Kt).toString(36)},Qt=Xt("keys"),Zt=function(t){return Qt[t]||(Qt[t]=$t(t))},Jt=Zt("IE_PROTO"),te=function(){},ee=function(t){return"<script>"+t+"<\/script>"},ie=function(){try{Rt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ie=Rt?function(t){t.write(ee("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Rt):((e=x("iframe")).style.display="none",Ut.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ee("document.F=Object")),t.close(),t.F);for(var i=ct.length;i--;)delete ie.prototype[ct[i]];return ie()};ht[Jt]=!0;var oe=Object.create||function(t,e){var i;return null!==t?(te.prototype=A(t),i=new te,te.prototype=null,i[Jt]=t):i=ie(),void 0===e?i:Tt(i,e)},ne=Bt.f,re={}.toString,se="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ae={f:function(t){return se&&"[object Window]"==re.call(t)?function(t){try{return ne(t)}catch(t){return se.slice()}}(t):ne(g(t))}},he=function(t,e,i,o){o&&o.enumerable?t[e]=i:L(t,e,i)},le=Xt("wks"),de=n.Symbol,ce=qt?de:de&&de.withoutSetter||$t,ue=function(t){return w(le,t)||(Wt&&w(de,t)?le[t]=de[t]:le[t]=ce("Symbol."+t)),le[t]},fe={f:ue},pe=R.f,ve=function(t){var e=z.Symbol||(z.Symbol={});w(e,t)||pe(e,t,{value:fe.f(t)})},ge={};ge[ue("toStringTag")]="z";var ye="[object z]"===String(ge),me=ue("toStringTag"),be="Arguments"==u(function(){return arguments}()),we=ye?u: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),me))?i:be?u(e):"Object"==(o=u(e))&&"function"==typeof e.callee?"Arguments":o},ke=ye?{}.toString:function(){return"[object "+we(this)+"]"},_e=R.f,xe=ue("toStringTag"),Oe=function(t,e,i,o){if(t){var n=i?t:t.prototype;w(n,xe)||_e(n,xe,{configurable:!0,value:e}),o&&!ye&&L(n,"toString",ke)}},Ee=Function.toString;"function"!=typeof Yt.inspectSource&&(Yt.inspectSource=function(t){return Ee.call(t)});var Ce,Se,Te,De=Yt.inspectSource,Me=n.WeakMap,Pe="function"==typeof Me&&/native code/.test(De(Me)),Ie=n.WeakMap;if(Pe){var Be=new Ie,ze=Be.get,Fe=Be.has,Ne=Be.set;Ce=function(t,e){return Ne.call(Be,t,e),e},Se=function(t){return ze.call(Be,t)||{}},Te=function(t){return Fe.call(Be,t)}}else{var Ae=Zt("state");ht[Ae]=!0,Ce=function(t,e){return L(t,Ae,e),e},Se=function(t){return w(t,Ae)?t[Ae]:{}},Te=function(t){return w(t,Ae)}}var je={set:Ce,get:Se,has:Te,enforce:function(t){return Te(t)?Se(t):Ce(t,{})},getterFor:function(t){return function(e){var i;if(!y(e)||(i=Se(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},Re=ue("species"),Le=function(t,e){var i;return Vt(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Vt(i.prototype)?y(i)&&null===(i=i[Re])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},He=[].push,We=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,l,d){for(var c,u,f=pt(a),v=p(f),g=N(h,l,3),y=it(v.length),m=0,b=d||Le,w=e?b(a,y):i?b(a,0):void 0;y>m;m++)if((s||m in v)&&(u=g(c=v[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:He.call(w,c)}else if(n)return!1;return r?-1:o||n?n:w}},qe={forEach:We(0),map:We(1),filter:We(2),some:We(3),every:We(4),find:We(5),findIndex:We(6)},Ve=qe.forEach,Ue=Zt("hidden"),Ye=ue("toPrimitive"),Xe=je.set,Ge=je.getterFor("Symbol"),Ke=Object.prototype,$e=n.Symbol,Qe=Pt("JSON","stringify"),Ze=C.f,Je=R.f,ti=ae.f,ei=l.f,ii=Xt("symbols"),oi=Xt("op-symbols"),ni=Xt("string-to-symbol-registry"),ri=Xt("symbol-to-string-registry"),si=Xt("wks"),ai=n.QObject,hi=!ai||!ai.prototype||!ai.prototype.findChild,li=s&&r((function(){return 7!=oe(Je({},"a",{get:function(){return Je(this,"a",{value:7}).a}})).a}))?function(t,e,i){var o=Ze(Ke,e);o&&delete Ke[e],Je(t,e,i),o&&t!==Ke&&Je(Ke,e,o)}:Je,di=function(t,e){var i=ii[t]=oe($e.prototype);return Xe(i,{type:"Symbol",tag:t,description:e}),s||(i.description=e),i},ci=qt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof $e},ui=function(t,e,i){t===Ke&&ui(oi,e,i),A(t);var o=m(e,!0);return A(i),w(ii,o)?(i.enumerable?(w(t,Ue)&&t[Ue][o]&&(t[Ue][o]=!1),i=oe(i,{enumerable:d(0,!1)})):(w(t,Ue)||Je(t,Ue,d(1,{})),t[Ue][o]=!0),li(t,o,i)):Je(t,o,i)},fi=function(t,e){A(t);var i=g(e),o=ut(i).concat(yi(i));return Ve(o,(function(e){s&&!pi.call(i,e)||ui(t,e,i[e])})),t},pi=function(t){var e=m(t,!0),i=ei.call(this,e);return!(this===Ke&&w(ii,e)&&!w(oi,e))&&(!(i||!w(this,e)||!w(ii,e)||w(this,Ue)&&this[Ue][e])||i)},vi=function(t,e){var i=g(t),o=m(e,!0);if(i!==Ke||!w(ii,o)||w(oi,o)){var n=Ze(i,o);return!n||!w(ii,o)||w(i,Ue)&&i[Ue][o]||(n.enumerable=!0),n}},gi=function(t){var e=ti(g(t)),i=[];return Ve(e,(function(t){w(ii,t)||w(ht,t)||i.push(t)})),i},yi=function(t){var e=t===Ke,i=ti(e?oi:g(t)),o=[];return Ve(i,(function(t){!w(ii,t)||e&&!w(Ke,t)||o.push(ii[t])})),o};if(Wt||(he(($e=function(){if(this instanceof $e)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=$t(t),i=function(t){this===Ke&&i.call(oi,t),w(this,Ue)&&w(this[Ue],e)&&(this[Ue][e]=!1),li(this,e,d(1,t))};return s&&hi&&li(Ke,e,{configurable:!0,set:i}),di(e,t)}).prototype,"toString",(function(){return Ge(this).tag})),he($e,"withoutSetter",(function(t){return di($t(t),t)})),l.f=pi,R.f=ui,C.f=vi,Bt.f=ae.f=gi,ft.f=yi,fe.f=function(t){return di(ue(t),t)},s&&Je($e.prototype,"description",{configurable:!0,get:function(){return Ge(this).description}})),q({global:!0,wrap:!0,forced:!Wt,sham:!Wt},{Symbol:$e}),Ve(ut(si),(function(t){ve(t)})),q({target:"Symbol",stat:!0,forced:!Wt},{for:function(t){var e=String(t);if(w(ni,e))return ni[e];var i=$e(e);return ni[e]=i,ri[i]=e,i},keyFor:function(t){if(!ci(t))throw TypeError(t+" is not a symbol");if(w(ri,t))return ri[t]},useSetter:function(){hi=!0},useSimple:function(){hi=!1}}),q({target:"Object",stat:!0,forced:!Wt,sham:!s},{create:function(t,e){return void 0===e?oe(t):fi(oe(t),e)},defineProperty:ui,defineProperties:fi,getOwnPropertyDescriptor:vi}),q({target:"Object",stat:!0,forced:!Wt},{getOwnPropertyNames:gi,getOwnPropertySymbols:yi}),q({target:"Object",stat:!0,forced:r((function(){ft.f(1)}))},{getOwnPropertySymbols:function(t){return ft.f(pt(t))}}),Qe){var mi=!Wt||r((function(){var t=$e();return"[null]"!=Qe([t])||"{}"!=Qe({a:t})||"{}"!=Qe(Object(t))}));q({target:"JSON",stat:!0,forced:mi},{stringify:function(t,e,i){for(var o,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(o=e,(y(e)||void 0!==t)&&!ci(t))return Vt(e)||(e=function(t,e){if("function"==typeof o&&(e=o.call(this,t,e)),!ci(e))return e}),n[1]=e,Qe.apply(null,n)}})}$e.prototype[Ye]||L($e.prototype,Ye,$e.prototype.valueOf),Oe($e,"Symbol"),ht[Ue]=!0;var bi,wi,ki,_i=z.Object.getOwnPropertySymbols,xi={},Oi=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ei=Zt("IE_PROTO"),Ci=Object.prototype,Si=Oi?Object.getPrototypeOf:function(t){return t=pt(t),w(t,Ei)?t[Ei]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ci:null},Ti=(ue("iterator"),!1);[].keys&&("next"in(ki=[].keys())?(wi=Si(Si(ki)))!==Object.prototype&&(bi=wi):Ti=!0),null==bi&&(bi={});var Di={IteratorPrototype:bi,BUGGY_SAFARI_ITERATORS:Ti},Mi=Di.IteratorPrototype,Pi=function(){return this},Ii=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 A(i),function(t){if(!y(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),Bi=Di.IteratorPrototype,zi=Di.BUGGY_SAFARI_ITERATORS,Fi=ue("iterator"),Ni=function(){return this},Ai=function(t,e,i,o,n,r,s){!function(t,e,i){var o=e+" Iterator";t.prototype=oe(Mi,{next:d(1,i)}),Oe(t,o,!1,!0),xi[o]=Pi}(i,e,o);var a,h,l,c=function(t){if(t===n&&g)return g;if(!zi&&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)}},u=e+" Iterator",f=!1,p=t.prototype,v=p[Fi]||p["@@iterator"]||n&&p[n],g=!zi&&v||c(n),y="Array"==e&&p.entries||v;if(y&&(a=Si(y.call(new t)),Bi!==Object.prototype&&a.next&&(Oe(a,u,!0,!0),xi[u]=Ni)),"values"==n&&v&&"values"!==v.name&&(f=!0,g=function(){return v.call(this)}),s&&p[Fi]!==g&&L(p,Fi,g),xi[e]=g,n)if(h={values:c("values"),keys:r?g:c("keys"),entries:c("entries")},s)for(l in h)(zi||f||!(l in p))&&he(p,l,h[l]);else q({target:e,proto:!0,forced:zi||f},h);return h},ji=je.set,Ri=je.getterFor("Array Iterator");Ai(Array,"Array",(function(t,e){ji(this,{type:"Array Iterator",target:g(t),index:0,kind:e})}),(function(){var t=Ri(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");xi.Arguments=xi.Array;var Li=ue("toStringTag");for(var Hi 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 Wi=n[Hi],qi=Wi&&Wi.prototype;qi&&we(qi)!==Li&&L(qi,Li,Hi),xi[Hi]=xi.Array}var Vi=function(t){return function(e,i){var o,n,r=String(v(e)),s=tt(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}},Ui={codeAt:Vi(!1),charAt:Vi(!0)}.charAt,Yi=je.set,Xi=je.getterFor("String Iterator");Ai(String,"String",(function(t){Yi(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Xi(this),i=e.string,o=e.index;return o>=i.length?{value:void 0,done:!0}:(t=Ui(i,o),e.index+=t.length,{value:t,done:!1})}));var Gi=ue("iterator"),Ki=function(t){if(null!=t)return t[Gi]||t["@@iterator"]||xi[we(t)]},$i=function(t){var e=Ki(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return A(e.call(t))},Qi=Ki,Zi=function(t,e,i,o){try{return o?e(A(i)[0],i[1]):e(i)}catch(e){var n=t.return;throw void 0!==n&&A(n.call(t)),e}},Ji=ue("iterator"),to=Array.prototype,eo=function(t){return void 0!==t&&(xi.Array===t||to[Ji]===t)},io=ue("iterator"),oo=!1;try{var no=0,ro={next:function(){return{done:!!no++}},return:function(){oo=!0}};ro[io]=function(){return this},Array.from(ro,(function(){throw 2}))}catch(t){}var so=!function(t,e){if(!e&&!oo)return!1;var i=!1;try{var o={};o[io]=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:so},{from:function(t){var e,i,o,n,r,s,a=pt(t),h="function"==typeof this?this:Array,l=arguments.length,d=l>1?arguments[1]:void 0,c=void 0!==d,u=Ki(a),f=0;if(c&&(d=N(d,l>2?arguments[2]:void 0,2)),null==u||h==Array&&eo(u))for(i=new h(e=it(a.length));e>f;f++)s=c?d(a[f],f):a[f],Ft(i,f,s);else for(r=(n=u.call(a)).next,i=new h;!(o=r.call(n)).done;f++)s=c?Zi(n,d,[o.value,f],!0):o.value,Ft(i,f,s);return i.length=f,i}});var ao=z.Array.from,ho=ao;q({target:"Object",stat:!0,sham:!s},{create:oe});var lo=z.Object,co=function(t,e){return lo.create(t,e)},uo=co,fo=Ct;var po,vo=function(t,e,i){return e in t?fo(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},go="\t\n\v\f\r \u2028\u2029\ufeff",yo="["+go+"]",mo=RegExp("^"+yo+yo+"*"),bo=RegExp(yo+yo+"*$"),wo=function(t){return function(e){var i=String(v(e));return 1&t&&(i=i.replace(mo,"")),2&t&&(i=i.replace(bo,"")),i}},ko={start:wo(1),end:wo(2),trim:wo(3)},_o=ko.trim;q({target:"String",proto:!0,forced:(po="trim",r((function(){return!!go[po]()||"
"!="
"[po]()||go[po].name!==po})))},{trim:function(){return _o(this)}});var xo=G("String").trim,Oo=String.prototype,Eo=function(t){var e=t.trim;return"string"==typeof t||t===Oo||t instanceof String&&e===Oo.trim?xo:e},Co=function(t,e){var i=[][t];return!!i&&r((function(){i.call(null,e||function(){throw 1},1)}))},So=Object.defineProperty,To={},Do=function(t){throw t},Mo=function(t,e){if(w(To,t))return To[t];e||(e={});var i=[][t],o=!!w(e,"ACCESSORS")&&e.ACCESSORS,n=w(e,0)?e[0]:Do,a=w(e,1)?e[1]:void 0;return To[t]=!!i&&!r((function(){if(o&&!s)return!0;var t={length:-1};o?So(t,1,{enumerable:!0,get:Do}):t[1]=1,i.call(t,n,a)}))},Po=qe.forEach,Io=Co("forEach"),Bo=Mo("forEach"),zo=Io&&Bo?[].forEach:function(t){return Po(this,t,arguments.length>1?arguments[1]:void 0)};q({target:"Array",proto:!0,forced:[].forEach!=zo},{forEach:zo});var Fo=G("Array").forEach,No=Array.prototype,Ao={DOMTokenList:!0,NodeList:!0},jo=function(t){var e=t.forEach;return t===No||t instanceof Array&&e===No.forEach||Ao.hasOwnProperty(we(t))?Fo:e},Ro=ko.trim,Lo=n.parseInt,Ho=/^[+-]?0[Xx]/,Wo=8!==Lo(go+"08")||22!==Lo(go+"0x16")?function(t,e){var i=Ro(String(t));return Lo(i,e>>>0||(Ho.test(i)?16:10))}:Lo;q({global:!0,forced:parseInt!=Wo},{parseInt:Wo});var qo=z.parseInt,Vo=l.f,Uo=function(t){return function(e){for(var i,o=g(e),n=ut(o),r=n.length,a=0,h=[];r>a;)i=n[a++],s&&!Vo.call(o,i)||h.push(t?[i,o[i]]:o[i]);return h}},Yo={entries:Uo(!0),values:Uo(!1)}.values;q({target:"Object",stat:!0},{values:function(t){return Yo(t)}});var Xo,Go,Ko=z.Object.values,$o=Pt("navigator","userAgent")||"",Qo=n.process,Zo=Qo&&Qo.versions,Jo=Zo&&Zo.v8;Jo?Go=(Xo=Jo.split("."))[0]+Xo[1]:$o&&(!(Xo=$o.match(/Edge\/(\d+)/))||Xo[1]>=74)&&(Xo=$o.match(/Chrome\/(\d+)/))&&(Go=Xo[1]);var tn=Go&&+Go,en=ue("species"),on=function(t){return tn>=51||!r((function(){var e=[];return(e.constructor={})[en]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},nn=qe.filter,rn=on("filter"),sn=Mo("filter");q({target:"Array",proto:!0,forced:!rn||!sn},{filter:function(t){return nn(this,t,arguments.length>1?arguments[1]:void 0)}});var an=G("Array").filter,hn=Array.prototype,ln=function(t){var e=t.filter;return t===hn||t instanceof Array&&e===hn.filter?an:e},dn=r((function(){Si(1)}));q({target:"Object",stat:!0,forced:dn,sham:!Oi},{getPrototypeOf:function(t){return Si(pt(t))}});var cn=z.Object.getPrototypeOf,un=cn,fn=at.indexOf,pn=[].indexOf,vn=!!pn&&1/[1].indexOf(1,-0)<0,gn=Co("indexOf"),yn=Mo("indexOf",{ACCESSORS:!0,1:0});q({target:"Array",proto:!0,forced:vn||!gn||!yn},{indexOf:function(t){return vn?pn.apply(this,arguments)||0:fn(this,t,arguments.length>1?arguments[1]:void 0)}});var mn=G("Array").indexOf,bn=Array.prototype,wn=function(t){var e=t.indexOf;return t===bn||t instanceof Array&&e===bn.indexOf?mn:e};q({target:"Array",stat:!0},{isArray:Vt});var kn=z.Array.isArray,_n=kn;var xn=function(t){if(_n(t))return t},On=ue("iterator"),En=function(t){var e=Object(t);return void 0!==e[On]||"@@iterator"in e||xi.hasOwnProperty(we(e))},Cn=ue("isConcatSpreadable"),Sn=tn>=51||!r((function(){var t=[];return t[Cn]=!1,t.concat()[0]!==t})),Tn=on("concat"),Dn=function(t){if(!y(t))return!1;var e=t[Cn];return void 0!==e?!!e:Vt(t)};q({target:"Array",proto:!0,forced:!Sn||!Tn},{concat:function(t){var e,i,o,n,r,s=pt(this),a=Le(s,0),h=0;for(e=-1,o=arguments.length;e<o;e++)if(Dn(r=-1===e?s:arguments[e])){if(h+(n=it(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<n;i++,h++)i in r&&Ft(a,h,r[i])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ft(a,h++,r)}return a.length=h,a}}),ve("asyncIterator"),ve("hasInstance"),ve("isConcatSpreadable"),ve("iterator"),ve("match"),ve("matchAll"),ve("replace"),ve("search"),ve("species"),ve("split"),ve("toPrimitive"),ve("toStringTag"),ve("unscopables"),Oe(Math,"Math",!0),Oe(n.JSON,"JSON",!0);var Mn=z.Symbol;ve("asyncDispose"),ve("dispose"),ve("observable"),ve("patternMatch"),ve("replaceAll");var Pn=Mn;var In=function(t,e){if(void 0!==Pn&&En(Object(t))){var i=[],o=!0,n=!1,r=void 0;try{for(var s,a=$i(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=ao,zn=on("slice"),Fn=Mo("slice",{ACCESSORS:!0,0:0,1:2}),Nn=ue("species"),An=[].slice,jn=Math.max;q({target:"Array",proto:!0,forced:!zn||!Fn},{slice:function(t,e){var i,o,n,r=g(this),s=it(r.length),a=rt(t,s),h=rt(void 0===e?s:e,s);if(Vt(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!Vt(i.prototype)?y(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&&Ft(o,n,r[a]);return o.length=n,o}});var Rn=G("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 qn=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 Vn=function(t,e){var i;if(t){if("string"==typeof t)return qn(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)?qn(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 xn(t)||In(t,e)||Vn(t,e)||Un()};q({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Xn=z.Date.now,Gn=r((function(){ut(1)}));q({target:"Object",stat:!0,forced:Gn},{keys:function(t){return ut(pt(t))}});var Kn=z.Object.keys,$n=qe.map,Qn=on("map"),Zn=Mo("map");q({target:"Array",proto:!0,forced:!Qn||!Zn},{map:function(t){return $n(this,t,arguments.length>1?arguments[1]:void 0)}});var Jn=G("Array").map,tr=Array.prototype,er=function(t){var e=t.map;return t===tr||t instanceof Array&&e===tr.map?Jn:e},ir=kn,or=fe.f("iterator"),nr=or,rr=i((function(t){function e(i){return t.exports=e="function"==typeof Pn&&"symbol"==typeof nr?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}));q({target:"Reflect",stat:!0},{ownKeys:zt});var sr=z.Reflect.ownKeys,ar=Hn;var hr=function(t){if(_n(t))return qn(t)};var lr=function(t){if(void 0!==Pn&&En(Object(t)))return Bn(t)};var dr=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 cr=function(t){return hr(t)||lr(t)||Vn(t)||dr()},ur=G("Array").concat,fr=Array.prototype,pr=function(t){var e=t.concat;return t===fr||t instanceof Array&&e===fr.concat?ur:e},vr=Mn;function gr(t,e){var i=Kn(t);if(_i){var o=_i(t);e&&(o=ln(o).call(o,(function(e){return Ht(t,e).enumerable}))),i.push.apply(i,o)}return i}function yr(t){for(var e=1;e<arguments.length;e++){var i,o=null!=arguments[e]?arguments[e]:{};if(e%2)jo(i=gr(Object(o),!0)).call(i,(function(e){vo(t,e,o[e])}));else if(Nt)Dt(t,Nt(o));else{var n;jo(n=gr(Object(o))).call(n,(function(e){St(t,e,Ht(o,e))}))}}return t}function mr(t,e){var i;if(void 0===vr||null==Qi(t)){if(ir(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return br(t,e);var o=ar(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return ho(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return br(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=$i(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 br(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.
*/var wr=vr("DELETE");function kr(t){for(var e,i=arguments.length,o=new Array(i>1?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];return _r.apply(void 0,pr(e=[{},t]).call(e,o))}function _r(){var t=xr.apply(void 0,arguments);return Er(t),t}function xr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)return e[0];var o;if(e.length>2)return xr.apply(void 0,pr(o=[_r(e[0],e[1])]).call(o,cr(ar(e).call(e,2))));var n,r=e[0],s=e[1],a=mr(sr(s));try{for(a.s();!(n=a.n()).done;){var h=n.value;Object.prototype.propertyIsEnumerable.call(s,h)&&(s[h]===wr?delete r[h]:null===r[h]||null===s[h]||"object"!==rr(r[h])||"object"!==rr(s[h])||ir(r[h])||ir(s[h])?r[h]=Or(s[h]):r[h]=xr(r[h],s[h]))}}catch(t){a.e(t)}finally{a.f()}return r}function Or(t){return ir(t)?er(t).call(t,(function(t){return Or(t)})):"object"===rr(t)&&null!==t?xr({},t):t}function Er(t){for(var e=0,i=Kn(t);e<i.length;e++){var o=i[e];t[o]===wr?delete t[o]:"object"===rr(t[o])&&null!==t[o]&&Er(t[o])}}function Cr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Sr(e.length?e:[Xn()])}function Sr(t){var e=function(){for(var t=Tr(),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 Tr(){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 Dr=/^\/?Date\((-?\d+)/i,Mr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Pr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Ir=/^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,Br=/^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 zr(t){return t instanceof Number||"number"==typeof t}function Fr(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Fr(e),t.removeChild(e))}}function Nr(t){return t instanceof String||"string"==typeof t}function Ar(t){return"object"===rr(t)&&null!==t}function jr(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 Rr(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"!==rr(e[o]))jr(t,e,o,i);else{var n=t[o],r=e[o];Ar(n)&&Ar(r)&&Rr(n,r,i)}}var Lr=mt;function Hr(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?qr(e[r],i[r],!1,o):jr(e,i,r,o);else{if(ir(i[r]))throw new TypeError("Arrays are not supported by deepExtend");jr(e,i,r,o)}}return e}function Wr(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===wn(t).call(t,n))if(i[n]&&i[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n].constructor===Object?qr(e[n],i[n]):jr(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 jr(e,i,n,o);return e}function qr(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"===rr(e[n])&&null!==e[n]&&un(e[n])===Object.prototype)void 0===t[n]?t[n]=qr({},e[n],i):"object"===rr(t[n])&&null!==t[n]&&un(t[n])===Object.prototype?qr(t[n],e[n],i):jr(t,e,n,o);else if(ir(e[n])){var r;t[n]=ar(r=e[n]).call(r)}else jr(t,e,n,o);return t}function Vr(t,e){var i;return pr(i=[]).call(i,cr(t),[e])}function Ur(t){return ar(t).call(t)}function Yr(t){return t.getBoundingClientRect().left}function Xr(t){return t.getBoundingClientRect().top}function Gr(t,e){var i=t.className.split(" "),o=e.split(" ");i=pr(i).call(i,ln(o).call(o,(function(t){return wn(i).call(i,t)<0}))),t.className=i.join(" ")}function Kr(t,e){var i=t.className.split(" "),o=e.split(" ");i=ln(i).call(i,(function(t){return wn(o).call(o,t)<0})),t.className=i.join(" ")}function $r(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)}var Qr=Ko;function Zr(t,e,i,o){var n;t.addEventListener?(void 0===o&&(o=!1),"mousewheel"===e&&wn(n=navigator.userAgent).call(n,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,o)):t.attachEvent("on"+e,i)}function Jr(t,e,i,o){var n;t.removeEventListener?(void 0===o&&(o=!1),"mousewheel"===e&&wn(n=navigator.userAgent).call(n,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,o)):t.detachEvent("on"+e,i)}var ts={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Nr(t)?t:zr(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function es(t){var e;switch(t.length){case 3:case 4:return(e=Pr.exec(t))?{r:qo(e[1]+e[1],16),g:qo(e[2]+e[2],16),b:qo(e[3]+e[3],16)}:null;case 6:case 7:return(e=Mr.exec(t))?{r:qo(e[1],16),g:qo(e[2],16),b:qo(e[3],16)}:null;default:return null}}function is(t,e){if(-1!==wn(t).call(t,"rgba"))return t;if(-1!==wn(t).call(t,"rgb")){var i=t.substr(wn(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var o=es(t);return null==o?t:"rgba("+o.r+","+o.g+","+o.b+","+e+")"}function os(t,e,i){var o;return"#"+ar(o=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(o,1)}function ns(t,e){if(Nr(t)){var i=t;if(us(i)){var o,n=er(o=i.substr(4).substr(0,i.length-5).split(",")).call(o,(function(t){return qo(t)}));i=os(n[0],n[1],n[2])}if(!0===cs(i)){var r=ds(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=ls(a.h,a.s,a.v),l=ls(s.h,s.s,s.v);return{background:i,border:h,highlight:{background:l,border:h},hover:{background:l,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:Nr(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:Nr(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:Nr(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:Nr(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 rs(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}}var ss=function(t){var e,i={};return jo(e=t.split(";")).call(e,(function(t){if(""!=Eo(t).call(t)){var e,o,n=t.split(":"),r=Eo(e=n[0]).call(e),s=Eo(o=n[1]).call(o);i[r]=s}})),i},as=function(t){var e;return er(e=Kn(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function hs(t,e,i){var o,n,r,s=Math.floor(6*t),a=6*t-s,h=i*(1-e),l=i*(1-a*e),d=i*(1-(1-a)*e);switch(s%6){case 0:o=i,n=d,r=h;break;case 1:o=l,n=i,r=h;break;case 2:o=h,n=i,r=d;break;case 3:o=h,n=l,r=i;break;case 4:o=d,n=h,r=i;break;case 5:o=i,n=h,r=l}return{r:Math.floor(255*o),g:Math.floor(255*n),b:Math.floor(255*r)}}function ls(t,e,i){var o=hs(t,e,i);return os(o.r,o.g,o.b)}function ds(t){var e=es(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return rs(e.r,e.g,e.b)}function cs(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function us(t){return Ir.test(t)}function fs(t){return Br.test(t)}function ps(t){if(null===t||"object"!==rr(t))return null;if(t instanceof Element)return t;var e=uo(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==rr(t[i])&&(e[i]=ps(t[i]));return e}function vs(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"===rr(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],l=r(o)&&!s(o),d=l?o[i]:void 0,c=d?d.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(d))return;t[i]=uo(d)}if(r(h)){var u=!0;void 0!==h.enabled?u=h.enabled:void 0!==c&&(u=d.enabled),a(t,e,i),t[i].enabled=u}}}var gs={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 ys(t,e){var i;ir(e)||(e=[e]);var o,n=mr(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 ms=Object.freeze({__proto__:null,Alea:Cr,DELETE:wr,HSVToHex:ls,HSVToRGB:hs,RGBToHSV:rs,RGBToHex:os,addClassName:Gr,addCssText:function(t,e){var i=ss(t.style.cssText),o=ss(e),n=yr(yr({},i),o);t.style.cssText=as(n)},addEventListener:Zr,binarySearchCustom:function(t,e,i,o){for(var n=0,r=0,s=t.length-1;r<=s&&n<1e4;){var a=Math.floor((r+s)/2),h=t[a],l=e(void 0===o?h[i]:h[i][o]);if(0==l)return a;-1==l?r=a+1:s=a-1,n++}return-1},binarySearchValue:function(t,e,i,o,n){var r,s,a,h,l=0,d=0,c=t.length-1;for(n=null!=n?n:function(t,e){return t==e?0:t<e?-1:1};d<=c&&l<1e4;){if(h=Math.floor(.5*(c+d)),r=t[Math.max(0,h-1)][i],s=t[h][i],a=t[Math.min(t.length-1,h+1)][i],0==n(s,e))return h;if(n(r,e)<0&&n(s,e)>0)return"before"==o?Math.max(0,h-1):h;if(n(s,e)<0&&n(a,e)>0)return"before"==o?h:Math.min(t.length-1,h+1);n(s,e)<0?d=h+1:c=h-1,l++}return-1},bridgeObject:ps,copyAndExtendArray:Vr,copyArray:Ur,deepExtend:qr,deepObjectAssign:_r,easingFunctions:gs,equalArray:function(t,e){if(t.length!==e.length)return!1;for(var i=0,o=t.length;i<o;i++)if(t[i]!=e[i])return!1;return!0},extend:Lr,fillIfDefined:Rr,forEach:$r,getAbsoluteLeft:Yr,getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:Xr,getScrollBarWidth:function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return i==o&&(o=e.clientWidth),document.body.removeChild(e),i-o},getTarget:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:function(t){var e=rr(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":ir(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},hasParent:function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:ds,hexToRGB:es,insertSort:function(t,e){for(var i=0;i<t.length;i++){var o=t[i],n=void 0;for(n=i;n>0&&e(o,t[n-1])<0;n--)t[n]=t[n-1];t[n]=o}return t},isDate:function(t){if(t instanceof Date)return!0;if(Nr(t)){if(Dr.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:zr,isObject:Ar,isString:Nr,isValidHex:cs,isValidRGB:us,isValidRGBA:fs,mergeOptions:vs,option:ts,overrideOpacity:is,parseColor:ns,preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:kr,recursiveDOMDelete:Fr,removeClassName:Kr,removeCssText:function(t,e){var i=ss(t.style.cssText),o=ss(e);for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&delete i[n];t.style.cssText=as(i)},removeEventListener:Jr,selectiveBridgeObject:function(t,e){if(null!==e&&"object"===rr(e)){for(var i=uo(e),o=0;o<t.length;o++)Object.prototype.hasOwnProperty.call(e,t[o])&&"object"==rr(e[t[o]])&&(i[t[o]]=ps(e[t[o]]));return i}return null},selectiveDeepExtend:Hr,selectiveExtend:function(t,e){if(!ir(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;n<i;n++)o[n-2]=arguments[n];for(var r=0,s=o;r<s.length;r++)for(var a=s[r],h=0;h<t.length;h++){var l=t[h];a&&Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},selectiveNotDeepExtend:Wr,throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},toArray:Qr,topMost:ys,updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}}),bs=on("splice"),ws=Mo("splice",{ACCESSORS:!0,0:0,1:2}),ks=Math.max,_s=Math.min;q({target:"Array",proto:!0,forced:!bs||!ws},{splice:function(t,e){var i,o,n,r,s,a,h=pt(this),l=it(h.length),d=rt(t,l),c=arguments.length;if(0===c?i=o=0:1===c?(i=0,o=l-d):(i=c-2,o=_s(ks(tt(e),0),l-d)),l+i-o>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(n=Le(h,o),r=0;r<o;r++)(s=d+r)in h&&Ft(n,r,h[s]);if(n.length=o,i<o){for(r=d;r<l-o;r++)a=r+i,(s=r+o)in h?h[a]=h[s]:delete h[a];for(r=l;r>l-o+i;r--)delete h[r-1]}else if(i>o)for(r=l-o;r>d;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+d]=arguments[r+2];return h.length=l-o+i,n}});var xs=G("Array").splice,Os=Array.prototype,Es=function(t){var e=t.splice;return t===Os||t instanceof Array&&e===Os.splice?xs:e},Cs=at.includes,Ss=Mo("indexOf",{ACCESSORS:!0,1:0});q({target:"Array",proto:!0,forced:!Ss},{includes:function(t){return Cs(this,t,arguments.length>1?arguments[1]:void 0)}});var Ts=G("Array").includes,Ds=ue("match"),Ms=function(t){if(function(t){var e;return y(t)&&(void 0!==(e=t[Ds])?!!e:"RegExp"==u(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Ps=ue("match");q({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[Ps]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Ms(t),arguments.length>1?arguments[1]:void 0)}});var Is=G("String").includes,Bs=Array.prototype,zs=String.prototype,Fs=function(t){var e=t.includes;return t===Bs||t instanceof Array&&e===Bs.includes?Ts:"string"==typeof t||t===zs||t instanceof String&&e===zs.includes?Is:e};function Ns(t){return Vs=t,function(){var t={};Us=0,void(Ys=Vs.charAt(0)),na(),"strict"===Xs&&(t.strict=!0,na());"graph"!==Xs&&"digraph"!==Xs||(t.type=Xs,na());Gs===Hs&&(t.id=Xs,na());if("{"!=Xs)throw da("Angle bracket { expected");if(na(),ra(t),"}"!=Xs)throw da("Angle bracket } expected");if(na(),""!==Xs)throw da("End of file expected");return na(),delete t.node,delete t.edge,delete t.graph,t}()}var As={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},js=uo(As);js.color="color.color",js.style="dashes";var Rs=0,Ls=1,Hs=2,Ws=3,qs={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Vs="",Us=0,Ys="",X